#include <PdtEntry.h>
Public Member Functions | |
void | addDecay (float bf, vector< PdtEntry * > *kids) |
void | addDecay (float bf, vector< PdtEntry * > *kids) |
float | charge () const |
float | charge () const |
const PdtEntry * | conjugate () const |
const PdtEntry * | conjugate () const |
const vector< DecayMode * > * | decayList () const |
const vector< DecayMode * > * | decayList () const |
PdtGeant::GeantType | geantId () const |
PdtGeant::GeantType | geantId () const |
float | lifetime () const |
float | lifetime () const |
PdtLund::LundType | lundId () const |
PdtLund::LundType | lundId () const |
float | mass () const |
float | mass () const |
const char * | name () const |
const char * | name () const |
bool | operator< (const PdtEntry &) const |
bool | operator< (const PdtEntry &) const |
bool | operator== (const PdtEntry &) const |
bool | operator== (const PdtEntry &) const |
PdtPdg::PdgType | pdgId () const |
PdtPdg::PdgType | pdgId () const |
PdtEntry (const char *name, PdtPdg::PdgType code, float spin, float charge, float mass, float width=0, float massCut=0) | |
PdtEntry (const char *name, PdtGeant::GeantType code, float spin, float charge, float mass, float width=0, float massCut=0) | |
PdtEntry (const char *name, PdtLund::LundType code, float spin, float charge, float mass, float width=0, float massCut=0) | |
PdtEntry (const char *name, PdtPdg::PdgType code, float spin, float charge, float mass, float width=0, float massCut=0) | |
PdtEntry (const char *name, PdtGeant::GeantType code, float spin, float charge, float mass, float width=0, float massCut=0) | |
PdtEntry (const char *name, PdtLund::LundType code, float spin, float charge, float mass, float width=0, float massCut=0) | |
PdtPid::PidType | pidId () const |
PdtPid::PidType | pidId () const |
PdtPid::PidNeutralType | pidNeutId () const |
PdtPid::PidNeutralType | pidNeutId () const |
void | printBFOn (std::ostream &str) const |
void | printBFOn (std::ostream &str) const |
void | printOn (std::ostream &str) const |
void | printOn (std::ostream &str) const |
float | spin () const |
float | spin () const |
float | sumBR () const |
float | sumBR () const |
float | width () const |
float | width () const |
float | widthCut () const |
float | widthCut () const |
virtual | ~PdtEntry () |
virtual | ~PdtEntry () |
Protected Attributes | |
float | _charge |
const PdtEntry * | _conjugate |
const PdtEntry * | _conjugate |
vector< DecayMode * > * | _decayList |
vector< DecayMode * > * | _decayList |
PdtGeant::GeantType | _geantId |
float | _lifetime |
PdtLund::LundType | _lundId |
float | _mass |
char * | _name |
char * | _name |
PdtPdg::PdgType | _pdgId |
PdtPid::PidType | _pidId |
PdtPid::PidNeutralType | _pidNeutId |
float | _spin |
float | _sumBR |
float | _width |
float | _widthCut |
|
00048 : 00049 _name(new char[strlen(name) + 1]), 00050 _mass(mass), 00051 _width(width), 00052 _lifetime( (width>0.0) ? (HBARC / width) : FLT_MAX ), 00053 _spin(spin), 00054 _charge(charge), 00055 _widthCut( (massCut > 0.0) ? massCut : 2.0*width ), 00056 _sumBR(0.0), 00057 _decayList(new vector<DecayMode*>), 00058 _lundId(code), 00059 _pdgId(Pdt::pdgId(code)), 00060 _geantId(Pdt::geantId(code)), 00061 _pidId(Pdt::pidId(code)), 00062 _pidNeutId(Pdt::pidNeutId(code)), 00063 _conjugate(0) 00064 { strcpy(_name, name); }
|
|
00068 : 00069 _name(new char[strlen(name) + 1]), 00070 _mass(mass), 00071 _width(width), 00072 _lifetime( (width>0.0) ? (HBARC / width) : FLT_MAX ), 00073 _spin(spin), 00074 _charge(charge), 00075 _widthCut( (massCut > 0.0) ? massCut : 2.0*width ), 00076 _sumBR(0.0), 00077 _decayList(new vector<DecayMode*>), 00078 _lundId(Pdt::lundId(code)), 00079 _pdgId(Pdt::pdgId(code)), 00080 _geantId(code), 00081 _pidId(Pdt::pidId(code)), 00082 _pidNeutId(Pdt::pidNeutId(code)), 00083 _conjugate(0) 00084 { strcpy(_name, name); }
|
|
00087 : 00088 _name(new char[strlen(name) + 1]), 00089 _mass(mass), 00090 _width(width), 00091 _lifetime( (width>0.0) ? (HBARC / width) : FLT_MAX ), 00092 _spin(spin), 00093 _charge(charge), 00094 _widthCut( (massCut > 0.0) ? massCut : 2.0*width ), 00095 _sumBR(0.0), 00096 _decayList(new vector<DecayMode*>), 00097 _lundId(Pdt::lundId(code)), 00098 _pdgId(code), 00099 _geantId(Pdt::geantId(code)), 00100 _pidId(Pdt::pidId(code)), 00101 _pidNeutId(Pdt::pidNeutId(code)), 00102 _conjugate(0) 00103 { strcpy(_name, name); }
|
|
00165 { 00166 vector<DecayMode*>::iterator iter=_decayList->begin(); 00167 while ( iter != _decayList->end() ) { delete *iter; ++iter; } 00168 _decayList->clear(); 00169 delete _decayList; 00170 delete [] _name; 00171 }
|
|
|
|
|
|
|
|
|
|
|
|
00106 { 00107 _decayList->push_back(new DecayMode(bf, kids)); 00108 _sumBR += bf; 00109 }
|
|
00054 {return _charge;}
|
|
00054 {return _charge;}
|
|
|
|
00175 { 00176 if ( ! _conjugate ) { 00177 const_cast<PdtEntry*>(this)->_conjugate = Pdt::conjugate( this ); 00178 } 00179 return _conjugate ; 00180 }
|
|
00061 { return _decayList; }
|
|
00061 { return _decayList; }
|
|
00065 { return _geantId; };
|
|
00065 { return _geantId; };
|
|
00058 {return _lifetime;}
|
|
00058 {return _lifetime;}
|
|
00063 { return _lundId;};
|
|
00063 { return _lundId;};
|
|
00055 {return _mass;}
|
|
00055 {return _mass;}
|
|
00053 {return _name;}
|
|
00053 {return _name;}
|
|
|
|
00189 { 00190 return (_lundId < theOther._lundId || 00191 (_lundId == theOther._lundId && _geantId < theOther._geantId)); 00192 }
|
|
|
|
|
|
00064 { return _pdgId; }
|
|
00064 { return _pdgId; }
|
|
00066 { return _pidId; };
|
|
00066 { return _pidId; };
|
|
00067 { return _pidNeutId; };
|
|
00067 { return _pidNeutId; };
|
|
|
|
00158 { 00159 int l = _decayList->size(); 00160 for (int i=0; i<l; i++) 00161 (*_decayList)[i]->printOn(str); 00162 }
|
|
|
|
00113 { 00114 // pkg coordinator: we need to see if form() really is part of 00115 // iostream. In any case, i've recoded things below simply to 00116 // avoid it. Perhaps this is good enough. 00117 // 00118 00119 // str.form("%6d %-8s %8g ", (int) _lundId, _name, _mass); 00120 // Not sure if the is exactly the same as using form(), but on 00121 // sun, it's claimed that you get %g behavior from ios as default. 00122 // I'm ignoring the left-field justification for now. 00123 // 00124 str << setw(6) << (int) _lundId << " " << setw(8) << _name << " " 00125 << setw(8) << _mass << " "; 00126 00127 if (_width > 0.0) 00128 str << " " << _width; 00129 else 00130 str << "Stable "; 00131 str << setw(3) << _spin << " " << setw(2) <<_charge 00132 << " "; 00133 if (_width > 0.0) 00134 str << " " << _lifetime << endl; 00135 else 00136 str << " Stable\n"; 00137 }
|
|
00059 {return _spin;}
|
|
00059 {return _spin;}
|
|
00060 {return _sumBR;}
|
|
00060 {return _sumBR;}
|
|
00056 {return _width;}
|
|
00056 {return _width;}
|
|
00057 {return _widthCut;}
|
|
00057 {return _widthCut;}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|