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*/
43 
44  /** Returns the GenEvent */
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
GenEvent.h
Definition of class GenEvent.
Photospp::PhotosHepMC3Event::getParticleList
std::vector< PhotosParticle * > getParticleList()
HepMC3::GenEvent
Stores event-related information.
Definition: GenEvent.h:41
HepMC3
HepMC3 main namespace.
Definition: AnalysisExample.h:19
Photospp::PhotosHepMC3Event
Definition: PhotosHepMC3Event.h:37
Photospp::PhotosHepMC3Event::getEvent
GenEvent * getEvent()
Photospp::PhotosHepMC3Event::PhotosHepMC3Event
PhotosHepMC3Event(GenEvent *event)
Photospp::PhotosHepMC3Event::particles
std::vector< PhotosParticle * > particles
Definition: PhotosHepMC3Event.h:56
Photospp::PhotosHepMC3Event::m_event
GenEvent * m_event
Definition: PhotosHepMC3Event.h:54
Photospp::PhotosHepMC3Event::print
void print()