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 
9 
10 #include <Pythia.h>
11 #include <HepMCInterface.h>
12 
13 namespace CLHEP {
14  class HepRandomEngine;
15 }
16 
17 namespace gen {
18 
20 
21  public:
22 
25 
26  virtual bool generatePartonsAndHadronize() = 0;
27  bool decay() { return true; } // NOT used - let's call it "design imperfection"
28  bool readSettings( int ); // common func
29  virtual bool initializeForInternalPartons() = 0;
30  bool declareStableParticles( const std::vector<int>& ); // common func
31  bool declareSpecialSettings( const std::vector<std::string>& ); // common func
32  virtual void finalizeEvent() = 0;
33  virtual void statistics();
34  virtual const char* classname() const = 0;
35 
36  void p8SetRandomEngine(CLHEP::HepRandomEngine* v) { p8RndmEngine_.setRandomEngine(v); }
38 
39  protected:
40 
41  std::auto_ptr<Pythia8::Pythia> fMasterGen;
42  std::auto_ptr<Pythia8::Pythia> fDecayer;
43  HepMC::I_Pythia8 toHepMC;
45 
46  unsigned int pythiaPylistVerbosity;
48  unsigned int maxEventsToPrint;
49 
50  private:
51 
53  };
54 }
55 #endif
bool declareSpecialSettings(const std::vector< std::string > &)
virtual bool initializeForInternalPartons()=0
ParameterCollector fParameters
virtual void statistics()
std::auto_ptr< Pythia8::Pythia > fMasterGen
void p8SetRandomEngine(CLHEP::HepRandomEngine *v)
HepMC::I_Pythia8 toHepMC
Py8InterfaceBase(edm::ParameterSet const &ps)
double v[5][pyjets_maxn]
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