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 "HepMC/IO_AsciiParticles.h"
11 
12 #include <Pythia8/Pythia.h>
13 #include <Pythia8Plugins/HepMC2.h>
14 
15 namespace CLHEP {
16  class HepRandomEngine;
17 }
18 
19 namespace gen {
20 
22 
23  public:
24 
27 
28  virtual bool generatePartonsAndHadronize() = 0;
29  bool decay() { return true; } // NOT used - let's call it "design imperfection"
30  bool readSettings( int ); // common func
31  virtual bool initializeForInternalPartons() = 0;
32  bool declareStableParticles( const std::vector<int>& ); // common func
33  bool declareSpecialSettings( const std::vector<std::string>& ); // common func
34  virtual void finalizeEvent() = 0;
35  virtual void statistics();
36  virtual const char* classname() const = 0;
37 
38  void p8SetRandomEngine(CLHEP::HepRandomEngine* v) { p8RndmEngine_.setRandomEngine(v); }
40 
41  protected:
42 
43  std::auto_ptr<Pythia8::Pythia> fMasterGen;
44  std::auto_ptr<Pythia8::Pythia> fDecayer;
45  HepMC::Pythia8ToHepMC toHepMC;
47 
48  unsigned int pythiaPylistVerbosity;
51  unsigned int maxEventsToPrint;
52  HepMC::IO_AsciiParticles* ascii_io;
53 
54  private:
55 
57  };
58 }
59 #endif
bool declareSpecialSettings(const std::vector< std::string > &)
virtual bool initializeForInternalPartons()=0
ParameterCollector fParameters
std::auto_ptr< Pythia8::Pythia > fMasterGen
HepMC::IO_AsciiParticles * ascii_io
void p8SetRandomEngine(CLHEP::HepRandomEngine *v)
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
HepMC::Pythia8ToHepMC toHepMC