1 #include "PhotosHEPEVTEvent.h"
4 const static int fortranNMXHEP = 10000;
11 int isthep[fortranNMXHEP];
12 int idhep[fortranNMXHEP];
13 int jmohep[fortranNMXHEP][2];
14 int jdahep[fortranNMXHEP][2];
15 double phep[fortranNMXHEP][5];
16 double vhep[fortranNMXHEP][4];
27 int qedrad[fortranNMXHEP];
73 std::vector<PhotosParticle*> ret;
82 Log::Info()<<
"PhotosHEPEVTEvent"<<endl<<
"-----------------"<<endl;
98 for(
int i=0; i<hepevt_.nhep; i++)
109 hepevt_.jmohep[i][0]-1,
110 hepevt_.jmohep[i][1]-1,
111 hepevt_.jdahep[i][0]-1,
112 hepevt_.jdahep[i][1]-1
124 if(evt==NULL)
return;
128 for(
int i=0; i<hepevt_.nhep; i++)
134 hepevt_.phep [i][0]=p->
getPx();
135 hepevt_.phep [i][1]=p->
getPy();
136 hepevt_.phep [i][2]=p->
getPz();
137 hepevt_.phep [i][3]=p->
getE();
138 hepevt_.phep [i][4]=p->
getMass();
143 hepevt_.vhep [i][0]=0.0;
144 hepevt_.vhep [i][1]=0.0;
145 hepevt_.vhep [i][2]=0.0;
146 hepevt_.vhep [i][3]=0.0;
static void write_event_to_HEPEVT(PhotosHEPEVTEvent *evt)
void setBarcode(int barcode)
int getDaughterRangeStart()
int getSecondMotherIndex()
PhotosHEPEVTParticle * getParticle(int i)
std::vector< PhotosHEPEVTParticle * > particle_list
static void read_event_from_HEPEVT(PhotosHEPEVTEvent *evt)
void setParticle(int i, PhotosHEPEVTParticle *p)
void setEvent(PhotosHEPEVTEvent *event)
static void setMomentumUnit(MomentumUnits unit)
int getDaughterRangeEnd()
std::vector< PhotosParticle * > getParticleList()
void addParticle(PhotosHEPEVTParticle *p)
int getFirstMotherIndex()