File indexing completed on 2026-08-06 09:20:04
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017
0018
0019
0020
0021 #ifdef EVTGEN_TAUOLA
0022
0023 #ifndef EVTTAUOLAENGINE_HH
0024 #define EVTTAUOLAENGINE_HH
0025
0026 #include "EvtGenBase/EvtDecayBase.hh"
0027 #include "EvtGenBase/EvtId.hh"
0028 #include "EvtGenBase/EvtParticle.hh"
0029 #include "EvtGenBase/EvtVector4R.hh"
0030
0031 #include "EvtGenModels/EvtAbsExternalGen.hh"
0032
0033 #ifdef EVTGEN_HEPMC3
0034 #include "HepMC3/Relatives.h"
0035 #include "HepMC3/Units.h"
0036
0037 #include "Tauola/TauolaHepMC3Event.h"
0038 #include "Tauola/TauolaHepMC3Particle.h"
0039 #else
0040 #include "Tauola/TauolaHepMCEvent.h"
0041 #include "Tauola/TauolaHepMCParticle.h"
0042 #include "Tauola/TauolaParticle.h"
0043 #endif
0044 #include "EvtGenBase/EvtHepMCEvent.hh"
0045
0046 #include <map>
0047 #include <vector>
0048
0049
0050
0051 class EvtTauolaEngine : public EvtAbsExternalGen {
0052 public:
0053 EvtTauolaEngine( bool useEvtGenRandom = true );
0054
0055 bool doDecay( EvtParticle* theMother ) override;
0056
0057 void initialise() override;
0058
0059 protected:
0060 private:
0061 bool _initialised;
0062 int _tauPDG, _nTauolaModes;
0063 int _neutPropType, _posPropType, _negPropType;
0064
0065 GenParticlePtr createGenParticle( EvtParticle* theParticle );
0066
0067 void setUpPossibleTauModes();
0068 void setOtherParameters();
0069
0070 int getModeInt( EvtDecayBase* decayModel );
0071
0072 void decayTauEvent( EvtParticle* tauParticle );
0073 };
0074
0075 #endif
0076
0077 #endif