CMS 3D CMS Logo

EvtGenInterfaceBase.h
Go to the documentation of this file.
1 #ifndef gen_EvtGenInterface_EvtGenInterfaceBase_h
2 #define gen_EvtGenInterface_EvtGenInterfaceBase_h
3 
6 #include "HepMC/GenEvent.h"
7 #include <vector>
8 
9 namespace CLHEP {
10  class HepRandomEngine;
11 }
12 
13 namespace gen {
15  public:
17  virtual ~EvtGenInterfaceBase(){};
18 
19  virtual void SetPhotosDecayRandomEngine(CLHEP::HepRandomEngine* decayRandomEngine){};
20  virtual void init(){};
21  virtual const std::vector<int>& operatesOnParticles() { return m_PDGs; }
22  virtual const std::vector<std::string>& specialSettings() { return fSpecialSettings; }
23  virtual HepMC::GenEvent* decay(HepMC::GenEvent* evt) { return evt; }
24  virtual void setRandomEngine(CLHEP::HepRandomEngine* v) = 0;
25 
26  protected:
27  std::vector<int> m_PDGs;
28  std::vector<std::string> fSpecialSettings;
29  };
30 } // namespace gen
31 
32 #endif
gen::EvtGenInterfaceBase::operatesOnParticles
virtual const std::vector< int > & operatesOnParticles()
Definition: EvtGenInterfaceBase.h:21
gen::EvtGenInterfaceBase::setRandomEngine
virtual void setRandomEngine(CLHEP::HepRandomEngine *v)=0
HepMC::GenEvent
Definition: hepmc_rootio.cc:9
gen::EvtGenInterfaceBase::m_PDGs
std::vector< int > m_PDGs
Definition: EvtGenInterfaceBase.h:27
gen::EvtGenInterfaceBase
Definition: EvtGenInterfaceBase.h:14
gen
Definition: PythiaDecays.h:13
CLHEP
Definition: CocoaGlobals.h:27
gen::v
double v[5][pyjets_maxn]
Definition: Cascade2Hadronizer.cc:76
gen::EvtGenInterfaceBase::SetPhotosDecayRandomEngine
virtual void SetPhotosDecayRandomEngine(CLHEP::HepRandomEngine *decayRandomEngine)
Definition: EvtGenInterfaceBase.h:19
gen::EvtGenInterfaceBase::specialSettings
virtual const std::vector< std::string > & specialSettings()
Definition: EvtGenInterfaceBase.h:22
gen::EvtGenInterfaceBase::init
virtual void init()
Definition: EvtGenInterfaceBase.h:20
EventSetup.h
gen::EvtGenInterfaceBase::fSpecialSettings
std::vector< std::string > fSpecialSettings
Definition: EvtGenInterfaceBase.h:28
gen::EvtGenInterfaceBase::decay
virtual HepMC::GenEvent * decay(HepMC::GenEvent *evt)
Definition: EvtGenInterfaceBase.h:23
ParameterSet.h
gen::EvtGenInterfaceBase::EvtGenInterfaceBase
EvtGenInterfaceBase()
Definition: EvtGenInterfaceBase.h:16
gen::EvtGenInterfaceBase::~EvtGenInterfaceBase
virtual ~EvtGenInterfaceBase()
Definition: EvtGenInterfaceBase.h:17