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 
void put(edm::Event &e, const edm::EventSetup &ES, std::vector< PileupSummaryInfo > const &ps, int bs) override
PreMixingDigiAccumulatorWorker(const edm::ParameterSet &ps, edm::ProducesCollector producesCollector, edm::ConsumesCollector &&iC)
void addSignals(const edm::Event &e, const edm::EventSetup &ES) override
StreamID streamID() const
edm::EventPrincipal const & principal()
std::unique_ptr< DigiAccumulatorMixMod > accumulator_
void initializeBunchCrossing(edm::Event const &e, edm::EventSetup const &ES, int bunchCrossing) override
void initializeEvent(const edm::Event &e, const edm::EventSetup &ES) override
void addPileups(PileUpEventPrincipal const &pep, edm::EventSetup const &ES) override
void finalizeBunchCrossing(edm::Event &e, edm::EventSetup const &ES, int bunchCrossing) override
HLT enums.
#define get
#define DEFINE_PREMIXING_WORKER(TYPE)
~PreMixingDigiAccumulatorWorker() override=default