CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
edm::DataMixingHcalDigiWorkerProd Class Reference

#include <DataMixingHcalDigiWorkerProd.h>

Public Member Functions

void addHcalPileups (const int bcr, const edm::EventPrincipal *, unsigned int EventId, const edm::EventSetup &ES, edm::ModuleCallingContext const *)
 
void addHcalSignals (const edm::Event &e, const edm::EventSetup &ES)
 
void beginRun (const edm::Run &run, const edm::EventSetup &ES)
 
 DataMixingHcalDigiWorkerProd (const edm::ParameterSet &ps, edm::ConsumesCollector &&iC, const edm::ESGetToken< HcalDbService, HcalDbRecord > &)
 
void initializeEvent (const edm::Event &e, const edm::EventSetup &ES)
 
void putHcal (edm::Event &e, const edm::EventSetup &ES)
 
virtual ~DataMixingHcalDigiWorkerProd ()
 

Private Attributes

std::string HBHEDigiCollectionDM_
 
edm::InputTag HBHEPileInputTag_
 
std::string HFDigiCollectionDM_
 
edm::InputTag HFPileInputTag_
 
std::string HODigiCollectionDM_
 
edm::InputTag HOPileInputTag_
 
std::string label_
 
HcalDigiProducermyHcalDigitizer_
 
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 43 of file DataMixingHcalDigiWorkerProd.h.

Constructor & Destructor Documentation

◆ DataMixingHcalDigiWorkerProd()

DataMixingHcalDigiWorkerProd::DataMixingHcalDigiWorkerProd ( const edm::ParameterSet ps,
edm::ConsumesCollector &&  iC,
const edm::ESGetToken< HcalDbService, HcalDbRecord > &  tok 
)
explicit

standard constructor

Definition at line 19 of file DataMixingHcalDigiWorkerProd.cc.

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

22  : HBHEPileInputTag_(ps.getParameter<edm::InputTag>("HBHEPileInputTag")),
23  HOPileInputTag_(ps.getParameter<edm::InputTag>("HOPileInputTag")),
24  HFPileInputTag_(ps.getParameter<edm::InputTag>("HFPileInputTag")),
25  ZDCPileInputTag_(ps.getParameter<edm::InputTag>("ZDCPileInputTag")),
26  QIE10PileInputTag_(ps.getParameter<edm::InputTag>("QIE10PileInputTag")),
27  QIE11PileInputTag_(ps.getParameter<edm::InputTag>("QIE11PileInputTag")),
28  tokDB_(tok),
29  label_(ps.getParameter<std::string>("Label")) {
30  //
37 
44 
45  // get the subdetector names
46  // this->getSubdetectorNames(); //something like this may be useful to
47  // check what we are supposed to do...
48 
49  // declare the products to produce
50 
51  // Hcal
52  // Signal inputs now handled by HcalDigitizer - gets pSimHits directly
53 
54  HBHEDigiCollectionDM_ = ps.getParameter<std::string>("HBHEDigiCollectionDM");
55  HODigiCollectionDM_ = ps.getParameter<std::string>("HODigiCollectionDM");
56  HFDigiCollectionDM_ = ps.getParameter<std::string>("HFDigiCollectionDM");
57  ZDCDigiCollectionDM_ = ps.getParameter<std::string>("ZDCDigiCollectionDM");
58  QIE10DigiCollectionDM_ = ps.getParameter<std::string>("QIE10DigiCollectionDM");
59  QIE11DigiCollectionDM_ = ps.getParameter<std::string>("QIE11DigiCollectionDM");
60 
61  // initialize HcalDigitizer here...
62 
63  myHcalDigitizer_ = new HcalDigiProducer(ps, iC);
64 
71  }
EDGetTokenT< ProductType > consumes(edm::InputTag const &tag)
const edm::ESGetToken< HcalDbService, HcalDbRecord > tokDB_
T getParameter(std::string const &) const
Definition: ParameterSet.h:307
HcalSignalGenerator< HcalQIE10DigitizerTraits > QIE10SignalGenerator
HcalSignalGenerator< HcalQIE11DigitizerTraits > QIE11SignalGenerator
edm::EDGetTokenT< HODigitizerTraits::DigiCollection > tok_ho_
edm::EDGetTokenT< ZDCDigitizerTraits::DigiCollection > tok_zdc_
void setQIE10NoiseSignalGenerator(HcalBaseSignalGenerator *noiseGenerator)
edm::EDGetTokenT< HFDigitizerTraits::DigiCollection > tok_hf_
void setQIE11NoiseSignalGenerator(HcalBaseSignalGenerator *noiseGenerator)
edm::EDGetTokenT< HBHEDigitizerTraits::DigiCollection > tok_hbhe_
HcalSignalGenerator< HFDigitizerTraits > HFSignalGenerator
void setZDCNoiseSignalGenerator(HcalBaseSignalGenerator *noiseGenerator)
HcalSignalGenerator< HODigitizerTraits > HOSignalGenerator
HcalSignalGenerator< ZDCDigitizerTraits > ZDCSignalGenerator
edm::EDGetTokenT< HcalQIE11DigitizerTraits::DigiCollection > tok_qie11_
HcalSignalGenerator< HBHEDigitizerTraits > HBHESignalGenerator
void setHONoiseSignalGenerator(HcalBaseSignalGenerator *noiseGenerator)
void setHFNoiseSignalGenerator(HcalBaseSignalGenerator *noiseGenerator)
void setHBHENoiseSignalGenerator(HcalBaseSignalGenerator *noiseGenerator)
edm::EDGetTokenT< HcalQIE10DigitizerTraits::DigiCollection > tok_qie10_

