CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
PreMixingHGCalWorker Class Reference
Inheritance diagram for PreMixingHGCalWorker:
PreMixingWorker

Public Member Functions

void addPileups (const PileUpEventPrincipal &, const edm::EventSetup &ES) override
 
void addSignals (const edm::Event &e, const edm::EventSetup &ES) override
 
void initializeEvent (const edm::Event &e, const edm::EventSetup &ES) override
 
PreMixingHGCalWorkeroperator= (const PreMixingHGCalWorker &)=delete
 
 PreMixingHGCalWorker (const edm::ParameterSet &ps, edm::ProducesCollector, edm::ConsumesCollector &&iC)
 
 PreMixingHGCalWorker (const PreMixingHGCalWorker &)=delete
 
void put (edm::Event &e, const edm::EventSetup &ES, std::vector< PileupSummaryInfo > const &ps, int bs) override
 
 ~PreMixingHGCalWorker () override=default
 
- Public Member Functions inherited from PreMixingWorker
virtual void beginLuminosityBlock (edm::LuminosityBlock const &iLumi, edm::EventSetup const &iSetup)
 
virtual void beginRun (edm::Run const &iRun, edm::EventSetup const &iSetup)
 
virtual void endRun ()
 
virtual void finalizeBunchCrossing (edm::Event &iEvent, edm::EventSetup const &iSetup, int bunchCrossing)
 
virtual void initializeBunchCrossing (edm::Event const &iEvent, edm::EventSetup const &iSetup, int bunchCrossing)
 
 PreMixingWorker ()=default
 
virtual ~PreMixingWorker ()=default
 

Private Attributes

HGCDigitizer digitizer_
 
edm::InputTag pileupInputTag_
 
edm::EDGetTokenT< PHGCSimAccumulatorsignalToken_
 

Detailed Description

Definition at line 19 of file PreMixingHGCalWorker.cc.

Constructor & Destructor Documentation

◆ PreMixingHGCalWorker() [1/2]

PreMixingHGCalWorker::PreMixingHGCalWorker ( const edm::ParameterSet ps,
edm::ProducesCollector  producesCollector,
edm::ConsumesCollector &&  iC 
)

Definition at line 39 of file PreMixingHGCalWorker.cc.

References HGCDigitizer::digiCollection(), digitizer_, and edm::ProducesCollector::produces().

43  pileupInputTag_(ps.getParameter<edm::InputTag>("pileInputTag")),
44  digitizer_(ps, iC) {
46 }
EDGetTokenT< ProductType > consumes(edm::InputTag const &tag)
T getParameter(std::string const &) const
Definition: ParameterSet.h:303
ProductRegistryHelper::BranchAliasSetterT< ProductType > produces()
std::string digiCollection()
Definition: HGCDigitizer.h:76
edm::EDGetTokenT< PHGCSimAccumulator > signalToken_

◆ ~PreMixingHGCalWorker()

PreMixingHGCalWorker::~PreMixingHGCalWorker ( )
overridedefault

◆ PreMixingHGCalWorker() [2/2]

PreMixingHGCalWorker::PreMixingHGCalWorker ( const PreMixingHGCalWorker )
delete

Member Function Documentation

◆ addPileups()

void PreMixingHGCalWorker::addPileups ( const PileUpEventPrincipal pep,
const edm::EventSetup ES 
)
overridevirtual

Implements PreMixingWorker.

Definition at line 58 of file PreMixingHGCalWorker.cc.

References HGCDigitizer::accumulate_forPreMix(), digitizer_, PileUpEventPrincipal::getByLabel(), patZpeak::handle, and pileupInputTag_.

58  {
62 }
void accumulate_forPreMix(edm::Event const &e, edm::EventSetup const &c, CLHEP::HepRandomEngine *hre)
bool getByLabel(edm::InputTag const &tag, edm::Handle< T > &result) const

◆ addSignals()

void PreMixingHGCalWorker::addSignals ( const edm::Event e,
const edm::EventSetup ES 
)
overridevirtual

Implements PreMixingWorker.

Definition at line 52 of file PreMixingHGCalWorker.cc.

References HGCDigitizer::accumulate_forPreMix(), digitizer_, MillePedeFileConverter_cfg::e, patZpeak::handle, and signalToken_.

52  {
54  e.getByToken(signalToken_, handle);
56 }
void accumulate_forPreMix(edm::Event const &e, edm::EventSetup const &c, CLHEP::HepRandomEngine *hre)
edm::EDGetTokenT< PHGCSimAccumulator > signalToken_

◆ initializeEvent()

void PreMixingHGCalWorker::initializeEvent ( const edm::Event e,
const edm::EventSetup ES 
)
overridevirtual

Implements PreMixingWorker.

Definition at line 48 of file PreMixingHGCalWorker.cc.

References digitizer_, MillePedeFileConverter_cfg::e, and HGCDigitizer::initializeEvent().

48  {
50 }
void initializeEvent(edm::Event const &e, edm::EventSetup const &c)
actions at the start/end of event

◆ operator=()

PreMixingHGCalWorker& PreMixingHGCalWorker::operator= ( const PreMixingHGCalWorker )
delete

◆ put()

void PreMixingHGCalWorker::put ( edm::Event e,
const edm::EventSetup ES,
std::vector< PileupSummaryInfo > const &  ps,
int  bs 
)
overridevirtual

Implements PreMixingWorker.

Definition at line 64 of file PreMixingHGCalWorker.cc.

References digitizer_, MillePedeFileConverter_cfg::e, HGCDigitizer::finalizeEvent(), and edm::RandomNumberGenerator::getEngine().

67  {
69  digitizer_.finalizeEvent(e, ES, &rng->getEngine(e.streamID()));
70 }
void finalizeEvent(edm::Event &e, edm::EventSetup const &c, CLHEP::HepRandomEngine *hre)
virtual CLHEP::HepRandomEngine & getEngine(StreamID const &)=0
Use this engine in event methods.

Member Data Documentation

◆ digitizer_

HGCDigitizer PreMixingHGCalWorker::digitizer_
private

◆ pileupInputTag_

edm::InputTag PreMixingHGCalWorker::pileupInputTag_
private

Definition at line 34 of file PreMixingHGCalWorker.cc.

Referenced by addPileups().

◆ signalToken_

edm::EDGetTokenT<PHGCSimAccumulator> PreMixingHGCalWorker::signalToken_
private

Definition at line 33 of file PreMixingHGCalWorker.cc.

Referenced by addSignals().