CMS 3D CMS Logo

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

Public Member Functions

void addPileups (PileUpEventPrincipal const &pep, edm::EventSetup const &ES) override
 
void addSignals (const edm::Event &e, const edm::EventSetup &ES) override
 
void finalizeBunchCrossing (edm::Event &e, edm::EventSetup const &ES, int bunchCrossing) override
 
void initializeBunchCrossing (edm::Event const &e, edm::EventSetup const &ES, int bunchCrossing) override
 
void initializeEvent (const edm::Event &e, const edm::EventSetup &ES) override
 
 PreMixingDigiAccumulatorWorker (const edm::ParameterSet &ps, edm::ProducerBase &producer, edm::ConsumesCollector &&iC)
 
void put (edm::Event &e, const edm::EventSetup &ES, std::vector< PileupSummaryInfo > const &ps, int bs) override
 
 ~PreMixingDigiAccumulatorWorker () override=default
 
- Public Member Functions inherited from PreMixingWorker
virtual void addSignals (edm::Event const &iEvent, edm::EventSetup const &iSetup)=0
 
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 initializeEvent (edm::Event const &iEvent, edm::EventSetup const &iSetup)=0
 
 PreMixingWorker ()=default
 
virtual void put (edm::Event &iEvent, edm::EventSetup const &iSetup, std::vector< PileupSummaryInfo > const &ps, int bunchSpacing)=0
 
virtual ~PreMixingWorker ()=default
 

Private Attributes

std::unique_ptr< DigiAccumulatorMixModaccumulator_
 

Detailed Description

Definition at line 14 of file PreMixingDigiAccumulatorWorker.cc.

Constructor & Destructor Documentation

PreMixingDigiAccumulatorWorker::PreMixingDigiAccumulatorWorker ( const edm::ParameterSet ps,
edm::ProducerBase producer,
edm::ConsumesCollector &&  iC 
)
inline

Definition at line 16 of file PreMixingDigiAccumulatorWorker.cc.

References ~PreMixingDigiAccumulatorWorker().

16  :
17  accumulator_(edm::DigiAccumulatorMixModFactory::get()->makeDigiAccumulator(ps.getParameter<edm::ParameterSet>("accumulator"), producer, iC))
18  {}
T getParameter(std::string const &) const
std::unique_ptr< DigiAccumulatorMixMod > accumulator_
static DigiAccumulatorMixModFactory const * get()
PreMixingDigiAccumulatorWorker::~PreMixingDigiAccumulatorWorker ( )
overridedefault

Member Function Documentation

void PreMixingDigiAccumulatorWorker::addPileups ( PileUpEventPrincipal const &  pep,
edm::EventSetup const &  ES 
)
inlineoverridevirtual

Implements PreMixingWorker.

Definition at line 35 of file PreMixingDigiAccumulatorWorker.cc.

References accumulator_, PileUpEventPrincipal::principal(), and edm::EventPrincipal::streamID().

35  {
36  accumulator_->accumulate(pep, ES, pep.principal().streamID());
37  }
std::unique_ptr< DigiAccumulatorMixMod > accumulator_
void PreMixingDigiAccumulatorWorker::addSignals ( const edm::Event e,
const edm::EventSetup ES 
)
inlineoverride

Definition at line 32 of file PreMixingDigiAccumulatorWorker.cc.

References accumulator_.

32  {
33  accumulator_->accumulate(e, ES);
34  }
std::unique_ptr< DigiAccumulatorMixMod > accumulator_
void PreMixingDigiAccumulatorWorker::finalizeBunchCrossing ( edm::Event e,
edm::EventSetup const &  ES,
int  bunchCrossing 
)
inlineoverridevirtual

Reimplemented from PreMixingWorker.

Definition at line 28 of file PreMixingDigiAccumulatorWorker.cc.

References accumulator_.

28  {
29  accumulator_->finalizeBunchCrossing(e, ES, bunchCrossing);
30  }
std::unique_ptr< DigiAccumulatorMixMod > accumulator_
void PreMixingDigiAccumulatorWorker::initializeBunchCrossing ( edm::Event const &  e,
edm::EventSetup const &  ES,
int  bunchCrossing 
)
inlineoverridevirtual

Reimplemented from PreMixingWorker.

Definition at line 25 of file PreMixingDigiAccumulatorWorker.cc.

References accumulator_.

25  {
26  accumulator_->initializeBunchCrossing(e, ES, bunchCrossing);
27  }
std::unique_ptr< DigiAccumulatorMixMod > accumulator_
void PreMixingDigiAccumulatorWorker::initializeEvent ( const edm::Event e,
const edm::EventSetup ES 
)
inlineoverride

Definition at line 21 of file PreMixingDigiAccumulatorWorker.cc.

References accumulator_.

21  {
22  accumulator_->initializeEvent(e, ES);
23  }
std::unique_ptr< DigiAccumulatorMixMod > accumulator_
void PreMixingDigiAccumulatorWorker::put ( edm::Event e,
const edm::EventSetup ES,
std::vector< PileupSummaryInfo > const &  ps,
int  bs 
)
inlineoverride

Definition at line 38 of file PreMixingDigiAccumulatorWorker.cc.

References accumulator_.

38  {
39  accumulator_->finalizeEvent(e, ES);
40  }
std::unique_ptr< DigiAccumulatorMixMod > accumulator_

Member Data Documentation

std::unique_ptr<DigiAccumulatorMixMod> PreMixingDigiAccumulatorWorker::accumulator_
private