CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
HGCDigiProducer Class Reference

#include <HGCDigiProducer.h>

Inheritance diagram for HGCDigiProducer:
DigiAccumulatorMixMod

Public Member Functions

void accumulate (edm::Event const &, edm::EventSetup const &) override
 
void accumulate (PileUpEventPrincipal const &, edm::EventSetup const &, edm::StreamID const &) override
 
void beginRun (edm::Run const &, edm::EventSetup const &) override
 
void endRun (edm::Run const &, edm::EventSetup const &) override
 
void finalizeEvent (edm::Event &, edm::EventSetup const &) override
 
 HGCDigiProducer (edm::ParameterSet const &pset, edm::ProducerBase &mixMod, edm::ConsumesCollector &iC)
 
 HGCDigiProducer (edm::ParameterSet const &pset, edm::ConsumesCollector &iC)
 
void initializeEvent (edm::Event const &, edm::EventSetup const &) override
 
 ~HGCDigiProducer () override=default
 
- Public Member Functions inherited from DigiAccumulatorMixMod
virtual void beginLuminosityBlock (edm::LuminosityBlock const &lumi, edm::EventSetup const &setup)
 
 DigiAccumulatorMixMod ()
 
virtual void endLuminosityBlock (edm::LuminosityBlock const &lumi, edm::EventSetup const &setup)
 
virtual void finalizeBunchCrossing (edm::Event &event, edm::EventSetup const &setup, int bunchCrossing)
 
virtual PileupMixingContentgetEventPileupInfo ()
 
virtual void initializeBunchCrossing (edm::Event const &event, edm::EventSetup const &setup, int bunchCrossing)
 
virtual void StorePileupInformation (std::vector< int > &numInteractionList, std::vector< int > &bunchCrossingList, std::vector< float > &TrueInteractionList, std::vector< edm::EventID > &eventList, int bunchSpace)
 
virtual ~DigiAccumulatorMixMod ()
 

Private Attributes

CLHEP::HepRandomEngine * randomEngine_ = 0
 
HGCDigitizer theDigitizer_
 

Detailed Description

Definition at line 23 of file HGCDigiProducer.h.

Constructor & Destructor Documentation

HGCDigiProducer::HGCDigiProducer ( edm::ParameterSet const &  pset,
edm::ProducerBase mixMod,
edm::ConsumesCollector iC 
)

Definition at line 11 of file HGCDigiProducer.cc.

References HGCDigitizer::digiCollection(), edm::ParameterSet::getParameter(), edm::ProductRegistryHelper::produces(), and theDigitizer_.

12  :
14 {
15  if(pset.getParameter<bool>("premixStage1")) {
17  }
18  else {
20  }
21 }
BranchAliasSetterT< ProductType > produces()
declare what type of product will make and with which optional label
HGCDigiProducer(edm::ParameterSet const &pset, edm::ProducerBase &mixMod, edm::ConsumesCollector &iC)
HGCDigitizer theDigitizer_
std::string digiCollection()
Definition: HGCDigitizer.h:76
HGCDigiProducer::HGCDigiProducer ( edm::ParameterSet const &  pset,
edm::ConsumesCollector iC 
)

Definition at line 23 of file HGCDigiProducer.cc.

HGCDigiProducer::~HGCDigiProducer ( )
overridedefault

Member Function Documentation

void HGCDigiProducer::accumulate ( edm::Event const &  event,
edm::EventSetup const &  es 
)
overridevirtual

Implements DigiAccumulatorMixMod.

Definition at line 44 of file HGCDigiProducer.cc.

References HGCDigitizer::accumulate(), randomEngine_, and theDigitizer_.

45 {
47 }
CLHEP::HepRandomEngine * randomEngine_
void accumulate(edm::Event const &e, edm::EventSetup const &c, CLHEP::HepRandomEngine *hre)
handle SimHit accumulation
HGCDigitizer theDigitizer_
Definition: event.py:1
void HGCDigiProducer::accumulate ( PileUpEventPrincipal const &  event,
edm::EventSetup const &  es,
edm::StreamID const &  streamID 
)
overridevirtual

Implements DigiAccumulatorMixMod.

Definition at line 49 of file HGCDigiProducer.cc.

References HGCDigitizer::accumulate(), randomEngine_, and theDigitizer_.

50 {
52 }
CLHEP::HepRandomEngine * randomEngine_
void accumulate(edm::Event const &e, edm::EventSetup const &c, CLHEP::HepRandomEngine *hre)
handle SimHit accumulation
HGCDigitizer theDigitizer_
Definition: event.py:1
void HGCDigiProducer::beginRun ( edm::Run const &  ,
edm::EventSetup const &  es 
)
overridevirtual

Reimplemented from DigiAccumulatorMixMod.

Definition at line 55 of file HGCDigiProducer.cc.

References HGCDigitizer::beginRun(), and theDigitizer_.

56 {
58 }
void beginRun(const edm::EventSetup &es)
actions at the start/end of run
HGCDigitizer theDigitizer_
void HGCDigiProducer::endRun ( edm::Run const &  ,
edm::EventSetup const &   
)
overridevirtual

Reimplemented from DigiAccumulatorMixMod.

Definition at line 61 of file HGCDigiProducer.cc.

References DEFINE_DIGI_ACCUMULATOR, HGCDigitizer::endRun(), and theDigitizer_.

62 {
64 }
HGCDigitizer theDigitizer_
void HGCDigiProducer::finalizeEvent ( edm::Event event,
edm::EventSetup const &  es 
)
overridevirtual

Implements DigiAccumulatorMixMod.

Definition at line 37 of file HGCDigiProducer.cc.

References HGCDigitizer::finalizeEvent(), randomEngine_, and theDigitizer_.

38 {
40  randomEngine_ = nullptr; // to precent access outside event
41 }
void finalizeEvent(edm::Event &e, edm::EventSetup const &c, CLHEP::HepRandomEngine *hre)
CLHEP::HepRandomEngine * randomEngine_
HGCDigitizer theDigitizer_
void HGCDigiProducer::initializeEvent ( edm::Event const &  event,
edm::EventSetup const &  es 
)
overridevirtual

Implements DigiAccumulatorMixMod.

Definition at line 29 of file HGCDigiProducer.cc.

References edm::RandomNumberGenerator::getEngine(), HGCDigitizer::initializeEvent(), randomEngine_, edm::Event::streamID(), and theDigitizer_.

30 {
32  randomEngine_ = &rng->getEngine(event.streamID());
34 }
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.
HGCDigitizer theDigitizer_
Definition: event.py:1

Member Data Documentation

CLHEP::HepRandomEngine* HGCDigiProducer::randomEngine_ = 0
private

Definition at line 38 of file HGCDigiProducer.h.

Referenced by accumulate(), finalizeEvent(), and initializeEvent().

HGCDigitizer HGCDigiProducer::theDigitizer_
private