CMS 3D CMS Logo

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

#include <HcalDigiProducer.h>

Inheritance diagram for HcalDigiProducer:
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
 
 HcalDigiProducer (edm::ParameterSet const &pset, edm::ConsumesCollector &iC)
 
 HcalDigiProducer (edm::ParameterSet const &pset, edm::ProducesCollector, edm::ConsumesCollector &iC)
 
void initializeEvent (edm::Event const &, edm::EventSetup const &) override
 
void setHBHENoiseSignalGenerator (HcalBaseSignalGenerator *noiseGenerator)
 
void setHFNoiseSignalGenerator (HcalBaseSignalGenerator *noiseGenerator)
 
void setHONoiseSignalGenerator (HcalBaseSignalGenerator *noiseGenerator)
 
void setQIE10NoiseSignalGenerator (HcalBaseSignalGenerator *noiseGenerator)
 
void setQIE11NoiseSignalGenerator (HcalBaseSignalGenerator *noiseGenerator)
 
void setZDCNoiseSignalGenerator (HcalBaseSignalGenerator *noiseGenerator)
 
- 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_ = nullptr
 
HcalDigitizer theDigitizer_
 

Detailed Description

Definition at line 20 of file HcalDigiProducer.h.

Constructor & Destructor Documentation

◆ HcalDigiProducer() [1/2]

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

Definition at line 7 of file HcalDigiProducer.cc.

11  producesCollector.produces<HBHEDigiCollection>();
12  producesCollector.produces<HODigiCollection>();
13  producesCollector.produces<HFDigiCollection>();
14  producesCollector.produces<ZDCDigiCollection>();
15  producesCollector.produces<QIE10DigiCollection>("HFQIE10DigiCollection");
16  producesCollector.produces<QIE11DigiCollection>("HBHEQIE11DigiCollection");
17  if (pset.getParameter<bool>("debugCaloSamples")) {
18  producesCollector.produces<CaloSamplesCollection>("HcalSamples");
19  }
20  if (pset.getParameter<bool>("injectTestHits")) {
21  producesCollector.produces<edm::PCaloHitContainer>("HcalHits");
22  }
23 }

References edm::ProducesCollector::produces(), and muonDTDigis_cfi::pset.

◆ HcalDigiProducer() [2/2]

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

Definition at line 25 of file HcalDigiProducer.cc.

Member Function Documentation

◆ accumulate() [1/2]

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

◆ accumulate() [2/2]

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

Implements DigiAccumulatorMixMod.

Definition at line 43 of file HcalDigiProducer.cc.

45  {
47 }

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

◆ beginRun()

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

Reimplemented from DigiAccumulatorMixMod.

Definition at line 49 of file HcalDigiProducer.cc.

49 {}

Referenced by PreMixingHcalWorker::beginRun(), and edm::DataMixingHcalDigiWorkerProd::beginRun().

◆ endRun()

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

Reimplemented from DigiAccumulatorMixMod.

Definition at line 51 of file HcalDigiProducer.cc.

51 {}

◆ finalizeEvent()

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

Implements DigiAccumulatorMixMod.

Definition at line 34 of file HcalDigiProducer.cc.

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

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

Referenced by PreMixingHcalWorker::put(), and edm::DataMixingHcalDigiWorkerProd::putHcal().

◆ initializeEvent()

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

◆ setHBHENoiseSignalGenerator()

void HcalDigiProducer::setHBHENoiseSignalGenerator ( HcalBaseSignalGenerator noiseGenerator)

◆ setHFNoiseSignalGenerator()

void HcalDigiProducer::setHFNoiseSignalGenerator ( HcalBaseSignalGenerator noiseGenerator)

◆ setHONoiseSignalGenerator()

void HcalDigiProducer::setHONoiseSignalGenerator ( HcalBaseSignalGenerator noiseGenerator)

◆ setQIE10NoiseSignalGenerator()

void HcalDigiProducer::setQIE10NoiseSignalGenerator ( HcalBaseSignalGenerator noiseGenerator)

◆ setQIE11NoiseSignalGenerator()

void HcalDigiProducer::setQIE11NoiseSignalGenerator ( HcalBaseSignalGenerator noiseGenerator)

◆ setZDCNoiseSignalGenerator()

void HcalDigiProducer::setZDCNoiseSignalGenerator ( HcalBaseSignalGenerator noiseGenerator)

Member Data Documentation

◆ randomEngine_

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

Definition at line 43 of file HcalDigiProducer.h.

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

◆ theDigitizer_

HcalDigitizer HcalDigiProducer::theDigitizer_
private
edm::RandomNumberGenerator::getEngine
virtual CLHEP::HepRandomEngine & getEngine(StreamID const &)=0
Use this engine in event methods.
HcalDigitizer::accumulate
void accumulate(edm::Event const &e, edm::EventSetup const &c, CLHEP::HepRandomEngine *)
Definition: HcalDigitizer.cc:415
HcalDigitizer::setQIE11NoiseSignalGenerator
void setQIE11NoiseSignalGenerator(HcalBaseSignalGenerator *noiseGenerator)
Definition: HcalDigitizer.cc:252
HcalDataFrameContainer
Definition: HcalDigiCollections.h:35
edm::SortedCollection
Definition: SortedCollection.h:49
HcalDigitizer::setHONoiseSignalGenerator
void setHONoiseSignalGenerator(HcalBaseSignalGenerator *noiseGenerator)
Definition: HcalDigitizer.cc:276
HcalDigitizer::setZDCNoiseSignalGenerator
void setZDCNoiseSignalGenerator(HcalBaseSignalGenerator *noiseGenerator)
Definition: HcalDigitizer.cc:286
HcalDigitizer::setHBHENoiseSignalGenerator
void setHBHENoiseSignalGenerator(HcalBaseSignalGenerator *noiseGenerator)
Definition: HcalDigitizer.cc:244
HcalDigiProducer::randomEngine_
CLHEP::HepRandomEngine * randomEngine_
Definition: HcalDigiProducer.h:43
DigiAccumulatorMixMod::DigiAccumulatorMixMod
DigiAccumulatorMixMod()
Definition: DigiAccumulatorMixMod.cc:3
HcalDigiProducer::theDigitizer_
HcalDigitizer theDigitizer_
Definition: HcalDigiProducer.h:41
HcalDigitizer::finalizeEvent
void finalizeEvent(edm::Event &e, edm::EventSetup const &c, CLHEP::HepRandomEngine *)
Definition: HcalDigitizer.cc:455
HcalDigitizer::setQIE10NoiseSignalGenerator
void setQIE10NoiseSignalGenerator(HcalBaseSignalGenerator *noiseGenerator)
Definition: HcalDigitizer.cc:268
edm::Service< edm::RandomNumberGenerator >
edm::ProducesCollector::produces
ProductRegistryHelper::BranchAliasSetterT< ProductType > produces()
Definition: ProducesCollector.h:52
HcalDigitizer::setHFNoiseSignalGenerator
void setHFNoiseSignalGenerator(HcalBaseSignalGenerator *noiseGenerator)
Definition: HcalDigitizer.cc:260
edm::PCaloHitContainer
std::vector< PCaloHit > PCaloHitContainer
Definition: PCaloHitContainer.h:8
HcalDigitizer::initializeEvent
void initializeEvent(edm::Event const &e, edm::EventSetup const &c)
Definition: HcalDigitizer.cc:293
CaloSamplesCollection
std::vector< CaloSamples > CaloSamplesCollection
Definition: CaloSamples.h:99
event
Definition: event.py:1
muonDTDigis_cfi.pset
pset
Definition: muonDTDigis_cfi.py:27