CMS 3D CMS Logo

HGCDigiProducer.cc
Go to the documentation of this file.
9 
10 //
13  HGCDigiProducer(pset, iC)
14 {
15  if(pset.getParameter<bool>("premixStage1")) {
17  }
18  else {
20  }
21 }
22 
25  theDigitizer_(pset, iC) {
26 }
27 
28 //
30 {
32  randomEngine_ = &rng->getEngine(event.streamID());
33  theDigitizer_.initializeEvent(event, es);
34 }
35 
36 //
38 {
40  randomEngine_ = nullptr; // to precent access outside event
41 }
42 
43 //
45 {
47 }
48 
50 {
52 }
53 
54 //
56 {
58 }
59 
60 //
62 {
64 }
65 
BranchAliasSetterT< ProductType > produces()
declare what type of product will make and with which optional label
T getParameter(std::string const &) const
void finalizeEvent(edm::Event &e, edm::EventSetup const &c, CLHEP::HepRandomEngine *hre)
void beginRun(edm::Run const &, edm::EventSetup const &) override
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 beginRun(const edm::EventSetup &es)
actions at the start/end of run
HGCDigiProducer(edm::ParameterSet const &pset, edm::ProducerBase &mixMod, edm::ConsumesCollector &iC)
void accumulate(edm::Event const &, edm::EventSetup const &) override
void endRun(edm::Run 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)
HGCDigitizer theDigitizer_
StreamID streamID() const
Definition: Event.h:95
void finalizeEvent(edm::Event &, edm::EventSetup const &) override
void initializeEvent(edm::Event const &, edm::EventSetup const &) override
std::string digiCollection()
Definition: HGCDigitizer.h:79
Definition: event.py:1
Definition: Run.h:45