CMS 3D CMS Logo

DataMixingModule.cc
Go to the documentation of this file.
1 // File: DataMixingModule.cc
2 // Description: see DataMixingModule.h
3 // Author: Mike Hildreth, University of Notre Dame
4 //
5 //--------------------------------------------
6 
7 #include <map>
8 #include <iostream>
9 #include <memory>
10 #include <functional>
11 
24 //
25 //
27 #include "DataMixingModule.h"
29 
32 
33 using namespace std;
34 
35 namespace edm
36 {
37 
38  // Constructor
39  DataMixingModule::DataMixingModule(const edm::ParameterSet& ps, MixingCache::Config const* globalConf) :
40  BMixingModule(ps, globalConf),
41  EBPileInputTag_(ps.getParameter<edm::InputTag>("EBPileInputTag")),
42  EEPileInputTag_(ps.getParameter<edm::InputTag>("EEPileInputTag")),
43  ESPileInputTag_(ps.getParameter<edm::InputTag>("ESPileInputTag")),
44  HBHEPileInputTag_(ps.getParameter<edm::InputTag>("HBHEPileInputTag")),
45  HOPileInputTag_(ps.getParameter<edm::InputTag>("HOPileInputTag")),
46  HFPileInputTag_(ps.getParameter<edm::InputTag>("HFPileInputTag")),
47  ZDCPileInputTag_(ps.getParameter<edm::InputTag>("ZDCPileInputTag")),
48  QIE10PileInputTag_(ps.getParameter<edm::InputTag>("QIE10PileInputTag")),
49  QIE11PileInputTag_(ps.getParameter<edm::InputTag>("QIE11PileInputTag")),
50  label_(ps.getParameter<std::string>("Label"))
51  {
52 
53  // prepare for data access in DataMixingEcalDigiWorkerProd
54  tok_eb_ = consumes<EBDigitizerTraits::DigiCollection>(EBPileInputTag_);
55  tok_ee_ = consumes<EEDigitizerTraits::DigiCollection>(EEPileInputTag_);
56  tok_es_ = consumes<ESDigitizerTraits::DigiCollection>(ESPileInputTag_);
57 
58  // prepare for data access in DataMixingHcalDigiWorkerProd
59  tok_hbhe_ = consumes<HBHEDigitizerTraits::DigiCollection>(HBHEPileInputTag_);
60  tok_ho_ = consumes<HODigitizerTraits::DigiCollection>(HOPileInputTag_);
61  tok_hf_ = consumes<HFDigitizerTraits::DigiCollection>(HFPileInputTag_);
62  tok_zdc_ = consumes<ZDCDigitizerTraits::DigiCollection>(ZDCPileInputTag_);
63  tok_qie10_ = consumes<HcalQIE10DigitizerTraits::DigiCollection>(QIE10PileInputTag_);
64  tok_qie11_ = consumes<HcalQIE11DigitizerTraits::DigiCollection>(QIE11PileInputTag_);
65 
66  // get the subdetector names
67  this->getSubdetectorNames(); //something like this may be useful to check what we are supposed to do...
68 
69  // For now, list all of them here. Later, make this selectable with input parameters
70  //
71 
72  // Check to see if we are working in Full or Fast Simulation
73 
74  MergeTrackerDigis_ = (ps.getParameter<std::string>("TrackerMergeType")) == "Digis";
75  MergeEMDigis_ = (ps.getParameter<std::string>("EcalMergeType")) == "Digis";
76  MergeHcalDigis_ = (ps.getParameter<std::string>("HcalMergeType")) == "Digis";
77  if(MergeHcalDigis_) MergeHcalDigisProd_ = (ps.getParameter<std::string>("HcalDigiMerge")=="FullProd");
78 
79  addMCDigiNoise_ = false;
80 
81  addMCDigiNoise_ = ps.getUntrackedParameter<bool>("addMCDigiNoise"); // for Sim on Sim mixing
82 
83  // Put Fast Sim Sequences here for Simplification: Fewer options!
84 
85 
86  if(MergeEMDigis_) {
87 
88  // cout<<"EM Digis TRUE!!!"<<endl;
89 
90  EBDigiCollectionDM_ = ps.getParameter<std::string>("EBDigiCollectionDM");
91  EEDigiCollectionDM_ = ps.getParameter<std::string>("EEDigiCollectionDM");
92  ESDigiCollectionDM_ = ps.getParameter<std::string>("ESDigiCollectionDM");
93  // nMaxPrintout_ = ps.getUntrackedParameter<int>("nMaxPrintout",10);
94 
95  produces< EBDigiCollection >(EBDigiCollectionDM_);
96  produces< EEDigiCollection >(EEDigiCollectionDM_);
97  produces< ESDigiCollection >(ESDigiCollectionDM_);
98 
99 
100  if(addMCDigiNoise_ ) {
106  }
108  }
109  else { // merge RecHits
110  EBRecHitCollectionDM_ = ps.getParameter<std::string>("EBRecHitCollectionDM");
111  EERecHitCollectionDM_ = ps.getParameter<std::string>("EERecHitCollectionDM");
112  ESRecHitCollectionDM_ = ps.getParameter<std::string>("ESRecHitCollectionDM");
113  // nMaxPrintout_ = ps.getUntrackedParameter<int>("nMaxPrintout",10);
114 
115  produces< EBRecHitCollection >(EBRecHitCollectionDM_);
116  produces< EERecHitCollection >(EERecHitCollectionDM_);
117  produces< ESRecHitCollection >(ESRecHitCollectionDM_);
118 
120  }
121  // Hcal next
122 
123  if(MergeHcalDigis_){
124  HBHEDigiCollectionDM_ = ps.getParameter<std::string>("HBHEDigiCollectionDM");
125  HODigiCollectionDM_ = ps.getParameter<std::string>("HODigiCollectionDM");
126  HFDigiCollectionDM_ = ps.getParameter<std::string>("HFDigiCollectionDM");
127  ZDCDigiCollectionDM_ = ps.getParameter<std::string>("ZDCDigiCollectionDM");
128  QIE10DigiCollectionDM_ = ps.getParameter<std::string>("QIE10DigiCollectionDM");
129  QIE11DigiCollectionDM_ = ps.getParameter<std::string>("QIE11DigiCollectionDM");
130 
131  produces< HBHEDigiCollection >();
132  produces< HODigiCollection >();
133  produces< HFDigiCollection >();
134  produces< ZDCDigiCollection >();
135 
136  produces<QIE10DigiCollection>("HFQIE10DigiCollection");
137  produces<QIE11DigiCollection>("HBHEQIE11DigiCollection");
138 
139  if(ps.getParameter<bool>("debugCaloSamples")){
140  produces<CaloSamplesCollection>("HcalSamples");
141  }
142  if(ps.getParameter<bool>("injectTestHits")){
143  produces<edm::PCaloHitContainer>("HcalHits");
144  }
145 
148 
149  }
150  else{
151  HBHERecHitCollectionDM_ = ps.getParameter<std::string>("HBHERecHitCollectionDM");
152  HORecHitCollectionDM_ = ps.getParameter<std::string>("HORecHitCollectionDM");
153  HFRecHitCollectionDM_ = ps.getParameter<std::string>("HFRecHitCollectionDM");
154  ZDCRecHitCollectionDM_ = ps.getParameter<std::string>("ZDCRecHitCollectionDM");
155 
156  produces< HBHERecHitCollection >(HBHERecHitCollectionDM_);
157  produces< HORecHitCollection >(HORecHitCollectionDM_);
158  produces< HFRecHitCollection >(HFRecHitCollectionDM_);
159  produces< ZDCRecHitCollection >(ZDCRecHitCollectionDM_);
160 
162  }
163 
164  // Muons
165 
166  DTDigiCollectionDM_ = ps.getParameter<std::string>("DTDigiCollectionDM");
167  RPCDigiCollectionDM_ = ps.getParameter<std::string>("RPCDigiCollectionDM");
168  CSCStripDigiCollectionDM_ = ps.getParameter<std::string>("CSCStripDigiCollectionDM");
169  CSCWireDigiCollectionDM_ = ps.getParameter<std::string>("CSCWireDigiCollectionDM");
170  CSCComparatorDigiCollectionDM_ = ps.getParameter<std::string>("CSCComparatorDigiCollectionDM");
171 
172 
173  produces< DTDigiCollection >();
174  produces< RPCDigiCollection >();
175  produces< CSCStripDigiCollection >(CSCStripDigiCollectionDM_);
176  produces< CSCWireDigiCollection >(CSCWireDigiCollectionDM_);
177  produces< CSCComparatorDigiCollection >(CSCComparatorDigiCollectionDM_);
178 
180 
181 
182  if(MergeTrackerDigis_) {
183 
184  // Si-Strips
185 
186  useSiStripRawDigi_ = ps.exists("SiStripRawDigiSource")?
187  ps.getParameter<std::string>("SiStripRawDigiSource")=="PILEUP" ||
188  ps.getParameter<std::string>("SiStripRawDigiSource")=="SIGNAL" : false;
189 
190  SiStripDigiCollectionDM_ = ps.getParameter<std::string>("SiStripDigiCollectionDM");
191 
192  if(useSiStripRawDigi_) {
193 
194  produces< edm::DetSetVector<SiStripRawDigi> > (SiStripDigiCollectionDM_);
196 
197  } else {
198 
199  produces< edm::DetSetVector<SiStripDigi> > (SiStripDigiCollectionDM_);
200 
201  if( addMCDigiNoise_ ) {
203  }
204  else {
206  }
207  }
208 
209  // Pixels
210 
211  PixelDigiCollectionDM_ = ps.getParameter<std::string>("PixelDigiCollectionDM");
212 
213  produces< edm::DetSetVector<PixelDigi> > (PixelDigiCollectionDM_);
214 
215  if( addMCDigiNoise_ ) {
217  }
218  else {
220  }
221 
222  }
223  else{
224  //Tracks:
227  }
228 
229  // Pileup Information: if doing pre-mixing, we have to save the pileup information from the Secondary stream
230 
231  MergePileup_ = ps.getParameter<bool>("MergePileupInfo");
232 
233  if(MergePileup_) {
234  produces< std::vector<PileupSummaryInfo> >();
235  produces< int >("bunchSpacing");
236  produces<CrossingFramePlaybackInfoNew>();
237 
239  }
240 
241  // Validation
242 
243  produces< std::vector<TrackingParticle> >(ps.getParameter<std::string>("TrackingParticleCollectionDM"));
244  produces< std::vector<TrackingVertex> >(ps.getParameter<std::string>("TrackingParticleCollectionDM"));
245 
246  produces< edm::DetSetVector<StripDigiSimLink> >(ps.getParameter<std::string>("StripDigiSimLinkCollectionDM"));
247  produces< edm::DetSetVector<PixelDigiSimLink> >(ps.getParameter<std::string>("PixelDigiSimLinkCollectionDM"));
248  produces< MuonDigiCollection<DTLayerId,DTDigiSimLink> >(ps.getParameter<std::string>("DTDigiSimLinkDM"));
249  produces< edm::DetSetVector<RPCDigiSimLink> >(ps.getParameter<std::string>("RPCDigiSimLinkDM"));
250  produces< edm::DetSetVector<StripDigiSimLink> >(ps.getParameter<std::string>("CSCStripDigiSimLinkDM"));
251  produces< edm::DetSetVector<StripDigiSimLink> >(ps.getParameter<std::string>("CSCWireDigiSimLinkDM"));
252 
254 
255  }
256 
258  // get subdetector names
259  // edm::Service<edm::ConstProductRegistry> reg;
260  // Loop over provenance of products in registry.
261  //for (edm::ProductRegistry::ProductList::const_iterator it = reg->productList().begin(); it != reg->productList().end(); ++it) {
262 
263  // **** Check this out.... ****
264 
265  // See FWCore/Framework/interface/BranchDescription.h
266  // BranchDescription contains all the information for the product.
267 
268  // This section not very backwards-compatible in terms of digi-merging. Need to be able to specify here which data format
269  // to look at...
270 
271  // edm::BranchDescription desc = it->second;
272  //if (!desc.friendlyClassName_.compare(0,9,"EBRecHitC")) {
273  // Subdetectors_.push_back(desc.productInstanceName_);
274  //LogInfo("DataMixingModule") <<"Adding container "<<desc.productInstanceName_ <<" for pileup treatment";
275  //}
276  //else if (!desc.friendlyClassName_.compare(0,9,"EERecHitC")) {
277  // else if (!desc.friendlyClassName_.compare(0,9,"EErechitC") && desc.productInstanceName_.compare(0,11,"TrackerHits")) {
278  // Subdetectors_.push_back(desc.productInstanceName_);
279  //LogInfo("DataMixingModule") <<"Adding container "<<desc.productInstanceName_ <<" for pileup treatment";
280  //}
281  //else if (!desc.friendlyClassName_.compare(0,9,"HBRecHitC")) {
282  // Subdetectors_.push_back(desc.productInstanceName_);
283  //LogInfo("DataMixingModule") <<"Adding container "<<desc.productInstanceName_ <<" for pileup treatment";
284  //}
285  //else if (!desc.friendlyClassName_.compare(0,9,"HERecHitC")) {
286  // Subdetectors_.push_back(desc.productInstanceName_);
287  //LogInfo("DataMixingModule") <<"Adding container "<<desc.productInstanceName_ <<" for pileup treatment";
288  // }
289  // and so on with other detector types...
290  // }
291  }
292 
293 
295 
296  if( addMCDigiNoise_ ) {
297  if(MergeTrackerDigis_){
300  }
301  else{
303  }
305  }
308  }
309 
311 
312  }
313 
314 
316  BMixingModule::beginRun( run, ES);
317  if( addMCDigiNoise_ ) {
319  HcalDigiWorkerProd_->beginRun( run, ES );
320  }
321  }
322 
324  //if( addMCDigiNoise_ ) {
325  // HcalDigiWorkerProd_->endRun( run, ES ); // FIXME not implemented
326  // EcalDigiWorkerProd_->endRun( ES ); // FIXME not implemented
327  //}
328  BMixingModule::endRun( run, ES);
329  }
330 
331  // Virtual destructor needed.
333  if(MergeEMDigis_){
334  if(addMCDigiNoise_ ) {delete EcalDigiWorkerProd_;}
335  else {delete EMDigiWorker_;}
336  }
337  else {delete EMWorker_;}
338  if(MergeHcalDigis_) {
340  else { delete HcalDigiWorker_; }}
341  else {delete HcalWorker_;}
342  if(MuonWorker_) delete MuonWorker_;
343  if(MergeTrackerDigis_){
345  delete SiStripRawWorker_;
346  else if(addMCDigiNoise_ ) delete SiStripMCDigiWorker_;
347  else delete SiStripWorker_;
349  else delete SiPixelWorker_;
350  }
351  else{
352  delete GeneralTrackWorker_;
353  }
354  if(MergePileup_) { delete PUWorker_;}
355 
357  }
358 
360  // fill in maps of hits
361 
362  LogDebug("DataMixingModule")<<"===============> adding MC signals for "<<e.id();
363 
364  // Ecal
365  if(MergeEMDigis_) {
367  else {EMDigiWorker_->addEMSignals(e, ES); }
368  }
369  else{ EMWorker_->addEMSignals(e);}
370 
371  // Hcal
372  if(MergeHcalDigis_) {
375  }
376  else{
378  }
379  }
380  else {HcalWorker_->addHcalSignals(e);}
381 
382  // Muon
384 
385  if(MergeTrackerDigis_){
386  // SiStrips
390 
391  // SiPixels
394  }else{
395  //GeneralTrackWorker_->addGeneralTrackSignal(e);
397  }
398  AddedPileup_ = false;
399 
401 
402  } // end of addSignals
403 
404 
405 
406 
407  void DataMixingModule::pileWorker(const EventPrincipal &ep, int bcr, int eventNr, const edm::EventSetup& ES, edm::ModuleCallingContext const* mcc) {
408 
409  InternalContext internalContext(ep.id(), mcc);
410  ParentContext parentContext(&internalContext);
411  ModuleCallingContext moduleCallingContext(&moduleDescription());
412  ModuleContextSentry moduleContextSentry(&moduleCallingContext, parentContext);
413 
414  LogDebug("DataMixingModule") <<"\n===============> adding pileups from event "<<ep.id()<<" for bunchcrossing "<<bcr;
415 
416  // Note: setupPileUpEvent may modify the run and lumi numbers of the EventPrincipal to match that of the primary event.
417  setupPileUpEvent(ES);
418 
419  // check and see if we need to copy the pileup information from
420  // secondary stream to the output stream
421  // We only have the pileup event here, so pick the first time and store the info
422 
423 
424  if(MergePileup_ && !AddedPileup_){
425 
426  PUWorker_->addPileupInfo(&ep, eventNr, &moduleCallingContext);
427 
428  AddedPileup_ = true;
429  }
430 
431  // fill in maps of hits; same code as addSignals, except now applied to the pileup events
432 
433  // Ecal
434  if(MergeEMDigis_) {
435  if(addMCDigiNoise_ ) { EcalDigiWorkerProd_->addEcalPileups(bcr, &ep, eventNr, ES, &moduleCallingContext);}
436  else { EMDigiWorker_->addEMPileups(bcr, &ep, eventNr, ES, &moduleCallingContext);}
437  }
438  else {EMWorker_->addEMPileups(bcr, &ep, eventNr, &moduleCallingContext); }
439 
440  // Hcal
441  if(MergeHcalDigis_) {
442  if(MergeHcalDigisProd_) {
443  HcalDigiWorkerProd_->addHcalPileups(bcr, &ep, eventNr, ES, &moduleCallingContext);
444  }
445  else{
446  HcalDigiWorker_->addHcalPileups(bcr, &ep, eventNr, ES, &moduleCallingContext);}
447  }
448  else {HcalWorker_->addHcalPileups(bcr, &ep, eventNr, &moduleCallingContext);}
449 
450  // Muon
451  MuonWorker_->addMuonPileups(bcr, &ep, eventNr, &moduleCallingContext);
452 
453  if(MergeTrackerDigis_){
454  // SiStrips
455  if(useSiStripRawDigi_) SiStripRawWorker_->addSiStripPileups(bcr, &ep, eventNr, &moduleCallingContext);
456  else if(addMCDigiNoise_ ) SiStripMCDigiWorker_->addSiStripPileups(bcr, &ep, eventNr, &moduleCallingContext);
457  else SiStripWorker_->addSiStripPileups(bcr, &ep, eventNr, &moduleCallingContext);
458 
459  // SiPixels
460  //whoops this should be for the MC worker ????? SiPixelWorker_->setPileupInfo(ps,bunchSpacing);
461  if(addMCDigiNoise_ ) SiPixelMCDigiWorker_->addSiPixelPileups(bcr, &ep, eventNr, &moduleCallingContext);
462  else SiPixelWorker_->addSiPixelPileups(bcr, &ep, eventNr, &moduleCallingContext);
463  }else{
464  PileUpEventPrincipal pep(ep,&moduleCallingContext,bcr);
465  GeneralTrackWorker_->accumulate(pep, ES,ep.streamID());
466  }
467 
468  TrackingParticleWorker_->addTrackingParticlePileups(bcr, &ep, eventNr, &moduleCallingContext);
469 
470  }
471 
472 
473 
475  {
476  using namespace std::placeholders;
477 
478  std::vector<edm::SecondaryEventIDAndFileInfo> recordEventID;
479  std::vector<int> PileupList;
480  PileupList.clear();
481  TrueNumInteractions_.clear();
482 
484 
485  for (int bunchCrossing=minBunch_;bunchCrossing<=maxBunch_;++bunchCrossing) {
486  for (unsigned int isource=0;isource<maxNbSources_;++isource) {
487  std::shared_ptr<PileUp> source = inputSources_[isource];
488  if (!source || !(source->doPileUp(bunchCrossing)))
489  continue;
490 
491  if (isource==0)
492  source->CalculatePileup(minBunch_, maxBunch_, PileupList, TrueNumInteractions_, e.streamID());
493 
494  int NumPU_Events = 0;
495  if (isource ==0) {
496  NumPU_Events = PileupList[bunchCrossing - minBunch_];
497  } else {
498  // non-minbias pileup only gets one event for now. Fix later if desired.
499  NumPU_Events = 1;
500  }
501 
502  if(!MergeTrackerDigis_)
503  GeneralTrackWorker_->initializeBunchCrossing(e, ES, bunchCrossing);
504 
505  source->readPileUp(
506  e.id(),
507  recordEventID,
508  std::bind(&DataMixingModule::pileWorker, std::ref(*this),
509  _1, bunchCrossing, _2, std::cref(ES), mcc),
510  NumPU_Events,
511  e.streamID()
512  );
513 
514  if(!MergeTrackerDigis_)
515  GeneralTrackWorker_->finalizeBunchCrossing(e, ES, bunchCrossing);
516 
517  }
518  }
519 
520  }
521 
522 
524 
525  // individual workers...
526 
527  // move pileup first so we have access to the information for the put step
528 
529  std::vector<PileupSummaryInfo> ps;
530  int bunchSpacing=10000;
531 
532  if(MergePileup_) {
533  PUWorker_->getPileupInfo(ps,bunchSpacing);
535  }
536 
537  // Ecal
538  if(MergeEMDigis_) {
540  else { EMDigiWorker_->putEM(e,ES);}
541  }
542  else {EMWorker_->putEM(e);}
543 
544  // Hcal
545  if(MergeHcalDigis_) {
546  if(MergeHcalDigisProd_) {
548  }
549  else{
550  HcalDigiWorker_->putHcal(e,ES);
551  }
552  }
553  else {HcalWorker_->putHcal(e);}
554 
555  // Muon
556  MuonWorker_->putMuon(e);
557 
558  if(MergeTrackerDigis_){
559  // SiStrips
562  else SiStripWorker_->putSiStrip(e);
563 
564  // SiPixels
565  if(addMCDigiNoise_ ) SiPixelMCDigiWorker_->putSiPixel(e, ES, ps, bunchSpacing);
566  else SiPixelWorker_->putSiPixel(e);
567  }else{
569  }
570 
572 
573  }
574 
578  }
579 
581  // EcalDigiWorkerProd_->endLuminosityBlock(l1,c); // FIXME Not implemented.
583  }
584 
585 
586 } //edm
#define LogDebug(id)
virtual void doPileUp(edm::Event &e, const edm::EventSetup &ES) override
virtual void initializeEvent(edm::Event const &event, edm::EventSetup const &setup)=0
T getParameter(std::string const &) const
edm::EDGetTokenT< HcalQIE11DigitizerTraits::DigiCollection > tok_qie11_
T getUntrackedParameter(std::string const &, T const &) const
void addMuonSignals(const edm::Event &e)
virtual void beginRun(const edm::Run &r, const edm::EventSetup &setup) override
std::string HFDigiCollectionDM_
void addHcalSignals(const edm::Event &e, const edm::EventSetup &ES)
virtual void accumulate(edm::Event const &event, edm::EventSetup const &setup)=0
void putEM(edm::Event &e)
virtual void endRun(const edm::Run &r, const edm::EventSetup &setup) override
virtual void beginLuminosityBlock(LuminosityBlock const &l1, EventSetup const &c) override
void addSiStripSignals(const edm::Event &e)
void addHcalSignals(const edm::Event &e)
static std::string const source("source")
std::string HBHERecHitCollectionDM_
edm::InputTag QIE11PileInputTag_
std::string ZDCRecHitCollectionDM_
void setESAccess(edm::EDGetTokenT< ESDigitizerTraits::DigiCollection > tok)
void addMuonPileups(const int bcr, const edm::EventPrincipal *, unsigned int EventId, ModuleCallingContext const *)
void addEMSignals(const edm::Event &e)
edm::EDGetTokenT< EBDigitizerTraits::DigiCollection > tok_eb_
virtual void finalizeEvent(edm::Event &event, edm::EventSetup const &setup)=0
void addHcalPileups(const int bcr, const edm::EventPrincipal *, unsigned int EventId, ModuleCallingContext const *)
void putEcal(edm::Event &e, const edm::EventSetup &ES)
std::string CSCStripDigiCollectionDM_
edm::InputTag QIE10PileInputTag_
void putPileupInfo(edm::Event &e)
std::vector< float > TrueNumInteractions_
EventID const & id() const
bool exists(std::string const &parameterName) const
checks if a parameter exists
virtual void initializeEvent(edm::Event const &e, edm::EventSetup const &c)
std::string SiStripDigiCollectionDM_
edm::EDGetTokenT< ZDCDigitizerTraits::DigiCollection > tok_zdc_
virtual void initializeBunchCrossing(edm::Event const &event, edm::EventSetup const &setup, int bunchCrossing)
edm::EDGetTokenT< HODigitizerTraits::DigiCollection > tok_ho_
virtual void initializeEvent(const edm::Event &e, edm::EventSetup const &iSetup)
void addHcalPileups(const int bcr, const edm::EventPrincipal *, unsigned int EventId, const edm::EventSetup &ES, ModuleCallingContext const *)
DigiAccumulatorMixMod * GeneralTrackWorker_
void addSiPixelPileups(const int bcr, const edm::EventPrincipal *, unsigned int EventId, ModuleCallingContext const *)
void addEMPileups(const int bcr, const edm::EventPrincipal *, unsigned int EventId, const edm::EventSetup &ES, ModuleCallingContext const *)
virtual void endRun(const edm::Run &r, const edm::EventSetup &setup) override
std::string CSCWireDigiCollectionDM_
void putEM(edm::Event &e, const edm::EventSetup &ES)
edm::EDGetTokenT< ESDigitizerTraits::DigiCollection > tok_es_
std::string QIE10DigiCollectionDM_
DataMixingSiStripRawWorker * SiStripRawWorker_
void beginRun(edm::Run const &run, edm::EventSetup const &eventSetup) override
DataMixingSiPixelWorker * SiPixelWorker_
void addSiStripPileups(const int bcr, const edm::EventPrincipal *, unsigned int EventId, ModuleCallingContext const *)
ModuleCallingContext const * moduleCallingContext() const
Definition: Event.h:228
DataMixingSiStripMCDigiWorker * SiStripMCDigiWorker_
std::string RPCDigiCollectionDM_
void initializeEvent(const edm::Event &e, const edm::EventSetup &ES)
void putHcal(edm::Event &e, const edm::EventSetup &ES)
std::string ZDCDigiCollectionDM_
ConsumesCollector consumesCollector()
Use a ConsumesCollector to gather consumes information from helper functions.
void addSiStripPileups(const int bcr, const edm::EventPrincipal *, unsigned int EventId, ModuleCallingContext const *)
DataMixingHcalDigiWorker * HcalDigiWorker_
DataMixingEMWorker * EMWorker_
StreamID streamID() const
edm::InputTag EEPileInputTag_
edm::EDGetTokenT< EEDigitizerTraits::DigiCollection > tok_ee_
static const unsigned int maxNbSources_
edm::InputTag ESPileInputTag_
DataMixingPileupCopy * PUWorker_
void addTrackingParticlePileups(const int bcr, const edm::EventPrincipal *, unsigned int EventId, ModuleCallingContext const *)
void setEBAccess(edm::EDGetTokenT< EBDigitizerTraits::DigiCollection > tok)
std::unique_ptr< DigiAccumulatorMixMod > makeDigiAccumulator(ParameterSet const &, stream::EDProducerBase &, ConsumesCollector &) const
virtual void initializeEvent(edm::Event const &e, edm::EventSetup const &c)
ModuleDescription const & moduleDescription() const
void beginLuminosityBlock(edm::LuminosityBlock const &lumi, edm::EventSetup const &setup)
void addSiStripPileups(const int bcr, const edm::EventPrincipal *, unsigned int EventId, ModuleCallingContext const *)
std::string HORecHitCollectionDM_
DataMixingEcalDigiWorkerProd * EcalDigiWorkerProd_
virtual void endLuminosityBlock(LuminosityBlock const &l1, EventSetup const &c) override
DataMixingMuonWorker * MuonWorker_
virtual void getSubdetectorNames()
edm::InputTag EBPileInputTag_
std::string EEDigiCollectionDM_
ParameterSet const & getParameterSet(std::string const &) const
void addHcalPileups(const int bcr, const edm::EventPrincipal *, unsigned int EventId, const edm::EventSetup &ES, edm::ModuleCallingContext const *)
DataMixingTrackingParticleWorker * TrackingParticleWorker_
edm::InputTag HBHEPileInputTag_
std::string HFRecHitCollectionDM_
void pileWorker(const edm::EventPrincipal &, int bcr, int EventId, const edm::EventSetup &ES, ModuleCallingContext const *)
edm::EDGetTokenT< HcalQIE10DigitizerTraits::DigiCollection > tok_qie10_
std::string HBHEDigiCollectionDM_
std::string EBRecHitCollectionDM_
std::string CSCComparatorDigiCollectionDM_
void addEMPileups(const int bcr, const edm::EventPrincipal *, unsigned int EventId, ModuleCallingContext const *)
edm::InputTag HOPileInputTag_
void putHcal(edm::Event &e, const edm::EventSetup &ES)
void setEEAccess(edm::EDGetTokenT< EEDigitizerTraits::DigiCollection > tok)
virtual void finalizeBunchCrossing(edm::Event &event, edm::EventSetup const &setup, int bunchCrossing)
edm::EventID id() const
Definition: EventBase.h:60
DataMixingSiStripWorker * SiStripWorker_
void beginRun(const edm::EventSetup &ES)
std::string ESRecHitCollectionDM_
std::string EERecHitCollectionDM_
edm::EDGetTokenT< HFDigitizerTraits::DigiCollection > tok_hf_
HLT enums.
void addSiPixelPileups(const int bcr, const edm::EventPrincipal *, unsigned int EventId, ModuleCallingContext const *)
std::vector< std::shared_ptr< PileUp > > inputSources_
std::string ESDigiCollectionDM_
virtual void put(edm::Event &e, const edm::EventSetup &ES) override
std::string DTDigiCollectionDM_
void addSiStripSignals(const edm::Event &e)
virtual void initializeEvent(edm::Event const &e, edm::EventSetup const &eventSetup) override
std::string EBDigiCollectionDM_
StreamID streamID() const
Definition: Event.h:81
DataMixingHcalWorker * HcalWorker_
void getPileupInfo(std::vector< PileupSummaryInfo > &ps, int &bs)
edm::InputTag HFPileInputTag_
void addEcalSignals(const edm::Event &e, const edm::EventSetup &ES)
std::string HODigiCollectionDM_
std::string PixelDigiCollectionDM_
DataMixingSiPixelMCDigiWorker * SiPixelMCDigiWorker_
edm::EDGetTokenT< HBHEDigitizerTraits::DigiCollection > tok_hbhe_
DataMixingHcalDigiWorkerProd * HcalDigiWorkerProd_
virtual void beginLuminosityBlock(const edm::LuminosityBlock &l, const edm::EventSetup &setup) override
void beginRun(const edm::Run &run, const edm::EventSetup &ES)
void putSiStrip(edm::Event &e, edm::EventSetup const &iSetup)
static DigiAccumulatorMixModFactory const * get()
std::string QIE11DigiCollectionDM_
void addPileupInfo(const edm::EventPrincipal *, unsigned int EventId, ModuleCallingContext const *mcc)
void addEMSignals(const edm::Event &e, const edm::EventSetup &ES)
void addHcalSignals(const edm::Event &e, const edm::EventSetup &ES)
void putSiPixel(edm::Event &e, edm::EventSetup const &iSetup, std::vector< PileupSummaryInfo > &ps, int &bs)
void setupPileUpEvent(const edm::EventSetup &setup)
virtual void addSignals(const edm::Event &e, const edm::EventSetup &ES) override
virtual void endLuminosityBlock(const edm::LuminosityBlock &l, const edm::EventSetup &setup) override
void addEcalPileups(const int bcr, const edm::EventPrincipal *, unsigned int EventId, const edm::EventSetup &ES, edm::ModuleCallingContext const *)
DataMixingEMDigiWorker * EMDigiWorker_
Definition: Run.h:42
void addSiPixelSignals(const edm::Event &e)
edm::InputTag ZDCPileInputTag_
void initializeEvent(const edm::Event &e, const edm::EventSetup &ES)