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)
 
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_
 
std::string ZDCDigiCollectionDM_
 
edm::InputTag ZDCPileInputTag_
 

Detailed Description

Definition at line 43 of file DataMixingHcalDigiWorkerProd.h.

Constructor & Destructor Documentation

DataMixingHcalDigiWorkerProd::DataMixingHcalDigiWorkerProd ( const edm::ParameterSet ps,
edm::ConsumesCollector &&  iC 
)
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_, AlCaHLTBitMon_QueryRunRegistry::string, theHBHESignalGenerator, theHFSignalGenerator, theHOSignalGenerator, theQIE10SignalGenerator, theQIE11SignalGenerator, theZDCSignalGenerator, tok_hbhe_, tok_hf_, tok_ho_, tok_qie10_, tok_qie11_, tok_zdc_, ZDCDigiCollectionDM_, and ZDCPileInputTag_.

20  : HBHEPileInputTag_(ps.getParameter<edm::InputTag>("HBHEPileInputTag")),
21  HOPileInputTag_(ps.getParameter<edm::InputTag>("HOPileInputTag")),
22  HFPileInputTag_(ps.getParameter<edm::InputTag>("HFPileInputTag")),
23  ZDCPileInputTag_(ps.getParameter<edm::InputTag>("ZDCPileInputTag")),
24  QIE10PileInputTag_(ps.getParameter<edm::InputTag>("QIE10PileInputTag")),
25  QIE11PileInputTag_(ps.getParameter<edm::InputTag>("QIE11PileInputTag")),
26  label_(ps.getParameter<std::string>("Label")) {
27  //
34 
41 
42  // get the subdetector names
43  // this->getSubdetectorNames(); //something like this may be useful to
44  // check what we are supposed to do...
45 
46  // declare the products to produce
47 
48  // Hcal
49  // Signal inputs now handled by HcalDigitizer - gets pSimHits directly
50 
51  HBHEDigiCollectionDM_ = ps.getParameter<std::string>("HBHEDigiCollectionDM");
52  HODigiCollectionDM_ = ps.getParameter<std::string>("HODigiCollectionDM");
53  HFDigiCollectionDM_ = ps.getParameter<std::string>("HFDigiCollectionDM");
54  ZDCDigiCollectionDM_ = ps.getParameter<std::string>("ZDCDigiCollectionDM");
55  QIE10DigiCollectionDM_ = ps.getParameter<std::string>("QIE10DigiCollectionDM");
56  QIE11DigiCollectionDM_ = ps.getParameter<std::string>("QIE11DigiCollectionDM");
57 
58  // initialize HcalDigitizer here...
59 
60  myHcalDigitizer_ = new HcalDigiProducer(ps, iC);
61 
62  myHcalDigitizer_->setHBHENoiseSignalGenerator(&theHBHESignalGenerator);
63  myHcalDigitizer_->setHFNoiseSignalGenerator(&theHFSignalGenerator);
64  myHcalDigitizer_->setHONoiseSignalGenerator(&theHOSignalGenerator);
65  myHcalDigitizer_->setZDCNoiseSignalGenerator(&theZDCSignalGenerator);
66  myHcalDigitizer_->setQIE10NoiseSignalGenerator(&theQIE10SignalGenerator);
67  myHcalDigitizer_->setQIE11NoiseSignalGenerator(&theQIE11SignalGenerator);
68  }
EDGetTokenT< ProductType > consumes(edm::InputTag const &tag)
T getParameter(std::string const &) const
HcalSignalGenerator< HcalQIE10DigitizerTraits > QIE10SignalGenerator
HcalSignalGenerator< HcalQIE11DigitizerTraits > QIE11SignalGenerator
edm::EDGetTokenT< HODigitizerTraits::DigiCollection > tok_ho_
edm::EDGetTokenT< ZDCDigitizerTraits::DigiCollection > tok_zdc_
edm::EDGetTokenT< HFDigitizerTraits::DigiCollection > tok_hf_
edm::EDGetTokenT< HBHEDigitizerTraits::DigiCollection > tok_hbhe_
HcalSignalGenerator< HFDigitizerTraits > HFSignalGenerator
HcalSignalGenerator< HODigitizerTraits > HOSignalGenerator
HcalSignalGenerator< ZDCDigitizerTraits > ZDCSignalGenerator
edm::EDGetTokenT< HcalQIE11DigitizerTraits::DigiCollection > tok_qie11_
HcalSignalGenerator< HBHEDigitizerTraits > HBHESignalGenerator
edm::EDGetTokenT< HcalQIE10DigitizerTraits::DigiCollection > tok_qie10_
DataMixingHcalDigiWorkerProd::~DataMixingHcalDigiWorkerProd ( )
virtual