◆ ~DataMixingHcalDigiWorkerProd()

DataMixingHcalDigiWorkerProd::~DataMixingHcalDigiWorkerProd ( )
virtual

Default destructor

Definition at line 74 of file DataMixingHcalDigiWorkerProd.cc.

References myHcalDigitizer_.

Member Function Documentation

◆ addHcalPileups()

void DataMixingHcalDigiWorkerProd::addHcalPileups ( const int  bcr,
const edm::EventPrincipal ep,
unsigned int  EventId,
const edm::EventSetup ES,
edm::ModuleCallingContext const *  mcc 
)

Definition at line 89 of file DataMixingHcalDigiWorkerProd.cc.

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

Referenced by edm::DataMixingModule::pileWorker().

93  {
94  LogDebug("DataMixingHcalDigiWorkerProd")
95  << "\n===============> adding pileups from event " << ep->id() << " for bunchcrossing " << bcr;
96 
103 
104  // put digis from pileup event into digitizer
105 
111  }
void initializeEvent(const edm::Event *event, const edm::EventSetup *eventSetup, const edm::ESGetToken< HcalDbService, HcalDbRecord > &tok)
const edm::ESGetToken< HcalDbService, HcalDbRecord > tokDB_
virtual void fill(edm::ModuleCallingContext const *mcc)
#define LogDebug(id)

◆ addHcalSignals()

void DataMixingHcalDigiWorkerProd::addHcalSignals ( const edm::Event e,
const edm::EventSetup ES 
)

Definition at line 84 of file DataMixingHcalDigiWorkerProd.cc.

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

Referenced by edm::DataMixingModule::addSignals().

84  {
86 
87  } // end of addHcalSignals
void accumulate(edm::Event const &, edm::EventSetup const &) override

◆ beginRun()

void DataMixingHcalDigiWorkerProd::beginRun ( const edm::Run run,
const edm::EventSetup ES 
)

Definition at line 76 of file DataMixingHcalDigiWorkerProd.cc.

References HcalDigiProducer::beginRun(), myHcalDigitizer_, and writedatasetfile::run.

76  {
78  }
void beginRun(edm::Run const &, edm::EventSetup const &) override

◆ initializeEvent()

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

◆ putHcal()

void DataMixingHcalDigiWorkerProd::putHcal ( edm::Event e,
const edm::EventSetup ES 
)

Definition at line 113 of file DataMixingHcalDigiWorkerProd.cc.

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

Referenced by edm::DataMixingModule::put().

113  {
114  // Digitize
115  // edm::Service<edm::RandomNumberGenerator> rng;
116  // CLHEP::HepRandomEngine* engine = &rng->getEngine(e.streamID());
117 
118  // myHcalDigitizer_->initializeEvent( e, ES );
119 
120  // myHcalDigitizer_->finalizeEvent( e, ES, engine );
122  }
void finalizeEvent(edm::Event &, edm::EventSetup const &) override

Member Data Documentation

◆ HBHEDigiCollectionDM_

std::string edm::DataMixingHcalDigiWorkerProd::HBHEDigiCollectionDM_
private

Definition at line 74 of file DataMixingHcalDigiWorkerProd.h.

Referenced by DataMixingHcalDigiWorkerProd().

◆ HBHEPileInputTag_

edm::InputTag edm::DataMixingHcalDigiWorkerProd::HBHEPileInputTag_
private

Definition at line 68 of file DataMixingHcalDigiWorkerProd.h.

Referenced by DataMixingHcalDigiWorkerProd().

◆ HFDigiCollectionDM_

std::string edm::DataMixingHcalDigiWorkerProd::HFDigiCollectionDM_
private

Definition at line 77 of file DataMixingHcalDigiWorkerProd.h.

Referenced by DataMixingHcalDigiWorkerProd().

◆ HFPileInputTag_

edm::InputTag edm::DataMixingHcalDigiWorkerProd::HFPileInputTag_
private

Definition at line 70 of file DataMixingHcalDigiWorkerProd.h.

Referenced by DataMixingHcalDigiWorkerProd().

◆ HODigiCollectionDM_

std::string edm::DataMixingHcalDigiWorkerProd::HODigiCollectionDM_
private

Definition at line 76 of file DataMixingHcalDigiWorkerProd.h.

Referenced by DataMixingHcalDigiWorkerProd().

◆ HOPileInputTag_

edm::InputTag edm::DataMixingHcalDigiWorkerProd::HOPileInputTag_
private

Definition at line 69 of file DataMixingHcalDigiWorkerProd.h.

