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)) {}

◆ ~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.

35  {
36  accumulator_->accumulate(pep, ES, pep.principal().streamID());
37  }

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

◆ addSignals()

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

Implements PreMixingWorker.

Definition at line 34 of file PreMixingDigiAccumulatorWorker.cc.

34 { accumulator_->accumulate(e, ES); }

References accumulator_, and MillePedeFileConverter_cfg::e.

◆ 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.

30  {
31  accumulator_->finalizeBunchCrossing(e, ES, bunchCrossing);
32  }

References accumulator_, and MillePedeFileConverter_cfg::e.

◆ 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.

27  {
28  accumulator_->initializeBunchCrossing(e, ES, bunchCrossing);
29  }

References accumulator_, and MillePedeFileConverter_cfg::e.

◆ initializeEvent()

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

Implements PreMixingWorker.

Definition at line 23 of file PreMixingDigiAccumulatorWorker.cc.

23  {
24  accumulator_->initializeEvent(e, ES);
25  }

References accumulator_, and MillePedeFileConverter_cfg::e.

◆ 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.

38  {
39  accumulator_->finalizeEvent(e, ES);
40  }

References accumulator_, and MillePedeFileConverter_cfg::e.

Member Data Documentation

◆ accumulator_

std::unique_ptr<DigiAccumulatorMixMod> PreMixingDigiAccumulatorWorker::accumulator_
private
PreMixingDigiAccumulatorWorker::accumulator_
std::unique_ptr< DigiAccumulatorMixMod > accumulator_
Definition: PreMixingDigiAccumulatorWorker.cc:43
edm::ParameterSet
Definition: ParameterSet.h:47
edm::ParameterSet::getParameter
T getParameter(std::string const &) const
Definition: ParameterSet.h:303
edm::DigiAccumulatorMixModFactory::get
static DigiAccumulatorMixModFactory const * get()
Definition: DigiAccumulatorMixModFactory.cc:18
MillePedeFileConverter_cfg.e
e
Definition: MillePedeFileConverter_cfg.py:37