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 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)
 
virtual void beginRun (edm::Run const &run, edm::EventSetup const &setup)
 
 DigiAccumulatorMixMod ()
 
virtual void endLuminosityBlock (edm::LuminosityBlock const &lumi, edm::EventSetup const &setup)
 
virtual void endRun (edm::Run const &run, 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

◆ 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 36 of file HGCDigiProducer.h.

Referenced by accumulate(), and HGCDigiProducer().

◆ premixStage2_

bool HGCDigiProducer::premixStage2_
private

Definition at line 36 of file HGCDigiProducer.h.

◆ randomEngine_

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

Definition at line 38 of file HGCDigiProducer.h.

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

◆ theDigitizer_

HGCDigitizer HGCDigiProducer::theDigitizer_
private

Definition at line 37 of file HGCDigiProducer.h.

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

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:76
edm::SortedCollection
Definition: SortedCollection.h:49
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:343
HGCDigiProducer::premixStage1_
bool premixStage1_
Definition: HGCDigiProducer.h:36
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:365
HGCDigiProducer::theDigitizer_
HGCDigitizer theDigitizer_
Definition: HGCDigiProducer.h:37
HGCDigitizer::finalizeEvent
void finalizeEvent(edm::Event &e, edm::EventSetup const &c, CLHEP::HepRandomEngine *hre)
Definition: HGCDigitizer.cc:299
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:269
event
Definition: event.py:1
muonDTDigis_cfi.pset
pset
Definition: muonDTDigis_cfi.py:27
HGCDigiProducer::randomEngine_
CLHEP::HepRandomEngine * randomEngine_
Definition: HGCDigiProducer.h:38