CMS 3D CMS Logo

HGCDigiProducer.cc
Go to the documentation of this file.
9 
10 //
12  edm::ProducesCollector producesCollector,
14  : HGCDigiProducer(pset, iC) {
15  premixStage1_ = pset.getParameter<bool>("premixStage1");
16  if (premixStage1_) {
18  } else {
20  }
21 }
22 
24  : DigiAccumulatorMixMod(), theDigitizer_(pset, iC) {}
25 
26 //
29  randomEngine_ = &rng->getEngine(event.streamID());
31 }
32 
33 //
36  randomEngine_ = nullptr; // to precent access outside event
37 }
38 
39 //
41  if (premixStage1_) {
43  }
44 
45  else {
47  }
48 }
49 
51  edm::EventSetup const& es,
52  edm::StreamID const& streamID) {
53  if (premixStage1_) {
55  } else {
57  }
58 }
59 
60 //
62 
63 //
65 
PHGCSimAccumulator
Definition: PHGCSimAccumulator.h:8
edm::StreamID
Definition: StreamID.h:30
HGCDigiProducer::accumulate
void accumulate(edm::Event const &, edm::EventSetup const &) override
Definition: HGCDigiProducer.cc:40
edm::RandomNumberGenerator::getEngine
virtual CLHEP::HepRandomEngine & getEngine(StreamID const &)=0
Use this engine in event methods.
HGCDigitizer::digiCollection
std::string digiCollection()
Definition: HGCDigitizer.h:85
edm::Run
Definition: Run.h:45
RandomNumberGenerator.h
HGCDigitizer::endRun
void endRun()
Definition: HGCDigitizer.cc:789
HGCDigiProducer::finalizeEvent
void finalizeEvent(edm::Event &, edm::EventSetup const &) override
Definition: HGCDigiProducer.cc:34
EDProducer.h
edm::SortedCollection
Definition: SortedCollection.h:49
HGCDigiProducer
Definition: HGCDigiProducer.h:23
PileUpEventPrincipal
Definition: PileUpEventPrincipal.h:19
HGCDigitizer::beginRun
void beginRun(const edm::EventSetup &es)
actions at the start/end of run
Definition: HGCDigitizer.cc:750
HGCDigiProducer::HGCDigiProducer
HGCDigiProducer(edm::ParameterSet const &pset, edm::ProducesCollector, edm::ConsumesCollector &iC)
Definition: HGCDigiProducer.cc:11
MakerMacros.h
HGCDigitizer::accumulate_forPreMix
void accumulate_forPreMix(edm::Event const &e, edm::EventSetup const &c, CLHEP::HepRandomEngine *hre)
Definition: HGCDigitizer.cc:415
HGCDigiProducer::initializeEvent
void initializeEvent(edm::Event const &, edm::EventSetup const &) override
Definition: HGCDigiProducer.cc:27
Service.h
HGCDigiProducer::premixStage1_
bool premixStage1_
Definition: HGCDigiProducer.h:38
HGCDigiProducer::endRun
void endRun(edm::Run const &, edm::EventSetup const &) override
Definition: HGCDigiProducer.cc:64
DigiAccumulatorMixMod
Definition: DigiAccumulatorMixMod.h:41
edm::ParameterSet
Definition: ParameterSet.h:36
Event.h
HGCDigitizer::accumulate
void accumulate(edm::Event const &e, edm::EventSetup const &c, CLHEP::HepRandomEngine *hre)
handle SimHit accumulation
Definition: HGCDigitizer.cc:438
HGCDigiProducer::theDigitizer_
HGCDigitizer theDigitizer_
Definition: HGCDigiProducer.h:39
HGCDigitizer::finalizeEvent
void finalizeEvent(edm::Event &e, edm::EventSetup const &c, CLHEP::HepRandomEngine *hre)
Definition: HGCDigitizer.cc:339
edm::Service< edm::RandomNumberGenerator >
edm::ProducesCollector::produces
ProductRegistryHelper::BranchAliasSetterT< ProductType > produces()
Definition: ProducesCollector.h:52
edm::EventSetup
Definition: EventSetup.h:57
HGCDigitizer::initializeEvent
void initializeEvent(edm::Event const &e, edm::EventSetup const &c)
actions at the start/end of event
Definition: HGCDigitizer.cc:331
edm::ProducesCollector
Definition: ProducesCollector.h:43
HGCDigiProducer.h
DigiAccumulatorMixModFactory.h
HGCDigiProducer::beginRun
void beginRun(edm::Run const &, edm::EventSetup const &) override
Definition: HGCDigiProducer.cc:61
DEFINE_DIGI_ACCUMULATOR
#define DEFINE_DIGI_ACCUMULATOR(type)
Definition: DigiAccumulatorMixModFactory.h:31
event
Definition: event.py:1
edm::Event
Definition: Event.h:73
StreamID.h
edm::ConsumesCollector
Definition: ConsumesCollector.h:39
muonDTDigis_cfi.pset
pset
Definition: muonDTDigis_cfi.py:27
HGCDigiProducer::randomEngine_
CLHEP::HepRandomEngine * randomEngine_
Definition: HGCDigiProducer.h:40