Default destructor

Definition at line 71 of file DataMixingHcalDigiWorkerProd.cc.

References myHcalDigitizer_.

Member Function Documentation

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

Definition at line 86 of file DataMixingHcalDigiWorkerProd.cc.

References HcalSignalGenerator< Traits >::fill(), edm::EventPrincipal::id(), HcalSignalGenerator< Traits >::initializeEvent(), LogDebug, theHBHESignalGenerator, theHFSignalGenerator, theHOSignalGenerator, theQIE10SignalGenerator, theQIE11SignalGenerator, and theZDCSignalGenerator.

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

90  {
91  LogDebug("DataMixingHcalDigiWorkerProd")
92  << "\n===============> adding pileups from event " << ep->id() << " for bunchcrossing " << bcr;
93 
100 
101  // put digis from pileup event into digitizer
102 
108  }
#define LogDebug(id)
EventID const & id() const
void initializeEvent(const edm::Event *event, const edm::EventSetup *eventSetup)
virtual void fill(edm::ModuleCallingContext const *mcc)
void DataMixingHcalDigiWorkerProd::addHcalSignals ( const edm::Event e,
const edm::EventSetup ES 
)

Definition at line 81 of file DataMixingHcalDigiWorkerProd.cc.

References HcalDigiProducer::accumulate(), and myHcalDigitizer_.

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

81  {
83 
84  } // end of addHcalSignals
void accumulate(edm::Event const &, edm::EventSetup const &) override
void DataMixingHcalDigiWorkerProd::beginRun ( const edm::Run run,
const edm::EventSetup ES 
)

Definition at line 73 of file DataMixingHcalDigiWorkerProd.cc.

References HcalDigiProducer::beginRun(), and myHcalDigitizer_.

73  {
74  myHcalDigitizer_->beginRun(run, ES);
75  }
void beginRun(edm::Run const &, edm::EventSetup const &) override
void DataMixingHcalDigiWorkerProd::initializeEvent ( const edm::Event e,
const edm::EventSetup ES 
)

Definition at line 77 of file DataMixingHcalDigiWorkerProd.cc.

References HcalDigiProducer::initializeEvent(), and myHcalDigitizer_.

77  {
79  }
void initializeEvent(edm::Event const &, edm::EventSetup const &) override
void DataMixingHcalDigiWorkerProd::putHcal ( edm::Event e,
const edm::EventSetup ES 
)

Definition at line 110 of file DataMixingHcalDigiWorkerProd.cc.

References HcalDigiProducer::finalizeEvent(), and myHcalDigitizer_.

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

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

Member Data Documentation

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

Definition at line 72 of file DataMixingHcalDigiWorkerProd.h.

Referenced by DataMixingHcalDigiWorkerProd().

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

Definition at line 66 of file DataMixingHcalDigiWorkerProd.h.

Referenced by DataMixingHcalDigiWorkerProd().

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

Definition at line 75 of file DataMixingHcalDigiWorkerProd.h.

Referenced by DataMixingHcalDigiWorkerProd().

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

Definition at line 68 of file DataMixingHcalDigiWorkerProd.h.

Referenced by DataMixingHcalDigiWorkerProd().

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

