#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_ |
HcalDigitizer * | myHcalDigitizer_ |
Selector * | sel_ |
HBHESignalGenerator | theHBHESignalGenerator |
HFSignalGenerator | theHFSignalGenerator |
HOSignalGenerator | theHOSignalGenerator |
ZDCSignalGenerator | theZDCSignalGenerator |
std::string | ZDCDigiCollectionDM_ |
edm::InputTag | ZDCPileInputTag_ |
Definition at line 41 of file DataMixingHcalDigiWorkerProd.h.
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_.
: HBHEPileInputTag_(ps.getParameter<edm::InputTag>("HBHEPileInputTag")), HOPileInputTag_(ps.getParameter<edm::InputTag>("HOPileInputTag")), HFPileInputTag_(ps.getParameter<edm::InputTag>("HFPileInputTag")), ZDCPileInputTag_(ps.getParameter<edm::InputTag>("ZDCPileInputTag")), theHBHESignalGenerator(HBHEPileInputTag_), theHOSignalGenerator(HOPileInputTag_), theHFSignalGenerator(HFPileInputTag_), theZDCSignalGenerator(ZDCPileInputTag_), label_(ps.getParameter<std::string>("Label")) { // get the subdetector names // this->getSubdetectorNames(); //something like this may be useful to check what we are supposed to do... // create input selector // if (label_.size()>0){ // sel_=new Selector( ModuleLabelSelector(label_)); // } //else { // sel_=new Selector( MatchAllSelector()); //} // declare the products to produce // Hcal // Signal inputs now handled by HcalDigitizer - gets pSimHits directly HBHEDigiCollectionDM_ = ps.getParameter<std::string>("HBHEDigiCollectionDM"); HODigiCollectionDM_ = ps.getParameter<std::string>("HODigiCollectionDM"); HFDigiCollectionDM_ = ps.getParameter<std::string>("HFDigiCollectionDM"); ZDCDigiCollectionDM_ = ps.getParameter<std::string>("ZDCDigiCollectionDM"); // initialize HcalDigitizer here... myHcalDigitizer_ = new HcalDigitizer( ps ); myHcalDigitizer_->setHBHENoiseSignalGenerator( & theHBHESignalGenerator ); myHcalDigitizer_->setHFNoiseSignalGenerator( & theHFSignalGenerator ); myHcalDigitizer_->setHONoiseSignalGenerator( & theHOSignalGenerator ); myHcalDigitizer_->setZDCNoiseSignalGenerator( & theZDCSignalGenerator ); }
DataMixingHcalDigiWorkerProd::~DataMixingHcalDigiWorkerProd | ( | ) | [virtual] |
Default destructor
Definition at line 61 of file DataMixingHcalDigiWorkerProd.cc.
References myHcalDigitizer_.
{ delete myHcalDigitizer_; //delete sel_; //sel_=0; }
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().
{ LogDebug("DataMixingHcalDigiWorkerProd") <<"\n===============> adding pileups from event "<<ep->id()<<" for bunchcrossing "<<bcr; theHBHESignalGenerator.initializeEvent(ep, &ES); theHOSignalGenerator.initializeEvent(ep, &ES); theHFSignalGenerator.initializeEvent(ep, &ES); theZDCSignalGenerator.initializeEvent(ep, &ES); theHBHESignalGenerator.fill(); theHOSignalGenerator.fill(); theHFSignalGenerator.fill(); }
void DataMixingHcalDigiWorkerProd::addHcalSignals | ( | const edm::Event & | e, |
const edm::EventSetup & | ES | ||
) |
Definition at line 67 of file DataMixingHcalDigiWorkerProd.cc.
Referenced by edm::DataMixingModule::addSignals().
{ // nothing to do } // 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().
{ // Digitize myHcalDigitizer_->produce( e, ES ); }
std::string edm::DataMixingHcalDigiWorkerProd::HBHEDigiCollectionDM_ [private] |
Definition at line 68 of file DataMixingHcalDigiWorkerProd.h.
Referenced by DataMixingHcalDigiWorkerProd().
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().
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().
Definition at line 65 of file DataMixingHcalDigiWorkerProd.h.
std::string edm::DataMixingHcalDigiWorkerProd::label_ [private] |
Definition at line 81 of file DataMixingHcalDigiWorkerProd.h.
Definition at line 73 of file DataMixingHcalDigiWorkerProd.h.
Referenced by DataMixingHcalDigiWorkerProd(), putHcal(), and ~DataMixingHcalDigiWorkerProd().
Selector* edm::DataMixingHcalDigiWorkerProd::sel_ [private] |
Definition at line 80 of file DataMixingHcalDigiWorkerProd.h.
Definition at line 74 of file DataMixingHcalDigiWorkerProd.h.
Referenced by addHcalPileups(), and DataMixingHcalDigiWorkerProd().
Definition at line 76 of file DataMixingHcalDigiWorkerProd.h.
Referenced by addHcalPileups(), and DataMixingHcalDigiWorkerProd().
Definition at line 75 of file DataMixingHcalDigiWorkerProd.h.
Referenced by addHcalPileups(), and DataMixingHcalDigiWorkerProd().
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().
Definition at line 67 of file DataMixingHcalDigiWorkerProd.h.