#include <TrkFitTypeKey.h>
Public Member Functions | |
const IfdKey * | ifdKey () const |
const IfdKey * | ifdKey () const |
bool | operator< (const TrkFitTypeKey &rhs) const |
bool | operator< (const TrkFitTypeKey &rhs) const |
TrkFitTypeKey & | operator= (const TrkFitTypeKey &rhs) |
TrkFitTypeKey & | operator= (const TrkFitTypeKey &rhs) |
bool | operator== (const TrkFitTypeKey &rhs) const |
bool | operator== (const TrkFitTypeKey &rhs) const |
PdtPid::PidType | pidType () const |
PdtPid::PidType | pidType () const |
void | printAll (std::ostream &os=std::cout) const |
void | printAll (std::ostream &os=std::cout) const |
TrkFitTypeKey (const int &) | |
TrkFitTypeKey (const TrkFitTypeKey &) | |
TrkFitTypeKey (const char *name=0, const PdtPid::PidType pid=PdtPid::null) | |
TrkFitTypeKey (const int &) | |
TrkFitTypeKey (const TrkFitTypeKey &) | |
TrkFitTypeKey (const char *name=0, const PdtPid::PidType pid=PdtPid::null) | |
const int & | value () const |
const int & | value () const |
virtual | ~TrkFitTypeKey () |
virtual | ~TrkFitTypeKey () |
Static Public Member Functions | |
int | currentKey () |
int | currentKey () |
void | killFitType (const TrkFitTypeKey key) |
void | killFitType (const TrkFitTypeKey key) |
Static Protected Member Functions | |
int | newFitType (const char *name=0) |
int | newFitType (const char *name=0) |
Private Attributes | |
int | _value |
Static Private Attributes | |
const int | _defaultValue |
std::vector< IfdKey * > | _keys |
std::vector< IfdKey * > | _keys |
std::vector< PdtPid::PidType > | _pidTypes |
std::vector< PdtPid::PidType > | _pidTypes |
|
00088 :_value(newFitType(name)) 00089 { 00090 if ( _value >= 0 ) _pidTypes.push_back(pid); 00091 }
|
|
|
|
00099 :_value(val) 00100 { 00101 }
|
|
00108 { 00109 }
|
|
|
|
|
|
|
|
|
|
00039 { return _keys.size(); }
|
|
00039 { return _keys.size(); }
|
|
00085 { 00086 if ( _value < 0 || _value >= currentKey() ) return 0; 00087 return _keys[_value]; 00088 }
|
|
00085 { 00086 if ( _value < 0 || _value >= currentKey() ) return 0; 00087 return _keys[_value]; 00088 }
|
|
|
|
00073 { 00074 const int i = key.value(); 00075 if ( i < 0 || i >= currentKey() ) return; 00076 IfdKey* theKey = _keys[i]; 00077 assert(theKey != 0 ); 00078 delete theKey; 00079 theKey = 0; 00080 }
|
|
|
|
00065 { 00066 if ( name == 0 ) return _defaultValue; 00067 _keys.push_back( new IfdStrKey(name) ); 00068 return (currentKey()-1); 00069 }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
00090 { 00091 if ( _value < 0 || _value >= currentKey() ) return PdtPid::null; 00092 return _pidTypes[_value]; 00093 }
|
|
00090 { 00091 if ( _value < 0 || _value >= currentKey() ) return PdtPid::null; 00092 return _pidTypes[_value]; 00093 }
|
|
|
|
00114 { 00115 char* pidName(0); 00116 switch ( pidType() ) { 00117 case PdtPid::electron: 00118 pidName = "Electron"; 00119 break; 00120 case PdtPid::muon: 00121 pidName = "Muon"; 00122 break; 00123 case PdtPid::pion: 00124 pidName = "Pion"; 00125 break; 00126 case PdtPid::kaon: 00127 pidName = "Kaon"; 00128 break; 00129 case PdtPid::proton: 00130 pidName = "Proton"; 00131 break; 00132 case PdtPid::null: 00133 default: 00134 pidName = "Unknown"; 00135 break; 00136 } 00137 os << ifdKey() << ' ' << pidName << " key: " << _value << endl; 00138 }
|
|
00083 { return _value; }
|
|
00083 { return _value; }
|
|
|
|
|
|
|
|
|
|
|
|
|