test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros 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)
 
void initializeEvent (const edm::Event &e, const edm::EventSetup &ES)
 
void putHcal (edm::Event &e, const edm::EventSetup &ES)
 
void setHBHEAccess (edm::EDGetTokenT< HBHEDigitizerTraits::DigiCollection > tok)
 
void setHFAccess (edm::EDGetTokenT< HFDigitizerTraits::DigiCollection > tok)
 
void setHOAccess (edm::EDGetTokenT< HODigitizerTraits::DigiCollection > tok)
 
void setZDCAccess (edm::EDGetTokenT< ZDCDigitizerTraits::DigiCollection > tok)
 
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_
 
HBHESignalGenerator theHBHESignalGenerator
 
HFSignalGenerator theHFSignalGenerator
 
HOSignalGenerator theHOSignalGenerator
 
ZDCSignalGenerator theZDCSignalGenerator
 
edm::EDGetTokenT
< HBHEDigitizerTraits::DigiCollection
tok_hbhe_
 
edm::EDGetTokenT
< HFDigitizerTraits::DigiCollection
tok_hf_
 
edm::EDGetTokenT
< HODigitizerTraits::DigiCollection
tok_ho_
 
edm::EDGetTokenT
< ZDCDigitizerTraits::DigiCollection
tok_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_, AlCaHLTBitMon_QueryRunRegistry::string, theHBHESignalGenerator, theHFSignalGenerator, theHOSignalGenerator, theZDCSignalGenerator, tok_hbhe_, tok_hf_, tok_ho_, tok_zdc_, ZDCDigiCollectionDM_, and ZDCPileInputTag_.

19  :
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  label_(ps.getParameter<std::string>("Label"))
25  {
26 
27  //
32 
37 
38  // get the subdetector names
39  // this->getSubdetectorNames(); //something like this may be useful to check what we are supposed to do...
40 
41  // declare the products to produce
42 
43  // Hcal
44  // Signal inputs now handled by HcalDigitizer - gets pSimHits directly
45 
46  HBHEDigiCollectionDM_ = ps.getParameter<std::string>("HBHEDigiCollectionDM");
47  HODigiCollectionDM_ = ps.getParameter<std::string>("HODigiCollectionDM");
48  HFDigiCollectionDM_ = ps.getParameter<std::string>("HFDigiCollectionDM");
49  ZDCDigiCollectionDM_ = ps.getParameter<std::string>("ZDCDigiCollectionDM");
50 
51  // initialize HcalDigitizer here...
52 
53  myHcalDigitizer_ = new HcalDigiProducer( ps, iC );
54 
55  myHcalDigitizer_->setHBHENoiseSignalGenerator( & theHBHESignalGenerator );
56  myHcalDigitizer_->setHFNoiseSignalGenerator( & theHFSignalGenerator );
57  myHcalDigitizer_->setHONoiseSignalGenerator( & theHOSignalGenerator );
58  myHcalDigitizer_->setZDCNoiseSignalGenerator( & theZDCSignalGenerator );
59 
60  }
EDGetTokenT< ProductType > consumes(edm::InputTag const &tag)
T getParameter(std::string const &) const
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
HcalSignalGenerator< HBHEDigitizerTraits > HBHESignalGenerator
DataMixingHcalDigiWorkerProd::~DataMixingHcalDigiWorkerProd ( )
virtual

Default destructor

Definition at line 63 of file DataMixingHcalDigiWorkerProd.cc.

References myHcalDigitizer_.

63  {
64  delete myHcalDigitizer_;
65  }

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 81 of file DataMixingHcalDigiWorkerProd.cc.

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

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

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

Definition at line 75 of file DataMixingHcalDigiWorkerProd.cc.

References HcalDigiProducer::accumulate(), and myHcalDigitizer_.

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

75  {
76 
78 
79  } // end of addHcalSignals
virtual void accumulate(edm::Event const &, edm::EventSetup const &) override
void DataMixingHcalDigiWorkerProd::beginRun ( const edm::Run run,
const edm::EventSetup ES 
)

Definition at line 67 of file DataMixingHcalDigiWorkerProd.cc.

References HcalDigiProducer::beginRun(), and myHcalDigitizer_.

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

67  {
68  myHcalDigitizer_->beginRun(run, ES);
69  }
virtual void beginRun(edm::Run const &, edm::EventSetup const &) override
void DataMixingHcalDigiWorkerProd::initializeEvent ( const edm::Event e,
const edm::EventSetup ES 
)

Definition at line 71 of file DataMixingHcalDigiWorkerProd.cc.

