CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Py8GunBase.h
Go to the documentation of this file.
1 // -*- C++ -*-
2 //
3 //
4 
5 //
6 // This class is a "Hadronizer" template (see GeneratorInterface/Core)
7 //
8 
9 #ifndef gen_Py8GunBase_h
10 #define gen_Py8GunBase_h
11 
12 #include <memory>
13 #include <string>
14 #include <vector>
15 
16 #include <boost/shared_ptr.hpp>
17 
19 
22 
24 
27 
28 #include <Pythia8/Pythia.h>
29 #include <Pythia8Plugins/HepMC2.h>
30 
31 // foward declarations
32 namespace edm {
33  class Event;
34 }
35 
36 namespace CLHEP {
37  class HepRandomEngine;
38 }
39 
40 namespace gen {
41 
42  class Py8GunBase : public Py8InterfaceBase {
43  public:
44  Py8GunBase( edm::ParameterSet const& ps );
46 
47  virtual bool residualDecay(); // common func
49  void finalizeEvent();
50  void statistics();
51 
52  void setRandomEngine(CLHEP::HepRandomEngine* v) { p8SetRandomEngine(v); }
53  std::vector<std::string> const& sharedResources() const { return p8SharedResources; }
54 
55  protected:
56  // (some of) PGun parameters
57  //
58  std::vector<int> fPartIDs ;
59  double fMinPhi ;
60  double fMaxPhi ;
61 
62  private:
63  static const std::vector<std::string> p8SharedResources;
64  };
65 
66 } // namespace gen
67 
68 #endif // gen_BaseHadronizer_h
std::vector< std::string > const & sharedResources() const
Definition: Py8GunBase.h:53
void p8SetRandomEngine(CLHEP::HepRandomEngine *v)
double fMinPhi
Definition: Py8GunBase.h:59
bool initializeForInternalPartons()
Definition: Py8GunBase.cc:36
virtual bool residualDecay()
Definition: Py8GunBase.cc:67
double v[5][pyjets_maxn]
def gen
run2 Cosmic #### Run 256259 @ 0T 2015C### Run 272133 @ 3.8T 2016B###
void finalizeEvent()
Definition: Py8GunBase.cc:118
static const std::vector< std::string > p8SharedResources
Definition: Py8GunBase.h:63
std::vector< int > fPartIDs
Definition: Py8GunBase.h:58
double fMaxPhi
Definition: Py8GunBase.h:60
void setRandomEngine(CLHEP::HepRandomEngine *v)
Definition: Py8GunBase.h:52
Py8GunBase(edm::ParameterSet const &ps)
Definition: Py8GunBase.cc:15