CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
BaseRandomtXiGunProducer.h
Go to the documentation of this file.
1 #ifndef BaseRandomtXiGunProducer_H
2 #define BaseRandomtXiGunProducer_H
3 
9 #include <string>
10 
11 #include "HepPDT/defs.h"
12 #include "HepPDT/TableBuilder.hh"
13 #include "HepPDT/ParticleDataTable.hh"
14 
15 #include "HepMC/GenEvent.h"
16 
21 
22 #include <memory>
23 
24 namespace edm {
25 
26  class BaseRandomtXiGunProducer : public one::EDProducer<one::WatchRuns, EndRunProducer> {
27  public:
29  ~BaseRandomtXiGunProducer() override;
30  void beginRun(const edm::Run& r, const edm::EventSetup&) override;
31  void endRun(const edm::Run& r, const edm::EventSetup&) override;
32  void endRunProduce(edm::Run& r, const edm::EventSetup&) override;
33 
34  private:
36 
37  protected:
38  // non-virtuals ! this and only way !
39  //
40  // data members
41 
42  // gun particle(s) characteristics
43  std::vector<int> fPartIDs;
44  double fMinPhi;
45  double fMaxPhi;
46  double fpEnergy;
47  double fECMS;
48 
49  // the event format itself
51 
53 
55 
57 
60  bool fLog_t;
61  };
62 } // namespace edm
63 #endif
BaseRandomtXiGunProducer(const ParameterSet &)
void endRun(const edm::Run &r, const edm::EventSetup &) override
void beginRun(const edm::Run &r, const edm::EventSetup &) override
const ESGetToken< HepPDT::ParticleDataTable, edm::DefaultRecord > fPDGTableToken
HepPDT::ParticleData ParticleData
ESHandle< HepPDT::ParticleDataTable > fPDGTable
void endRunProduce(edm::Run &r, const edm::EventSetup &) override
const HepPDT::ParticleData * PData
Definition: Run.h:45