CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
HcalDigiProducer.cc
Go to the documentation of this file.
6 
8  edm::ProducesCollector producesCollector,
10  : DigiAccumulatorMixMod(), theDigitizer_(pset, iC) {
11  producesCollector.produces<HBHEDigiCollection>();
12  producesCollector.produces<HODigiCollection>();
13  producesCollector.produces<HFDigiCollection>();
14  producesCollector.produces<ZDCDigiCollection>();
15  producesCollector.produces<QIE10DigiCollection>("HFQIE10DigiCollection");
16  producesCollector.produces<QIE11DigiCollection>("HBHEQIE11DigiCollection");
17  if (pset.getParameter<bool>("debugCaloSamples")) {
18  producesCollector.produces<CaloSamplesCollection>("HcalSamples");
19  }
20  if (pset.getParameter<bool>("injectTestHits")) {
21  producesCollector.produces<edm::PCaloHitContainer>("HcalHits");
22  }
23 }
24 
26  : DigiAccumulatorMixMod(), theDigitizer_(pset, iC) {}
27 
30  randomEngine_ = &rng->getEngine(event.streamID());
31  theDigitizer_.initializeEvent(event, es);
32 }
33 
36  randomEngine_ = nullptr; // to prevent access outside event
37 }
38 
41 }
42 
44  edm::EventSetup const &es,
45  edm::StreamID const &streamID) {
47 }
48 
50 
52 
55 }
56 
59 }
60 
63 }
64 
67 }
68 
71 }
72 
75 }
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
ProductRegistryHelper::BranchAliasSetterT< ProductType > produces()
void setQIE10NoiseSignalGenerator(HcalBaseSignalGenerator *noiseGenerator)
void endRun(edm::Run const &, edm::EventSetup const &) override
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
HcalDigiProducer(edm::ParameterSet const &pset, edm::ProducesCollector, edm::ConsumesCollector &iC)
void setZDCNoiseSignalGenerator(HcalBaseSignalGenerator *noiseGenerator)
T getParameter(std::string const &) const
Definition: ParameterSet.h:303
void setZDCNoiseSignalGenerator(HcalBaseSignalGenerator *noiseGenerator)
void beginRun(edm::Run const &, edm::EventSetup const &) override
StreamID streamID() const
Definition: Event.h:98
HcalDigitizer theDigitizer_
void setHONoiseSignalGenerator(HcalBaseSignalGenerator *noiseGenerator)
void setHFNoiseSignalGenerator(HcalBaseSignalGenerator *noiseGenerator)
void setHBHENoiseSignalGenerator(HcalBaseSignalGenerator *noiseGenerator)
CLHEP::HepRandomEngine * randomEngine_
void setHBHENoiseSignalGenerator(HcalBaseSignalGenerator *noiseGenerator)
Definition: Run.h:45
void finalizeEvent(edm::Event &e, edm::EventSetup const &c, CLHEP::HepRandomEngine *)
void setHONoiseSignalGenerator(HcalBaseSignalGenerator *noiseGenerator)