CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Py8InterfaceBase.h
Go to the documentation of this file.
1 #ifndef gen_Py8InterfaceBase_h
2 #define gen_Py8InterfaceBase_h
3 
4 #include <vector>
5 #include <string>
6 
10 
11 #include "HepMC/IO_AsciiParticles.h"
12 
13 #include <Pythia8/Pythia.h>
14 #include <Pythia8Plugins/HepMC2.h>
15 
16 class EvtGenDecays;
17 
18 namespace CLHEP {
19  class HepRandomEngine;
20 }
21 
22 namespace gen {
23 
25 
26  public:
27 
30 
31  virtual bool generatePartonsAndHadronize() = 0;
32  bool decay() { return true; } // NOT used - let's call it "design imperfection"
33  bool readSettings( int ); // common func
34  virtual bool initializeForInternalPartons() = 0;
35  bool declareStableParticles( const std::vector<int>& ); // common func
36  bool declareSpecialSettings( const std::vector<std::string>& ); // common func
37  virtual void finalizeEvent() = 0;
38  virtual void statistics();
39  virtual const char* classname() const = 0;
40 
41  void p8SetRandomEngine(CLHEP::HepRandomEngine* v) { p8RndmEngine_.setRandomEngine(v); }
43 
44  protected:
45 
46  std::auto_ptr<Pythia8::Pythia> fMasterGen;
47  std::auto_ptr<Pythia8::Pythia> fDecayer;
48  HepMC::Pythia8ToHepMC toHepMC;
49 // ParameterCollector fParameters;
51 
52  unsigned int pythiaPylistVerbosity;
55  unsigned int maxEventsToPrint;
56  HepMC::IO_AsciiParticles* ascii_io;
57 
58  // EvtGen plugin
59  //
60  bool useEvtGen;
61  std::auto_ptr<EvtGenDecays> evtgenDecays;
64  std::vector<std::string> evtgenUserFiles;
65 
67 
68  private:
69 
71  };
72 }
73 #endif
bool declareSpecialSettings(const std::vector< std::string > &)
virtual bool initializeForInternalPartons()=0
std::auto_ptr< Pythia8::Pythia > fMasterGen
std::auto_ptr< EvtGenDecays > evtgenDecays
HepMC::IO_AsciiParticles * ascii_io
void p8SetRandomEngine(CLHEP::HepRandomEngine *v)
Py8InterfaceBase(edm::ParameterSet const &ps)
double v[5][pyjets_maxn]
std::vector< std::string > evtgenUserFiles
void setRandomEngine(CLHEP::HepRandomEngine *v)
Definition: P8RndmEngine.h:35
P8RndmEngine p8RndmEngine_
virtual void finalizeEvent()=0
virtual bool generatePartonsAndHadronize()=0
unsigned int pythiaPylistVerbosity
bool declareStableParticles(const std::vector< int > &)
P8RndmEngine & randomEngine()
unsigned int maxEventsToPrint
std::auto_ptr< Pythia8::Pythia > fDecayer
virtual const char * classname() const =0
HepMC::Pythia8ToHepMC toHepMC
edm::ParameterSet fParameters