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_
 
const edm::InputTag pileupInputTag_
 
const 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()
const edm::InputTag pileupInputTag_
const edm::EDGetTokenT< PHGCSimAccumulator > signalToken_
std::string digiCollection()
Definition: HGCDigitizer.h:76

◆ ~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 57 of file PreMixingHGCalWorker.cc.

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

57  {
61 }
const edm::InputTag pileupInputTag_
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  {
55 }
const edm::EDGetTokenT< PHGCSimAccumulator > signalToken_
void accumulate_forPreMix(edm::Event const &e, edm::EventSetup const &c, CLHEP::HepRandomEngine *hre)

◆ 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 63 of file PreMixingHGCalWorker.cc.

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

66  {
68  digitizer_.finalizeEvent(e, ES, &rng->getEngine(e.streamID()));
69 }
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_

const edm::InputTag PreMixingHGCalWorker::pileupInputTag_
private

Definition at line 34 of file PreMixingHGCalWorker.cc.

Referenced by addPileups().

◆ signalToken_

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

Definition at line 33 of file PreMixingHGCalWorker.cc.

Referenced by addSignals().