CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
PreMixingHcalWorker Class Reference
Inheritance diagram for PreMixingHcalWorker:
PreMixingWorker

Public Member Functions

void addPileups (const PileUpEventPrincipal &, const edm::EventSetup &ES) override
 
void addSignals (const edm::Event &e, const edm::EventSetup &ES) override
 
void beginRun (const edm::Run &run, const edm::EventSetup &ES) override
 
void initializeEvent (const edm::Event &e, const edm::EventSetup &ES) override
 
PreMixingHcalWorkeroperator= (const PreMixingHcalWorker &)=delete
 
 PreMixingHcalWorker (const edm::ParameterSet &ps, edm::ProducerBase &producer, edm::ConsumesCollector &&iC)
 
 PreMixingHcalWorker (const PreMixingHcalWorker &)=delete
 
void put (edm::Event &e, const edm::EventSetup &ES, std::vector< PileupSummaryInfo > const &ps, int bs) override
 
 ~PreMixingHcalWorker () override=default
 
- Public Member Functions inherited from PreMixingWorker
virtual void addPileups (PileUpEventPrincipal const &pep, edm::EventSetup const &iSetup)=0
 
virtual void addSignals (edm::Event const &iEvent, edm::EventSetup const &iSetup)=0
 
virtual void beginLuminosityBlock (edm::LuminosityBlock const &iLumi, edm::EventSetup const &iSetup)
 
virtual void beginRun (edm::Run const &iRun, edm::EventSetup const &iSetup)
 
virtual void endRun ()
 
virtual void finalizeBunchCrossing (edm::Event &iEvent, edm::EventSetup const &iSetup, int bunchCrossing)
 
virtual void initializeBunchCrossing (edm::Event const &iEvent, edm::EventSetup const &iSetup, int bunchCrossing)
 
virtual void initializeEvent (edm::Event const &iEvent, edm::EventSetup const &iSetup)=0
 
 PreMixingWorker ()=default
 
virtual void put (edm::Event &iEvent, edm::EventSetup const &iSetup, std::vector< PileupSummaryInfo > const &ps, int bunchSpacing)=0
 
virtual ~PreMixingWorker ()=default
 

Private Attributes

std::string HBHEDigiCollectionDM_
 
edm::InputTag HBHEPileInputTag_
 
std::string HFDigiCollectionDM_
 
edm::InputTag HFPileInputTag_
 
std::string HODigiCollectionDM_
 
edm::InputTag HOPileInputTag_
 
HcalDigiProducer myHcalDigitizer_
 
std::string QIE10DigiCollectionDM_
 
edm::InputTag QIE10PileInputTag_
 
std::string QIE11DigiCollectionDM_
 
edm::InputTag QIE11PileInputTag_
 
HBHESignalGenerator theHBHESignalGenerator
 
HFSignalGenerator theHFSignalGenerator
 
HOSignalGenerator theHOSignalGenerator
 
QIE10SignalGenerator theQIE10SignalGenerator
 
QIE11SignalGenerator theQIE11SignalGenerator
 
ZDCSignalGenerator theZDCSignalGenerator
 
edm::EDGetTokenT< HBHEDigitizerTraits::DigiCollectiontok_hbhe_
 
edm::EDGetTokenT< HFDigitizerTraits::DigiCollectiontok_hf_
 
edm::EDGetTokenT< HODigitizerTraits::DigiCollectiontok_ho_
 
edm::EDGetTokenT< HcalQIE10DigitizerTraits::DigiCollectiontok_qie10_
 
edm::EDGetTokenT< HcalQIE11DigitizerTraits::DigiCollectiontok_qie11_
 
edm::EDGetTokenT< ZDCDigitizerTraits::DigiCollectiontok_zdc_
 
std::string ZDCDigiCollectionDM_
 
edm::InputTag ZDCPileInputTag_
 

Detailed Description

Definition at line 22 of file PreMixingHcalWorker.cc.

Constructor & Destructor Documentation

PreMixingHcalWorker::PreMixingHcalWorker ( const edm::ParameterSet ps,
edm::ProducerBase producer,
edm::ConsumesCollector &&  iC 
)

Definition at line 68 of file PreMixingHcalWorker.cc.

