HepMC3 event record library
TauolaHepMC3Event.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 _TauolaHepMC3Event_h_included_
7 #define _TauolaHepMC3Event_h_included_
8 
9 /**
10  * @class TauolaHepMC3Event
11  *
12  * @brief Interface to GenEvent objects
13  *
14  * This class implements the virtual methods of
15  * TauolaEvent. In this way it provides an
16  * interface between the generic TauolaEvent class
17  * and a GenEvent object.
18  *
19  * This code is licensed under GNU General Public Licence.
20  * For more informations, see: http://www.gnu.org/licenses/
21  */
22 
23 #include <iostream>
24 #include "HepMC3/GenEvent.h"
25 #include "HepMC3/GenVertex.h"
26 #include "HepMC3/GenParticle.h"
27 #include "Tauola/TauolaEvent.h"
28 #include "Tauola/TauolaParticle.h"
29 #include "Tauola/TauolaHepMC3Particle.h"
30 namespace Tauolapp
31 {
32 using namespace HepMC3;
33 class TauolaHepMC3Event : public TauolaEvent {
34 
35 public:
36 
37  /** Constructor which keeps a pointer to the GenEvent*/
38  TauolaHepMC3Event(GenEvent * event);
39 
41 
42  /** Returns the GenEvent */
43  GenEvent * getEvent();
44 
45  /** Implementation of TauolaEvent virtual method.
46  This returns a list of particles in the event with
47  pdg id = "pdgID". */
48  std::vector<TauolaParticle*> findParticles(int pdgID);
49 
50  /** Implementation of TauolaEven virtual method.
51  This returns a list of particles in the event with
52  pdg id = "pdgID" and stable status code. */
53  std::vector<TauolaParticle*> findStableParticles(int pdgID);
54 
55  /** Overriding of TauolaEvent decayEndgame method.
56  Converts the momentum and length units */
57  void eventEndgame();
58 
59 private:
60 
61  /** The event */
63  /** List of particles to be decayed */
64  std::vector<TauolaParticle*> m_tau_list;
65  /** Momentum unit name */
67  /** Length unit name */
68  string m_length_unit;
69 
70 };
71 
72 } // namespace Tauolapp
73 #endif
Definition of class GenParticle.
Definition of class GenVertex.
std::vector< TauolaParticle * > m_tau_list
Stores event-related information.
Definition: GenEvent.h:41
Definition of class GenEvent.