BOSS 8.0.0
BESIII Offline Software System
Loading...
Searching...
No Matches
TrkFitTypeKey Class Reference

#include <TrkFitTypeKey.h>

Public Member Functions

 TrkFitTypeKey (const char *name=0, const PdtPid::PidType pid=PdtPid::null)
 TrkFitTypeKey (const TrkFitTypeKey &)
 TrkFitTypeKey (const int &)
virtual ~TrkFitTypeKey ()
bool operator== (const TrkFitTypeKey &rhs) const
bool operator< (const TrkFitTypeKey &rhs) const
TrkFitTypeKeyoperator= (const TrkFitTypeKey &rhs)
const int & value () const
const IfdKeyifdKey () const
PdtPid::PidType pidType () const
void printAll (std::ostream &os=std::cout) const
 TrkFitTypeKey (const char *name=0, const PdtPid::PidType pid=PdtPid::null)
 TrkFitTypeKey (const TrkFitTypeKey &)
 TrkFitTypeKey (const int &)
virtual ~TrkFitTypeKey ()
bool operator== (const TrkFitTypeKey &rhs) const
bool operator< (const TrkFitTypeKey &rhs) const
TrkFitTypeKeyoperator= (const TrkFitTypeKey &rhs)
const int & value () const
const IfdKeyifdKey () const
PdtPid::PidType pidType () const
void printAll (std::ostream &os=std::cout) const
 TrkFitTypeKey (const char *name=0, const PdtPid::PidType pid=PdtPid::null)
 TrkFitTypeKey (const TrkFitTypeKey &)
 TrkFitTypeKey (const int &)
virtual ~TrkFitTypeKey ()
bool operator== (const TrkFitTypeKey &rhs) const
bool operator< (const TrkFitTypeKey &rhs) const
TrkFitTypeKeyoperator= (const TrkFitTypeKey &rhs)
const int & value () const
const IfdKeyifdKey () const
PdtPid::PidType pidType () const
void printAll (std::ostream &os=std::cout) const

Static Public Member Functions

static int currentKey ()
static void killFitType (const TrkFitTypeKey key)
static int currentKey ()
static void killFitType (const TrkFitTypeKey key)
static int currentKey ()
static void killFitType (const TrkFitTypeKey key)

Static Protected Member Functions

static int newFitType (const char *name=0)
static int newFitType (const char *name=0)
static int newFitType (const char *name=0)

Detailed Description

Constructor & Destructor Documentation

◆ TrkFitTypeKey() [1/9]

TrkFitTypeKey::TrkFitTypeKey ( const char * name = 0,
const PdtPid::PidType pid = PdtPid::null )

Definition at line 77 of file TrkFitTypeKey.cxx.

78 : _value( newFitType( name ) ) {
79 if ( _value >= 0 ) _pidTypes.push_back( pid );
80}
static int newFitType(const char *name=0)

Referenced by killFitType(), operator<(), operator=(), operator==(), and TrkFitTypeKey().

◆ TrkFitTypeKey() [2/9]

TrkFitTypeKey::TrkFitTypeKey ( const TrkFitTypeKey & rhs)

Definition at line 82 of file TrkFitTypeKey.cxx.

82: _value( rhs.value() ) {}

◆ TrkFitTypeKey() [3/9]

TrkFitTypeKey::TrkFitTypeKey ( const int & val)

Definition at line 84 of file TrkFitTypeKey.cxx.

84: _value( val ) {}

◆ ~TrkFitTypeKey() [1/3]

TrkFitTypeKey::~TrkFitTypeKey ( )
virtual

Definition at line 90 of file TrkFitTypeKey.cxx.

90{}

◆ TrkFitTypeKey() [4/9]

TrkFitTypeKey::TrkFitTypeKey ( const char * name = 0,
const PdtPid::PidType pid = PdtPid::null )

◆ TrkFitTypeKey() [5/9]

TrkFitTypeKey::TrkFitTypeKey ( const TrkFitTypeKey & )

◆ TrkFitTypeKey() [6/9]

TrkFitTypeKey::TrkFitTypeKey ( const int & )

◆ ~TrkFitTypeKey() [2/3]

virtual TrkFitTypeKey::~TrkFitTypeKey ( )
virtual

◆ TrkFitTypeKey() [7/9]

TrkFitTypeKey::TrkFitTypeKey ( const char * name = 0,
const PdtPid::PidType pid = PdtPid::null )

◆ TrkFitTypeKey() [8/9]

TrkFitTypeKey::TrkFitTypeKey ( const TrkFitTypeKey & )

◆ TrkFitTypeKey() [9/9]

TrkFitTypeKey::TrkFitTypeKey ( const int & )

◆ ~TrkFitTypeKey() [3/3]

virtual TrkFitTypeKey::~TrkFitTypeKey ( )
virtual

