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
edm::BaseFlatGunProducer::fMaxPhi
double fMaxPhi
Definition: BaseFlatGunProducer.h:45
EDProducer.h
edm::BaseFlatGunProducer::fAddAntiParticle
bool fAddAntiParticle
Definition: BaseFlatGunProducer.h:61
ESHandle.h
edm::Run
Definition: Run.h:45
edm::BaseFlatGunProducer::fMaxEta
double fMaxEta
Definition: BaseFlatGunProducer.h:43
edm
HLT enums.
Definition: AlignableModifier.h:19
edm::BaseFlatGunProducer::fEvt
HepMC::GenEvent * fEvt
Definition: BaseFlatGunProducer.h:48
edm::BaseFlatGunProducer::fMinPhi
double fMinPhi
Definition: BaseFlatGunProducer.h:44
edm::one::EDProducer
Definition: EDProducer.h:30
HepMC::GenEvent
Definition: hepmc_rootio.cc:9
edm::BaseFlatGunProducer::BaseFlatGunProducer
BaseFlatGunProducer(const ParameterSet &)
Definition: BaseFlatGunProducer.cc:29
edm::BaseFlatGunProducer::fPartIDs
std::vector< int > fPartIDs
Definition: BaseFlatGunProducer.h:41
Run.h
edm::ESHandle< HepPDT::ParticleDataTable >
edm::BaseFlatGunProducer::beginRun
void beginRun(const edm::Run &r, const edm::EventSetup &) override
Definition: BaseFlatGunProducer.cc:86
edm::ParameterSet
Definition: ParameterSet.h:47
edm::BaseFlatGunProducer::~BaseFlatGunProducer
~BaseFlatGunProducer() override
Definition: BaseFlatGunProducer.cc:80
edm::EventSetup
Definition: EventSetup.h:57
edm::BaseFlatGunProducer
Definition: BaseFlatGunProducer.h:26
edm::BaseFlatGunProducer::fPDGTable
ESHandle< HepPDT::ParticleDataTable > fPDGTable
Definition: BaseFlatGunProducer.h:57
alignCSCRings.r
r
Definition: alignCSCRings.py:93
EventSetup.h
edm::BaseFlatGunProducer::fVerbosity
int fVerbosity
Definition: BaseFlatGunProducer.h:59
edm::BaseFlatGunProducer::endRun
void endRun(edm::Run const &r, const edm::EventSetup &) override
Definition: BaseFlatGunProducer.cc:90
edm::BaseFlatGunProducer::endRunProduce
void endRunProduce(edm::Run &r, const edm::EventSetup &) override
Definition: BaseFlatGunProducer.cc:92
edm::BaseFlatGunProducer::fMinEta
double fMinEta
Definition: BaseFlatGunProducer.h:42