References edm::ParameterSet::getParameter(), HBHEDigiCollectionDM_, HBHEPileInputTag_, HFDigiCollectionDM_, HFPileInputTag_, HODigiCollectionDM_, HOPileInputTag_, myHcalDigitizer_, edm::ProductRegistryHelper::produces(), QIE10DigiCollectionDM_, QIE10PileInputTag_, QIE11DigiCollectionDM_, QIE11PileInputTag_, HcalDigiProducer::setHBHENoiseSignalGenerator(), HcalDigiProducer::setHFNoiseSignalGenerator(), HcalDigiProducer::setHONoiseSignalGenerator(), HcalDigiProducer::setQIE10NoiseSignalGenerator(), HcalDigiProducer::setQIE11NoiseSignalGenerator(), HcalDigiProducer::setZDCNoiseSignalGenerator(), AlCaHLTBitMon_QueryRunRegistry::string, theHBHESignalGenerator, theHFSignalGenerator, theHOSignalGenerator, theQIE10SignalGenerator, theQIE11SignalGenerator, theZDCSignalGenerator, tok_hbhe_, tok_hf_, tok_ho_, tok_qie10_, tok_qie11_, tok_zdc_, ZDCDigiCollectionDM_, and ZDCPileInputTag_.

68  :
69  HBHEPileInputTag_(ps.getParameter<edm::InputTag>("HBHEPileInputTag")),
70  HOPileInputTag_(ps.getParameter<edm::InputTag>("HOPileInputTag")),
71  HFPileInputTag_(ps.getParameter<edm::InputTag>("HFPileInputTag")),
72  ZDCPileInputTag_(ps.getParameter<edm::InputTag>("ZDCPileInputTag")),
73  QIE10PileInputTag_(ps.getParameter<edm::InputTag>("QIE10PileInputTag")),
74  QIE11PileInputTag_(ps.getParameter<edm::InputTag>("QIE11PileInputTag")),
75  myHcalDigitizer_(ps, iC)
76 {
83 
90 
91  // Hcal
92  // Signal inputs now handled by HcalDigitizer - gets pSimHits directly
93 
94  HBHEDigiCollectionDM_ = ps.getParameter<std::string>("HBHEDigiCollectionDM");
95  HODigiCollectionDM_ = ps.getParameter<std::string>("HODigiCollectionDM");
96  HFDigiCollectionDM_ = ps.getParameter<std::string>("HFDigiCollectionDM");
97  ZDCDigiCollectionDM_ = ps.getParameter<std::string>("ZDCDigiCollectionDM");
98  QIE10DigiCollectionDM_ = ps.getParameter<std::string>("QIE10DigiCollectionDM");
99  QIE11DigiCollectionDM_ = ps.getParameter<std::string>("QIE11DigiCollectionDM");
100 
101  producer.produces< HBHEDigiCollection >();
102  producer.produces< HODigiCollection >();
103  producer.produces< HFDigiCollection >();
104  producer.produces< ZDCDigiCollection >();
105 
106  producer.produces<QIE10DigiCollection>("HFQIE10DigiCollection");
107  producer.produces<QIE11DigiCollection>("HBHEQIE11DigiCollection");
108 
109  // initialize HcalDigitizer here...
110  myHcalDigitizer_.setHBHENoiseSignalGenerator( & theHBHESignalGenerator );
116 
117 }
BranchAliasSetterT< ProductType > produces()
declare what type of product will make and with which optional label
EDGetTokenT< ProductType > consumes(edm::InputTag const &tag)
T getParameter(std::string const &) const
HBHESignalGenerator theHBHESignalGenerator
std::string ZDCDigiCollectionDM_
HcalSignalGenerator< HcalQIE10DigitizerTraits > QIE10SignalGenerator
HcalSignalGenerator< HcalQIE11DigitizerTraits > QIE11SignalGenerator
void setQIE10NoiseSignalGenerator(HcalBaseSignalGenerator *noiseGenerator)
HcalDigiProducer myHcalDigitizer_
void setQIE11NoiseSignalGenerator(HcalBaseSignalGenerator *noiseGenerator)
edm::EDGetTokenT< ZDCDigitizerTraits::DigiCollection > tok_zdc_
edm::InputTag HFPileInputTag_
edm::EDGetTokenT< HBHEDigitizerTraits::DigiCollection > tok_hbhe_
edm::InputTag HBHEPileInputTag_
edm::InputTag HOPileInputTag_
HcalSignalGenerator< HFDigitizerTraits > HFSignalGenerator
QIE11SignalGenerator theQIE11SignalGenerator
QIE10SignalGenerator theQIE10SignalGenerator
std::string HBHEDigiCollectionDM_
ZDCSignalGenerator theZDCSignalGenerator
edm::InputTag QIE10PileInputTag_
void setZDCNoiseSignalGenerator(HcalBaseSignalGenerator *noiseGenerator)
HcalSignalGenerator< HODigitizerTraits > HOSignalGenerator
edm::EDGetTokenT< HFDigitizerTraits::DigiCollection > tok_hf_
edm::EDGetTokenT< HcalQIE10DigitizerTraits::DigiCollection > tok_qie10_
edm::EDGetTokenT< HcalQIE11DigitizerTraits::DigiCollection > tok_qie11_
HcalSignalGenerator< ZDCDigitizerTraits > ZDCSignalGenerator
HcalSignalGenerator< HBHEDigitizerTraits > HBHESignalGenerator
HOSignalGenerator theHOSignalGenerator
void setHONoiseSignalGenerator(HcalBaseSignalGenerator *noiseGenerator)
void setHFNoiseSignalGenerator(HcalBaseSignalGenerator *noiseGenerator)
void setHBHENoiseSignalGenerator(HcalBaseSignalGenerator *noiseGenerator)
edm::InputTag QIE11PileInputTag_
edm::EDGetTokenT< HODigitizerTraits::DigiCollection > tok_ho_
edm::InputTag ZDCPileInputTag_
HFSignalGenerator theHFSignalGenerator
std::string QIE11DigiCollectionDM_
std::string QIE10DigiCollectionDM_
PreMixingHcalWorker::~PreMixingHcalWorker ( )
overridedefault
PreMixingHcalWorker::PreMixingHcalWorker ( const PreMixingHcalWorker )
delete