Member Function Documentation

◆ currentKey() [1/3]

int TrkFitTypeKey::currentKey ( )
inlinestatic

Definition at line 39 of file InstallArea/x86_64-el9-gcc13-dbg/include/TrkBase/TrkFitTypeKey.h.

39{ return _keys.size(); }

Referenced by ifdKey(), killFitType(), newFitType(), and pidType().

◆ currentKey() [2/3]

int TrkFitTypeKey::currentKey ( )
inlinestatic

Definition at line 39 of file InstallArea/x86_64-el9-gcc13-opt/include/TrkBase/TrkFitTypeKey.h.

39{ return _keys.size(); }

◆ currentKey() [3/3]

int TrkFitTypeKey::currentKey ( )
inlinestatic

Definition at line 39 of file Reconstruction/MdcPatRec/TrkBase/include/TrkBase/TrkFitTypeKey.h.

39{ return _keys.size(); }

◆ ifdKey() [1/3]

const IfdKey * TrkFitTypeKey::ifdKey ( ) const
inline

Definition at line 78 of file InstallArea/x86_64-el9-gcc13-dbg/include/TrkBase/TrkFitTypeKey.h.

78 {
79 if ( _value < 0 || _value >= currentKey() ) return 0;
80 return _keys[_value];
81 }

◆ ifdKey() [2/3]

const IfdKey * TrkFitTypeKey::ifdKey ( ) const
inline

Definition at line 78 of file InstallArea/x86_64-el9-gcc13-opt/include/TrkBase/TrkFitTypeKey.h.

78 {
79 if ( _value < 0 || _value >= currentKey() ) return 0;
80 return _keys[_value];
81 }

◆ ifdKey() [3/3]

const IfdKey * TrkFitTypeKey::ifdKey ( ) const
inline

Definition at line 78 of file Reconstruction/MdcPatRec/TrkBase/include/TrkBase/TrkFitTypeKey.h.

78 {
79 if ( _value < 0 || _value >= currentKey() ) return 0;
80 return _keys[_value];
81 }

◆ killFitType() [1/3]

void TrkFitTypeKey::killFitType ( const TrkFitTypeKey key)
static

Definition at line 64 of file TrkFitTypeKey.cxx.

64 {
65 const int i = key.value();
66 if ( i < 0 || i >= currentKey() ) return;
67 IfdKey* theKey = _keys[i];
68 assert( theKey != 0 );
69 delete theKey;
70 theKey = 0;
71}
*************DOUBLE PRECISION m_pi *DOUBLE PRECISION m_HvecTau2 DOUBLE PRECISION m_HvClone2 DOUBLE PRECISION m_gamma1 DOUBLE PRECISION m_gamma2 DOUBLE PRECISION m_thet1 DOUBLE PRECISION m_thet2 INTEGER m_IFPHOT *COMMON c_Taupair $ !Spin Polarimeter vector first Tau $ !Spin Polarimeter vector second Tau $ !Clone Spin Polarimeter vector first Tau $ !Clone Spin Polarimeter vector second Tau $ !Random Euler angle for cloning st tau $ !Random Euler angle for cloning st tau $ !Random Euler angle for cloning st tau $ !Random Euler angle for cloning nd tau $ !Random Euler angle for cloning nd tau $ !Random Euler angle for cloning nd tau $ !phi of HvecTau1 $ !theta of HvecTau1 $ !phi of HvecTau2 $ !theta of HvecTau2 $ !super key
Definition Taupair.h:42

◆ killFitType() [2/3]

void TrkFitTypeKey::killFitType ( const TrkFitTypeKey key)
static

◆ killFitType() [3/3]

void TrkFitTypeKey::killFitType ( const TrkFitTypeKey key)
static

◆ newFitType() [1/3]

int TrkFitTypeKey::newFitType ( const char * name = 0)
staticprotected

Definition at line 58 of file TrkFitTypeKey.cxx.

58 {
59 if ( name == 0 ) return _defaultValue;
60 _keys.push_back( new IfdStrKey( name ) );
61 return ( currentKey() - 1 );
62}

Referenced by TrkFitTypeKey().

◆ newFitType() [2/3]

int TrkFitTypeKey::newFitType ( const char * name = 0)
staticprotected

◆ newFitType() [3/3]

int TrkFitTypeKey::newFitType ( const char * name = 0)
staticprotected

◆ operator<() [1/3]

bool TrkFitTypeKey::operator< ( const TrkFitTypeKey & rhs) const
inline

Definition at line 69 of file InstallArea/x86_64-el9-gcc13-dbg/include/TrkBase/TrkFitTypeKey.h.

69{ return _value < rhs.value(); }

◆ operator<() [2/3]

bool TrkFitTypeKey::operator< ( const TrkFitTypeKey & rhs) const
inline

