CMS 3D CMS Logo

BaseFlatGunProducer.h
Go to the documentation of this file.
1 #ifndef BaseFlatGunProducer_H
2 #define BaseFlatGunProducer_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 BaseFlatGunProducer : public one::EDProducer<one::WatchRuns, EndRunProducer> {
27  public:
29  ~BaseFlatGunProducer() override;
30  void beginRun(const edm::Run& r, const edm::EventSetup&) override;
31  void endRun(edm::Run const& 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 fMinEta;
43  double fMaxEta;
44  double fMinPhi;
45  double fMaxPhi;
46 
47  // the event format itself
49 
50  // HepMC/HepPDT related things
51  // (for particle/event construction)
52  //std::string fPDGTablePath ;
53  //std::string fPDGTableName ;
54  // DefaultConfig::ParticleDataTable* fPDGTable;
55  // DefaultConfig::ParticleDataTable* fTestTable ;
56  // ESHandle<DefaultConfig::ParticleDataTable> fPDGTable ;
58 
60 
62  };
63 } // namespace edm
64 
65 #endif
void endRun(edm::Run const &r, const edm::EventSetup &) override
BaseFlatGunProducer(const ParameterSet &)
void endRunProduce(edm::Run &r, const edm::EventSetup &) override
ESHandle< HepPDT::ParticleDataTable > fPDGTable
void beginRun(const edm::Run &r, const edm::EventSetup &) override
std::vector< int > fPartIDs
HLT enums.
Definition: Run.h:45