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::ConsumesCollector &iC)
 
 HGCDigiProducer (edm::ParameterSet const &pset, edm::ProducesCollector, 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

bool premixStage1_
 
bool premixStage2_
 
CLHEP::HepRandomEngine * randomEngine_ = nullptr
 
HGCDigitizer theDigitizer_
 

Detailed Description

Definition at line 23 of file HGCDigiProducer.h.

Constructor & Destructor Documentation

◆ HGCDigiProducer() [1/2]

HGCDigiProducer::HGCDigiProducer ( edm::ParameterSet const &  pset,
edm::ProducesCollector  producesCollector,
edm::ConsumesCollector iC 
)

Definition at line 11 of file HGCDigiProducer.cc.

14  : HGCDigiProducer(pset, iC) {
15  premixStage1_ = pset.getParameter<bool>("premixStage1");
16  if (premixStage1_) {
18  } else {
20  }
21 }

References HGCDigitizer::digiCollection(), premixStage1_, edm::ProducesCollector::produces(), muonDTDigis_cfi::pset, and theDigitizer_.

◆ HGCDigiProducer() [2/2]

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

Definition at line 23 of file HGCDigiProducer.cc.

◆ ~HGCDigiProducer()

HGCDigiProducer::~HGCDigiProducer ( )
overridedefault

Member Function Documentation

◆ accumulate() [1/2]

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

◆ accumulate() [2/2]

void HGCDigiProducer::accumulate ( PileUpEventPrincipal const &  event,
edm::EventSetup const &  es,
edm::StreamID const &  streamID 
)
overridevirtual

◆ beginRun()

void HGCDigiProducer::beginRun ( edm::Run const &  ,
edm::EventSetup const &  es 
)
overridevirtual

Reimplemented from DigiAccumulatorMixMod.

Definition at line 61 of file HGCDigiProducer.cc.

61 { theDigitizer_.beginRun(es); }

References HGCDigitizer::beginRun(), and theDigitizer_.

◆ endRun()

void HGCDigiProducer::endRun ( edm::Run const &  ,
edm::EventSetup const &   
)
overridevirtual

Reimplemented from DigiAccumulatorMixMod.

Definition at line 64 of file HGCDigiProducer.cc.

64 { theDigitizer_.endRun(); }

References HGCDigitizer::endRun(), and theDigitizer_.

◆ finalizeEvent()

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

Implements DigiAccumulatorMixMod.

Definition at line 34 of file HGCDigiProducer.cc.

34  {
36  randomEngine_ = nullptr; // to precent access outside event
37 }

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

◆ initializeEvent()

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

Member Data Documentation

◆ premixStage1_

bool HGCDigiProducer::premixStage1_
private

Definition at line 38 of file HGCDigiProducer.h.

Referenced by accumulate(), and HGCDigiProducer().

◆ premixStage2_

bool HGCDigiProducer::premixStage2_
private

Definition at line 38 of file HGCDigiProducer.h.

◆ randomEngine_

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

Definition at line 40 of file HGCDigiProducer.h.

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

◆ theDigitizer_

HGCDigitizer HGCDigiProducer::theDigitizer_
private
PHGCSimAccumulator
Definition: PHGCSimAccumulator.h:8
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
HGCDigitizer::endRun
void endRun()
Definition: HGCDigitizer.cc:789
edm::SortedCollection
Definition: SortedCollection.h:49
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
HGCDigitizer::accumulate_forPreMix
void accumulate_forPreMix(edm::Event const &e, edm::EventSetup const &c, CLHEP::HepRandomEngine *hre)
Definition: HGCDigitizer.cc:415
HGCDigiProducer::premixStage1_
bool premixStage1_
Definition: HGCDigiProducer.h:38
DigiAccumulatorMixMod::DigiAccumulatorMixMod
DigiAccumulatorMixMod()
Definition: DigiAccumulatorMixMod.cc:3
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
HGCDigitizer::initializeEvent
void initializeEvent(edm::Event const &e, edm::EventSetup const &c)
actions at the start/end of event
Definition: HGCDigitizer.cc:331
event
Definition: event.py:1
muonDTDigis_cfi.pset
pset
Definition: muonDTDigis_cfi.py:27
HGCDigiProducer::randomEngine_
CLHEP::HepRandomEngine * randomEngine_
Definition: HGCDigiProducer.h:40