CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Pythia6Gun.h
Go to the documentation of this file.
1 #ifndef gen_Pythia6Gun_h
2 #define gen_Pythia6Gun_h
3 
10 #include <string>
11 #include <vector>
12 
13 //#include "HepPDT/defs.h"
14 //#include "HepPDT/TableBuilder.hh"
15 //#include "HepPDT/ParticleDataTable.hh"
16 
17 #include "HepMC/GenEvent.h"
18 
19 // #include "FWCore/Framework/interface/ESHandle.h"
21 
24 
25 #include "HepPID/ParticleIDTranslations.hh"
26 
27 namespace CLHEP {
28  class HepRandomEngine;
29 }
30 
31 namespace edm {
32  class EventSetup;
33  class LuminosityBlock;
34 }
35 
36 namespace gen
37 {
38 
39 // class Pythia6Service;
40 
41  class Pythia6Gun : public edm::EDProducer
42  {
43 
44  public:
45 
46  Pythia6Gun( const edm::ParameterSet& );
47  virtual ~Pythia6Gun();
48  void beginJob() override;
49  void beginLuminosityBlock(edm::LuminosityBlock const&, edm::EventSetup const&) override;
50  void beginRun( edm::Run const&, edm::EventSetup const& ) override;
51  void endRun( edm::Run const&, edm::EventSetup const& ) override;
52  void produce( edm::Event&, const edm::EventSetup& ) override;
53 
54  protected:
55 
57  void loadEvent( edm::Event& );
58  virtual void generateEvent(CLHEP::HepRandomEngine*) = 0;
59  HepMC::GenParticle* addAntiParticle( int&, int&, double&, double&, double& );
60 
62 
63  // gun particle(s) characteristics
64  //
65  std::vector<int> fPartIDs ;
66  double fMinPhi ;
67  double fMaxPhi ;
68 
69  // the event format itself
70  //
72 
73  // HepMC/HepPDT related things
74  // (for particle/event construction)
75  //
76  // edm::ESHandle<HepPDT::ParticleDataTable> fPDGTable ;
77 
81 
82  };
83 
84 } // end namespace
85 
86 #endif
void beginJob() override
Definition: Pythia6Gun.cc:67
void endRun(edm::Run const &, edm::EventSetup const &) override
Definition: Pythia6Gun.cc:98
void produce(edm::Event &, const edm::EventSetup &) override
Definition: Pythia6Gun.cc:202
void beginRun(edm::Run const &, edm::EventSetup const &) override
Definition: Pythia6Gun.cc:74
void beginLuminosityBlock(edm::LuminosityBlock const &, edm::EventSetup const &) override
Definition: Pythia6Gun.cc:81
HepMC::GenParticle * addAntiParticle(int &, int &, double &, double &, double &)
Definition: Pythia6Gun.cc:244
HepMC::GenEvent * fEvt
Definition: Pythia6Gun.h:71
bool fHepMCVerbosity
Definition: Pythia6Gun.h:78
int fPylistVerbosity
Definition: Pythia6Gun.h:79
virtual void generateEvent(CLHEP::HepRandomEngine *)=0
def gen
run2 Cosmic #### Run 256259 @ 0T 2015C### Run 272133 @ 3.8T 2016B###
virtual ~Pythia6Gun()
Definition: Pythia6Gun.cc:57
void attachPy6DecaysToGenEvent()
Definition: Pythia6Gun.cc:108
double fMinPhi
Definition: Pythia6Gun.h:66
int fMaxEventsToPrint
Definition: Pythia6Gun.h:80
void loadEvent(edm::Event &)
Definition: Pythia6Gun.cc:230
double fMaxPhi
Definition: Pythia6Gun.h:67
Pythia6Gun(const edm::ParameterSet &)
Definition: Pythia6Gun.cc:25
Pythia6Service * fPy6Service
Definition: Pythia6Gun.h:61
std::vector< int > fPartIDs
Definition: Pythia6Gun.h:65
Definition: Run.h:43