PhotosHepMCEvent.h
1 #ifndef _PhotosHepMCEvent_h_included_
2 #define _PhotosHepMCEvent_h_included_
3 
4 /**
5  * @class PhotosHepMCEvent
6  *
7  * @brief Interface to HepMC::GenEvent objects
8  *
9  * This class implements the virtual methods of
10  * PhotosEvent. In this way it provides an
11  * interface between the generic PhotosEvent class
12  * and a HepMC::GenEvent object.
13  *
14  * @author Nadia Davidson
15  * @date 17 June 2008
16  *
17  * This code is licensed under GNU General Public Licence.
18  * For more informations, see: http://www.gnu.org/licenses/
19  */
20 
21 #include <vector>
22 #include "HepMC/GenEvent.h"
23 #include "PhotosEvent.h"
24 #include "PhotosParticle.h"
25 
26 namespace Photospp
27 {
28 
30 {
31 public:
33 
34  /** Constructor which keeps a pointer to the HepMC::GenEvent*/
35  PhotosHepMCEvent(HepMC::GenEvent * event);
36 
37  /** Returns the HepMC::GenEvent */
38  HepMC::GenEvent * getEvent();
39 
40  /** Returns the list of particles */
41  std::vector<PhotosParticle*> getParticleList();
42 
43  /** Prints event summary */
44  void print();
45 private:
46  /** The event */
47  HepMC::GenEvent * m_event;
48  /** Particle list */
49  std::vector<PhotosParticle *> particles;
50 };
51 
52 } // namespace Photospp
53 #endif
std::vector< PhotosParticle * > particles
HepMC::GenEvent * getEvent()
PhotosHepMCEvent(HepMC::GenEvent *event)
std::vector< PhotosParticle * > getParticleList()