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)
 
void addHcalSignals (const edm::Event &e, const edm::EventSetup &ES)
 
 DataMixingHcalDigiWorkerProd (const edm::ParameterSet &ps)
 
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_
 
HcalDigitizermyHcalDigitizer_
 
Selectorsel_
 
HBHESignalGenerator theHBHESignalGenerator
 
HFSignalGenerator theHFSignalGenerator
 
HOSignalGenerator theHOSignalGenerator
 
ZDCSignalGenerator theZDCSignalGenerator
 
std::string ZDCDigiCollectionDM_
 
edm::InputTag ZDCPileInputTag_
 

Detailed Description

Definition at line 41 of file DataMixingHcalDigiWorkerProd.h.

Constructor & Destructor Documentation

DataMixingHcalDigiWorkerProd::DataMixingHcalDigiWorkerProd ( const edm::ParameterSet ps)
explicit

standard constructor

Definition at line 16 of file DataMixingHcalDigiWorkerProd.cc.

References edm::ParameterSet::getParameter(), HBHEDigiCollectionDM_, HFDigiCollectionDM_, HODigiCollectionDM_, myHcalDigitizer_, theHBHESignalGenerator, theHFSignalGenerator, theHOSignalGenerator, theZDCSignalGenerator, and ZDCDigiCollectionDM_.

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")),
25  label_(ps.getParameter<std::string>("Label"))
26  {
27 
28  // get the subdetector names
29  // this->getSubdetectorNames(); //something like this may be useful to check what we are supposed to do...
30 
31  // create input selector
32  // if (label_.size()>0){
33  // sel_=new Selector( ModuleLabelSelector(label_));
34  // }
35  //else {
36  // sel_=new Selector( MatchAllSelector());
37  //}
38 
39  // declare the products to produce
40 
41  // Hcal
42  // Signal inputs now handled by HcalDigitizer - gets pSimHits directly
43 
44  HBHEDigiCollectionDM_ = ps.getParameter<std::string>("HBHEDigiCollectionDM");
45  HODigiCollectionDM_ = ps.getParameter<std::string>("HODigiCollectionDM");
46  HFDigiCollectionDM_ = ps.getParameter<std::string>("HFDigiCollectionDM");
47  ZDCDigiCollectionDM_ = ps.getParameter<std::string>("ZDCDigiCollectionDM");
48 
49  // initialize HcalDigitizer here...
50 
51  myHcalDigitizer_ = new HcalDigitizer( ps );
52 
53  myHcalDigitizer_->setHBHENoiseSignalGenerator( & theHBHESignalGenerator );
54  myHcalDigitizer_->setHFNoiseSignalGenerator( & theHFSignalGenerator );
55  myHcalDigitizer_->setHONoiseSignalGenerator( & theHOSignalGenerator );
56  myHcalDigitizer_->setZDCNoiseSignalGenerator( & theZDCSignalGenerator );
57 
58  }
T getParameter(std::string const &) const
DataMixingHcalDigiWorkerProd::~DataMixingHcalDigiWorkerProd ( )
virtual

Default destructor

Definition at line 61 of file DataMixingHcalDigiWorkerProd.cc.

References myHcalDigitizer_.

61  {
62  delete myHcalDigitizer_;
63  //delete sel_;
64  //sel_=0;
65  }

Member Function Documentation

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

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

73  {
74 
75  LogDebug("DataMixingHcalDigiWorkerProd") <<"\n===============> adding pileups from event "<<ep->id()<<" for bunchcrossing "<<bcr;
76 
81 
85  }
#define LogDebug(id)
EventID const & id() const
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.

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

67  {
68 
69  // nothing to do
70 
71  } // end of addHcalSignals
void DataMixingHcalDigiWorkerProd::putHcal ( edm::Event e,
const edm::EventSetup ES 
)

Definition at line 87 of file DataMixingHcalDigiWorkerProd.cc.

References myHcalDigitizer_, and HcalDigitizer::produce().

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

87  {
88 
89  // Digitize
90 
91  myHcalDigitizer_->produce( e, ES );
92  }
void produce(edm::Event &e, const edm::EventSetup &c)

Member Data Documentation

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

Definition at line 68 of file DataMixingHcalDigiWorkerProd.h.

Referenced by DataMixingHcalDigiWorkerProd().

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

Definition at line 64 of file DataMixingHcalDigiWorkerProd.h.

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

Definition at line 70 of file DataMixingHcalDigiWorkerProd.h.

Referenced by DataMixingHcalDigiWorkerProd().

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

Definition at line 66 of file DataMixingHcalDigiWorkerProd.h.

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

Definition at line 69 of file DataMixingHcalDigiWorkerProd.h.

Referenced by DataMixingHcalDigiWorkerProd().

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

Definition at line 65 of file DataMixingHcalDigiWorkerProd.h.

std::string edm::DataMixingHcalDigiWorkerProd::label_
private
HcalDigitizer* edm::DataMixingHcalDigiWorkerProd::myHcalDigitizer_
private
Selector* edm::DataMixingHcalDigiWorkerProd::sel_
private

Definition at line 80 of file DataMixingHcalDigiWorkerProd.h.

HBHESignalGenerator edm::DataMixingHcalDigiWorkerProd::theHBHESignalGenerator
private

Definition at line 74 of file DataMixingHcalDigiWorkerProd.h.

Referenced by addHcalPileups(), and DataMixingHcalDigiWorkerProd().

HFSignalGenerator edm::DataMixingHcalDigiWorkerProd::theHFSignalGenerator
private

Definition at line 76 of file DataMixingHcalDigiWorkerProd.h.

Referenced by addHcalPileups(), and DataMixingHcalDigiWorkerProd().

HOSignalGenerator edm::DataMixingHcalDigiWorkerProd::theHOSignalGenerator
private

Definition at line 75 of file DataMixingHcalDigiWorkerProd.h.

Referenced by addHcalPileups(), and DataMixingHcalDigiWorkerProd().

ZDCSignalGenerator edm::DataMixingHcalDigiWorkerProd::theZDCSignalGenerator
private

Definition at line 77 of file DataMixingHcalDigiWorkerProd.h.

Referenced by addHcalPileups(), and DataMixingHcalDigiWorkerProd().

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

Definition at line 71 of file DataMixingHcalDigiWorkerProd.h.

Referenced by DataMixingHcalDigiWorkerProd().

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

Definition at line 67 of file DataMixingHcalDigiWorkerProd.h.