Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-08-06 09:20:04

0001 
0002 /***********************************************************************
0003 * Copyright 1998-2020 CERN for the benefit of the EvtGen authors       *
0004 *                                                                      *
0005 * This file is part of EvtGen.                                         *
0006 *                                                                      *
0007 * EvtGen is free software: you can redistribute it and/or modify       *
0008 * it under the terms of the GNU General Public License as published by *
0009 * the Free Software Foundation, either version 3 of the License, or    *
0010 * (at your option) any later version.                                  *
0011 *                                                                      *
0012 * EvtGen is distributed in the hope that it will be useful,            *
0013 * but WITHOUT ANY WARRANTY; without even the implied warranty of       *
0014 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the        *
0015 * GNU General Public License for more details.                         *
0016 *                                                                      *
0017 * You should have received a copy of the GNU General Public License    *
0018 * along with EvtGen.  If not, see <https://www.gnu.org/licenses/>.     *
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 // Description: Interface to the TAUOLA external generator
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