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 
void finalizeEvent(edm::Event &e, edm::EventSetup const &c, CLHEP::HepRandomEngine *hre)
ProductRegistryHelper::BranchAliasSetterT< ProductType > produces()
void initializeEvent(edm::Event const &e, edm::EventSetup const &c)
actions at the start/end of event
CLHEP::HepRandomEngine * randomEngine_
virtual CLHEP::HepRandomEngine & getEngine(StreamID const &)=0
Use this engine in event methods.
void accumulate(edm::Event const &, edm::EventSetup const &) override
void accumulate(edm::Event const &e, edm::EventSetup const &c, CLHEP::HepRandomEngine *hre)
handle SimHit accumulation
#define DEFINE_DIGI_ACCUMULATOR(type)
HGCDigiProducer(edm::ParameterSet const &pset, edm::ProducesCollector, edm::ConsumesCollector &iC)
HGCDigitizer theDigitizer_
void finalizeEvent(edm::Event &, edm::EventSetup const &) override
void initializeEvent(edm::Event const &, edm::EventSetup const &) override
void accumulate_forPreMix(edm::Event const &e, edm::EventSetup const &c, CLHEP::HepRandomEngine *hre)
std::string digiCollection()
Definition: HGCDigitizer.h:76
Definition: event.py:1