#include <EvtStdHep.hh>
Public Member Functions | |
EvtStdHep () | |
~EvtStdHep () | |
void | init () |
int | getFirstMother (int i) |
int | getLastMother (int i) |
int | getFirstDaughter (int i) |
int | getLastDaughter (int i) |
int | getStdHepID (int i) |
int | getIStat (int i) |
EvtVector4R | getP4 (int i) |
EvtVector4R | getX4 (int i) |
void | translate (EvtVector4R d) |
int | getNPart () |
void | createParticle (EvtVector4R p4, EvtVector4R x, int prntfirst, int prntlast, int id) |
Private Attributes | |
int | _npart |
EvtVector4R | _p4 [EVTSTDHEPLENGTH] |
EvtVector4R | _x [EVTSTDHEPLENGTH] |
int | _prntfirst [EVTSTDHEPLENGTH] |
int | _prntlast [EVTSTDHEPLENGTH] |
int | _daugfirst [EVTSTDHEPLENGTH] |
int | _dauglast [EVTSTDHEPLENGTH] |
int | _id [EVTSTDHEPLENGTH] |
int | _istat [EVTSTDHEPLENGTH] |
Friends | |
std::ostream & | operator<< (std::ostream &s, const EvtStdHep &stdhep) |
Definition at line 30 of file EvtStdHep.hh.
EvtStdHep::EvtStdHep | ( | ) | [inline] |
EvtStdHep::~EvtStdHep | ( | ) | [inline] |
void EvtStdHep::createParticle | ( | EvtVector4R | p4, | |
EvtVector4R | x, | |||
int | prntfirst, | |||
int | prntlast, | |||
int | id | |||
) |
Definition at line 41 of file EvtStdHep.cc.
References _daugfirst, _dauglast, _id, _istat, _npart, _p4, _prntfirst, _prntlast, _x, genRecEmupikp::i, and x.
Referenced by EvtParticle::makeStdHep(), and EvtParticle::makeStdHepRec().
00042 { 00043 00044 _p4[_npart]=p4; 00045 _x[_npart]=x; 00046 _prntfirst[_npart]=prntfirst; 00047 _prntlast[_npart]=prntlast; 00048 _daugfirst[_npart]=-1; 00049 _dauglast[_npart]=-1; 00050 _id[_npart]=id; 00051 _istat[_npart]=1; 00052 00053 //we also need to fix up the parents pointer to the daughter! 00054 00055 if (prntfirst>=0) { 00056 int i; 00057 for (i=prntfirst;i<=prntlast;i++){ 00058 _istat[i]=2; 00059 if (_daugfirst[i]==-1) _daugfirst[i]=_npart; 00060 if (_dauglast[i]<_npart) _dauglast[i]=_npart; 00061 } 00062 00063 } 00064 00065 _npart++; 00066 00067 }
int EvtStdHep::getFirstDaughter | ( | int | i | ) | [inline] |
Definition at line 41 of file EvtStdHep.hh.
References _daugfirst.
Referenced by EvtGen::generateEvent().
00041 { return _daugfirst[i]; }
int EvtStdHep::getFirstMother | ( | int | i | ) | [inline] |
Definition at line 39 of file EvtStdHep.hh.
References _prntfirst.
Referenced by EvtGen::generateEvent().
00039 { return _prntfirst[i]; }
int EvtStdHep::getIStat | ( | int | i | ) | [inline] |
Definition at line 45 of file EvtStdHep.hh.
References _istat.
Referenced by EvtGen::generateEvent().
int EvtStdHep::getLastDaughter | ( | int | i | ) | [inline] |
Definition at line 42 of file EvtStdHep.hh.
References _dauglast.
Referenced by EvtGen::generateEvent().
int EvtStdHep::getLastMother | ( | int | i | ) | [inline] |
Definition at line 40 of file EvtStdHep.hh.
References _prntlast.
Referenced by EvtGen::generateEvent().
int EvtStdHep::getNPart | ( | ) |
Definition at line 37 of file EvtStdHep.cc.
References _npart.
Referenced by EvtGen::generateEvent(), and EvtParticle::makeStdHepRec().
00037 { 00038 return _npart; 00039 }
EvtVector4R EvtStdHep::getP4 | ( | int | i | ) | [inline] |
int EvtStdHep::getStdHepID | ( | int | i | ) | [inline] |
EvtVector4R EvtStdHep::getX4 | ( | int | i | ) | [inline] |
void EvtStdHep::init | ( | ) |
Definition at line 33 of file EvtStdHep.cc.
References _npart.
Referenced by EvtGen::generateDecay(), and EvtGen::generateEvent().
00033 { 00034 _npart=0; 00035 }
void EvtStdHep::translate | ( | EvtVector4R | d | ) |
Definition at line 69 of file EvtStdHep.cc.
References _npart, _x, and genRecEmupikp::i.
Referenced by EvtGen::generateDecay().
std::ostream& operator<< | ( | std::ostream & | s, | |
const EvtStdHep & | stdhep | |||
) | [friend] |
int EvtStdHep::_daugfirst[EVTSTDHEPLENGTH] [private] |
Definition at line 65 of file EvtStdHep.hh.
Referenced by createParticle(), getFirstDaughter(), and operator<<().
int EvtStdHep::_dauglast[EVTSTDHEPLENGTH] [private] |
Definition at line 66 of file EvtStdHep.hh.
Referenced by createParticle(), getLastDaughter(), and operator<<().
int EvtStdHep::_id[EVTSTDHEPLENGTH] [private] |
Definition at line 67 of file EvtStdHep.hh.
Referenced by createParticle(), getStdHepID(), and operator<<().
int EvtStdHep::_istat[EVTSTDHEPLENGTH] [private] |
Definition at line 68 of file EvtStdHep.hh.
Referenced by createParticle(), getIStat(), and operator<<().
int EvtStdHep::_npart [private] |
Definition at line 60 of file EvtStdHep.hh.
Referenced by createParticle(), getNPart(), init(), operator<<(), and translate().
EvtVector4R EvtStdHep::_p4[EVTSTDHEPLENGTH] [private] |
Definition at line 61 of file EvtStdHep.hh.
Referenced by createParticle(), getP4(), and operator<<().
int EvtStdHep::_prntfirst[EVTSTDHEPLENGTH] [private] |
Definition at line 63 of file EvtStdHep.hh.
Referenced by createParticle(), getFirstMother(), and operator<<().
int EvtStdHep::_prntlast[EVTSTDHEPLENGTH] [private] |
Definition at line 64 of file EvtStdHep.hh.
Referenced by createParticle(), getLastMother(), and operator<<().
EvtVector4R EvtStdHep::_x[EVTSTDHEPLENGTH] [private] |
Definition at line 62 of file EvtStdHep.hh.
Referenced by createParticle(), getX4(), operator<<(), and translate().