#include <EvtSecondary.hh>
Public Member Functions | |
void | createSecondary (int stdhepindex, EvtParticle *prnt) |
EvtSecondary () | |
int | getD1 (int i) |
int | getD2 (int i) |
int | getD3 (int i) |
int | getNPart () |
int | getStdHepIndex (int i) |
void | init () |
~EvtSecondary () | |
Private Attributes | |
int | _id1 [EVTSECONDARYLENGTH] |
int | _id2 [EVTSECONDARYLENGTH] |
int | _id3 [EVTSECONDARYLENGTH] |
int | _npart |
int | _stdhepindex [EVTSECONDARYLENGTH] |
Friends | |
std::ostream & | operator<< (std::ostream &s, const EvtSecondary &secondary) |
|
00034 {}
|
|
00035 {}
|
|
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 }
|
|
00040 {return _id1[i];}
|
|
00041 {return _id2[i];}
|
|
00042 {return _id3[i];}
|
|
00036 {
00037 return _npart;
00038 }
|
|
00039 {return _stdhepindex[i];}
|
|
00032 { 00033 _npart=0; 00034 }
|
|
|
|
|
|
|
|
|
|
|
|
|