2 #include "PhotosHepMCParticle.h"
3 #include "PhotosHepMCEvent.h"
10 PhotosHepMCEvent::PhotosHepMCEvent(HepMC::GenEvent * event)
13 HepMC::GenEvent::particle_const_iterator part_itr = m_event->particles_begin();
14 for( ; part_itr!=m_event->particles_end(); part_itr++)
17 particles.push_back(particle);
20 switch(m_event->momentum_unit()) {
21 case HepMC::Units::GEV:
22 Photos::setMomentumUnit(Photos::GEV);
24 case HepMC::Units::MEV:
25 Photos::setMomentumUnit(Photos::MEV);
28 Log::Error()<<
"PhotosHepMCEvent: undefined unit, important for pair emission only"<<endl;
29 Photos::setMomentumUnit(Photos::DEFAULT_MOMENTUM);
34 PhotosHepMCEvent::~PhotosHepMCEvent()
36 while(particles.size())
44 HepMC::GenEvent * PhotosHepMCEvent::getEvent()
49 void PhotosHepMCEvent::print()
55 vector<PhotosParticle*> PhotosHepMCEvent::getParticleList()