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:65
void endRun(edm::Run const &, edm::EventSetup const &) override
Definition: Pythia6Gun.cc:91
void produce(edm::Event &, const edm::EventSetup &) override
Definition: Pythia6Gun.cc:195
void beginRun(edm::Run const &, edm::EventSetup const &) override
Definition: Pythia6Gun.cc:72
HepMC::GenParticle * addAntiParticle(int &, int &, double &, double &, double &)
Definition: Pythia6Gun.cc:236
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:55
void attachPy6DecaysToGenEvent()
Definition: Pythia6Gun.cc:101
double fMinPhi
Definition: Pythia6Gun.h:56
int fMaxEventsToPrint
Definition: Pythia6Gun.h:70
void loadEvent(edm::Event &)
Definition: Pythia6Gun.cc:222
double fMaxPhi
Definition: Pythia6Gun.h:57
Pythia6Gun(const edm::ParameterSet &)
Definition: Pythia6Gun.cc:23
Pythia6Service * fPy6Service
Definition: Pythia6Gun.h:51
std::vector< int > fPartIDs
Definition: Pythia6Gun.h:55
Definition: Run.h:41