1 #include "PhotosHEPEVTEvent.h"
3 #include <generators/kkmc/KKGenInterface.h>
4 const static int fortranNMXHEP = 4000;
28 int qedrad[fortranNMXHEP];
73 std::vector<PhotosParticle*> ret;
82 Log::Info() <<
"PhotosHEPEVTEvent" << endl <<
"-----------------" << endl;
96 if (evt == NULL)
return;
98 for (
int i = 0; i < hepevt_.
nhep; i++) {
123 if (evt == NULL)
return;
127 for (
int i = 0; i < hepevt_.
nhep; i++) {
130 hepevt_.
idhep [i] = p->getPdgID();
131 hepevt_.
isthep[i] = p->getStatus();
132 hepevt_.
phep [i][0] = p->getPx();
133 hepevt_.
phep [i][1] = p->getPy();
134 hepevt_.
phep [i][2] = p->getPz();
135 hepevt_.
phep [i][3] = p->getE();
136 hepevt_.
phep [i][4] = p->getMass();
137 hepevt_.
jmohep[i][0] = p->getFirstMotherIndex() + 1;
138 hepevt_.
jmohep[i][1] = p->getSecondMotherIndex() + 1;
139 hepevt_.
jdahep[i][0] = p->getDaughterRangeStart() + 1;
140 hepevt_.
jdahep[i][1] = p->getDaughterRangeEnd() + 1;
141 hepevt_.
vhep [i][0] = 0.0;
142 hepevt_.
vhep [i][1] = 0.0;
143 hepevt_.
vhep [i][2] = 0.0;
144 hepevt_.
vhep [i][3] = 0.0;
static void read_event_from_HEPEVT(PhotosHEPEVTEvent *evt)
Fill PhotosHEPEVTEvent from HEPEVT common block.
void addParticle(PhotosHEPEVTParticle *p)
Add particle at the end of event record.
void print()
Print out list of particles in the event.
int getParticleCount()
Get higher-most index of the particles in event (nhep)
PhotosHEPEVTParticle * getParticle(int i)
Get particle at index 'i'.
std::vector< PhotosParticle * > getParticleList()
Get an unfiltered list of particles from the event record.
PhotosHEPEVTEvent()
Default constructor.
std::vector< PhotosHEPEVTParticle * > particle_list
List of all particles.
void clear()
Remove all particles from the event.
static void write_event_to_HEPEVT(PhotosHEPEVTEvent *evt)
Write to HEPEVT common block content of PhotosHEPEVTEvent.
~PhotosHEPEVTEvent()
Default destructor.
void setParticle(int i, PhotosHEPEVTParticle *p)
Set particle at index 'i'.
static void setMomentumUnit(MomentumUnits unit)
Set momentum unit.
Definition of the HEPEVT common block it can be adapted to user env of F77.
int jmohep[nmxhep][2]
parent particles.
int isthep[nmxhep]
status code.
double vhep[nmxhep][4]
vertex [mm].
int jdahep[nmxhep][2]
childreen particles.
double phep[nmxhep][5]
four-momentum, mass [GeV].
int idhep[nmxhep]
particle ident KF.
int nhep
number of particles.