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