CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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::ProducesCollector, edm::ConsumesCollector &iC)
 
 HcalDigiProducer (edm::ParameterSet const &pset, 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 ()
 
 DigiAccumulatorMixMod (DigiAccumulatorMixMod const &)=delete
 
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)
 
DigiAccumulatorMixMod const & operator= (DigiAccumulatorMixMod const &)=delete
 
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::HcalDigiProducer ( edm::ParameterSet const &  pset,
edm::ProducesCollector  producesCollector,
edm::ConsumesCollector iC 
)

Definition at line 7 of file HcalDigiProducer.cc.

References edm::ParameterSet::getParameter(), and edm::ProducesCollector::produces().

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 }
std::vector< PCaloHit > PCaloHitContainer
std::vector< CaloSamples > CaloSamplesCollection
Definition: CaloSamples.h:99
ProductRegistryHelper::BranchAliasSetterT< ProductType > produces()
HcalDigitizer theDigitizer_
HcalDigiProducer::HcalDigiProducer ( edm::ParameterSet const &  pset,
edm::ConsumesCollector iC 
)

Member Function Documentation

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

Implements DigiAccumulatorMixMod.

Definition at line 39 of file HcalDigiProducer.cc.

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

Referenced by edm::DataMixingHcalDigiWorkerProd::addHcalSignals(), and PreMixingHcalWorker::addSignals().

39  {
41 }
void accumulate(edm::Event const &e, edm::EventSetup const &c, CLHEP::HepRandomEngine *)
HcalDigitizer theDigitizer_
CLHEP::HepRandomEngine * randomEngine_
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.

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

45  {
47 }
void accumulate(edm::Event const &e, edm::EventSetup const &c, CLHEP::HepRandomEngine *)
HcalDigitizer theDigitizer_
CLHEP::HepRandomEngine * randomEngine_
void HcalDigiProducer::beginRun ( edm::Run const &  ,
edm::EventSetup const &  es 
)
overridevirtual

Reimplemented from DigiAccumulatorMixMod.

Definition at line 49 of file HcalDigiProducer.cc.

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

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

Reimplemented from DigiAccumulatorMixMod.

Definition at line 51 of file HcalDigiProducer.cc.

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

Implements DigiAccumulatorMixMod.

Definition at line 34 of file HcalDigiProducer.cc.

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

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

34  {
36  randomEngine_ = nullptr; // to prevent access outside event
37 }
HcalDigitizer theDigitizer_
CLHEP::HepRandomEngine * randomEngine_
void finalizeEvent(edm::Event &e, edm::EventSetup const &c, CLHEP::HepRandomEngine *)
void HcalDigiProducer::initializeEvent ( edm::Event const &  event,
edm::EventSetup const &  es 
)
overridevirtual

Implements DigiAccumulatorMixMod.

Definition at line 28 of file HcalDigiProducer.cc.

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

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

28  {
30  randomEngine_ = &rng->getEngine(event.streamID());
32 }
virtual CLHEP::HepRandomEngine & getEngine(StreamID const &)=0
Use this engine in event methods.
void initializeEvent(edm::Event const &e, edm::EventSetup const &c)
HcalDigitizer theDigitizer_
CLHEP::HepRandomEngine * randomEngine_
void HcalDigiProducer::setHBHENoiseSignalGenerator ( HcalBaseSignalGenerator noiseGenerator)

Definition at line 53 of file HcalDigiProducer.cc.

References HcalDigitizer::setHBHENoiseSignalGenerator(), and theDigitizer_.

Referenced by PreMixingHcalWorker::PreMixingHcalWorker().

53  {
55 }
HcalDigitizer theDigitizer_
void setHBHENoiseSignalGenerator(HcalBaseSignalGenerator *noiseGenerator)
void HcalDigiProducer::setHFNoiseSignalGenerator ( HcalBaseSignalGenerator noiseGenerator)

Definition at line 57 of file HcalDigiProducer.cc.

References HcalDigitizer::setHFNoiseSignalGenerator(), and theDigitizer_.

Referenced by PreMixingHcalWorker::PreMixingHcalWorker().

57  {
59 }
void setHFNoiseSignalGenerator(HcalBaseSignalGenerator *noiseGenerator)
HcalDigitizer theDigitizer_
void HcalDigiProducer::setHONoiseSignalGenerator ( HcalBaseSignalGenerator noiseGenerator)

Definition at line 61 of file HcalDigiProducer.cc.

References HcalDigitizer::setHONoiseSignalGenerator(), and theDigitizer_.

Referenced by PreMixingHcalWorker::PreMixingHcalWorker().

61  {
63 }
HcalDigitizer theDigitizer_
void setHONoiseSignalGenerator(HcalBaseSignalGenerator *noiseGenerator)
void HcalDigiProducer::setQIE10NoiseSignalGenerator ( HcalBaseSignalGenerator noiseGenerator)

Definition at line 69 of file HcalDigiProducer.cc.

References HcalDigitizer::setQIE10NoiseSignalGenerator(), and theDigitizer_.

Referenced by PreMixingHcalWorker::PreMixingHcalWorker().

69  {
71 }
void setQIE10NoiseSignalGenerator(HcalBaseSignalGenerator *noiseGenerator)
HcalDigitizer theDigitizer_
void HcalDigiProducer::setQIE11NoiseSignalGenerator ( HcalBaseSignalGenerator noiseGenerator)

Definition at line 73 of file HcalDigiProducer.cc.

References HcalDigitizer::setQIE11NoiseSignalGenerator(), and theDigitizer_.

Referenced by PreMixingHcalWorker::PreMixingHcalWorker().

73  {
75 }
void setQIE11NoiseSignalGenerator(HcalBaseSignalGenerator *noiseGenerator)
HcalDigitizer theDigitizer_
void HcalDigiProducer::setZDCNoiseSignalGenerator ( HcalBaseSignalGenerator noiseGenerator)

Definition at line 65 of file HcalDigiProducer.cc.

References HcalDigitizer::setZDCNoiseSignalGenerator(), and theDigitizer_.

Referenced by PreMixingHcalWorker::PreMixingHcalWorker().

65  {
67 }
void setZDCNoiseSignalGenerator(HcalBaseSignalGenerator *noiseGenerator)
HcalDigitizer theDigitizer_

Member Data Documentation

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

Definition at line 43 of file HcalDigiProducer.h.

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

HcalDigitizer HcalDigiProducer::theDigitizer_
private