References HcalDigiProducer::initializeEvent(), and myHcalDigitizer_.

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

71  {
73  }
virtual void initializeEvent(edm::Event const &, edm::EventSetup const &) override
void DataMixingHcalDigiWorkerProd::putHcal ( edm::Event e,
const edm::EventSetup ES 
)

Definition at line 99 of file DataMixingHcalDigiWorkerProd.cc.

References HcalDigiProducer::finalizeEvent(), and myHcalDigitizer_.

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

99  {
100 
101  // Digitize
102  //edm::Service<edm::RandomNumberGenerator> rng;
103  //CLHEP::HepRandomEngine* engine = &rng->getEngine(e.streamID());
104 
105  //myHcalDigitizer_->initializeEvent( e, ES );
106 
107  // myHcalDigitizer_->finalizeEvent( e, ES, engine );
109 
110  }
virtual void finalizeEvent(edm::Event &, edm::EventSetup const &) override
void edm::DataMixingHcalDigiWorkerProd::setHBHEAccess ( edm::EDGetTokenT< HBHEDigitizerTraits::DigiCollection tok)
inline

Definition at line 59 of file DataMixingHcalDigiWorkerProd.h.

References tok_hbhe_.

59 { tok_hbhe_ = tok; }
edm::EDGetTokenT< HBHEDigitizerTraits::DigiCollection > tok_hbhe_
void edm::DataMixingHcalDigiWorkerProd::setHFAccess ( edm::EDGetTokenT< HFDigitizerTraits::DigiCollection tok)
inline

Definition at line 61 of file DataMixingHcalDigiWorkerProd.h.

References tok_hf_.

61 { tok_hf_ = tok; }
edm::EDGetTokenT< HFDigitizerTraits::DigiCollection > tok_hf_
void edm::DataMixingHcalDigiWorkerProd::setHOAccess ( edm::EDGetTokenT< HODigitizerTraits::DigiCollection tok)
inline

Definition at line 60 of file DataMixingHcalDigiWorkerProd.h.

References tok_ho_.

60 { tok_ho_ = tok; }
edm::EDGetTokenT< HODigitizerTraits::DigiCollection > tok_ho_
void edm::DataMixingHcalDigiWorkerProd::setZDCAccess ( edm::EDGetTokenT< ZDCDigitizerTraits::DigiCollection tok)
inline

Definition at line 62 of file DataMixingHcalDigiWorkerProd.h.

References tok_zdc_.

62 { tok_zdc_ = tok; }
edm::EDGetTokenT< ZDCDigitizerTraits::DigiCollection > tok_zdc_

Member Data Documentation

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

Definition at line 78 of file DataMixingHcalDigiWorkerProd.h.

Referenced by DataMixingHcalDigiWorkerProd().

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

Definition at line 74 of file DataMixingHcalDigiWorkerProd.h.

Referenced by DataMixingHcalDigiWorkerProd().

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

Definition at line 80 of file DataMixingHcalDigiWorkerProd.h.

Referenced by DataMixingHcalDigiWorkerProd().

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

Definition at line 76 of file DataMixingHcalDigiWorkerProd.h.

Referenced by DataMixingHcalDigiWorkerProd().

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

Definition at line 79 of file DataMixingHcalDigiWorkerProd.h.

Referenced by DataMixingHcalDigiWorkerProd().

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

Definition at line 75 of file DataMixingHcalDigiWorkerProd.h.

Referenced by DataMixingHcalDigiWorkerProd().

std::string edm::DataMixingHcalDigiWorkerProd::label_
private
HcalDigiProducer* edm::DataMixingHcalDigiWorkerProd::myHcalDigitizer_
private
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().

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

Referenced by DataMixingHcalDigiWorkerProd(), and setHBHEAccess().

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

Definition at line 85 of file DataMixingHcalDigiWorkerProd.h.

Referenced by DataMixingHcalDigiWorkerProd(), and setHFAccess().

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

Definition at line 84 of file DataMixingHcalDigiWorkerProd.h.

Referenced by DataMixingHcalDigiWorkerProd(), and setHOAccess().

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

Definition at line 86 of file DataMixingHcalDigiWorkerProd.h.

Referenced by DataMixingHcalDigiWorkerProd(), and setZDCAccess().

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

Definition at line 81 of file DataMixingHcalDigiWorkerProd.h.

Referenced by DataMixingHcalDigiWorkerProd().

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

Definition at line 77 of file DataMixingHcalDigiWorkerProd.h.

Referenced by DataMixingHcalDigiWorkerProd().