Definition at line 74 of file DataMixingHcalDigiWorkerProd.h.

Referenced by DataMixingHcalDigiWorkerProd().

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

Definition at line 67 of file DataMixingHcalDigiWorkerProd.h.

Referenced by DataMixingHcalDigiWorkerProd().

std::string edm::DataMixingHcalDigiWorkerProd::label_
private
HcalDigiProducer* edm::DataMixingHcalDigiWorkerProd::myHcalDigitizer_
private
std::string edm::DataMixingHcalDigiWorkerProd::QIE10DigiCollectionDM_
private

Definition at line 77 of file DataMixingHcalDigiWorkerProd.h.

Referenced by DataMixingHcalDigiWorkerProd().

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

Definition at line 70 of file DataMixingHcalDigiWorkerProd.h.

Referenced by DataMixingHcalDigiWorkerProd().

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

Definition at line 79 of file DataMixingHcalDigiWorkerProd.h.

Referenced by DataMixingHcalDigiWorkerProd().

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

Definition at line 71 of file DataMixingHcalDigiWorkerProd.h.

Referenced by DataMixingHcalDigiWorkerProd().

HBHESignalGenerator edm::DataMixingHcalDigiWorkerProd::theHBHESignalGenerator
private

Definition at line 90 of file DataMixingHcalDigiWorkerProd.h.

Referenced by addHcalPileups(), and DataMixingHcalDigiWorkerProd().

HFSignalGenerator edm::DataMixingHcalDigiWorkerProd::theHFSignalGenerator
private

Definition at line 92 of file DataMixingHcalDigiWorkerProd.h.

Referenced by addHcalPileups(), and DataMixingHcalDigiWorkerProd().

HOSignalGenerator edm::DataMixingHcalDigiWorkerProd::theHOSignalGenerator
private

Definition at line 91 of file DataMixingHcalDigiWorkerProd.h.

Referenced by addHcalPileups(), and DataMixingHcalDigiWorkerProd().

QIE10SignalGenerator edm::DataMixingHcalDigiWorkerProd::theQIE10SignalGenerator
private

Definition at line 94 of file DataMixingHcalDigiWorkerProd.h.

Referenced by addHcalPileups(), and DataMixingHcalDigiWorkerProd().

QIE11SignalGenerator edm::DataMixingHcalDigiWorkerProd::theQIE11SignalGenerator
private

Definition at line 95 of file DataMixingHcalDigiWorkerProd.h.

Referenced by addHcalPileups(), and DataMixingHcalDigiWorkerProd().

ZDCSignalGenerator edm::DataMixingHcalDigiWorkerProd::theZDCSignalGenerator
private

Definition at line 93 of file DataMixingHcalDigiWorkerProd.h.

Referenced by addHcalPileups(), and DataMixingHcalDigiWorkerProd().

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

Definition at line 82 of file DataMixingHcalDigiWorkerProd.h.

Referenced by DataMixingHcalDigiWorkerProd().

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

Definition at line 84 of file DataMixingHcalDigiWorkerProd.h.

Referenced by DataMixingHcalDigiWorkerProd().

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

Definition at line 83 of file DataMixingHcalDigiWorkerProd.h.

Referenced by DataMixingHcalDigiWorkerProd().

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

Definition at line 86 of file DataMixingHcalDigiWorkerProd.h.

Referenced by DataMixingHcalDigiWorkerProd().

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

Definition at line 87 of file DataMixingHcalDigiWorkerProd.h.

Referenced by DataMixingHcalDigiWorkerProd().

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

Definition at line 85 of file DataMixingHcalDigiWorkerProd.h.

Referenced by DataMixingHcalDigiWorkerProd().

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

Definition at line 76 of file DataMixingHcalDigiWorkerProd.h.

Referenced by DataMixingHcalDigiWorkerProd().

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

Definition at line 69 of file DataMixingHcalDigiWorkerProd.h.

Referenced by DataMixingHcalDigiWorkerProd().