CMS 3D CMS Logo

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 } // namespace edm
35 
36 namespace gen {
37 
38  // class Pythia6Service;
39 
40  class Pythia6Gun : public edm::EDProducer {
41  public:
43  ~Pythia6Gun() override;
44  void beginJob() override;
45  void beginLuminosityBlock(edm::LuminosityBlock const&, edm::EventSetup const&) override;
46  void beginRun(edm::Run const&, edm::EventSetup const&) override;
47  void endRun(edm::Run const&, edm::EventSetup const&) override;
48  void produce(edm::Event&, const edm::EventSetup&) override;
49 
50  protected:
51  void attachPy6DecaysToGenEvent();
52  void loadEvent(edm::Event&);
53  virtual void generateEvent(CLHEP::HepRandomEngine*) = 0;
54  HepMC::GenParticle* addAntiParticle(int&, int&, double&, double&, double&);
55 
57 
58  // gun particle(s) characteristics
59  //
60  std::vector<int> fPartIDs;
61  double fMinPhi;
62  double fMaxPhi;
63 
64  // the event format itself
65  //
67 
68  // HepMC/HepPDT related things
69  // (for particle/event construction)
70  //
71  // edm::ESHandle<HepPDT::ParticleDataTable> fPDGTable ;
72 
76  };
77 
78 } // namespace gen
79 
80 #endif
HepMC::GenEvent * fEvt
Definition: Pythia6Gun.h:66
bool fHepMCVerbosity
Definition: Pythia6Gun.h:73
int fPylistVerbosity
Definition: Pythia6Gun.h:74
void beginJob()
Definition: Breakpoints.cc:14
double fMinPhi
Definition: Pythia6Gun.h:61
int fMaxEventsToPrint
Definition: Pythia6Gun.h:75
double fMaxPhi
Definition: Pythia6Gun.h:62
HLT enums.
Pythia6Service * fPy6Service
Definition: Pythia6Gun.h:56
std::vector< int > fPartIDs
Definition: Pythia6Gun.h:60
Definition: Run.h:45