CMS 3D CMS Logo

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());
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 }
edm::StreamID
Definition: StreamID.h:30
edm::RandomNumberGenerator::getEngine
virtual CLHEP::HepRandomEngine & getEngine(StreamID const &)=0
Use this engine in event methods.
HcalDigiProducer.h
HcalDigitizer::accumulate
void accumulate(edm::Event const &e, edm::EventSetup const &c, CLHEP::HepRandomEngine *)
Definition: HcalDigitizer.cc:426
HcalDigitizer::setQIE11NoiseSignalGenerator
void setQIE11NoiseSignalGenerator(HcalBaseSignalGenerator *noiseGenerator)
Definition: HcalDigitizer.cc:264
HcalDataFrameContainer
Definition: HcalDigiCollections.h:35
edm::Run
Definition: Run.h:45
RandomNumberGenerator.h
HcalDigiProducer::HcalDigiProducer
HcalDigiProducer(edm::ParameterSet const &pset, edm::ProducesCollector, edm::ConsumesCollector &iC)
Definition: HcalDigiProducer.cc:7
edm::SortedCollection
Definition: SortedCollection.h:49
HcalDigiProducer::initializeEvent
void initializeEvent(edm::Event const &, edm::EventSetup const &) override
Definition: HcalDigiProducer.cc:28
PileUpEventPrincipal
Definition: PileUpEventPrincipal.h:19
HcalDigiProducer::setHBHENoiseSignalGenerator
void setHBHENoiseSignalGenerator(HcalBaseSignalGenerator *noiseGenerator)
Definition: HcalDigiProducer.cc:53
HcalDigiProducer::beginRun
void beginRun(edm::Run const &, edm::EventSetup const &) override
Definition: HcalDigiProducer.cc:49
HcalDigitizer::setHONoiseSignalGenerator
void setHONoiseSignalGenerator(HcalBaseSignalGenerator *noiseGenerator)
Definition: HcalDigitizer.cc:288
HcalDigitizer::setZDCNoiseSignalGenerator
void setZDCNoiseSignalGenerator(HcalBaseSignalGenerator *noiseGenerator)
Definition: HcalDigitizer.cc:298
HcalDigiProducer::setZDCNoiseSignalGenerator
void setZDCNoiseSignalGenerator(HcalBaseSignalGenerator *noiseGenerator)
Definition: HcalDigiProducer.cc:65
Service.h
HcalDigitizer::setHBHENoiseSignalGenerator
void setHBHENoiseSignalGenerator(HcalBaseSignalGenerator *noiseGenerator)
Definition: HcalDigitizer.cc:256
HcalDigiProducer::setHONoiseSignalGenerator
void setHONoiseSignalGenerator(HcalBaseSignalGenerator *noiseGenerator)
Definition: HcalDigiProducer.cc:61
HcalDigiProducer::setHFNoiseSignalGenerator
void setHFNoiseSignalGenerator(HcalBaseSignalGenerator *noiseGenerator)
Definition: HcalDigiProducer.cc:57
HcalDigiProducer::accumulate
void accumulate(edm::Event const &, edm::EventSetup const &) override
Definition: HcalDigiProducer.cc:39
HcalDigiProducer::randomEngine_
CLHEP::HepRandomEngine * randomEngine_
Definition: HcalDigiProducer.h:43
DigiAccumulatorMixMod
Definition: DigiAccumulatorMixMod.h:41
HcalDigiProducer::theDigitizer_
HcalDigitizer theDigitizer_
Definition: HcalDigiProducer.h:41
HcalDigitizer::finalizeEvent
void finalizeEvent(edm::Event &e, edm::EventSetup const &c, CLHEP::HepRandomEngine *)
Definition: HcalDigitizer.cc:462
edm::ParameterSet
Definition: ParameterSet.h:47
Event.h
HcalDigitizer::setQIE10NoiseSignalGenerator
void setQIE10NoiseSignalGenerator(HcalBaseSignalGenerator *noiseGenerator)
Definition: HcalDigitizer.cc:280
edm::Service< edm::RandomNumberGenerator >
HcalDigiProducer::setQIE10NoiseSignalGenerator
void setQIE10NoiseSignalGenerator(HcalBaseSignalGenerator *noiseGenerator)
Definition: HcalDigiProducer.cc:69
HcalDigiProducer::endRun
void endRun(edm::Run const &, edm::EventSetup const &) override
Definition: HcalDigiProducer.cc:51
edm::ProducesCollector::produces
ProductRegistryHelper::BranchAliasSetterT< ProductType > produces()
Definition: ProducesCollector.h:52
edm::EventSetup
Definition: EventSetup.h:58
edm::ProducesCollector
Definition: ProducesCollector.h:43
HcalDigitizer::setHFNoiseSignalGenerator
void setHFNoiseSignalGenerator(HcalBaseSignalGenerator *noiseGenerator)
Definition: HcalDigitizer.cc:272
HcalDigiProducer::setQIE11NoiseSignalGenerator
void setQIE11NoiseSignalGenerator(HcalBaseSignalGenerator *noiseGenerator)
Definition: HcalDigiProducer.cc:73
edm::PCaloHitContainer
std::vector< PCaloHit > PCaloHitContainer
Definition: PCaloHitContainer.h:8
HcalDigitizer::initializeEvent
void initializeEvent(edm::Event const &e, edm::EventSetup const &c)
Definition: HcalDigitizer.cc:305
HcalDigiProducer::finalizeEvent
void finalizeEvent(edm::Event &, edm::EventSetup const &) override
Definition: HcalDigiProducer.cc:34
HcalBaseSignalGenerator
Definition: HcalBaseSignalGenerator.h:8
CaloSamplesCollection
std::vector< CaloSamples > CaloSamplesCollection
Definition: CaloSamples.h:99
event
Definition: event.py:1
edm::Event
Definition: Event.h:73
StreamID.h
edm::ConsumesCollector
Definition: ConsumesCollector.h:45
muonDTDigis_cfi.pset
pset
Definition: muonDTDigis_cfi.py:27