Member Function Documentation

void PreMixingHcalWorker::addPileups ( const PileUpEventPrincipal pep,
const edm::EventSetup ES 
)
override

Definition at line 131 of file PreMixingHcalWorker.cc.

References PileUpEventPrincipal::bunchCrossing(), HcalSignalGenerator< Traits >::fill(), HcalSignalGenerator< Traits >::initializeEvent(), LogDebug, PileUpEventPrincipal::moduleCallingContext(), PileUpEventPrincipal::principal(), theHBHESignalGenerator, theHFSignalGenerator, theHOSignalGenerator, theQIE10SignalGenerator, theQIE11SignalGenerator, and theZDCSignalGenerator.

131  {
132  const auto& ep = pep.principal();
133  LogDebug("PreMixingHcalWorker") <<"\n===============> adding pileups from event "<<ep.id()<<" for bunchcrossing "<<pep.bunchCrossing();
134 
141 
142  // put digis from pileup event into digitizer
143 
144  const auto *mcc = pep.moduleCallingContext();
150 }
#define LogDebug(id)
HBHESignalGenerator theHBHESignalGenerator
void initializeEvent(const edm::Event *event, const edm::EventSetup *eventSetup)
virtual void fill(edm::ModuleCallingContext const *mcc)
edm::EventPrincipal const & principal()
QIE11SignalGenerator theQIE11SignalGenerator
QIE10SignalGenerator theQIE10SignalGenerator
ZDCSignalGenerator theZDCSignalGenerator
edm::ModuleCallingContext const * moduleCallingContext() const
HOSignalGenerator theHOSignalGenerator
HFSignalGenerator theHFSignalGenerator
void PreMixingHcalWorker::addSignals ( const edm::Event e,
const edm::EventSetup ES 
)
override

Definition at line 127 of file PreMixingHcalWorker.cc.

References HcalDigiProducer::accumulate(), and myHcalDigitizer_.

127  {
129 }
void accumulate(edm::Event const &, edm::EventSetup const &) override
HcalDigiProducer myHcalDigitizer_
void PreMixingHcalWorker::beginRun ( const edm::Run run,
const edm::EventSetup ES 
)
override

Definition at line 119 of file PreMixingHcalWorker.cc.

References HcalDigiProducer::beginRun(), and myHcalDigitizer_.

119  {
120  myHcalDigitizer_.beginRun(run, ES);
121 }
HcalDigiProducer myHcalDigitizer_
void beginRun(edm::Run const &, edm::EventSetup const &) override
void PreMixingHcalWorker::initializeEvent ( const edm::Event e,
const edm::EventSetup ES 
)
override

Definition at line 123 of file PreMixingHcalWorker.cc.

References HcalDigiProducer::initializeEvent(), and myHcalDigitizer_.

123  {
125 }
HcalDigiProducer myHcalDigitizer_
void initializeEvent(edm::Event const &, edm::EventSetup const &) override
PreMixingHcalWorker& PreMixingHcalWorker::operator= ( const PreMixingHcalWorker )
delete
void PreMixingHcalWorker::put ( edm::Event e,
const edm::EventSetup ES,
std::vector< PileupSummaryInfo > const &  ps,
int  bs 
)
override

Definition at line 152 of file PreMixingHcalWorker.cc.

References DEFINE_PREMIXING_WORKER, HcalDigiProducer::finalizeEvent(), and myHcalDigitizer_.

152  {
154 }
HcalDigiProducer myHcalDigitizer_
void finalizeEvent(edm::Event &, edm::EventSetup const &) override

Member Data Documentation

std::string PreMixingHcalWorker::HBHEDigiCollectionDM_
private

Definition at line 44 of file PreMixingHcalWorker.cc.

Referenced by PreMixingHcalWorker().

edm::InputTag PreMixingHcalWorker::HBHEPileInputTag_
private

Definition at line 38 of file PreMixingHcalWorker.cc.

