2 #include "PhotosHepMCParticle.h"
3 #include "PhotosHepMCEvent.h"
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())
49 void PhotosHepMCEvent::print()
55 vector<PhotosParticle*> PhotosHepMCEvent::getParticleList()
The GenEvent class is the core of HepMC.
void print(std::ostream &ostr=std::cout) const
dumps to ostr