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 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::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_
 
const edm::ESGetToken< HcalDbService, HcalDbRecordtokDB_
 
std::string ZDCDigiCollectionDM_
 
edm::InputTag ZDCPileInputTag_
 

Detailed Description

Definition at line 22 of file PreMixingHcalWorker.cc.

Constructor & Destructor Documentation

◆ PreMixingHcalWorker() [1/2]

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...
122 }
EDGetTokenT< ProductType > consumes(edm::InputTag const &tag)
T getParameter(std::string const &) const
Definition: ParameterSet.h:307
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)
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::~PreMixingHcalWorker ( )
overridedefault

◆ PreMixingHcalWorker() [2/2]

PreMixingHcalWorker::PreMixingHcalWorker ( const PreMixingHcalWorker )
delete

Member Function Documentation

◆ addPileups()

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

Implements PreMixingWorker.

Definition at line 136 of file PreMixingHcalWorker.cc.

References PileUpEventPrincipal::bunchCrossing(), ecalHexDisplay_cfg::ep, 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()
edm::ModuleCallingContext const * moduleCallingContext() const
QIE11SignalGenerator theQIE11SignalGenerator
QIE10SignalGenerator theQIE10SignalGenerator
ZDCSignalGenerator theZDCSignalGenerator
HOSignalGenerator theHOSignalGenerator
HFSignalGenerator theHFSignalGenerator
#define LogDebug(id)

◆ addSignals()

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(), MillePedeFileConverter_cfg::e, and myHcalDigitizer_.

132  {
134 }
void accumulate(edm::Event const &, edm::EventSetup const &) override
HcalDigiProducer myHcalDigitizer_

◆ beginRun()

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(), myHcalDigitizer_, and writedatasetfile::run.

124  {
126 }
HcalDigiProducer myHcalDigitizer_
void beginRun(edm::Run const &, edm::EventSetup const &) override

◆ initializeEvent()

void PreMixingHcalWorker::initializeEvent ( const edm::Event e,
const edm::EventSetup ES 
)
overridevirtual

Implements PreMixingWorker.

Definition at line 128 of file PreMixingHcalWorker.cc.

References MillePedeFileConverter_cfg::e, HcalDigiProducer::initializeEvent(), and myHcalDigitizer_.

128  {
130 }
HcalDigiProducer myHcalDigitizer_
void initializeEvent(edm::Event const &, edm::EventSetup const &) override

◆ operator=()

PreMixingHcalWorker& PreMixingHcalWorker::operator= ( const PreMixingHcalWorker )
delete

◆ put()

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 MillePedeFileConverter_cfg::e, HcalDigiProducer::finalizeEvent(), and myHcalDigitizer_.

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

Member Data Documentation

◆ HBHEDigiCollectionDM_

std::string PreMixingHcalWorker::HBHEDigiCollectionDM_
private

Definition at line 43 of file PreMixingHcalWorker.cc.

Referenced by PreMixingHcalWorker().

◆ HBHEPileInputTag_

edm::InputTag PreMixingHcalWorker::HBHEPileInputTag_
private

Definition at line 37 of file PreMixingHcalWorker.cc.

Referenced by PreMixingHcalWorker().

◆ HFDigiCollectionDM_

std::string PreMixingHcalWorker::HFDigiCollectionDM_
private

Definition at line 46 of file PreMixingHcalWorker.cc.

Referenced by PreMixingHcalWorker().

◆ HFPileInputTag_

edm::InputTag PreMixingHcalWorker::HFPileInputTag_
private

Definition at line 39 of file PreMixingHcalWorker.cc.

Referenced by PreMixingHcalWorker().

◆ HODigiCollectionDM_

std::string PreMixingHcalWorker::HODigiCollectionDM_
private

Definition at line 45 of file PreMixingHcalWorker.cc.

Referenced by PreMixingHcalWorker().

◆ HOPileInputTag_

edm::InputTag PreMixingHcalWorker::HOPileInputTag_
private

Definition at line 38 of file PreMixingHcalWorker.cc.

Referenced by PreMixingHcalWorker().

