CMS 3D CMS Logo

Public Member Functions | Private Attributes

edm::DataMixingHcalDigiWorkerProd Class Reference

#include <DataMixingHcalDigiWorkerProd.h>

List of all members.

Public Member Functions

void addHcalPileups (const int bcr, 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_.

                                                                                      : 
    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;
  }  

Member Function Documentation

void DataMixingHcalDigiWorkerProd::addHcalPileups ( const int  bcr,
edm::EventPrincipal ep,
unsigned int  EventId,
const edm::EventSetup ES 
)
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 );
  }

Member Data Documentation

Definition at line 68 of file DataMixingHcalDigiWorkerProd.h.

Referenced by DataMixingHcalDigiWorkerProd().

Definition at line 64 of file DataMixingHcalDigiWorkerProd.h.

Definition at line 70 of file DataMixingHcalDigiWorkerProd.h.

Referenced by DataMixingHcalDigiWorkerProd().

Definition at line 66 of file DataMixingHcalDigiWorkerProd.h.

Definition at line 69 of file DataMixingHcalDigiWorkerProd.h.

Referenced by DataMixingHcalDigiWorkerProd().

Definition at line 65 of file DataMixingHcalDigiWorkerProd.h.

Definition at line 81 of file DataMixingHcalDigiWorkerProd.h.

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

Definition at line 71 of file DataMixingHcalDigiWorkerProd.h.

Referenced by DataMixingHcalDigiWorkerProd().

Definition at line 67 of file DataMixingHcalDigiWorkerProd.h.