#include <EvtParticleDecay.hh>
Public Member Functions | |
EvtParticleDecay () | |
~EvtParticleDecay () | |
void | chargeConj (EvtParticleDecay *decay) |
void | setDecayModel (EvtDecayBase *decay) |
EvtDecayBase * | getDecayModel () |
double | getBrfrSum () |
void | setBrfrSum (double brfrsum) |
double | getMassMin () |
void | setMassMin (double massmin) |
void | printSummary () |
Private Attributes | |
EvtDecayBase * | _decay |
double | _brfrsum |
double | _massmin |
Definition at line 27 of file EvtParticleDecay.hh.
EvtParticleDecay::EvtParticleDecay | ( | ) | [inline] |
EvtParticleDecay::~EvtParticleDecay | ( | ) | [inline] |
void EvtParticleDecay::chargeConj | ( | EvtParticleDecay * | decay | ) |
Definition at line 41 of file EvtParticleDecay.cc.
References _brfrsum, _decay, _massmin, EvtPDL::chargeConj(), EvtDecayBase::clone(), EvtDecayBase::getArgStr(), EvtDecayBase::getBranchingFraction(), EvtDecayBase::getDaug(), EvtDecayBase::getName(), EvtDecayBase::getNArg(), EvtDecayBase::getNDaug(), EvtDecayBase::getParentId(), EvtDecayBase::getPHOTOS(), genRecEmupikp::i, EvtDecayBase::saveDecayInfo(), EvtDecayBase::setPHOTOS(), and deljobs::string.
Referenced by EvtParticleDecayList::makeChargeConj().
00041 { 00042 00043 _brfrsum=decay->_brfrsum; 00044 _massmin=decay->_massmin; 00045 00046 _decay=decay->_decay->clone(); 00047 00048 int ndaug=decay->_decay->getNDaug(); 00049 int narg=decay->_decay->getNArg(); 00050 double brfr=decay->_decay->getBranchingFraction(); 00051 std::string name; 00052 decay->_decay->getName(name); 00053 EvtId ipar=EvtPDL::chargeConj(decay->_decay->getParentId()); 00054 int i; 00055 EvtId* daug=new EvtId[ndaug]; 00056 for(i=0;i<ndaug;i++){ 00057 daug[i]=EvtPDL::chargeConj(decay->_decay->getDaug(i)); 00058 } 00059 //Had to add 1 to make sure the vector is not empty! 00060 std::vector<std::string> args; 00061 for(i=0;i<narg;i++){ 00062 args.push_back(decay->_decay->getArgStr(i)); 00063 } 00064 00065 _decay->saveDecayInfo(ipar,ndaug,daug,narg,args,name,brfr); 00066 00067 if (decay->_decay->getPHOTOS()) _decay->setPHOTOS(); 00068 00069 delete [] daug; 00070 00071 }
double EvtParticleDecay::getBrfrSum | ( | ) | [inline] |
Definition at line 47 of file EvtParticleDecay.hh.
References _brfrsum.
Referenced by EvtParticleDecayList::EvtParticleDecayList(), and EvtParticleDecayList::removeMode().
00047 {return _brfrsum;}
EvtDecayBase* EvtParticleDecay::getDecayModel | ( | ) | [inline] |
Definition at line 46 of file EvtParticleDecay.hh.
References _decay.
Referenced by EvtParticleDecayList::addMode(), EvtParticleDecayList::EvtParticleDecayList(), EvtParticleDecayList::getDecayModel(), and EvtParticleDecayList::removeMode().
00046 {return _decay;}
double EvtParticleDecay::getMassMin | ( | ) | [inline] |
Definition at line 49 of file EvtParticleDecay.hh.
References _massmin.
Referenced by EvtParticleDecayList::EvtParticleDecayList().
00049 {return _massmin;}
void EvtParticleDecay::printSummary | ( | ) |
Definition at line 35 of file EvtParticleDecay.cc.
References _decay, and EvtDecayBase::printSummary().
00035 { 00036 00037 if (_decay!=0) _decay->printSummary(); 00038 00039 }
void EvtParticleDecay::setBrfrSum | ( | double | brfrsum | ) | [inline] |
Definition at line 48 of file EvtParticleDecay.hh.
References _brfrsum.
Referenced by EvtParticleDecayList::addMode(), EvtParticleDecayList::EvtParticleDecayList(), EvtParticleDecayList::finalize(), and EvtParticleDecayList::removeMode().
00048 {_brfrsum=brfrsum;}
void EvtParticleDecay::setDecayModel | ( | EvtDecayBase * | decay | ) | [inline] |
Definition at line 45 of file EvtParticleDecay.hh.
References _decay.
Referenced by EvtParticleDecayList::addMode(), and EvtParticleDecayList::EvtParticleDecayList().
00045 {_decay=decay;}
void EvtParticleDecay::setMassMin | ( | double | massmin | ) | [inline] |
Definition at line 50 of file EvtParticleDecay.hh.
References _massmin.
Referenced by EvtParticleDecayList::addMode(), and EvtParticleDecayList::EvtParticleDecayList().
00050 {_massmin=massmin;}
double EvtParticleDecay::_brfrsum [private] |
Definition at line 58 of file EvtParticleDecay.hh.
Referenced by chargeConj(), EvtParticleDecay(), getBrfrSum(), and setBrfrSum().
EvtDecayBase* EvtParticleDecay::_decay [private] |
Definition at line 56 of file EvtParticleDecay.hh.
Referenced by chargeConj(), EvtParticleDecay(), getDecayModel(), printSummary(), setDecayModel(), and ~EvtParticleDecay().
double EvtParticleDecay::_massmin [private] |
Definition at line 59 of file EvtParticleDecay.hh.
Referenced by chargeConj(), EvtParticleDecay(), getMassMin(), and setMassMin().