◆ myHcalDigitizer_

HcalDigiProducer PreMixingHcalWorker::myHcalDigitizer_
private

◆ QIE10DigiCollectionDM_

std::string PreMixingHcalWorker::QIE10DigiCollectionDM_
private

Definition at line 48 of file PreMixingHcalWorker.cc.

Referenced by PreMixingHcalWorker().

◆ QIE10PileInputTag_

edm::InputTag PreMixingHcalWorker::QIE10PileInputTag_
private

Definition at line 41 of file PreMixingHcalWorker.cc.

Referenced by PreMixingHcalWorker().

◆ QIE11DigiCollectionDM_

std::string PreMixingHcalWorker::QIE11DigiCollectionDM_
private

Definition at line 50 of file PreMixingHcalWorker.cc.

Referenced by PreMixingHcalWorker().

◆ QIE11PileInputTag_

edm::InputTag PreMixingHcalWorker::QIE11PileInputTag_
private

Definition at line 42 of file PreMixingHcalWorker.cc.

Referenced by PreMixingHcalWorker().

◆ theHBHESignalGenerator

HBHESignalGenerator PreMixingHcalWorker::theHBHESignalGenerator
private

Definition at line 63 of file PreMixingHcalWorker.cc.

Referenced by addPileups(), and PreMixingHcalWorker().

◆ theHFSignalGenerator

HFSignalGenerator PreMixingHcalWorker::theHFSignalGenerator
private

Definition at line 65 of file PreMixingHcalWorker.cc.

Referenced by addPileups(), and PreMixingHcalWorker().

◆ theHOSignalGenerator

HOSignalGenerator PreMixingHcalWorker::theHOSignalGenerator
private

Definition at line 64 of file PreMixingHcalWorker.cc.

Referenced by addPileups(), and PreMixingHcalWorker().

◆ theQIE10SignalGenerator

QIE10SignalGenerator PreMixingHcalWorker::theQIE10SignalGenerator
private

Definition at line 67 of file PreMixingHcalWorker.cc.

Referenced by addPileups(), and PreMixingHcalWorker().

◆ theQIE11SignalGenerator

QIE11SignalGenerator PreMixingHcalWorker::theQIE11SignalGenerator
private

Definition at line 68 of file PreMixingHcalWorker.cc.

Referenced by addPileups(), and PreMixingHcalWorker().

◆ theZDCSignalGenerator

ZDCSignalGenerator PreMixingHcalWorker::theZDCSignalGenerator
private

Definition at line 66 of file PreMixingHcalWorker.cc.

Referenced by addPileups(), and PreMixingHcalWorker().

◆ tok_hbhe_

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

Definition at line 53 of file PreMixingHcalWorker.cc.

Referenced by PreMixingHcalWorker().

◆ tok_hf_

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

Definition at line 55 of file PreMixingHcalWorker.cc.

Referenced by PreMixingHcalWorker().

◆ tok_ho_

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

Definition at line 54 of file PreMixingHcalWorker.cc.

Referenced by PreMixingHcalWorker().

◆ tok_qie10_

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

Definition at line 57 of file PreMixingHcalWorker.cc.

Referenced by PreMixingHcalWorker().

◆ tok_qie11_

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

Definition at line 58 of file PreMixingHcalWorker.cc.

Referenced by PreMixingHcalWorker().

◆ tok_zdc_

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

Definition at line 56 of file PreMixingHcalWorker.cc.

Referenced by PreMixingHcalWorker().

◆ tokDB_

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

Definition at line 60 of file PreMixingHcalWorker.cc.

Referenced by addPileups().

◆ ZDCDigiCollectionDM_

std::string PreMixingHcalWorker::ZDCDigiCollectionDM_
private

Definition at line 47 of file PreMixingHcalWorker.cc.

Referenced by PreMixingHcalWorker().

◆ ZDCPileInputTag_

edm::InputTag PreMixingHcalWorker::ZDCPileInputTag_
private

Definition at line 40 of file PreMixingHcalWorker.cc.

Referenced by PreMixingHcalWorker().