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
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::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 43 of file DataMixingHcalDigiWorkerProd.h.

Constructor & Destructor Documentation

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_, 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 
65  myHcalDigitizer_->setHBHENoiseSignalGenerator(&theHBHESignalGenerator);
66  myHcalDigitizer_->setHFNoiseSignalGenerator(&theHFSignalGenerator);
67  myHcalDigitizer_->setHONoiseSignalGenerator(&theHOSignalGenerator);
68  myHcalDigitizer_->setZDCNoiseSignalGenerator(&theZDCSignalGenerator);
69  myHcalDigitizer_->setQIE10NoiseSignalGenerator(&theQIE10SignalGenerator);
70  myHcalDigitizer_->setQIE11NoiseSignalGenerator(&theQIE11SignalGenerator);
71  }
EDGetTokenT< ProductType > consumes(edm::InputTag const &tag)
const edm::ESGetToken< HcalDbService, HcalDbRecord > tokDB_
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
T getParameter(std::string const &) const
Definition: ParameterSet.h:303
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 74 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 89 of file DataMixingHcalDigiWorkerProd.cc.

References HcalSignalGenerator< Traits >::fill(), edm::EventPrincipal::id(), 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_
EventID const & id() const
virtual void fill(edm::ModuleCallingContext const *mcc)
#define LogDebug(id)
void DataMixingHcalDigiWorkerProd::addHcalSignals ( const edm::Event e,
const edm::EventSetup ES 
)

Definition at line 84 of file DataMixingHcalDigiWorkerProd.cc.

References HcalDigiProducer::accumulate(), and myHcalDigitizer_.

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

84  {
86 
87  } // 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 76 of file DataMixingHcalDigiWorkerProd.cc.

References HcalDigiProducer::beginRun(), and myHcalDigitizer_.

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

Definition at line 80 of file DataMixingHcalDigiWorkerProd.cc.

References HcalDigiProducer::initializeEvent(), and myHcalDigitizer_.

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

Definition at line 113 of file DataMixingHcalDigiWorkerProd.cc.

References 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

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

Definition at line 74 of file DataMixingHcalDigiWorkerProd.h.

Referenced by DataMixingHcalDigiWorkerProd().

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

Definition at line 68 of file DataMixingHcalDigiWorkerProd.h.

Referenced by DataMixingHcalDigiWorkerProd().

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

Definition at line 77 of file DataMixingHcalDigiWorkerProd.h.

Referenced by DataMixingHcalDigiWorkerProd().

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

Definition at line 70 of file DataMixingHcalDigiWorkerProd.h.

Referenced by DataMixingHcalDigiWorkerProd().

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

Definition at line 76 of file DataMixingHcalDigiWorkerProd.h.

Referenced by DataMixingHcalDigiWorkerProd().

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

Definition at line 69 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 79 of file DataMixingHcalDigiWorkerProd.h.

Referenced by DataMixingHcalDigiWorkerProd().

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

Definition at line 72 of file DataMixingHcalDigiWorkerProd.h.

Referenced by DataMixingHcalDigiWorkerProd().

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

Definition at line 81 of file DataMixingHcalDigiWorkerProd.h.

Referenced by DataMixingHcalDigiWorkerProd().

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

Definition at line 73 of file DataMixingHcalDigiWorkerProd.h.

Referenced by DataMixingHcalDigiWorkerProd().

HBHESignalGenerator edm::DataMixingHcalDigiWorkerProd::theHBHESignalGenerator
private

Definition at line 94 of file DataMixingHcalDigiWorkerProd.h.

Referenced by addHcalPileups(), and DataMixingHcalDigiWorkerProd().

HFSignalGenerator edm::DataMixingHcalDigiWorkerProd::theHFSignalGenerator
private

Definition at line 96 of file DataMixingHcalDigiWorkerProd.h.

Referenced by addHcalPileups(), and DataMixingHcalDigiWorkerProd().

HOSignalGenerator edm::DataMixingHcalDigiWorkerProd::theHOSignalGenerator
private

Definition at line 95 of file DataMixingHcalDigiWorkerProd.h.

Referenced by addHcalPileups(), and DataMixingHcalDigiWorkerProd().

QIE10SignalGenerator edm::DataMixingHcalDigiWorkerProd::theQIE10SignalGenerator
private

Definition at line 98 of file DataMixingHcalDigiWorkerProd.h.

Referenced by addHcalPileups(), and DataMixingHcalDigiWorkerProd().

QIE11SignalGenerator edm::DataMixingHcalDigiWorkerProd::theQIE11SignalGenerator
private

Definition at line 99 of file DataMixingHcalDigiWorkerProd.h.

Referenced by addHcalPileups(), and DataMixingHcalDigiWorkerProd().

ZDCSignalGenerator edm::DataMixingHcalDigiWorkerProd::theZDCSignalGenerator
private

Definition at line 97 of file DataMixingHcalDigiWorkerProd.h.

Referenced by addHcalPileups(), and DataMixingHcalDigiWorkerProd().

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

Definition at line 84 of file DataMixingHcalDigiWorkerProd.h.

Referenced by DataMixingHcalDigiWorkerProd().

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

Definition at line 86 of file DataMixingHcalDigiWorkerProd.h.

Referenced by DataMixingHcalDigiWorkerProd().

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

Definition at line 85 of file DataMixingHcalDigiWorkerProd.h.

Referenced by DataMixingHcalDigiWorkerProd().

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

Definition at line 88 of file DataMixingHcalDigiWorkerProd.h.

Referenced by DataMixingHcalDigiWorkerProd().

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

Definition at line 89 of file DataMixingHcalDigiWorkerProd.h.

Referenced by DataMixingHcalDigiWorkerProd().

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

Definition at line 87 of file DataMixingHcalDigiWorkerProd.h.

Referenced by DataMixingHcalDigiWorkerProd().

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

Definition at line 91 of file DataMixingHcalDigiWorkerProd.h.

Referenced by addHcalPileups().

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

Definition at line 78 of file DataMixingHcalDigiWorkerProd.h.

Referenced by DataMixingHcalDigiWorkerProd().

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

Definition at line 71 of file DataMixingHcalDigiWorkerProd.h.

Referenced by DataMixingHcalDigiWorkerProd().