2 //--------------------------------------------------------------------------
5 // This software is part of the EvtGen package. If you use all or part
6 // of it, please give an appropriate acknowledgement.
8 // Copyright Information: See EvtGen/COPYRIGHT
9 // Copyright (C) 2011 University of Warwick, UK
11 // Module: EvtPhotosEngine
13 // Description: Interface to the PHOTOS external generator
15 // Modification history:
17 // John Back May 2011 Module created
19 //------------------------------------------------------------------------
21 #ifndef EVTPHOTOSENGINE_HH
22 #define EVTPHOTOSENGINE_HH
24 #include "EvtGenModels/EvtAbsExternalGen.hh"
25 #include "EvtGenBase/EvtParticle.hh"
26 #include "EvtGenBase/EvtId.hh"
27 #include "EvtGenBase/EvtVector4R.hh"
29 #include "HepMC/GenEvent.h"
30 #include "HepMC/GenParticle.h"
34 class EvtPhotosEngine : public EvtAbsExternalGen {
38 EvtPhotosEngine(std::string photonType = "gamma", bool useEvtGenRandom = true);
39 virtual ~EvtPhotosEngine();
41 virtual bool doDecay(EvtParticle* theMother);
43 virtual void initialise();
49 std::string _photonType;
54 HepMC::GenParticle* createGenParticle(EvtParticle* theParticle, bool incoming);