CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
HcalDigiProducer.cc
Go to the documentation of this file.
7 
10  theDigitizer_(pset, iC) {
11  mixMod.produces<HBHEDigiCollection>();
12  mixMod.produces<HODigiCollection>();
13  mixMod.produces<HFDigiCollection>();
14  mixMod.produces<ZDCDigiCollection>();
15  mixMod.produces<HBHEUpgradeDigiCollection>("HBHEUpgradeDigiCollection");
16  mixMod.produces<HFUpgradeDigiCollection>("HFUpgradeDigiCollection");
17  mixMod.produces<QIE10DigiCollection>("HFQIE10DigiCollection");
18 
19 }
20 
21 
24  theDigitizer_(pset, iC) {
25 }
26 
27 
28 void
30  theDigitizer_.initializeEvent(event, es);
31 }
32 
33 void
35  theDigitizer_.finalizeEvent(event, es, randomEngine(event.streamID()));
36 }
37 
38 void
40  theDigitizer_.accumulate(event, es, randomEngine(event.streamID()));
41 }
42 
43 void
45  theDigitizer_.accumulate(event, es, randomEngine(streamID));
46 }
47 
48 void
51 }
52 
53 void
56 }
57 
58 void
61 }
62 
63 void
66 }
67 
68 void
71 }
72 
73 void
76 }
77 
78 
79 
80 CLHEP::HepRandomEngine* HcalDigiProducer::randomEngine(edm::StreamID const& streamID) {
81  unsigned int index = streamID.value();
82  if(index >= randomEngines_.size()) {
83  randomEngines_.resize(index + 1, nullptr);
84  }
85  CLHEP::HepRandomEngine* ptr = randomEngines_[index];
86  if(!ptr) {
88  ptr = &rng->getEngine(streamID);
89  randomEngines_[index] = ptr;
90  }
91  return ptr;
92 }
HcalDigiProducer(edm::ParameterSet const &pset, edm::stream::EDProducerBase &mixMod, edm::ConsumesCollector &iC)
virtual void accumulate(edm::Event const &, edm::EventSetup const &) override
CLHEP::HepRandomEngine * randomEngine(edm::StreamID const &streamID)
virtual void endRun(edm::Run const &, edm::EventSetup const &) override
std::vector< CLHEP::HepRandomEngine * > randomEngines_
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 *)
virtual void finalizeEvent(edm::Event &, edm::EventSetup const &) override
void setHFNoiseSignalGenerator(HcalBaseSignalGenerator *noiseGenerator)
virtual void initializeEvent(edm::Event const &, edm::EventSetup const &) override
How EventSelector::AcceptEvent() decides whether to accept an event for output otherwise it is excluding the probing of A single or multiple positive and the trigger will pass if any such matching triggers are PASS or EXCEPTION[A criterion thatmatches no triggers at all is detected and causes a throw.] A single negative with an expectation of appropriate bit checking in the decision and the trigger will pass if any such matching triggers are FAIL or EXCEPTION A wildcarded negative criterion that matches more than one trigger in the trigger but the state exists so we define the behavior If all triggers are the negative crieriion will lead to accepting the event(this again matches the behavior of"!*"before the partial wildcard feature was incorporated).The per-event"cost"of each negative criterion with multiple relevant triggers is about the same as!*was in the past
unsigned int value() const
Definition: StreamID.h:46
void beginRun(const edm::EventSetup &es)
void setZDCNoiseSignalGenerator(HcalBaseSignalGenerator *noiseGenerator)
void setZDCNoiseSignalGenerator(HcalBaseSignalGenerator *noiseGenerator)
virtual void beginRun(edm::Run const &, edm::EventSetup const &) override
StreamID streamID() const
Definition: Event.h:80
HcalDigitizer theDigitizer_
void setHONoiseSignalGenerator(HcalBaseSignalGenerator *noiseGenerator)
void setHFNoiseSignalGenerator(HcalBaseSignalGenerator *noiseGenerator)
void setHBHENoiseSignalGenerator(HcalBaseSignalGenerator *noiseGenerator)
void setHBHENoiseSignalGenerator(HcalBaseSignalGenerator *noiseGenerator)
Definition: Run.h:43
void finalizeEvent(edm::Event &e, edm::EventSetup const &c, CLHEP::HepRandomEngine *)
void setHONoiseSignalGenerator(HcalBaseSignalGenerator *noiseGenerator)