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::ProducesCollector producesCollector, 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 beginLuminosityBlock (edm::LuminosityBlock const &iLumi, edm::EventSetup const &iSetup)
 
virtual void beginRun (edm::Run const &iRun, edm::EventSetup const &iSetup)
 
virtual void endRun ()
 
 PreMixingWorker ()=default
 
virtual ~PreMixingWorker ()=default
 

Private Attributes

std::unique_ptr< DigiAccumulatorMixModaccumulator_
 

Detailed Description

Definition at line 14 of file PreMixingDigiAccumulatorWorker.cc.

Constructor & Destructor Documentation

◆ PreMixingDigiAccumulatorWorker()

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

Definition at line 16 of file PreMixingDigiAccumulatorWorker.cc.

20  ps.getParameter<edm::ParameterSet>("accumulator"), producesCollector, iC)) {}
T getParameter(std::string const &) const
Definition: ParameterSet.h:307
std::unique_ptr< DigiAccumulatorMixMod > accumulator_
static DigiAccumulatorMixModFactory const * get()

◆ ~PreMixingDigiAccumulatorWorker()

PreMixingDigiAccumulatorWorker::~PreMixingDigiAccumulatorWorker ( )
overridedefault

Member Function Documentation

◆ addPileups()

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_

◆ addSignals()

void PreMixingDigiAccumulatorWorker::addSignals ( const edm::Event e,
const edm::EventSetup ES 
)
inlineoverridevirtual

Implements PreMixingWorker.

Definition at line 34 of file PreMixingDigiAccumulatorWorker.cc.

References accumulator_, and MillePedeFileConverter_cfg::e.

34 { accumulator_->accumulate(e, ES); }
std::unique_ptr< DigiAccumulatorMixMod > accumulator_

◆ finalizeBunchCrossing()

void PreMixingDigiAccumulatorWorker::finalizeBunchCrossing ( edm::Event e,
edm::EventSetup const &  ES,
int  bunchCrossing 
)
inlineoverridevirtual

Reimplemented from PreMixingWorker.

Definition at line 30 of file PreMixingDigiAccumulatorWorker.cc.

References accumulator_, and MillePedeFileConverter_cfg::e.

30  {
31  accumulator_->finalizeBunchCrossing(e, ES, bunchCrossing);
32  }
std::unique_ptr< DigiAccumulatorMixMod > accumulator_

◆ initializeBunchCrossing()

void PreMixingDigiAccumulatorWorker::initializeBunchCrossing ( edm::Event const &  e,
edm::EventSetup const &  ES,
int  bunchCrossing 
)
inlineoverridevirtual

Reimplemented from PreMixingWorker.

Definition at line 27 of file PreMixingDigiAccumulatorWorker.cc.

References accumulator_, and MillePedeFileConverter_cfg::e.

27  {
28  accumulator_->initializeBunchCrossing(e, ES, bunchCrossing);
29  }
std::unique_ptr< DigiAccumulatorMixMod > accumulator_

◆ initializeEvent()

void PreMixingDigiAccumulatorWorker::initializeEvent ( const edm::Event e,
const edm::EventSetup ES 
)
inlineoverridevirtual

Implements PreMixingWorker.

Definition at line 23 of file PreMixingDigiAccumulatorWorker.cc.

References accumulator_, and MillePedeFileConverter_cfg::e.

23  {
24  accumulator_->initializeEvent(e, ES);
25  }
std::unique_ptr< DigiAccumulatorMixMod > accumulator_

◆ put()

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

Implements PreMixingWorker.

Definition at line 38 of file PreMixingDigiAccumulatorWorker.cc.

References accumulator_, and MillePedeFileConverter_cfg::e.

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

Member Data Documentation

◆ accumulator_

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