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
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 beginLuminosityBlock (edm::LuminosityBlock const &iLumi, 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)
 
 PreMixingWorker ()=default
 
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::DigiCollection
tok_hbhe_
 
edm::EDGetTokenT
< HFDigitizerTraits::DigiCollection
tok_hf_
 
edm::EDGetTokenT
< HODigitizerTraits::DigiCollection
tok_ho_
 
edm::EDGetTokenT
< HcalQIE10DigitizerTraits::DigiCollection
tok_qie10_
 
edm::EDGetTokenT
< HcalQIE11DigitizerTraits::DigiCollection
tok_qie11_
 
edm::EDGetTokenT
< ZDCDigitizerTraits::DigiCollection
tok_zdc_
 
const edm::ESGetToken
< HcalDbService, HcalDbRecord
tokDB_
 
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 72 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_.

75  : HBHEPileInputTag_(ps.getParameter<edm::InputTag>("HBHEPileInputTag")),
76  HOPileInputTag_(ps.getParameter<edm::InputTag>("HOPileInputTag")),
77  HFPileInputTag_(ps.getParameter<edm::InputTag>("HFPileInputTag")),
78  ZDCPileInputTag_(ps.getParameter<edm::InputTag>("ZDCPileInputTag")),
79  QIE10PileInputTag_(ps.getParameter<edm::InputTag>("QIE10PileInputTag")),
80  QIE11PileInputTag_(ps.getParameter<edm::InputTag>("QIE11PileInputTag")),
81  tokDB_(iC.esConsumes()),
82  myHcalDigitizer_(ps, iC) {
89 
96 
97  // Hcal
98  // Signal inputs now handled by HcalDigitizer - gets pSimHits directly
99 
100  HBHEDigiCollectionDM_ = ps.getParameter<std::string>("HBHEDigiCollectionDM");
101  HODigiCollectionDM_ = ps.getParameter<std::string>("HODigiCollectionDM");
102  HFDigiCollectionDM_ = ps.getParameter<std::string>("HFDigiCollectionDM");
103  ZDCDigiCollectionDM_ = ps.getParameter<std::string>("ZDCDigiCollectionDM");
104  QIE10DigiCollectionDM_ = ps.getParameter<std::string>("QIE10DigiCollectionDM");
105  QIE11DigiCollectionDM_ = ps.getParameter<std::string>("QIE11DigiCollectionDM");
106 
107  producesCollector.produces<HBHEDigiCollection>();
108  producesCollector.produces<HODigiCollection>();
109  producesCollector.produces<HFDigiCollection>();
110  producesCollector.produces<ZDCDigiCollection>();
111 
112  producesCollector.produces<QIE10DigiCollection>("HFQIE10DigiCollection");
113  producesCollector.produces<QIE11DigiCollection>("HBHEQIE11DigiCollection");
114 
115  // initialize HcalDigitizer here...
116  myHcalDigitizer_.setHBHENoiseSignalGenerator(&theHBHESignalGenerator);
122 }
EDGetTokenT< ProductType > consumes(edm::InputTag const &tag)
HBHESignalGenerator theHBHESignalGenerator
std::string ZDCDigiCollectionDM_
HcalSignalGenerator< HcalQIE10DigitizerTraits > QIE10SignalGenerator
HcalSignalGenerator< HcalQIE11DigitizerTraits > QIE11SignalGenerator
ProductRegistryHelper::BranchAliasSetterT< ProductType > produces()
const edm::ESGetToken< HcalDbService, HcalDbRecord > tokDB_
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)
T getParameter(std::string const &) const
Definition: ParameterSet.h:303
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 
)
overridevirtual

Implements PreMixingWorker.

Definition at line 136 of file PreMixingHcalWorker.cc.

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

136  {
137  const auto &ep = pep.principal();
138  LogDebug("PreMixingHcalWorker") << "\n===============> adding pileups from event " << ep.id()
139  << " for bunchcrossing " << pep.bunchCrossing();
140 
147 
148  // put digis from pileup event into digitizer
149 
150  const auto *mcc = pep.moduleCallingContext();
156 }
void initializeEvent(const edm::Event *event, const edm::EventSetup *eventSetup, const edm::ESGetToken< HcalDbService, HcalDbRecord > &tok)
HBHESignalGenerator theHBHESignalGenerator
const edm::ESGetToken< HcalDbService, HcalDbRecord > tokDB_
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
#define LogDebug(id)
void PreMixingHcalWorker::addSignals ( const edm::Event e,
const edm::EventSetup ES 
)
overridevirtual

Implements PreMixingWorker.

Definition at line 132 of file PreMixingHcalWorker.cc.

References HcalDigiProducer::accumulate(), and myHcalDigitizer_.

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

Reimplemented from PreMixingWorker.

Definition at line 124 of file PreMixingHcalWorker.cc.

References HcalDigiProducer::beginRun(), and myHcalDigitizer_.

124  {
125  myHcalDigitizer_.beginRun(run, ES);
126 }
HcalDigiProducer myHcalDigitizer_
void beginRun(edm::Run const &, edm::EventSetup const &) override
void PreMixingHcalWorker::initializeEvent ( const edm::Event e,
const edm::EventSetup ES 
)
overridevirtual

Implements PreMixingWorker.

Definition at line 128 of file PreMixingHcalWorker.cc.

References HcalDigiProducer::initializeEvent(), and myHcalDigitizer_.

128  {
130 }
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 
)
overridevirtual

Implements PreMixingWorker.

Definition at line 158 of file PreMixingHcalWorker.cc.

References HcalDigiProducer::finalizeEvent(), and myHcalDigitizer_.

161  {
163 }
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 63 of file PreMixingHcalWorker.cc.

Referenced by addPileups(), and PreMixingHcalWorker().

HFSignalGenerator PreMixingHcalWorker::theHFSignalGenerator
private

Definition at line 65 of file PreMixingHcalWorker.cc.

Referenced by addPileups(), and PreMixingHcalWorker().

HOSignalGenerator PreMixingHcalWorker::theHOSignalGenerator
private

Definition at line 64 of file PreMixingHcalWorker.cc.

Referenced by addPileups(), and PreMixingHcalWorker().

QIE10SignalGenerator PreMixingHcalWorker::theQIE10SignalGenerator
private

Definition at line 67 of file PreMixingHcalWorker.cc.

Referenced by addPileups(), and PreMixingHcalWorker().

QIE11SignalGenerator PreMixingHcalWorker::theQIE11SignalGenerator
private

Definition at line 68 of file PreMixingHcalWorker.cc.

Referenced by addPileups(), and PreMixingHcalWorker().

ZDCSignalGenerator PreMixingHcalWorker::theZDCSignalGenerator
private

Definition at line 66 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().

const edm::ESGetToken<HcalDbService, HcalDbRecord> PreMixingHcalWorker::tokDB_
private

Definition at line 60 of file PreMixingHcalWorker.cc.

Referenced by addPileups().

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().