Definition at line 69 of file InstallArea/x86_64-el9-gcc13-opt/include/TrkBase/TrkFitTypeKey.h.

69{ return _value < rhs.value(); }

◆ operator<() [3/3]

bool TrkFitTypeKey::operator< ( const TrkFitTypeKey & rhs) const
inline

Definition at line 69 of file Reconstruction/MdcPatRec/TrkBase/include/TrkBase/TrkFitTypeKey.h.

69{ return _value < rhs.value(); }

◆ operator=() [1/3]

TrkFitTypeKey & TrkFitTypeKey::operator= ( const TrkFitTypeKey & rhs)
inline

Definition at line 70 of file InstallArea/x86_64-el9-gcc13-dbg/include/TrkBase/TrkFitTypeKey.h.

70 {
71 _value = rhs.value();
72 return *this;
73 }

◆ operator=() [2/3]

TrkFitTypeKey & TrkFitTypeKey::operator= ( const TrkFitTypeKey & rhs)
inline

Definition at line 70 of file InstallArea/x86_64-el9-gcc13-opt/include/TrkBase/TrkFitTypeKey.h.

70 {
71 _value = rhs.value();
72 return *this;
73 }

◆ operator=() [3/3]

TrkFitTypeKey & TrkFitTypeKey::operator= ( const TrkFitTypeKey & rhs)
inline

Definition at line 70 of file Reconstruction/MdcPatRec/TrkBase/include/TrkBase/TrkFitTypeKey.h.

70 {
71 _value = rhs.value();
72 return *this;
73 }

◆ operator==() [1/3]

bool TrkFitTypeKey::operator== ( const TrkFitTypeKey & rhs) const
inline

Definition at line 68 of file InstallArea/x86_64-el9-gcc13-dbg/include/TrkBase/TrkFitTypeKey.h.

68{ return _value == rhs.value(); }

◆ operator==() [2/3]

bool TrkFitTypeKey::operator== ( const TrkFitTypeKey & rhs) const
inline

Definition at line 68 of file InstallArea/x86_64-el9-gcc13-opt/include/TrkBase/TrkFitTypeKey.h.

68{ return _value == rhs.value(); }

◆ operator==() [3/3]

bool TrkFitTypeKey::operator== ( const TrkFitTypeKey & rhs) const
inline

Definition at line 68 of file Reconstruction/MdcPatRec/TrkBase/include/TrkBase/TrkFitTypeKey.h.

68{ return _value == rhs.value(); }

◆ pidType() [1/3]

PdtPid::PidType TrkFitTypeKey::pidType ( ) const
inline

Definition at line 83 of file InstallArea/x86_64-el9-gcc13-dbg/include/TrkBase/TrkFitTypeKey.h.

83 {
84 if ( _value < 0 || _value >= currentKey() ) return PdtPid::null;
85 return _pidTypes[_value];
86 }

◆ pidType() [2/3]

PdtPid::PidType TrkFitTypeKey::pidType ( ) const
inline

Definition at line 83 of file InstallArea/x86_64-el9-gcc13-opt/include/TrkBase/TrkFitTypeKey.h.

83 {
84 if ( _value < 0 || _value >= currentKey() ) return PdtPid::null;
85 return _pidTypes[_value];
86 }

◆ pidType() [3/3]

PdtPid::PidType TrkFitTypeKey::pidType ( ) const
inline

Definition at line 83 of file Reconstruction/MdcPatRec/TrkBase/include/TrkBase/TrkFitTypeKey.h.

83 {
84 if ( _value < 0 || _value >= currentKey() ) return PdtPid::null;
85 return _pidTypes[_value];
86 }

◆ printAll() [1/3]

void TrkFitTypeKey::printAll ( std::ostream & os = std::cout) const

◆ printAll() [2/3]

void TrkFitTypeKey::printAll ( std::ostream & os = std::cout) const

◆ printAll() [3/3]

void TrkFitTypeKey::printAll ( std::ostream & os = std::cout) const

◆ value() [1/3]

const int & TrkFitTypeKey::value ( ) const
inline

Definition at line 76 of file InstallArea/x86_64-el9-gcc13-dbg/include/TrkBase/TrkFitTypeKey.h.

76{ return _value; }

Referenced by operator<(), operator=(), operator==(), and TrkFitTypeKey().

◆ value() [2/3]

const int & TrkFitTypeKey::value ( ) const
inline

Definition at line 76 of file InstallArea/x86_64-el9-gcc13-opt/include/TrkBase/TrkFitTypeKey.h.

76{ return _value; }

◆ value() [3/3]

const int & TrkFitTypeKey::value ( ) const
inline

Definition at line 76 of file Reconstruction/MdcPatRec/TrkBase/include/TrkBase/TrkFitTypeKey.h.

76{ return _value; }

The documentation for this class was generated from the following files: