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 #warning "HepMC3 interface is available in the latest version of PHOTOS, see http://photospp.web.cern.ch/photospp/. This interface will be removed in the future HepMC3 versions."
10 
11 /**
12  * @class PhotosHepMC3Event
13  *
14  * @brief Interface to GenEvent objects
15  *
16  * This class implements the virtual methods of
17  * PhotosEvent. In this way it provides an
18  * interface between the generic PhotosEvent class
19  * and a GenEvent object.
20  *
21  * @author Nadia Davidson
22  * @date 17 June 2008
23  *
24  * This code is licensed under GNU General Public Licence.
25  * For more informations, see: http://www.gnu.org/licenses/
26  */
27 
28 #include <vector>
29 #include "HepMC3/GenEvent.h"
30 #include "PhotosEvent.h"
31 #include "PhotosParticle.h"
32 
33 namespace Photospp
34 {
35 using namespace HepMC3;
36 class PhotosHepMC3Event : public PhotosEvent
37 {
38 public:
40 
41  /** Constructor which keeps a pointer to the GenEvent*/
42  PhotosHepMC3Event(GenEvent * event);
43 
44  /** Returns the GenEvent */
45  GenEvent * getEvent();
46 
47  /** Returns the list of particles */
48  std::vector<PhotosParticle*> getParticleList();
49 
50  /** Prints event summary */
51  void print();
52 private:
53  /** The event */
55  /** Particle list */
56  std::vector<PhotosParticle *> particles;
57 };
58 
59 } // namespace Photospp
60 #endif
HepMC3 main namespace.
Stores event-related information.
Definition: GenEvent.h:41
std::vector< PhotosParticle * > particles
Definition of class GenEvent.