CMS 3D CMS Logo

PreMixingDigiAccumulatorWorker.cc
Go to the documentation of this file.
6 
10 
13 
15 public:
17  edm::ProducesCollector producesCollector,
19  : accumulator_(edm::DigiAccumulatorMixModFactory::get()->makeDigiAccumulator(
20  ps.getParameter<edm::ParameterSet>("accumulator"), producesCollector, iC)) {}
21  ~PreMixingDigiAccumulatorWorker() override = default;
22 
23  void initializeEvent(const edm::Event& e, const edm::EventSetup& ES) override {
24  accumulator_->initializeEvent(e, ES);
25  }
26 
27  void initializeBunchCrossing(edm::Event const& e, edm::EventSetup const& ES, int bunchCrossing) override {
28  accumulator_->initializeBunchCrossing(e, ES, bunchCrossing);
29  }
30  void finalizeBunchCrossing(edm::Event& e, edm::EventSetup const& ES, int bunchCrossing) override {
31  accumulator_->finalizeBunchCrossing(e, ES, bunchCrossing);
32  }
33 
34  void addSignals(const edm::Event& e, const edm::EventSetup& ES) override { accumulator_->accumulate(e, ES); }
35  void addPileups(PileUpEventPrincipal const& pep, edm::EventSetup const& ES) override {
36  accumulator_->accumulate(pep, ES, pep.principal().streamID());
37  }
38  void put(edm::Event& e, const edm::EventSetup& ES, std::vector<PileupSummaryInfo> const& ps, int bs) override {
39  accumulator_->finalizeEvent(e, ES);
40  }
41 
42 private:
43  std::unique_ptr<DigiAccumulatorMixMod> accumulator_;
44 };
45 
PreMixingDigiAccumulatorWorker::put
void put(edm::Event &e, const edm::EventSetup &ES, std::vector< PileupSummaryInfo > const &ps, int bs) override
Definition: PreMixingDigiAccumulatorWorker.cc:38
edm
HLT enums.
Definition: AlignableModifier.h:19
PreMixingDigiAccumulatorWorker::PreMixingDigiAccumulatorWorker
PreMixingDigiAccumulatorWorker(const edm::ParameterSet &ps, edm::ProducesCollector producesCollector, edm::ConsumesCollector &&iC)
Definition: PreMixingDigiAccumulatorWorker.cc:16
PileUpEventPrincipal
Definition: PileUpEventPrincipal.h:19
PreMixingDigiAccumulatorWorker::accumulator_
std::unique_ptr< DigiAccumulatorMixMod > accumulator_
Definition: PreMixingDigiAccumulatorWorker.cc:43
ProducesCollector.h
cms::cuda::bs
bs
Definition: HistoContainer.h:127
PreMixingWorker.h
EventPrincipal.h
DigiAccumulatorMixMod.h
PileUpEventPrincipal::principal
edm::EventPrincipal const & principal()
Definition: PileUpEventPrincipal.h:24
PileUpEventPrincipal.h
PreMixingDigiAccumulatorWorker::initializeBunchCrossing
void initializeBunchCrossing(edm::Event const &e, edm::EventSetup const &ES, int bunchCrossing) override
Definition: PreMixingDigiAccumulatorWorker.cc:27
PreMixingDigiAccumulatorWorker::addSignals
void addSignals(const edm::Event &e, const edm::EventSetup &ES) override
Definition: PreMixingDigiAccumulatorWorker.cc:34
edm::ParameterSet
Definition: ParameterSet.h:47
Event.h
ParameterSet
Definition: Functions.h:16
PreMixingDigiAccumulatorWorker::initializeEvent
void initializeEvent(const edm::Event &e, const edm::EventSetup &ES) override
Definition: PreMixingDigiAccumulatorWorker.cc:23
PreMixingDigiAccumulatorWorker::~PreMixingDigiAccumulatorWorker
~PreMixingDigiAccumulatorWorker() override=default
edm::EventSetup
Definition: EventSetup.h:58
edm::EventPrincipal::streamID
StreamID streamID() const
Definition: EventPrincipal.h:106
get
#define get
PreMixingWorkerFactory.h
PreMixingDigiAccumulatorWorker
Definition: PreMixingDigiAccumulatorWorker.cc:14
PreMixingDigiAccumulatorWorker::finalizeBunchCrossing
void finalizeBunchCrossing(edm::Event &e, edm::EventSetup const &ES, int bunchCrossing) override
Definition: PreMixingDigiAccumulatorWorker.cc:30
edm::ProducesCollector
Definition: ProducesCollector.h:43
DEFINE_PREMIXING_WORKER
#define DEFINE_PREMIXING_WORKER(TYPE)
Definition: PreMixingWorkerFactory.h:16
PreMixingWorker
Definition: PreMixingWorker.h:14
ConsumesCollector.h
DigiAccumulatorMixModFactory.h
ParameterSet.h
edm::Event
Definition: Event.h:73
PreMixingDigiAccumulatorWorker::addPileups
void addPileups(PileUpEventPrincipal const &pep, edm::EventSetup const &ES) override
Definition: PreMixingDigiAccumulatorWorker.cc:35
edm::ConsumesCollector
Definition: ConsumesCollector.h:45
MillePedeFileConverter_cfg.e
e
Definition: MillePedeFileConverter_cfg.py:37