CMS 3D CMS Logo

PreMixingDigiAccumulatorWorker.cc
Go to the documentation of this file.
6 
10 
13 
15 public:
17  accumulator_(edm::DigiAccumulatorMixModFactory::get()->makeDigiAccumulator(ps.getParameter<edm::ParameterSet>("accumulator"), producer, iC))
18  {}
19  ~PreMixingDigiAccumulatorWorker() override = default;
20 
21  void initializeEvent(const edm::Event &e, const edm::EventSetup& ES) override {
22  accumulator_->initializeEvent(e, ES);
23  }
24 
25  void initializeBunchCrossing(edm::Event const& e, edm::EventSetup const& ES, int bunchCrossing) override {
26  accumulator_->initializeBunchCrossing(e, ES, bunchCrossing);
27  }
28  void finalizeBunchCrossing(edm::Event& e, edm::EventSetup const& ES, int bunchCrossing) override {
29  accumulator_->finalizeBunchCrossing(e, ES, bunchCrossing);
30  }
31 
32  void addSignals(const edm::Event &e, const edm::EventSetup& ES) override {
33  accumulator_->accumulate(e, ES);
34  }
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
void addSignals(const edm::Event &e, const edm::EventSetup &ES) override
PreMixingDigiAccumulatorWorker(const edm::ParameterSet &ps, edm::ProducerBase &producer, edm::ConsumesCollector &&iC)
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
StreamID streamID() const
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 DEFINE_PREMIXING_WORKER(TYPE)
T get(const Candidate &c)
Definition: component.h:55
~PreMixingDigiAccumulatorWorker() override=default