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