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