#include <EvtSecondary.hh>
Public Member Functions | |
EvtSecondary () | |
~EvtSecondary () | |
void | init () |
int | getStdHepIndex (int i) |
int | getD1 (int i) |
int | getD2 (int i) |
int | getD3 (int i) |
int | getNPart () |
void | createSecondary (int stdhepindex, EvtParticle *prnt) |
Private Attributes | |
int | _npart |
int | _stdhepindex [EVTSECONDARYLENGTH] |
int | _id1 [EVTSECONDARYLENGTH] |
int | _id2 [EVTSECONDARYLENGTH] |
int | _id3 [EVTSECONDARYLENGTH] |
Friends | |
std::ostream & | operator<< (std::ostream &s, const EvtSecondary &secondary) |
Definition at line 30 of file EvtSecondary.hh.
EvtSecondary::EvtSecondary | ( | ) | [inline] |
EvtSecondary::~EvtSecondary | ( | ) | [inline] |
void EvtSecondary::createSecondary | ( | int | stdhepindex, | |
EvtParticle * | prnt | |||
) |
Definition at line 40 of file EvtSecondary.cc.
References _id1, _id2, _id3, _npart, _stdhepindex, calibUtil::ERROR, EvtParticle::getDaug(), EvtParticle::getId(), EvtParticle::getNDaug(), EvtPDL::getStdHep(), and report().
Referenced by EvtParticle::makeStdHep(), and EvtParticle::makeStdHepRec().
00040 { 00041 00042 _stdhepindex[_npart]=stdhepindex; 00043 if (prnt->getNDaug()==0){ 00044 _id1[_npart]=0; 00045 _id2[_npart]=0; 00046 _id3[_npart]=0; 00047 _npart++; 00048 return; 00049 } 00050 if (prnt->getNDaug()==1){ 00051 _id1[_npart]=EvtPDL::getStdHep(prnt->getDaug(0)->getId()); 00052 _id2[_npart]=0; 00053 _id3[_npart]=0; 00054 _npart++; 00055 return; 00056 } 00057 if (prnt->getNDaug()==2){ 00058 _id1[_npart]=EvtPDL::getStdHep(prnt->getDaug(0)->getId()); 00059 _id2[_npart]=EvtPDL::getStdHep(prnt->getDaug(1)->getId()); 00060 _id3[_npart]=0; 00061 _npart++; 00062 return; 00063 } 00064 if (prnt->getNDaug()==3){ 00065 _id1[_npart]=EvtPDL::getStdHep(prnt->getDaug(0)->getId()); 00066 _id2[_npart]=EvtPDL::getStdHep(prnt->getDaug(1)->getId()); 00067 _id3[_npart]=EvtPDL::getStdHep(prnt->getDaug(2)->getId()); 00068 _npart++; 00069 return; 00070 } 00071 00072 report(ERROR,"EvtGen") << 00073 "More than 3 decay products in a secondary particle!"<<endl; 00074 00075 00076 }
int EvtSecondary::getD1 | ( | int | i | ) | [inline] |
int EvtSecondary::getD2 | ( | int | i | ) | [inline] |
int EvtSecondary::getD3 | ( | int | i | ) | [inline] |
int EvtSecondary::getNPart | ( | ) |
Definition at line 36 of file EvtSecondary.cc.
References _npart.
00036 { 00037 return _npart; 00038 }
int EvtSecondary::getStdHepIndex | ( | int | i | ) | [inline] |
Definition at line 39 of file EvtSecondary.hh.
References _stdhepindex.
00039 {return _stdhepindex[i];}
void EvtSecondary::init | ( | ) |
std::ostream& operator<< | ( | std::ostream & | s, | |
const EvtSecondary & | secondary | |||
) | [friend] |
int EvtSecondary::_id1[EVTSECONDARYLENGTH] [private] |
Definition at line 53 of file EvtSecondary.hh.
Referenced by createSecondary(), getD1(), and operator<<().
int EvtSecondary::_id2[EVTSECONDARYLENGTH] [private] |
Definition at line 54 of file EvtSecondary.hh.
Referenced by createSecondary(), getD2(), and operator<<().
int EvtSecondary::_id3[EVTSECONDARYLENGTH] [private] |
Definition at line 55 of file EvtSecondary.hh.
Referenced by createSecondary(), getD3(), and operator<<().
int EvtSecondary::_npart [private] |
Definition at line 51 of file EvtSecondary.hh.
Referenced by createSecondary(), getNPart(), init(), and operator<<().
int EvtSecondary::_stdhepindex[EVTSECONDARYLENGTH] [private] |
Definition at line 52 of file EvtSecondary.hh.
Referenced by createSecondary(), getStdHepIndex(), and operator<<().