Referenced by DataMixingHcalDigiWorkerProd().

◆ label_

std::string edm::DataMixingHcalDigiWorkerProd::label_
private

◆ myHcalDigitizer_

HcalDigiProducer* edm::DataMixingHcalDigiWorkerProd::myHcalDigitizer_
private

◆ QIE10DigiCollectionDM_

std::string edm::DataMixingHcalDigiWorkerProd::QIE10DigiCollectionDM_
private

Definition at line 79 of file DataMixingHcalDigiWorkerProd.h.

Referenced by DataMixingHcalDigiWorkerProd().

◆ QIE10PileInputTag_

edm::InputTag edm::DataMixingHcalDigiWorkerProd::QIE10PileInputTag_
private

Definition at line 72 of file DataMixingHcalDigiWorkerProd.h.

Referenced by DataMixingHcalDigiWorkerProd().

◆ QIE11DigiCollectionDM_

std::string edm::DataMixingHcalDigiWorkerProd::QIE11DigiCollectionDM_
private

Definition at line 81 of file DataMixingHcalDigiWorkerProd.h.

Referenced by DataMixingHcalDigiWorkerProd().

◆ QIE11PileInputTag_

edm::InputTag edm::DataMixingHcalDigiWorkerProd::QIE11PileInputTag_
private

Definition at line 73 of file DataMixingHcalDigiWorkerProd.h.

Referenced by DataMixingHcalDigiWorkerProd().

◆ theHBHESignalGenerator

HBHESignalGenerator edm::DataMixingHcalDigiWorkerProd::theHBHESignalGenerator
private

Definition at line 94 of file DataMixingHcalDigiWorkerProd.h.

Referenced by addHcalPileups(), and DataMixingHcalDigiWorkerProd().

◆ theHFSignalGenerator

HFSignalGenerator edm::DataMixingHcalDigiWorkerProd::theHFSignalGenerator
private

Definition at line 96 of file DataMixingHcalDigiWorkerProd.h.

Referenced by addHcalPileups(), and DataMixingHcalDigiWorkerProd().

◆ theHOSignalGenerator

HOSignalGenerator edm::DataMixingHcalDigiWorkerProd::theHOSignalGenerator
private

Definition at line 95 of file DataMixingHcalDigiWorkerProd.h.

Referenced by addHcalPileups(), and DataMixingHcalDigiWorkerProd().

◆ theQIE10SignalGenerator

QIE10SignalGenerator edm::DataMixingHcalDigiWorkerProd::theQIE10SignalGenerator
private

Definition at line 98 of file DataMixingHcalDigiWorkerProd.h.

Referenced by addHcalPileups(), and DataMixingHcalDigiWorkerProd().

◆ theQIE11SignalGenerator

QIE11SignalGenerator edm::DataMixingHcalDigiWorkerProd::theQIE11SignalGenerator
private

Definition at line 99 of file DataMixingHcalDigiWorkerProd.h.

Referenced by addHcalPileups(), and DataMixingHcalDigiWorkerProd().

◆ theZDCSignalGenerator

ZDCSignalGenerator edm::DataMixingHcalDigiWorkerProd::theZDCSignalGenerator
private

Definition at line 97 of file DataMixingHcalDigiWorkerProd.h.

Referenced by addHcalPileups(), and DataMixingHcalDigiWorkerProd().

◆ tok_hbhe_

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

Definition at line 84 of file DataMixingHcalDigiWorkerProd.h.

Referenced by DataMixingHcalDigiWorkerProd().

◆ tok_hf_

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

Definition at line 86 of file DataMixingHcalDigiWorkerProd.h.

Referenced by DataMixingHcalDigiWorkerProd().

◆ tok_ho_

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

Definition at line 85 of file DataMixingHcalDigiWorkerProd.h.

Referenced by DataMixingHcalDigiWorkerProd().

◆ tok_qie10_

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

Definition at line 88 of file DataMixingHcalDigiWorkerProd.h.

Referenced by DataMixingHcalDigiWorkerProd().

◆ tok_qie11_

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

Definition at line 89 of file DataMixingHcalDigiWorkerProd.h.

Referenced by DataMixingHcalDigiWorkerProd().

◆ tok_zdc_

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

Definition at line 87 of file DataMixingHcalDigiWorkerProd.h.

Referenced by DataMixingHcalDigiWorkerProd().

◆ tokDB_

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

Definition at line 91 of file DataMixingHcalDigiWorkerProd.h.

Referenced by addHcalPileups().

◆ ZDCDigiCollectionDM_

std::string edm::DataMixingHcalDigiWorkerProd::ZDCDigiCollectionDM_
private

Definition at line 78 of file DataMixingHcalDigiWorkerProd.h.

Referenced by DataMixingHcalDigiWorkerProd().

◆ ZDCPileInputTag_

edm::InputTag edm::DataMixingHcalDigiWorkerProd::ZDCPileInputTag_
private

Definition at line 71 of file DataMixingHcalDigiWorkerProd.h.

Referenced by DataMixingHcalDigiWorkerProd().