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_PHOTOS
0022 #ifndef EVTPHOTOSENGINE_HH
0023 #define EVTPHOTOSENGINE_HH
0024
0025 #include "EvtGenBase/EvtHepMCEvent.hh"
0026 #include "EvtGenBase/EvtId.hh"
0027 #include "EvtGenBase/EvtParticle.hh"
0028 #include "EvtGenBase/EvtVector4R.hh"
0029
0030 #include "EvtGenModels/EvtAbsExternalGen.hh"
0031 #ifdef EVTGEN_HEPMC3
0032 #include "HepMC3/Units.h"
0033
0034 #include "Photos/PhotosHepMC3Event.h"
0035 #include "Photos/PhotosHepMC3Particle.h"
0036 #else
0037 #include "Photos/PhotosHepMCEvent.h"
0038 #include "Photos/PhotosHepMCParticle.h"
0039 #include "Photos/PhotosParticle.h"
0040 #endif
0041
0042 #include <string>
0043
0044
0045
0046 class EvtPhotosEngine : public EvtAbsExternalGen {
0047 public:
0048 EvtPhotosEngine( std::string photonType = "gamma",
0049 bool useEvtGenRandom = true );
0050
0051 bool doDecay( EvtParticle* theMother ) override;
0052
0053 void initialise() override;
0054
0055 private:
0056 std::string _photonType;
0057 EvtId _gammaId;
0058 int _gammaPDG;
0059 double _mPhoton;
0060 bool _initialised;
0061
0062 GenParticlePtr createGenParticle( EvtParticle* theParticle, bool incoming );
0063 int getNumberOfPhotons( const GenVertexPtr theVertex ) const;
0064 };
0065
0066 #endif
0067
0068 #endif