Referenced by PreMixingHcalWorker().

std::string PreMixingHcalWorker::HFDigiCollectionDM_
private

Definition at line 46 of file PreMixingHcalWorker.cc.

Referenced by PreMixingHcalWorker().

edm::InputTag PreMixingHcalWorker::HFPileInputTag_
private

Definition at line 40 of file PreMixingHcalWorker.cc.

Referenced by PreMixingHcalWorker().

std::string PreMixingHcalWorker::HODigiCollectionDM_
private

Definition at line 45 of file PreMixingHcalWorker.cc.

Referenced by PreMixingHcalWorker().

edm::InputTag PreMixingHcalWorker::HOPileInputTag_
private

Definition at line 39 of file PreMixingHcalWorker.cc.

Referenced by PreMixingHcalWorker().

HcalDigiProducer PreMixingHcalWorker::myHcalDigitizer_
private
std::string PreMixingHcalWorker::QIE10DigiCollectionDM_
private

Definition at line 48 of file PreMixingHcalWorker.cc.

Referenced by PreMixingHcalWorker().

edm::InputTag PreMixingHcalWorker::QIE10PileInputTag_
private

Definition at line 42 of file PreMixingHcalWorker.cc.

Referenced by PreMixingHcalWorker().

std::string PreMixingHcalWorker::QIE11DigiCollectionDM_
private

Definition at line 49 of file PreMixingHcalWorker.cc.

Referenced by PreMixingHcalWorker().

edm::InputTag PreMixingHcalWorker::QIE11PileInputTag_
private

Definition at line 43 of file PreMixingHcalWorker.cc.

Referenced by PreMixingHcalWorker().

HBHESignalGenerator PreMixingHcalWorker::theHBHESignalGenerator
private

Definition at line 59 of file PreMixingHcalWorker.cc.

Referenced by addPileups(), and PreMixingHcalWorker().

HFSignalGenerator PreMixingHcalWorker::theHFSignalGenerator
private

Definition at line 61 of file PreMixingHcalWorker.cc.

Referenced by addPileups(), and PreMixingHcalWorker().

HOSignalGenerator PreMixingHcalWorker::theHOSignalGenerator
private

Definition at line 60 of file PreMixingHcalWorker.cc.

Referenced by addPileups(), and PreMixingHcalWorker().

QIE10SignalGenerator PreMixingHcalWorker::theQIE10SignalGenerator
private

Definition at line 63 of file PreMixingHcalWorker.cc.

Referenced by addPileups(), and PreMixingHcalWorker().

QIE11SignalGenerator PreMixingHcalWorker::theQIE11SignalGenerator
private

Definition at line 64 of file PreMixingHcalWorker.cc.

Referenced by addPileups(), and PreMixingHcalWorker().

ZDCSignalGenerator PreMixingHcalWorker::theZDCSignalGenerator
private

Definition at line 62 of file PreMixingHcalWorker.cc.

Referenced by addPileups(), and PreMixingHcalWorker().

edm::EDGetTokenT<HBHEDigitizerTraits::DigiCollection> PreMixingHcalWorker::tok_hbhe_
private

Definition at line 51 of file PreMixingHcalWorker.cc.

Referenced by PreMixingHcalWorker().

edm::EDGetTokenT<HFDigitizerTraits::DigiCollection> PreMixingHcalWorker::tok_hf_
private

Definition at line 53 of file PreMixingHcalWorker.cc.

Referenced by PreMixingHcalWorker().

edm::EDGetTokenT<HODigitizerTraits::DigiCollection> PreMixingHcalWorker::tok_ho_
private

Definition at line 52 of file PreMixingHcalWorker.cc.

Referenced by PreMixingHcalWorker().

edm::EDGetTokenT<HcalQIE10DigitizerTraits::DigiCollection> PreMixingHcalWorker::tok_qie10_
private

Definition at line 55 of file PreMixingHcalWorker.cc.

Referenced by PreMixingHcalWorker().

edm::EDGetTokenT<HcalQIE11DigitizerTraits::DigiCollection> PreMixingHcalWorker::tok_qie11_
private

Definition at line 56 of file PreMixingHcalWorker.cc.

Referenced by PreMixingHcalWorker().

edm::EDGetTokenT<ZDCDigitizerTraits::DigiCollection> PreMixingHcalWorker::tok_zdc_
private

Definition at line 54 of file PreMixingHcalWorker.cc.

Referenced by PreMixingHcalWorker().

std::string PreMixingHcalWorker::ZDCDigiCollectionDM_
private

Definition at line 47 of file PreMixingHcalWorker.cc.

Referenced by PreMixingHcalWorker().

edm::InputTag PreMixingHcalWorker::ZDCPileInputTag_
private

Definition at line 41 of file PreMixingHcalWorker.cc.

Referenced by PreMixingHcalWorker().