CMS 3D CMS Logo

PreMixingHGCalWorker.cc
Go to the documentation of this file.
8 
11 
15 
18 
20 public:
22  ~PreMixingHGCalWorker() override = default;
23 
26 
27  void initializeEvent(const edm::Event& e, const edm::EventSetup& ES) override;
28  void addSignals(const edm::Event& e, const edm::EventSetup& ES) override;
29  void addPileups(const PileUpEventPrincipal&, const edm::EventSetup& ES) override;
30  void put(edm::Event& e, const edm::EventSetup& ES, std::vector<PileupSummaryInfo> const& ps, int bs) override;
31 
32 private:
35 
37 };
38 
40  edm::ProducesCollector producesCollector,
42  : signalToken_(iC.consumes<PHGCSimAccumulator>(ps.getParameter<edm::InputTag>("digiTagSig"))),
43  pileupInputTag_(ps.getParameter<edm::InputTag>("pileInputTag")),
44  digitizer_(ps, iC) {
46 }
47 
50 }
51 
54  e.getByToken(signalToken_, handle);
56 }
57 
62 }
63 
65  const edm::EventSetup& ES,
66  std::vector<PileupSummaryInfo> const& ps,
67  int bs) {
69  digitizer_.finalizeEvent(e, ES, &rng->getEngine(e.streamID()));
70 }
71 
PHGCSimAccumulator
Definition: PHGCSimAccumulator.h:8
PreMixingHGCalWorker::pileupInputTag_
edm::InputTag pileupInputTag_
Definition: PreMixingHGCalWorker.cc:34
edm::RandomNumberGenerator::getEngine
virtual CLHEP::HepRandomEngine & getEngine(StreamID const &)=0
Use this engine in event methods.
Handle.h
PreMixingHGCalWorker::PreMixingHGCalWorker
PreMixingHGCalWorker(const edm::ParameterSet &ps, edm::ProducesCollector, edm::ConsumesCollector &&iC)
Definition: PreMixingHGCalWorker.cc:39
PreMixingHGCalWorker::put
void put(edm::Event &e, const edm::EventSetup &ES, std::vector< PileupSummaryInfo > const &ps, int bs) override
Definition: PreMixingHGCalWorker.cc:64
MessageLogger.h
HGCDigitizer::digiCollection
std::string digiCollection()
Definition: HGCDigitizer.h:76
PreMixingHGCalWorker::~PreMixingHGCalWorker
~PreMixingHGCalWorker() override=default
patZpeak.handle
handle
Definition: patZpeak.py:23
edm::EDGetTokenT< PHGCSimAccumulator >
PreMixingHGCalWorker::digitizer_
HGCDigitizer digitizer_
Definition: PreMixingHGCalWorker.cc:36
edm
HLT enums.
Definition: AlignableModifier.h:19
RandomNumberGenerator.h
HLT_FULL_cff.InputTag
InputTag
Definition: HLT_FULL_cff.py:89301
PreMixingHGCalWorker::initializeEvent
void initializeEvent(const edm::Event &e, const edm::EventSetup &ES) override
Definition: PreMixingHGCalWorker.cc:48
edm::SortedCollection
Definition: SortedCollection.h:49
PileUpEventPrincipal
Definition: PileUpEventPrincipal.h:19
edm::Handle
Definition: AssociativeIterator.h:50
ProducesCollector.h
HGCDigitizer::accumulate_forPreMix
void accumulate_forPreMix(edm::Event const &e, edm::EventSetup const &c, CLHEP::HepRandomEngine *hre)
Definition: HGCDigitizer.cc:343
cms::cuda::bs
bs
Definition: HistoContainer.h:76
PreMixingHGCalWorker
Definition: PreMixingHGCalWorker.cc:19
PreMixingWorker.h
Service.h
PileUpEventPrincipal.h
edm::ParameterSet
Definition: ParameterSet.h:47
Event.h
HGCDigitizer::finalizeEvent
void finalizeEvent(edm::Event &e, edm::EventSetup const &c, CLHEP::HepRandomEngine *hre)
Definition: HGCDigitizer.cc:299
PreMixingHGCalWorker::signalToken_
edm::EDGetTokenT< PHGCSimAccumulator > signalToken_
Definition: PreMixingHGCalWorker.cc:33
edm::Service< edm::RandomNumberGenerator >
edm::ProducesCollector::produces
ProductRegistryHelper::BranchAliasSetterT< ProductType > produces()
Definition: ProducesCollector.h:52
edm::EventSetup
Definition: EventSetup.h:58
PHGCSimAccumulator.h
PreMixingWorkerFactory.h
HGCDigitizer::initializeEvent
void initializeEvent(edm::Event const &e, edm::EventSetup const &c)
actions at the start/end of event
Definition: HGCDigitizer.cc:269
edm::ProducesCollector
Definition: ProducesCollector.h:43
HGCDigitizer.h
HGCDigitizer
Definition: HGCDigitizer.h:29
DEFINE_PREMIXING_WORKER
#define DEFINE_PREMIXING_WORKER(TYPE)
Definition: PreMixingWorkerFactory.h:16
EventSetup.h
PreMixingWorker
Definition: PreMixingWorker.h:14
ConsumesCollector.h
ParameterSet.h
PileUpEventPrincipal::getByLabel
bool getByLabel(edm::InputTag const &tag, edm::Handle< T > &result) const
Definition: PileUpEventPrincipal.h:33
PreMixingHGCalWorker::addSignals
void addSignals(const edm::Event &e, const edm::EventSetup &ES) override
Definition: PreMixingHGCalWorker.cc:52
edm::Event
Definition: Event.h:73
edm::InputTag
Definition: InputTag.h:15
edm::ConsumesCollector
Definition: ConsumesCollector.h:45
PreMixingHGCalWorker::operator=
PreMixingHGCalWorker & operator=(const PreMixingHGCalWorker &)=delete
MillePedeFileConverter_cfg.e
e
Definition: MillePedeFileConverter_cfg.py:37
PreMixingHGCalWorker::addPileups
void addPileups(const PileUpEventPrincipal &, const edm::EventSetup &ES) override
Definition: PreMixingHGCalWorker.cc:58