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::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_
 
HcalDigitizermyHcalDigitizer_
 
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 16 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_.

16  :
17  HBHEPileInputTag_(ps.getParameter<edm::InputTag>("HBHEPileInputTag")),
18  HOPileInputTag_(ps.getParameter<edm::InputTag>("HOPileInputTag")),
19  HFPileInputTag_(ps.getParameter<edm::InputTag>("HFPileInputTag")),
20  ZDCPileInputTag_(ps.getParameter<edm::InputTag>("ZDCPileInputTag")),
21  label_(ps.getParameter<std::string>("Label"))
22  {
23 
28 
29  // get the subdetector names
30  // this->getSubdetectorNames(); //something like this may be useful to check what we are supposed to do...
31 
32  // declare the products to produce
33 
34  // Hcal
35  // Signal inputs now handled by HcalDigitizer - gets pSimHits directly
36 
37  HBHEDigiCollectionDM_ = ps.getParameter<std::string>("HBHEDigiCollectionDM");
38  HODigiCollectionDM_ = ps.getParameter<std::string>("HODigiCollectionDM");
39  HFDigiCollectionDM_ = ps.getParameter<std::string>("HFDigiCollectionDM");
40  ZDCDigiCollectionDM_ = ps.getParameter<std::string>("ZDCDigiCollectionDM");
41 
42  // initialize HcalDigitizer here...
43 
44  myHcalDigitizer_ = new HcalDigitizer( ps, iC );
45 
46  myHcalDigitizer_->setHBHENoiseSignalGenerator( & theHBHESignalGenerator );
47  myHcalDigitizer_->setHFNoiseSignalGenerator( & theHFSignalGenerator );
48  myHcalDigitizer_->setHONoiseSignalGenerator( & theHOSignalGenerator );
49  myHcalDigitizer_->setZDCNoiseSignalGenerator( & theZDCSignalGenerator );
50 
51  }
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 54 of file DataMixingHcalDigiWorkerProd.cc.

References myHcalDigitizer_.

54  {
55  delete myHcalDigitizer_;
56  }

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 73 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().

74  {
75 
76  LogDebug("DataMixingHcalDigiWorkerProd") <<"\n===============> adding pileups from event "<<ep->id()<<" for bunchcrossing "<<bcr;
77 
78 
83 
84  // put digis from pileup event into digitizer
85 
89  }
#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 67 of file DataMixingHcalDigiWorkerProd.cc.

References HcalDigitizer::accumulate(), and myHcalDigitizer_.

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

67  {
68 
70 
71  } // end of addHcalSignals
void accumulate(edm::Event const &e, edm::EventSetup const &c)
void DataMixingHcalDigiWorkerProd::beginRun ( const edm::EventSetup ES)

Definition at line 58 of file DataMixingHcalDigiWorkerProd.cc.

References HcalDigitizer::beginRun(), and myHcalDigitizer_.

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

58  {
59 
61  }
void beginRun(const edm::EventSetup &es)
void DataMixingHcalDigiWorkerProd::initializeEvent ( const edm::Event e,
const edm::EventSetup ES 
)

Definition at line 63 of file DataMixingHcalDigiWorkerProd.cc.

References HcalDigitizer::initializeEvent(), and myHcalDigitizer_.

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

63  {
65  }
void initializeEvent(edm::Event const &e, edm::EventSetup const &c)
void DataMixingHcalDigiWorkerProd::putHcal ( edm::Event e,
const edm::EventSetup ES 
)

Definition at line 91 of file DataMixingHcalDigiWorkerProd.cc.

References HcalDigitizer::finalizeEvent(), and myHcalDigitizer_.

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

91  {
92 
93  // Digitize
94 
95  //myHcalDigitizer_->initializeEvent( e, ES );
96 
98  }
void finalizeEvent(edm::Event &e, edm::EventSetup const &c)
void edm::DataMixingHcalDigiWorkerProd::setHBHEAccess ( edm::EDGetTokenT< HBHEDigitizerTraits::DigiCollection tok)
inline

Definition at line 59 of file DataMixingHcalDigiWorkerProd.h.

References results_mgr::tok, and tok_hbhe_.

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

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 results_mgr::tok, and tok_hf_.

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

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 results_mgr::tok, and tok_ho_.

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

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 results_mgr::tok, and tok_zdc_.

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

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
HcalDigitizer* 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().