CMS 3D CMS Logo

PreMixingHcalWorker.cc
Go to the documentation of this file.
8 
18 
21 
23 public:
25  ~PreMixingHcalWorker() override = default;
26 
27  PreMixingHcalWorker(const PreMixingHcalWorker &) = delete;
29 
30  void beginRun(const edm::Run &run, const edm::EventSetup &ES) override;
31  void initializeEvent(const edm::Event &e, const edm::EventSetup &ES) override;
32  void addSignals(const edm::Event &e, const edm::EventSetup &ES) override;
33  void addPileups(const PileUpEventPrincipal &, const edm::EventSetup &ES) override;
34  void put(edm::Event &e, const edm::EventSetup &ES, std::vector<PileupSummaryInfo> const &ps, int bs) override;
35 
36 private:
37  edm::InputTag HBHEPileInputTag_; // InputTag for Pileup Digis collection
38  edm::InputTag HOPileInputTag_; // InputTag for Pileup Digis collection
39  edm::InputTag HFPileInputTag_; // InputTag for Pileup Digis collection
40  edm::InputTag ZDCPileInputTag_; // InputTag for Pileup Digis collection
41  edm::InputTag QIE10PileInputTag_; // InputTag for Pileup Digis collection
42  edm::InputTag QIE11PileInputTag_; // InputTag for Pileup Digis collection
43  std::string HBHEDigiCollectionDM_; // secondary name to be given to collection
44  // of digis
45  std::string HODigiCollectionDM_; // secondary name to be given to collection of digis
46  std::string HFDigiCollectionDM_; // secondary name to be given to collection of digis
47  std::string ZDCDigiCollectionDM_; // secondary name to be given to collection of digis
48  std::string QIE10DigiCollectionDM_; // secondary name to be given to
49  // collection of digis
50  std::string QIE11DigiCollectionDM_; // secondary name to be given to
51  // collection of digis
52 
59 
67 };
68 
69 // Constructor
71  edm::ProducesCollector producesCollector,
73  : HBHEPileInputTag_(ps.getParameter<edm::InputTag>("HBHEPileInputTag")),
74  HOPileInputTag_(ps.getParameter<edm::InputTag>("HOPileInputTag")),
75  HFPileInputTag_(ps.getParameter<edm::InputTag>("HFPileInputTag")),
76  ZDCPileInputTag_(ps.getParameter<edm::InputTag>("ZDCPileInputTag")),
77  QIE10PileInputTag_(ps.getParameter<edm::InputTag>("QIE10PileInputTag")),
78  QIE11PileInputTag_(ps.getParameter<edm::InputTag>("QIE11PileInputTag")),
79  myHcalDigitizer_(ps, iC) {
86 
93 
94  // Hcal
95  // Signal inputs now handled by HcalDigitizer - gets pSimHits directly
96 
97  HBHEDigiCollectionDM_ = ps.getParameter<std::string>("HBHEDigiCollectionDM");
98  HODigiCollectionDM_ = ps.getParameter<std::string>("HODigiCollectionDM");
99  HFDigiCollectionDM_ = ps.getParameter<std::string>("HFDigiCollectionDM");
100  ZDCDigiCollectionDM_ = ps.getParameter<std::string>("ZDCDigiCollectionDM");
101  QIE10DigiCollectionDM_ = ps.getParameter<std::string>("QIE10DigiCollectionDM");
102  QIE11DigiCollectionDM_ = ps.getParameter<std::string>("QIE11DigiCollectionDM");
103 
104  producesCollector.produces<HBHEDigiCollection>();
105  producesCollector.produces<HODigiCollection>();
106  producesCollector.produces<HFDigiCollection>();
107  producesCollector.produces<ZDCDigiCollection>();
108 
109  producesCollector.produces<QIE10DigiCollection>("HFQIE10DigiCollection");
110  producesCollector.produces<QIE11DigiCollection>("HBHEQIE11DigiCollection");
111 
112  // initialize HcalDigitizer here...
119 }
120 
123 }
124 
127 }
128 
131 }
132 
134  const auto &ep = pep.principal();
135  LogDebug("PreMixingHcalWorker") << "\n===============> adding pileups from event " << ep.id()
136  << " for bunchcrossing " << pep.bunchCrossing();
137 
144 
145  // put digis from pileup event into digitizer
146 
147  const auto *mcc = pep.moduleCallingContext();
153 }
154 
156  const edm::EventSetup &ES,
157  std::vector<PileupSummaryInfo> const &ps,
158  int bs) {
160 }
161 
PreMixingHcalWorker::HFDigiCollectionDM_
std::string HFDigiCollectionDM_
Definition: PreMixingHcalWorker.cc:46
HFDataFrame.h
Handle.h
HcalDigiProducer.h
MessageLogger.h
PreMixingHcalWorker::tok_ho_
edm::EDGetTokenT< HODigitizerTraits::DigiCollection > tok_ho_
Definition: PreMixingHcalWorker.cc:54
HcalDataFrameContainer
Definition: HcalDigiCollections.h:35
edm::Run
Definition: Run.h:45
edm::EDGetTokenT
Definition: EDGetToken.h:33
edm
HLT enums.
Definition: AlignableModifier.h:19
PreMixingHcalWorker::ZDCPileInputTag_
edm::InputTag ZDCPileInputTag_
Definition: PreMixingHcalWorker.cc:40
PreMixingHcalWorker::HBHEPileInputTag_
edm::InputTag HBHEPileInputTag_
Definition: PreMixingHcalWorker.cc:37
HLT_FULL_cff.InputTag
InputTag
Definition: HLT_FULL_cff.py:89287
HODataFrame.h
edm::SortedCollection
Definition: SortedCollection.h:49
PileUpEventPrincipal::bunchCrossing
int bunchCrossing() const
Definition: PileUpEventPrincipal.h:30
HcalDigiProducer::initializeEvent
void initializeEvent(edm::Event const &, edm::EventSetup const &) override
Definition: HcalDigiProducer.cc:28
PileUpEventPrincipal
Definition: PileUpEventPrincipal.h:19
PreMixingHcalWorker::tok_hf_
edm::EDGetTokenT< HFDigitizerTraits::DigiCollection > tok_hf_
Definition: PreMixingHcalWorker.cc:55
PreMixingHcalWorker::PreMixingHcalWorker
PreMixingHcalWorker(const edm::ParameterSet &ps, edm::ProducesCollector, edm::ConsumesCollector &&iC)
Definition: PreMixingHcalWorker.cc:70
HcalSignalGenerator::initializeEvent
void initializeEvent(const edm::Event *event, const edm::EventSetup *eventSetup)
Definition: HcalSignalGenerator.h:43
QIE10SignalGenerator
HcalSignalGenerator< HcalQIE10DigitizerTraits > QIE10SignalGenerator
Definition: HcalSignalGenerator.h:189
PreMixingHcalWorker
Definition: PreMixingHcalWorker.cc:22
HcalDigiProducer::setHBHENoiseSignalGenerator
void setHBHENoiseSignalGenerator(HcalBaseSignalGenerator *noiseGenerator)
Definition: HcalDigiProducer.cc:53
QIE11SignalGenerator
HcalSignalGenerator< HcalQIE11DigitizerTraits > QIE11SignalGenerator
Definition: HcalSignalGenerator.h:190
PreMixingHcalWorker::theHOSignalGenerator
HOSignalGenerator theHOSignalGenerator
Definition: PreMixingHcalWorker.cc:62
PreMixingHcalWorker::tok_zdc_
edm::EDGetTokenT< ZDCDigitizerTraits::DigiCollection > tok_zdc_
Definition: PreMixingHcalWorker.cc:56
PreMixingHcalWorker::HODigiCollectionDM_
std::string HODigiCollectionDM_
Definition: PreMixingHcalWorker.cc:45
PreMixingHcalWorker::tok_qie10_
edm::EDGetTokenT< HcalQIE10DigitizerTraits::DigiCollection > tok_qie10_
Definition: PreMixingHcalWorker.cc:57
PreMixingHcalWorker::initializeEvent
void initializeEvent(const edm::Event &e, const edm::EventSetup &ES) override
Definition: PreMixingHcalWorker.cc:125
HcalDigiProducer::beginRun
void beginRun(edm::Run const &, edm::EventSetup const &) override
Definition: HcalDigiProducer.cc:49
PreMixingHcalWorker::theZDCSignalGenerator
ZDCSignalGenerator theZDCSignalGenerator
Definition: PreMixingHcalWorker.cc:64
ProducesCollector.h
HFSignalGenerator
HcalSignalGenerator< HFDigitizerTraits > HFSignalGenerator
Definition: HcalSignalGenerator.h:187
PileUpEventPrincipal::moduleCallingContext
edm::ModuleCallingContext const * moduleCallingContext() const
Definition: PileUpEventPrincipal.h:28
PreMixingHcalWorker::HOPileInputTag_
edm::InputTag HOPileInputTag_
Definition: PreMixingHcalWorker.cc:38
PreMixingHcalWorker::put
void put(edm::Event &e, const edm::EventSetup &ES, std::vector< PileupSummaryInfo > const &ps, int bs) override
Definition: PreMixingHcalWorker.cc:155
cms::cuda::bs
bs
Definition: HistoContainer.h:127
HcalDigiProducer::setZDCNoiseSignalGenerator
void setZDCNoiseSignalGenerator(HcalBaseSignalGenerator *noiseGenerator)
Definition: HcalDigiProducer.cc:65
HcalSignalGenerator.h
PreMixingWorker.h
HcalDigiCollections.h
HcalDigiProducer::setHONoiseSignalGenerator
void setHONoiseSignalGenerator(HcalBaseSignalGenerator *noiseGenerator)
Definition: HcalDigiProducer.cc:61
PileUpEventPrincipal::principal
edm::EventPrincipal const & principal()
Definition: PileUpEventPrincipal.h:24
HcalDigiProducer::setHFNoiseSignalGenerator
void setHFNoiseSignalGenerator(HcalBaseSignalGenerator *noiseGenerator)
Definition: HcalDigiProducer.cc:57
HcalDigiProducer::accumulate
void accumulate(edm::Event const &, edm::EventSetup const &) override
Definition: HcalDigiProducer.cc:39
PreMixingHcalWorker::HFPileInputTag_
edm::InputTag HFPileInputTag_
Definition: PreMixingHcalWorker.cc:39
PreMixingHcalWorker::~PreMixingHcalWorker
~PreMixingHcalWorker() override=default
PreMixingHcalWorker::theHFSignalGenerator
HFSignalGenerator theHFSignalGenerator
Definition: PreMixingHcalWorker.cc:63
PileUpEventPrincipal.h
PreMixingHcalWorker::theHBHESignalGenerator
HBHESignalGenerator theHBHESignalGenerator
Definition: PreMixingHcalWorker.cc:61
PreMixingHcalWorker::theQIE10SignalGenerator
QIE10SignalGenerator theQIE10SignalGenerator
Definition: PreMixingHcalWorker.cc:65
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
PreMixingHcalWorker::addSignals
void addSignals(const edm::Event &e, const edm::EventSetup &ES) override
Definition: PreMixingHcalWorker.cc:129
LogDebug
#define LogDebug(id)
Definition: MessageLogger.h:223
HcalSignalGenerator< HBHEDigitizerTraits >
edm::ParameterSet
Definition: ParameterSet.h:47
Event.h
HOSignalGenerator
HcalSignalGenerator< HODigitizerTraits > HOSignalGenerator
Definition: HcalSignalGenerator.h:186
PreMixingHcalWorker::QIE11PileInputTag_
edm::InputTag QIE11PileInputTag_
Definition: PreMixingHcalWorker.cc:42
QIE10DataFrame.h
HcalDigiProducer::setQIE10NoiseSignalGenerator
void setQIE10NoiseSignalGenerator(HcalBaseSignalGenerator *noiseGenerator)
Definition: HcalDigiProducer.cc:69
PreMixingHcalWorker::QIE11DigiCollectionDM_
std::string QIE11DigiCollectionDM_
Definition: PreMixingHcalWorker.cc:50
PreMixingHcalWorker::HBHEDigiCollectionDM_
std::string HBHEDigiCollectionDM_
Definition: PreMixingHcalWorker.cc:43
edm::ProducesCollector::produces
ProductRegistryHelper::BranchAliasSetterT< ProductType > produces()
Definition: ProducesCollector.h:52
edm::EventSetup
Definition: EventSetup.h:57
PreMixingHcalWorker::tok_hbhe_
edm::EDGetTokenT< HBHEDigitizerTraits::DigiCollection > tok_hbhe_
Definition: PreMixingHcalWorker.cc:53
HBHESignalGenerator
HcalSignalGenerator< HBHEDigitizerTraits > HBHESignalGenerator
Definition: HcalSignalGenerator.h:185
PreMixingHcalWorker::tok_qie11_
edm::EDGetTokenT< HcalQIE11DigitizerTraits::DigiCollection > tok_qie11_
Definition: PreMixingHcalWorker.cc:58
PreMixingWorkerFactory.h
PreMixingHcalWorker::theQIE11SignalGenerator
QIE11SignalGenerator theQIE11SignalGenerator
Definition: PreMixingHcalWorker.cc:66
writedatasetfile.run
run
Definition: writedatasetfile.py:27
edm::ProducesCollector
Definition: ProducesCollector.h:43
PreMixingHcalWorker::ZDCDigiCollectionDM_
std::string ZDCDigiCollectionDM_
Definition: PreMixingHcalWorker.cc:47
DEFINE_PREMIXING_WORKER
#define DEFINE_PREMIXING_WORKER(TYPE)
Definition: PreMixingWorkerFactory.h:16
HcalDigiProducer::setQIE11NoiseSignalGenerator
void setQIE11NoiseSignalGenerator(HcalBaseSignalGenerator *noiseGenerator)
Definition: HcalDigiProducer.cc:73
QIE11DataFrame.h
EventSetup.h
PreMixingHcalWorker::myHcalDigitizer_
HcalDigiProducer myHcalDigitizer_
Definition: PreMixingHcalWorker.cc:60
edm::ParameterSet::getParameter
T getParameter(std::string const &) const
Definition: ParameterSet.h:303
PreMixingWorker
Definition: PreMixingWorker.h:14
HcalDigiProducer::finalizeEvent
void finalizeEvent(edm::Event &, edm::EventSetup const &) override
Definition: HcalDigiProducer.cc:34
ZDCSignalGenerator
HcalSignalGenerator< ZDCDigitizerTraits > ZDCSignalGenerator
Definition: HcalSignalGenerator.h:188
HcalDigiProducer
Definition: HcalDigiProducer.h:20
HcalSignalGenerator::fill
virtual void fill(edm::ModuleCallingContext const *mcc)
Definition: HcalSignalGenerator.h:56
ConsumesCollector.h
ParameterSet.h
PreMixingHcalWorker::QIE10PileInputTag_
edm::InputTag QIE10PileInputTag_
Definition: PreMixingHcalWorker.cc:41
PreMixingHcalWorker::QIE10DigiCollectionDM_
std::string QIE10DigiCollectionDM_
Definition: PreMixingHcalWorker.cc:48
edm::Event
Definition: Event.h:73
SiStripBadComponentsDQMServiceTemplate_cfg.ep
ep
Definition: SiStripBadComponentsDQMServiceTemplate_cfg.py:86
edm::InputTag
Definition: InputTag.h:15
edm::ConsumesCollector
Definition: ConsumesCollector.h:45
PreMixingHcalWorker::beginRun
void beginRun(const edm::Run &run, const edm::EventSetup &ES) override
Definition: PreMixingHcalWorker.cc:121
PreMixingHcalWorker::addPileups
void addPileups(const PileUpEventPrincipal &, const edm::EventSetup &ES) override
Definition: PreMixingHcalWorker.cc:133
HBHEDataFrame.h
PreMixingHcalWorker::operator=
PreMixingHcalWorker & operator=(const PreMixingHcalWorker &)=delete
MillePedeFileConverter_cfg.e
e
Definition: MillePedeFileConverter_cfg.py:37