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::ProducesCollector, 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::ProducesCollector  producesCollector,
edm::ConsumesCollector &&  iC 
)

Definition at line 70 of file PreMixingHcalWorker.cc.

References edm::ParameterSet::getParameter(), HBHEDigiCollectionDM_, HBHEPileInputTag_, HFDigiCollectionDM_, HFPileInputTag_, HODigiCollectionDM_, HOPileInputTag_, myHcalDigitizer_, edm::ProducesCollector::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_.

73  : HBHEPileInputTag_(ps.getParameter<edm::InputTag>("HBHEPileInputTag")),
74  HOPileInputTag_(ps.getParameter<edm::InputTag>("HOPileInputTag")),
75  HFPileInputTag_(ps.getParameter<edm::InputTag>("HFPileInputTag")),
76  ZDCPileInputTag_(ps.getParameter<edm::InputTag>("ZDCPileInputTag")),
77  QIE10PileInputTag_(ps.getParameter<edm::InputTag>("QIE10PileInputTag")),
78  QIE11PileInputTag_(ps.getParameter<edm::InputTag>("QIE11PileInputTag")),
79  myHcalDigitizer_(ps, iC) {
86 
93 
94  // Hcal
95  // Signal inputs now handled by HcalDigitizer - gets pSimHits directly
96 
97  HBHEDigiCollectionDM_ = ps.getParameter<std::string>("HBHEDigiCollectionDM");
98  HODigiCollectionDM_ = ps.getParameter<std::string>("HODigiCollectionDM");
99  HFDigiCollectionDM_ = ps.getParameter<std::string>("HFDigiCollectionDM");
100  ZDCDigiCollectionDM_ = ps.getParameter<std::string>("ZDCDigiCollectionDM");
101  QIE10DigiCollectionDM_ = ps.getParameter<std::string>("QIE10DigiCollectionDM");
102  QIE11DigiCollectionDM_ = ps.getParameter<std::string>("QIE11DigiCollectionDM");
103 
104  producesCollector.produces<HBHEDigiCollection>();
105  producesCollector.produces<HODigiCollection>();
106  producesCollector.produces<HFDigiCollection>();
107  producesCollector.produces<ZDCDigiCollection>();
108 
109  producesCollector.produces<QIE10DigiCollection>("HFQIE10DigiCollection");
110  producesCollector.produces<QIE11DigiCollection>("HBHEQIE11DigiCollection");
111 
112  // initialize HcalDigitizer here...
113  myHcalDigitizer_.setHBHENoiseSignalGenerator(&theHBHESignalGenerator);
119 }
EDGetTokenT< ProductType > consumes(edm::InputTag const &tag)
T getParameter(std::string const &) const
HBHESignalGenerator theHBHESignalGenerator
std::string ZDCDigiCollectionDM_
HcalSignalGenerator< HcalQIE10DigitizerTraits > QIE10SignalGenerator
HcalSignalGenerator< HcalQIE11DigitizerTraits > QIE11SignalGenerator
ProductRegistryHelper::BranchAliasSetterT< ProductType > produces()
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 133 of file PreMixingHcalWorker.cc.

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

133  {
134  const auto &ep = pep.principal();
135  LogDebug("PreMixingHcalWorker") << "\n===============> adding pileups from event " << ep.id()
136  << " for bunchcrossing " << pep.bunchCrossing();
137 
144 
145  // put digis from pileup event into digitizer
146 
147  const auto *mcc = pep.moduleCallingContext();
153 }
#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 129 of file PreMixingHcalWorker.cc.

References HcalDigiProducer::accumulate(), and myHcalDigitizer_.

129  {
131 }
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 121 of file PreMixingHcalWorker.cc.

References HcalDigiProducer::beginRun(), and myHcalDigitizer_.

121  {
122  myHcalDigitizer_.beginRun(run, ES);
123 }
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 125 of file PreMixingHcalWorker.cc.

References HcalDigiProducer::initializeEvent(), and myHcalDigitizer_.

125  {
127 }
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 155 of file PreMixingHcalWorker.cc.

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

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

Member Data Documentation

std::string PreMixingHcalWorker::HBHEDigiCollectionDM_
private

Definition at line 43 of file PreMixingHcalWorker.cc.

Referenced by PreMixingHcalWorker().

edm::InputTag PreMixingHcalWorker::HBHEPileInputTag_
private

Definition at line 37 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 39 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 38 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 41 of file PreMixingHcalWorker.cc.

Referenced by PreMixingHcalWorker().

std::string PreMixingHcalWorker::QIE11DigiCollectionDM_
private

Definition at line 50 of file PreMixingHcalWorker.cc.

Referenced by PreMixingHcalWorker().

edm::InputTag PreMixingHcalWorker::QIE11PileInputTag_
private

Definition at line 42 of file PreMixingHcalWorker.cc.

Referenced by PreMixingHcalWorker().

HBHESignalGenerator PreMixingHcalWorker::theHBHESignalGenerator
private

Definition at line 61 of file PreMixingHcalWorker.cc.

Referenced by addPileups(), and PreMixingHcalWorker().

HFSignalGenerator PreMixingHcalWorker::theHFSignalGenerator
private

Definition at line 63 of file PreMixingHcalWorker.cc.

Referenced by addPileups(), and PreMixingHcalWorker().

HOSignalGenerator PreMixingHcalWorker::theHOSignalGenerator
private

Definition at line 62 of file PreMixingHcalWorker.cc.

Referenced by addPileups(), and PreMixingHcalWorker().

QIE10SignalGenerator PreMixingHcalWorker::theQIE10SignalGenerator
private

Definition at line 65 of file PreMixingHcalWorker.cc.

Referenced by addPileups(), and PreMixingHcalWorker().

QIE11SignalGenerator PreMixingHcalWorker::theQIE11SignalGenerator
private

Definition at line 66 of file PreMixingHcalWorker.cc.

Referenced by addPileups(), and PreMixingHcalWorker().

ZDCSignalGenerator PreMixingHcalWorker::theZDCSignalGenerator
private

Definition at line 64 of file PreMixingHcalWorker.cc.

Referenced by addPileups(), and PreMixingHcalWorker().

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

Definition at line 53 of file PreMixingHcalWorker.cc.

Referenced by PreMixingHcalWorker().

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

Definition at line 55 of file PreMixingHcalWorker.cc.

Referenced by PreMixingHcalWorker().

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

Definition at line 54 of file PreMixingHcalWorker.cc.

Referenced by PreMixingHcalWorker().

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

Definition at line 57 of file PreMixingHcalWorker.cc.

Referenced by PreMixingHcalWorker().

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

Definition at line 58 of file PreMixingHcalWorker.cc.

Referenced by PreMixingHcalWorker().

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

Definition at line 56 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 40 of file PreMixingHcalWorker.cc.

Referenced by PreMixingHcalWorker().