CMS 3D CMS Logo

HcalDigiProducer.cc
Go to the documentation of this file.
7 
9  : DigiAccumulatorMixMod(), theDigitizer_(pset, iC) {
10  mixMod.produces<HBHEDigiCollection>();
11  mixMod.produces<HODigiCollection>();
12  mixMod.produces<HFDigiCollection>();
13  mixMod.produces<ZDCDigiCollection>();
14  mixMod.produces<QIE10DigiCollection>("HFQIE10DigiCollection");
15  mixMod.produces<QIE11DigiCollection>("HBHEQIE11DigiCollection");
16  if (pset.getParameter<bool>("debugCaloSamples")) {
17  mixMod.produces<CaloSamplesCollection>("HcalSamples");
18  }
19  if (pset.getParameter<bool>("injectTestHits")) {
20  mixMod.produces<edm::PCaloHitContainer>("HcalHits");
21  }
22 }
23 
25  : DigiAccumulatorMixMod(), theDigitizer_(pset, iC) {}
26 
29  randomEngine_ = &rng->getEngine(event.streamID());
30  theDigitizer_.initializeEvent(event, es);
31 }
32 
35  randomEngine_ = nullptr; // to prevent access outside event
36 }
37 
40 }
41 
43  edm::EventSetup const &es,
44  edm::StreamID const &streamID) {
46 }
47 
49 
51 
54 }
55 
58 }
59 
62 }
63 
66 }
67 
70 }
71 
74 }
BranchAliasSetterT< ProductType > produces()
declare what type of product will make and with which optional label
T getParameter(std::string const &) const
std::vector< PCaloHit > PCaloHitContainer
void accumulate(edm::Event const &, edm::EventSetup const &) override
void setQIE10NoiseSignalGenerator(HcalBaseSignalGenerator *noiseGenerator)
std::vector< CaloSamples > CaloSamplesCollection
Definition: CaloSamples.h:99
void setQIE10NoiseSignalGenerator(HcalBaseSignalGenerator *noiseGenerator)
void endRun(edm::Run const &, edm::EventSetup const &) override
HcalDigiProducer(edm::ParameterSet const &pset, edm::ProducerBase &mixMod, edm::ConsumesCollector &iC)
void setQIE11NoiseSignalGenerator(HcalBaseSignalGenerator *noiseGenerator)
virtual CLHEP::HepRandomEngine & getEngine(StreamID const &)=0
Use this engine in event methods.
void initializeEvent(edm::Event const &e, edm::EventSetup const &c)
void accumulate(edm::Event const &e, edm::EventSetup const &c, CLHEP::HepRandomEngine *)
void setQIE11NoiseSignalGenerator(HcalBaseSignalGenerator *noiseGenerator)
void finalizeEvent(edm::Event &, edm::EventSetup const &) override
void setHFNoiseSignalGenerator(HcalBaseSignalGenerator *noiseGenerator)
void initializeEvent(edm::Event const &, edm::EventSetup const &) override
void setZDCNoiseSignalGenerator(HcalBaseSignalGenerator *noiseGenerator)
void setZDCNoiseSignalGenerator(HcalBaseSignalGenerator *noiseGenerator)
void beginRun(edm::Run const &, edm::EventSetup const &) override
StreamID streamID() const
Definition: Event.h:95
HcalDigitizer theDigitizer_
void setHONoiseSignalGenerator(HcalBaseSignalGenerator *noiseGenerator)
void setHFNoiseSignalGenerator(HcalBaseSignalGenerator *noiseGenerator)
void setHBHENoiseSignalGenerator(HcalBaseSignalGenerator *noiseGenerator)
CLHEP::HepRandomEngine * randomEngine_
void setHBHENoiseSignalGenerator(HcalBaseSignalGenerator *noiseGenerator)
Definition: event.py:1
Definition: Run.h:45
void finalizeEvent(edm::Event &e, edm::EventSetup const &c, CLHEP::HepRandomEngine *)
void setHONoiseSignalGenerator(HcalBaseSignalGenerator *noiseGenerator)