CMS 3D CMS Logo

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:
35  protected:
36  // non-virtuals ! this and only way !
37  //
38  // data members
39 
40  // gun particle(s) characteristics
41  std::vector<int> fPartIDs;
42  double fMinPhi;
43  double fMaxPhi;
44  double fpEnergy;
45  double fECMS;
46 
47  // the event format itself
49 
51 
53 
55 
58  bool fLog_t;
59  };
60 } // namespace edm
61 #endif
BaseRandomtXiGunProducer(const ParameterSet &)
void endRun(const edm::Run &r, const edm::EventSetup &) override
void beginRun(const edm::Run &r, const edm::EventSetup &) override
HepPDT::ParticleData ParticleData
ESHandle< HepPDT::ParticleDataTable > fPDGTable
void endRunProduce(edm::Run &r, const edm::EventSetup &) override
HLT enums.
const HepPDT::ParticleData * PData
Definition: Run.h:45