CMS 3D CMS Logo

List of all members | Public Member Functions | Private Member Functions | Private Attributes
edm::DataMixingModule Class Reference

#include <DataMixingModule.h>

Inheritance diagram for edm::DataMixingModule:
edm::BMixingModule edm::stream::EDProducer< GlobalCache< MixingCache::Config > >

Public Member Functions

void addSignals (const edm::Event &e, const edm::EventSetup &ES) override
 
void beginLuminosityBlock (LuminosityBlock const &l1, EventSetup const &c) override
 
void beginRun (edm::Run const &run, edm::EventSetup const &eventSetup) override
 
void checkSignal (const edm::Event &e) override
 
void createnewEDProduct () override
 
 DataMixingModule (const edm::ParameterSet &ps, MixingCache::Config const *globalConf)
 
void doPileUp (edm::Event &e, const edm::EventSetup &ES) override
 
void endLuminosityBlock (LuminosityBlock const &l1, EventSetup const &c) override
 
void endRun (const edm::Run &r, const edm::EventSetup &setup) override
 
void initializeEvent (edm::Event const &e, edm::EventSetup const &eventSetup) override
 
bool pileWorker (const edm::EventPrincipal &, int bcr, int EventId, const edm::EventSetup &ES, ModuleCallingContext const *)
 
void put (edm::Event &e, const edm::EventSetup &ES) override
 
 ~DataMixingModule () override
 
- Public Member Functions inherited from edm::BMixingModule
virtual void addPileups (const int bcr, EventPrincipal *ep, unsigned int eventId, unsigned int worker, const edm::EventSetup &c)
 
double averageNumber () const
 
void beginLuminosityBlock (const edm::LuminosityBlock &l, const edm::EventSetup &setup) override
 
void beginRun (const edm::Run &r, const edm::EventSetup &setup) override
 
 BMixingModule (const edm::ParameterSet &ps, MixingCache::Config const *globalConf)
 
void endLuminosityBlock (const edm::LuminosityBlock &l, const edm::EventSetup &setup) override
 
void endRun (const edm::Run &r, const edm::EventSetup &setup) override
 
virtual void finalizeEvent (edm::Event &event, const edm::EventSetup &setup)
 
bool poisson () const
 
void produce (edm::Event &e1, const edm::EventSetup &c) override
 
virtual void reload (const edm::EventSetup &setup)
 
virtual void setBcrOffset ()
 
virtual void setSourceOffset (const unsigned int s)
 
 ~BMixingModule () override
 
- Public Member Functions inherited from edm::stream::EDProducer< GlobalCache< MixingCache::Config > >
 EDProducer ()=default
 
bool hasAbilityToProduceInBeginLumis () const final
 
bool hasAbilityToProduceInBeginRuns () const final
 
bool hasAbilityToProduceInEndLumis () const final
 
bool hasAbilityToProduceInEndRuns () const final
 

Private Member Functions

virtual void getSubdetectorNames ()
 

Private Attributes

bool AddedPileup_
 
std::string CSCComparatorDigiCollectionDM_
 
std::string CSCStripDigiCollectionDM_
 
std::string CSCWireDigiCollectionDM_
 
std::string DTDigiCollectionDM_
 
std::string EBDigiCollectionDM_
 
edm::InputTag EBPileInputTag_
 
std::string EBRecHitCollectionDM_
 
std::string EEDigiCollectionDM_
 
edm::InputTag EEPileInputTag_
 
std::string EERecHitCollectionDM_
 
DataMixingEMDigiWorkerEMDigiWorker_
 
DataMixingEMWorkerEMWorker_
 
std::string ESDigiCollectionDM_
 
edm::InputTag ESPileInputTag_
 
std::string ESRecHitCollectionDM_
 
std::string HBHEDigiCollectionDM_
 
edm::InputTag HBHEPileInputTag_
 
std::string HBHERecHitCollectionDM_
 
DataMixingHcalDigiWorkerHcalDigiWorker_
 
DataMixingHcalDigiWorkerProdHcalDigiWorkerProd_
 
DataMixingHcalWorkerHcalWorker_
 
std::string HFDigiCollectionDM_
 
edm::InputTag HFPileInputTag_
 
std::string HFRecHitCollectionDM_
 
std::string HODigiCollectionDM_
 
edm::InputTag HOPileInputTag_
 
std::string HORecHitCollectionDM_
 
std::string label_
 
bool MergeEMDigis_
 
bool MergeHcalDigis_
 
bool MergeHcalDigisProd_
 
bool MergePileup_
 
bool MergeTrackerDigis_
 
DataMixingMuonWorkerMuonWorker_
 
std::string PixelDigiCollectionDM_
 
DataMixingPileupCopyPUWorker_
 
std::string QIE10DigiCollectionDM_
 
edm::InputTag QIE10PileInputTag_
 
std::string QIE11DigiCollectionDM_
 
edm::InputTag QIE11PileInputTag_
 
std::string RPCDigiCollectionDM_
 
DataMixingSiPixelWorkerSiPixelWorker_
 
std::string SiStripDigiCollectionDM_
 
std::string siStripRawDigiSource_
 
DataMixingSiStripRawWorkerSiStripRawWorker_
 
DataMixingSiStripWorkerSiStripWorker_
 
std::vector< std::string > Subdetectors_
 
edm::EDGetTokenT< HBHEDigitizerTraits::DigiCollectiontok_hbhe_
 
edm::EDGetTokenT< HFDigitizerTraits::DigiCollectiontok_hf_
 
edm::EDGetTokenT< HODigitizerTraits::DigiCollectiontok_ho_
 
edm::EDGetTokenT< HcalQIE10DigitizerTraits::DigiCollectiontok_qie10_
 
edm::EDGetTokenT< HcalQIE11DigitizerTraits::DigiCollectiontok_qie11_
 
edm::EDGetTokenT< ZDCDigitizerTraits::DigiCollectiontok_zdc_
 
bool useSiStripRawDigi_
 
std::string ZDCDigiCollectionDM_
 
edm::InputTag ZDCPileInputTag_
 
std::string ZDCRecHitCollectionDM_
 

Additional Inherited Members

- Public Types inherited from edm::stream::EDProducer< GlobalCache< MixingCache::Config > >
typedef CacheContexts< T... > CacheTypes
 
typedef CacheTypes::GlobalCache GlobalCache
 
typedef AbilityChecker< T... > HasAbility
 
typedef CacheTypes::LuminosityBlockCache LuminosityBlockCache
 
typedef LuminosityBlockContextT< LuminosityBlockCache, RunCache, GlobalCacheLuminosityBlockContext
 
typedef CacheTypes::LuminosityBlockSummaryCache LuminosityBlockSummaryCache
 
typedef CacheTypes::RunCache RunCache
 
typedef RunContextT< RunCache, GlobalCacheRunContext
 
typedef CacheTypes::RunSummaryCache RunSummaryCache
 
- Static Public Member Functions inherited from edm::BMixingModule
static void globalEndJob (MixingCache::Config *)
 
static std::unique_ptr< MixingCache::ConfiginitializeGlobalCache (edm::ParameterSet const &)
 
- Protected Member Functions inherited from edm::BMixingModule
void beginStream (edm::StreamID) override
 
void dropUnwantedBranches (std::vector< std::string > const &wantedBranches)
 
void endStream () override
 
void setupPileUpEvent (const edm::EventSetup &setup)
 
void update (edm::EventSetup const &)
 
- Protected Attributes inherited from edm::BMixingModule
int bunchSpace_
 
bool checktof_
 
bool doit_ [4]
 
unsigned int eventId_
 
std::vector< std::shared_ptr< PileUp > > inputSources_
 
int maxBunch_
 
int minBunch_
 
const bool mixProdStep1_
 
const bool mixProdStep2_
 
edm::ESWatcher< MixingRcdparameterWatcher_
 
bool playback_
 
bool readDB_
 
std::vector< float > TrueNumInteractions_
 
int vertexOffset_
 
- Static Protected Attributes inherited from edm::BMixingModule
const static unsigned int maxNbSources_ = 4
 

Detailed Description

Definition at line 45 of file DataMixingModule.h.

Constructor & Destructor Documentation

◆ DataMixingModule()

DataMixingModule::DataMixingModule ( const edm::ParameterSet ps,
MixingCache::Config const *  globalConf 
)
explicit

standard constructor

Definition at line 31 of file DataMixingModule.cc.

32  : BMixingModule(ps, globalConf),
33  EBPileInputTag_(ps.getParameter<edm::InputTag>("EBPileInputTag")),
34  EEPileInputTag_(ps.getParameter<edm::InputTag>("EEPileInputTag")),
35  ESPileInputTag_(ps.getParameter<edm::InputTag>("ESPileInputTag")),
36  HBHEPileInputTag_(ps.getParameter<edm::InputTag>("HBHEPileInputTag")),
37  HOPileInputTag_(ps.getParameter<edm::InputTag>("HOPileInputTag")),
38  HFPileInputTag_(ps.getParameter<edm::InputTag>("HFPileInputTag")),
39  ZDCPileInputTag_(ps.getParameter<edm::InputTag>("ZDCPileInputTag")),
40  QIE10PileInputTag_(ps.getParameter<edm::InputTag>("QIE10PileInputTag")),
41  QIE11PileInputTag_(ps.getParameter<edm::InputTag>("QIE11PileInputTag")),
42  label_(ps.getParameter<std::string>("Label")) {
43  // prepare for data access in DataMixingHcalDigiWorkerProd
44  tok_hbhe_ = consumes<HBHEDigitizerTraits::DigiCollection>(HBHEPileInputTag_);
45  tok_ho_ = consumes<HODigitizerTraits::DigiCollection>(HOPileInputTag_);
46  tok_hf_ = consumes<HFDigitizerTraits::DigiCollection>(HFPileInputTag_);
47  tok_zdc_ = consumes<ZDCDigitizerTraits::DigiCollection>(ZDCPileInputTag_);
48  tok_qie10_ = consumes<HcalQIE10DigitizerTraits::DigiCollection>(QIE10PileInputTag_);
49  tok_qie11_ = consumes<HcalQIE11DigitizerTraits::DigiCollection>(QIE11PileInputTag_);
50 
51  // get the subdetector names
52  this->getSubdetectorNames(); // something like this may be useful to check
53  // what we are supposed to do...
54 
55  // For now, list all of them here. Later, make this selectable with input
56  // parameters
57  //
58 
59  // Check to see if we are working in Full or Fast Simulation
60 
61  MergeTrackerDigis_ = (ps.getParameter<std::string>("TrackerMergeType")) == "Digis";
62  MergeEMDigis_ = (ps.getParameter<std::string>("EcalMergeType")) == "Digis";
63  MergeHcalDigis_ = (ps.getParameter<std::string>("HcalMergeType")) == "Digis";
64  if (MergeHcalDigis_)
65  MergeHcalDigisProd_ = (ps.getParameter<std::string>("HcalDigiMerge") == "FullProd");
66 
67  // Put Fast Sim Sequences here for Simplification: Fewer options!
68 
69  if (MergeEMDigis_) {
70  // cout<<"EM Digis TRUE!!!"<<endl;
71 
72  EBDigiCollectionDM_ = ps.getParameter<std::string>("EBDigiCollectionDM");
73  EEDigiCollectionDM_ = ps.getParameter<std::string>("EEDigiCollectionDM");
74  ESDigiCollectionDM_ = ps.getParameter<std::string>("ESDigiCollectionDM");
75  // nMaxPrintout_ =
76  // ps.getUntrackedParameter<int>("nMaxPrintout",10);
77 
78  produces<EBDigiCollection>(EBDigiCollectionDM_);
79  produces<EEDigiCollection>(EEDigiCollectionDM_);
80  produces<ESDigiCollection>(ESDigiCollectionDM_);
81 
82  EMDigiWorker_ = new DataMixingEMDigiWorker(ps, consumesCollector());
83  } else { // merge RecHits
84  EBRecHitCollectionDM_ = ps.getParameter<std::string>("EBRecHitCollectionDM");
85  EERecHitCollectionDM_ = ps.getParameter<std::string>("EERecHitCollectionDM");
86  ESRecHitCollectionDM_ = ps.getParameter<std::string>("ESRecHitCollectionDM");
87  // nMaxPrintout_ =
88  // ps.getUntrackedParameter<int>("nMaxPrintout",10);
89 
90  produces<EBRecHitCollection>(EBRecHitCollectionDM_);
91  produces<EERecHitCollection>(EERecHitCollectionDM_);
92  produces<ESRecHitCollection>(ESRecHitCollectionDM_);
93 
94  EMWorker_ = new DataMixingEMWorker(ps, consumesCollector());
95  }
96  // Hcal next
97 
98  if (MergeHcalDigis_) {
99  HBHEDigiCollectionDM_ = ps.getParameter<std::string>("HBHEDigiCollectionDM");
100  HODigiCollectionDM_ = ps.getParameter<std::string>("HODigiCollectionDM");
101  HFDigiCollectionDM_ = ps.getParameter<std::string>("HFDigiCollectionDM");
102  ZDCDigiCollectionDM_ = ps.getParameter<std::string>("ZDCDigiCollectionDM");
103  QIE10DigiCollectionDM_ = ps.getParameter<std::string>("QIE10DigiCollectionDM");
104  QIE11DigiCollectionDM_ = ps.getParameter<std::string>("QIE11DigiCollectionDM");
105 
106  produces<HBHEDigiCollection>();
107  produces<HODigiCollection>();
108  produces<HFDigiCollection>();
109  produces<ZDCDigiCollection>();
110 
111  produces<QIE10DigiCollection>("HFQIE10DigiCollection");
112  produces<QIE11DigiCollection>("HBHEQIE11DigiCollection");
113 
114  if (ps.getParameter<bool>("debugCaloSamples")) {
115  produces<CaloSamplesCollection>("HcalSamples");
116  }
117  if (ps.getParameter<bool>("injectTestHits")) {
118  produces<edm::PCaloHitContainer>("HcalHits");
119  }
120 
122  HcalDigiWorkerProd_ = new DataMixingHcalDigiWorkerProd(ps, consumesCollector());
123  else
124  HcalDigiWorker_ = new DataMixingHcalDigiWorker(ps, consumesCollector());
125 
126  } else {
127  HBHERecHitCollectionDM_ = ps.getParameter<std::string>("HBHERecHitCollectionDM");
128  HORecHitCollectionDM_ = ps.getParameter<std::string>("HORecHitCollectionDM");
129  HFRecHitCollectionDM_ = ps.getParameter<std::string>("HFRecHitCollectionDM");
130  ZDCRecHitCollectionDM_ = ps.getParameter<std::string>("ZDCRecHitCollectionDM");
131 
132  produces<HBHERecHitCollection>(HBHERecHitCollectionDM_);
133  produces<HORecHitCollection>(HORecHitCollectionDM_);
134  produces<HFRecHitCollection>(HFRecHitCollectionDM_);
135  produces<ZDCRecHitCollection>(ZDCRecHitCollectionDM_);
136 
137  HcalWorker_ = new DataMixingHcalWorker(ps, consumesCollector());
138  }
139 
140  // Muons
141 
142  DTDigiCollectionDM_ = ps.getParameter<std::string>("DTDigiCollectionDM");
143  RPCDigiCollectionDM_ = ps.getParameter<std::string>("RPCDigiCollectionDM");
144  CSCStripDigiCollectionDM_ = ps.getParameter<std::string>("CSCStripDigiCollectionDM");
145  CSCWireDigiCollectionDM_ = ps.getParameter<std::string>("CSCWireDigiCollectionDM");
146  CSCComparatorDigiCollectionDM_ = ps.getParameter<std::string>("CSCComparatorDigiCollectionDM");
147 
148  produces<DTDigiCollection>();
149  produces<RPCDigiCollection>();
150  produces<CSCStripDigiCollection>(CSCStripDigiCollectionDM_);
151  produces<CSCWireDigiCollection>(CSCWireDigiCollectionDM_);
152  produces<CSCComparatorDigiCollection>(CSCComparatorDigiCollectionDM_);
153 
154  MuonWorker_ = new DataMixingMuonWorker(ps, consumesCollector());
155 
156  // Si-Strips
157 
158  useSiStripRawDigi_ = ps.exists("SiStripRawDigiSource")
159  ? ps.getParameter<std::string>("SiStripRawDigiSource") == "PILEUP" ||
160  ps.getParameter<std::string>("SiStripRawDigiSource") == "SIGNAL"
161  : false;
162 
163  SiStripDigiCollectionDM_ = ps.getParameter<std::string>("SiStripDigiCollectionDM");
164 
165  if (useSiStripRawDigi_) {
166  produces<edm::DetSetVector<SiStripRawDigi>>(SiStripDigiCollectionDM_);
167  SiStripRawWorker_ = new DataMixingSiStripRawWorker(ps, consumesCollector());
168 
169  } else {
170  produces<edm::DetSetVector<SiStripDigi>>(SiStripDigiCollectionDM_);
171 
172  SiStripWorker_ = new DataMixingSiStripWorker(ps, consumesCollector());
173  }
174 
175  // Pixels
176 
177  PixelDigiCollectionDM_ = ps.getParameter<std::string>("PixelDigiCollectionDM");
178 
179  produces<edm::DetSetVector<PixelDigi>>(PixelDigiCollectionDM_);
180 
181  SiPixelWorker_ = new DataMixingSiPixelWorker(ps, consumesCollector());
182 
183  // Pileup Information: if doing pre-mixing, we have to save the pileup
184  // information from the Secondary stream
185 
186  MergePileup_ = ps.getParameter<bool>("MergePileupInfo");
187 
188  if (MergePileup_) {
189  produces<std::vector<PileupSummaryInfo>>();
190  produces<int>("bunchSpacing");
191  produces<CrossingFramePlaybackInfoNew>();
192 
193  std::vector<edm::InputTag> GenPUProtonsInputTags;
194  GenPUProtonsInputTags = ps.getParameter<std::vector<edm::InputTag>>("GenPUProtonsInputTags");
195  for (std::vector<edm::InputTag>::const_iterator it_InputTag = GenPUProtonsInputTags.begin();
196  it_InputTag != GenPUProtonsInputTags.end();
197  ++it_InputTag)
198  produces<std::vector<reco::GenParticle>>(it_InputTag->label());
199 
200  PUWorker_ = new DataMixingPileupCopy(ps, consumesCollector());
201  }
202  }

References CSCComparatorDigiCollectionDM_, CSCStripDigiCollectionDM_, CSCWireDigiCollectionDM_, DTDigiCollectionDM_, EBDigiCollectionDM_, EBRecHitCollectionDM_, EEDigiCollectionDM_, EERecHitCollectionDM_, EMDigiWorker_, EMWorker_, ESDigiCollectionDM_, ESRecHitCollectionDM_, edm::ParameterSet::exists(), mixOne_sim_on_sim_cfi::GenPUProtonsInputTags, edm::ParameterSet::getParameter(), getSubdetectorNames(), HBHEDigiCollectionDM_, HBHEPileInputTag_, HBHERecHitCollectionDM_, HcalDigiWorker_, HcalDigiWorkerProd_, HcalWorker_, HFDigiCollectionDM_, HFPileInputTag_, HFRecHitCollectionDM_, HODigiCollectionDM_, HOPileInputTag_, HORecHitCollectionDM_, MergeEMDigis_, MergeHcalDigis_, MergeHcalDigisProd_, MergePileup_, MergeTrackerDigis_, MuonWorker_, PixelDigiCollectionDM_, PUWorker_, QIE10DigiCollectionDM_, QIE10PileInputTag_, QIE11DigiCollectionDM_, QIE11PileInputTag_, RPCDigiCollectionDM_, SiPixelWorker_, SiStripDigiCollectionDM_, SiStripRawWorker_, SiStripWorker_, AlCaHLTBitMon_QueryRunRegistry::string, tok_hbhe_, tok_hf_, tok_ho_, tok_qie10_, tok_qie11_, tok_zdc_, useSiStripRawDigi_, ZDCDigiCollectionDM_, ZDCPileInputTag_, and ZDCRecHitCollectionDM_.

◆ ~DataMixingModule()

DataMixingModule::~DataMixingModule ( )
override

Default destructor

Definition at line 253 of file DataMixingModule.cc.

253  {
254  if (MergeEMDigis_) {
255  delete EMDigiWorker_;
256  } else {
257  delete EMWorker_;
258  }
259  if (MergeHcalDigis_) {
260  if (MergeHcalDigisProd_) {
261  delete HcalDigiWorkerProd_;
262  } else {
263  delete HcalDigiWorker_;
264  }
265  } else {
266  delete HcalWorker_;
267  }
268  if (MuonWorker_)
269  delete MuonWorker_;
270  if (useSiStripRawDigi_)
271  delete SiStripRawWorker_;
272  else
273  delete SiStripWorker_;
274  delete SiPixelWorker_;
275  if (MergePileup_) {
276  delete PUWorker_;
277  }
278  }

References EMDigiWorker_, EMWorker_, HcalDigiWorker_, HcalDigiWorkerProd_, HcalWorker_, MergeEMDigis_, MergeHcalDigis_, MergeHcalDigisProd_, MergePileup_, MuonWorker_, PUWorker_, SiPixelWorker_, SiStripRawWorker_, SiStripWorker_, and useSiStripRawDigi_.

Member Function Documentation

◆ addSignals()

void DataMixingModule::addSignals ( const edm::Event e,
const edm::EventSetup ES 
)
overridevirtual

Reimplemented from edm::BMixingModule.

Definition at line 280 of file DataMixingModule.cc.

280  {
281  // fill in maps of hits
282 
283  LogDebug("DataMixingModule") << "===============> adding MC signals for " << e.id();
284 
285  // Ecal
286  if (MergeEMDigis_) {
288  } else {
290  }
291 
292  // Hcal
293  if (MergeHcalDigis_) {
294  if (MergeHcalDigisProd_) {
296  } else {
298  }
299  } else {
301  }
302 
303  // Muon
305 
306  // SiStrips
307  if (useSiStripRawDigi_)
309  else
311 
312  // SiPixels
314  AddedPileup_ = false;
315  } // end of addSignals

References AddedPileup_, edm::DataMixingEMWorker::addEMSignals(), edm::DataMixingEMDigiWorker::addEMSignals(), edm::DataMixingHcalWorker::addHcalSignals(), edm::DataMixingHcalDigiWorker::addHcalSignals(), edm::DataMixingHcalDigiWorkerProd::addHcalSignals(), edm::DataMixingMuonWorker::addMuonSignals(), edm::DataMixingSiPixelWorker::addSiPixelSignals(), edm::DataMixingSiStripWorker::addSiStripSignals(), edm::DataMixingSiStripRawWorker::addSiStripSignals(), MillePedeFileConverter_cfg::e, EMDigiWorker_, EMWorker_, HcalDigiWorker_, HcalDigiWorkerProd_, HcalWorker_, LogDebug, MergeEMDigis_, MergeHcalDigis_, MergeHcalDigisProd_, MuonWorker_, SiPixelWorker_, SiStripRawWorker_, SiStripWorker_, and useSiStripRawDigi_.

◆ beginLuminosityBlock()

void DataMixingModule::beginLuminosityBlock ( LuminosityBlock const &  l1,
EventSetup const &  c 
)
override

◆ beginRun()

void DataMixingModule::beginRun ( edm::Run const &  run,
edm::EventSetup const &  eventSetup 
)
override

Definition at line 248 of file DataMixingModule.cc.

References edm::BMixingModule::beginRun(), and writedatasetfile::run.

◆ checkSignal()

void edm::DataMixingModule::checkSignal ( const edm::Event e)
inlineoverridevirtual

Reimplemented from edm::BMixingModule.

Definition at line 54 of file DataMixingModule.h.

54 {};

◆ createnewEDProduct()

void edm::DataMixingModule::createnewEDProduct ( )
inlineoverridevirtual

Reimplemented from edm::BMixingModule.

Definition at line 55 of file DataMixingModule.h.

55 {}

◆ doPileUp()

void DataMixingModule::doPileUp ( edm::Event e,
const edm::EventSetup ES 
)
overridevirtual

Reimplemented from edm::BMixingModule.

Definition at line 380 of file DataMixingModule.cc.

380  {
381  using namespace std::placeholders;
382 
383  std::vector<edm::SecondaryEventIDAndFileInfo> recordEventID;
384  std::vector<int> PileupList;
385  PileupList.clear();
386  TrueNumInteractions_.clear();
387 
388  ModuleCallingContext const *mcc = e.moduleCallingContext();
389 
390  for (int bunchCrossing = minBunch_; bunchCrossing <= maxBunch_; ++bunchCrossing) {
391  for (unsigned int isource = 0; isource < maxNbSources_; ++isource) {
392  std::shared_ptr<PileUp> source = inputSources_[isource];
393  if (!source || !(source->doPileUp(bunchCrossing)))
394  continue;
395 
396  if (isource == 0)
397  source->CalculatePileup(minBunch_, maxBunch_, PileupList, TrueNumInteractions_, e.streamID());
398 
399  int NumPU_Events = 0;
400  if (isource == 0) {
401  NumPU_Events = PileupList[bunchCrossing - minBunch_];
402  } else {
403  // non-minbias pileup only gets one event for now. Fix later if desired.
404  NumPU_Events = 1;
405  }
406 
407  source->readPileUp(
408  e.id(),
409  recordEventID,
410  std::bind(&DataMixingModule::pileWorker, std::ref(*this), _1, bunchCrossing, _2, std::cref(ES), mcc),
411  NumPU_Events,
412  e.streamID());
413  }
414  }
415  }

References MillePedeFileConverter_cfg::e, edm::BMixingModule::inputSources_, edm::BMixingModule::maxBunch_, edm::BMixingModule::maxNbSources_, edm::BMixingModule::minBunch_, pileWorker(), edm::source(), and edm::BMixingModule::TrueNumInteractions_.

◆ endLuminosityBlock()

void DataMixingModule::endLuminosityBlock ( LuminosityBlock const &  l1,
EventSetup const &  c 
)
override

◆ endRun()

void DataMixingModule::endRun ( const edm::Run r,
const edm::EventSetup setup 
)
override

Definition at line 250 of file DataMixingModule.cc.

250 { BMixingModule::endRun(run, ES); }

References edm::BMixingModule::endRun(), and writedatasetfile::run.

◆ getSubdetectorNames()

void DataMixingModule::getSubdetectorNames ( )
privatevirtual

Definition at line 204 of file DataMixingModule.cc.

204  {
205  // get subdetector names
206  // edm::Service<edm::ConstProductRegistry> reg;
207  // Loop over provenance of products in registry.
208  // for (edm::ProductRegistry::ProductList::const_iterator it =
209  // reg->productList().begin(); it != reg->productList().end(); ++it) {
210 
211  // **** Check this out.... ****
212 
213  // See FWCore/Framework/interface/BranchDescription.h
214  // BranchDescription contains all the information for the product.
215 
216  // This section not very backwards-compatible in terms of digi-merging. Need
217  // to be able to specify here which data format to look at...
218 
219  // edm::BranchDescription desc = it->second;
220  // if (!desc.friendlyClassName_.compare(0,9,"EBRecHitC")) {
221  // Subdetectors_.push_back(desc.productInstanceName_);
222  // LogInfo("DataMixingModule") <<"Adding container
223  // "<<desc.productInstanceName_ <<" for pileup treatment";
224  //}
225  // else if (!desc.friendlyClassName_.compare(0,9,"EERecHitC")) {
226  // else if (!desc.friendlyClassName_.compare(0,9,"EErechitC") &&
227  // desc.productInstanceName_.compare(0,11,"TrackerHits")) {
228  // Subdetectors_.push_back(desc.productInstanceName_);
229  // LogInfo("DataMixingModule") <<"Adding container
230  // "<<desc.productInstanceName_ <<" for pileup treatment";
231  //}
232  // else if (!desc.friendlyClassName_.compare(0,9,"HBRecHitC")) {
233  // Subdetectors_.push_back(desc.productInstanceName_);
234  // LogInfo("DataMixingModule") <<"Adding container
235  // "<<desc.productInstanceName_ <<" for pileup treatment";
236  //}
237  // else if (!desc.friendlyClassName_.compare(0,9,"HERecHitC")) {
238  // Subdetectors_.push_back(desc.productInstanceName_);
239  // LogInfo("DataMixingModule") <<"Adding container
240  // "<<desc.productInstanceName_ <<" for pileup treatment";
241  // }
242  // and so on with other detector types...
243  // }
244  }

Referenced by DataMixingModule().

◆ initializeEvent()

void DataMixingModule::initializeEvent ( edm::Event const &  e,
edm::EventSetup const &  eventSetup 
)
overridevirtual

Reimplemented from edm::BMixingModule.

Definition at line 246 of file DataMixingModule.cc.

246 {}

◆ pileWorker()

bool DataMixingModule::pileWorker ( const edm::EventPrincipal ep,
int  bcr,
int  EventId,
const edm::EventSetup ES,
edm::ModuleCallingContext const *  mcc 
)

Definition at line 317 of file DataMixingModule.cc.

318  {
319  InternalContext internalContext(ep.id(), mcc);
320  ParentContext parentContext(&internalContext);
321  ModuleCallingContext moduleCallingContext(&moduleDescription());
322  ModuleContextSentry moduleContextSentry(&moduleCallingContext, parentContext);
323 
324  LogDebug("DataMixingModule") << "\n===============> adding pileups from event " << ep.id() << " for bunchcrossing "
325  << bcr;
326 
327  // Note: setupPileUpEvent may modify the run and lumi numbers of the
328  // EventPrincipal to match that of the primary event.
329  setupPileUpEvent(ES);
330 
331  // check and see if we need to copy the pileup information from
332  // secondary stream to the output stream
333  // We only have the pileup event here, so pick the first time and store the
334  // info
335 
336  if (MergePileup_ && !AddedPileup_) {
337  PUWorker_->addPileupInfo(&ep, eventNr, &moduleCallingContext);
338 
339  AddedPileup_ = true;
340  }
341 
342  // fill in maps of hits; same code as addSignals, except now applied to the
343  // pileup events
344 
345  // Ecal
346  if (MergeEMDigis_) {
347  EMDigiWorker_->addEMPileups(bcr, &ep, eventNr, ES, &moduleCallingContext);
348  } else {
349  EMWorker_->addEMPileups(bcr, &ep, eventNr, &moduleCallingContext);
350  }
351 
352  // Hcal
353  if (MergeHcalDigis_) {
354  if (MergeHcalDigisProd_) {
355  HcalDigiWorkerProd_->addHcalPileups(bcr, &ep, eventNr, ES, &moduleCallingContext);
356  } else {
357  HcalDigiWorker_->addHcalPileups(bcr, &ep, eventNr, ES, &moduleCallingContext);
358  }
359  } else {
360  HcalWorker_->addHcalPileups(bcr, &ep, eventNr, &moduleCallingContext);
361  }
362 
363  // Muon
364  MuonWorker_->addMuonPileups(bcr, &ep, eventNr, &moduleCallingContext);
365 
366  // SiStrips
367  if (useSiStripRawDigi_)
368  SiStripRawWorker_->addSiStripPileups(bcr, &ep, eventNr, &moduleCallingContext);
369  else
370  SiStripWorker_->addSiStripPileups(bcr, &ep, eventNr, &moduleCallingContext);
371 
372  // SiPixels
373  // whoops this should be for the MC worker ?????
374  // SiPixelWorker_->setPileupInfo(ps,bunchSpacing);
375  SiPixelWorker_->addSiPixelPileups(bcr, &ep, eventNr, &moduleCallingContext);
376 
377  return true;
378  }

References AddedPileup_, edm::DataMixingEMWorker::addEMPileups(), edm::DataMixingEMDigiWorker::addEMPileups(), edm::DataMixingHcalWorker::addHcalPileups(), edm::DataMixingHcalDigiWorker::addHcalPileups(), edm::DataMixingHcalDigiWorkerProd::addHcalPileups(), edm::DataMixingMuonWorker::addMuonPileups(), edm::DataMixingPileupCopy::addPileupInfo(), edm::DataMixingSiPixelWorker::addSiPixelPileups(), edm::DataMixingSiStripWorker::addSiStripPileups(), edm::DataMixingSiStripRawWorker::addSiStripPileups(), EMDigiWorker_, EMWorker_, SiStripBadComponentsDQMServiceTemplate_cfg::ep, HcalDigiWorker_, HcalDigiWorkerProd_, HcalWorker_, LogDebug, MergeEMDigis_, MergeHcalDigis_, MergeHcalDigisProd_, MergePileup_, MuonWorker_, PUWorker_, edm::BMixingModule::setupPileUpEvent(), SiPixelWorker_, SiStripRawWorker_, SiStripWorker_, and useSiStripRawDigi_.

Referenced by doPileUp().

◆ put()

void DataMixingModule::put ( edm::Event e,
const edm::EventSetup ES 
)
overridevirtual

Reimplemented from edm::BMixingModule.

Definition at line 417 of file DataMixingModule.cc.

417  {
418  // individual workers...
419 
420  // move pileup first so we have access to the information for the put step
421 
422  std::vector<PileupSummaryInfo> ps;
423  int bunchSpacing = 10000;
424 
425  if (MergePileup_) {
428  }
429 
430  // Ecal
431  if (MergeEMDigis_) {
432  EMDigiWorker_->putEM(e, ES);
433  } else {
434  EMWorker_->putEM(e);
435  }
436 
437  // Hcal
438  if (MergeHcalDigis_) {
439  if (MergeHcalDigisProd_) {
441  } else {
442  HcalDigiWorker_->putHcal(e, ES);
443  }
444  } else {
446  }
447 
448  // Muon
450 
451  // SiStrips
452  if (useSiStripRawDigi_)
454  else
456 
457  // SiPixels
459  }

References HLTEgPhaseIITestSequence_cff::bunchSpacing, MillePedeFileConverter_cfg::e, EMDigiWorker_, EMWorker_, edm::DataMixingPileupCopy::getPileupInfo(), HcalDigiWorker_, HcalDigiWorkerProd_, HcalWorker_, MergeEMDigis_, MergeHcalDigis_, MergeHcalDigisProd_, MergePileup_, MuonWorker_, edm::DataMixingEMWorker::putEM(), edm::DataMixingEMDigiWorker::putEM(), edm::DataMixingHcalWorker::putHcal(), edm::DataMixingHcalDigiWorker::putHcal(), edm::DataMixingHcalDigiWorkerProd::putHcal(), edm::DataMixingMuonWorker::putMuon(), edm::DataMixingPileupCopy::putPileupInfo(), edm::DataMixingSiPixelWorker::putSiPixel(), edm::DataMixingSiStripWorker::putSiStrip(), edm::DataMixingSiStripRawWorker::putSiStrip(), PUWorker_, SiPixelWorker_, SiStripRawWorker_, SiStripWorker_, and useSiStripRawDigi_.

Member Data Documentation

◆ AddedPileup_

bool edm::DataMixingModule::AddedPileup_
private

Definition at line 171 of file DataMixingModule.h.

Referenced by addSignals(), and pileWorker().

◆ CSCComparatorDigiCollectionDM_

std::string edm::DataMixingModule::CSCComparatorDigiCollectionDM_
private

Definition at line 124 of file DataMixingModule.h.

Referenced by DataMixingModule().

◆ CSCStripDigiCollectionDM_

std::string edm::DataMixingModule::CSCStripDigiCollectionDM_
private

Definition at line 120 of file DataMixingModule.h.

Referenced by DataMixingModule().

◆ CSCWireDigiCollectionDM_

std::string edm::DataMixingModule::CSCWireDigiCollectionDM_
private

Definition at line 122 of file DataMixingModule.h.

Referenced by DataMixingModule().

◆ DTDigiCollectionDM_

std::string edm::DataMixingModule::DTDigiCollectionDM_
private

Definition at line 118 of file DataMixingModule.h.

Referenced by DataMixingModule().

◆ EBDigiCollectionDM_

std::string edm::DataMixingModule::EBDigiCollectionDM_
private

Definition at line 83 of file DataMixingModule.h.

Referenced by DataMixingModule().

◆ EBPileInputTag_

edm::InputTag edm::DataMixingModule::EBPileInputTag_
private

Definition at line 151 of file DataMixingModule.h.

◆ EBRecHitCollectionDM_

std::string edm::DataMixingModule::EBRecHitCollectionDM_
private

Definition at line 75 of file DataMixingModule.h.

Referenced by DataMixingModule().

◆ EEDigiCollectionDM_

std::string edm::DataMixingModule::EEDigiCollectionDM_
private

Definition at line 85 of file DataMixingModule.h.

Referenced by DataMixingModule().

◆ EEPileInputTag_

edm::InputTag edm::DataMixingModule::EEPileInputTag_
private

Definition at line 152 of file DataMixingModule.h.

◆ EERecHitCollectionDM_

std::string edm::DataMixingModule::EERecHitCollectionDM_
private

Definition at line 77 of file DataMixingModule.h.

Referenced by DataMixingModule().

◆ EMDigiWorker_

DataMixingEMDigiWorker* edm::DataMixingModule::EMDigiWorker_
private

Definition at line 141 of file DataMixingModule.h.

Referenced by addSignals(), DataMixingModule(), pileWorker(), put(), and ~DataMixingModule().

◆ EMWorker_

DataMixingEMWorker* edm::DataMixingModule::EMWorker_
private

Definition at line 140 of file DataMixingModule.h.

Referenced by addSignals(), DataMixingModule(), pileWorker(), put(), and ~DataMixingModule().

◆ ESDigiCollectionDM_

std::string edm::DataMixingModule::ESDigiCollectionDM_
private

Definition at line 87 of file DataMixingModule.h.

Referenced by DataMixingModule().

◆ ESPileInputTag_

edm::InputTag edm::DataMixingModule::ESPileInputTag_
private

Definition at line 153 of file DataMixingModule.h.

◆ ESRecHitCollectionDM_

std::string edm::DataMixingModule::ESRecHitCollectionDM_
private

Definition at line 79 of file DataMixingModule.h.

Referenced by DataMixingModule().

◆ HBHEDigiCollectionDM_

std::string edm::DataMixingModule::HBHEDigiCollectionDM_
private

Definition at line 103 of file DataMixingModule.h.

Referenced by DataMixingModule().

◆ HBHEPileInputTag_

edm::InputTag edm::DataMixingModule::HBHEPileInputTag_
private

Definition at line 154 of file DataMixingModule.h.

Referenced by DataMixingModule().

◆ HBHERecHitCollectionDM_

std::string edm::DataMixingModule::HBHERecHitCollectionDM_
private

Definition at line 93 of file DataMixingModule.h.

Referenced by DataMixingModule().

◆ HcalDigiWorker_

DataMixingHcalDigiWorker* edm::DataMixingModule::HcalDigiWorker_
private

Definition at line 147 of file DataMixingModule.h.

Referenced by addSignals(), DataMixingModule(), pileWorker(), put(), and ~DataMixingModule().

◆ HcalDigiWorkerProd_

DataMixingHcalDigiWorkerProd* edm::DataMixingModule::HcalDigiWorkerProd_
private

Definition at line 148 of file DataMixingModule.h.

Referenced by addSignals(), DataMixingModule(), pileWorker(), put(), and ~DataMixingModule().

◆ HcalWorker_

DataMixingHcalWorker* edm::DataMixingModule::HcalWorker_
private

Definition at line 146 of file DataMixingModule.h.

Referenced by addSignals(), DataMixingModule(), pileWorker(), put(), and ~DataMixingModule().

◆ HFDigiCollectionDM_

std::string edm::DataMixingModule::HFDigiCollectionDM_
private

Definition at line 107 of file DataMixingModule.h.

Referenced by DataMixingModule().

◆ HFPileInputTag_

edm::InputTag edm::DataMixingModule::HFPileInputTag_
private

Definition at line 156 of file DataMixingModule.h.

Referenced by DataMixingModule().

◆ HFRecHitCollectionDM_

std::string edm::DataMixingModule::HFRecHitCollectionDM_
private

Definition at line 97 of file DataMixingModule.h.

Referenced by DataMixingModule().

◆ HODigiCollectionDM_

std::string edm::DataMixingModule::HODigiCollectionDM_
private

Definition at line 105 of file DataMixingModule.h.

Referenced by DataMixingModule().

◆ HOPileInputTag_

edm::InputTag edm::DataMixingModule::HOPileInputTag_
private

Definition at line 155 of file DataMixingModule.h.

Referenced by DataMixingModule().

◆ HORecHitCollectionDM_

std::string edm::DataMixingModule::HORecHitCollectionDM_
private

Definition at line 95 of file DataMixingModule.h.

Referenced by DataMixingModule().

◆ label_

std::string edm::DataMixingModule::label_
private

◆ MergeEMDigis_

bool edm::DataMixingModule::MergeEMDigis_
private

Definition at line 142 of file DataMixingModule.h.

Referenced by addSignals(), DataMixingModule(), pileWorker(), put(), and ~DataMixingModule().

◆ MergeHcalDigis_

bool edm::DataMixingModule::MergeHcalDigis_
private

Definition at line 167 of file DataMixingModule.h.

Referenced by addSignals(), DataMixingModule(), pileWorker(), put(), and ~DataMixingModule().

◆ MergeHcalDigisProd_

bool edm::DataMixingModule::MergeHcalDigisProd_
private

Definition at line 168 of file DataMixingModule.h.

Referenced by addSignals(), DataMixingModule(), pileWorker(), put(), and ~DataMixingModule().

◆ MergePileup_

bool edm::DataMixingModule::MergePileup_
private

Definition at line 170 of file DataMixingModule.h.

Referenced by DataMixingModule(), pileWorker(), put(), and ~DataMixingModule().

◆ MergeTrackerDigis_

bool edm::DataMixingModule::MergeTrackerDigis_
private

Definition at line 134 of file DataMixingModule.h.

Referenced by DataMixingModule().

◆ MuonWorker_

DataMixingMuonWorker* edm::DataMixingModule::MuonWorker_
private

Definition at line 175 of file DataMixingModule.h.

Referenced by addSignals(), DataMixingModule(), pileWorker(), put(), and ~DataMixingModule().

◆ PixelDigiCollectionDM_

std::string edm::DataMixingModule::PixelDigiCollectionDM_
private

Definition at line 131 of file DataMixingModule.h.

Referenced by DataMixingModule().

◆ PUWorker_

DataMixingPileupCopy* edm::DataMixingModule::PUWorker_
private

Definition at line 138 of file DataMixingModule.h.

Referenced by DataMixingModule(), pileWorker(), put(), and ~DataMixingModule().

◆ QIE10DigiCollectionDM_

std::string edm::DataMixingModule::QIE10DigiCollectionDM_
private

Definition at line 111 of file DataMixingModule.h.

Referenced by DataMixingModule().

◆ QIE10PileInputTag_

edm::InputTag edm::DataMixingModule::QIE10PileInputTag_
private

Definition at line 158 of file DataMixingModule.h.

Referenced by DataMixingModule().

◆ QIE11DigiCollectionDM_

std::string edm::DataMixingModule::QIE11DigiCollectionDM_
private

Definition at line 113 of file DataMixingModule.h.

Referenced by DataMixingModule().

◆ QIE11PileInputTag_

edm::InputTag edm::DataMixingModule::QIE11PileInputTag_
private

Definition at line 159 of file DataMixingModule.h.

Referenced by DataMixingModule().

◆ RPCDigiCollectionDM_

std::string edm::DataMixingModule::RPCDigiCollectionDM_
private

Definition at line 119 of file DataMixingModule.h.

Referenced by DataMixingModule().

◆ SiPixelWorker_

DataMixingSiPixelWorker* edm::DataMixingModule::SiPixelWorker_
private

Definition at line 186 of file DataMixingModule.h.

Referenced by addSignals(), DataMixingModule(), pileWorker(), put(), and ~DataMixingModule().

◆ SiStripDigiCollectionDM_

std::string edm::DataMixingModule::SiStripDigiCollectionDM_
private

Definition at line 127 of file DataMixingModule.h.

Referenced by DataMixingModule().

◆ siStripRawDigiSource_

std::string edm::DataMixingModule::siStripRawDigiSource_
private

Definition at line 182 of file DataMixingModule.h.

◆ SiStripRawWorker_

DataMixingSiStripRawWorker* edm::DataMixingModule::SiStripRawWorker_
private

Definition at line 180 of file DataMixingModule.h.

Referenced by addSignals(), DataMixingModule(), pileWorker(), put(), and ~DataMixingModule().

◆ SiStripWorker_

DataMixingSiStripWorker* edm::DataMixingModule::SiStripWorker_
private

Definition at line 179 of file DataMixingModule.h.

Referenced by addSignals(), DataMixingModule(), pileWorker(), put(), and ~DataMixingModule().

◆ Subdetectors_

std::vector<std::string> edm::DataMixingModule::Subdetectors_
private

Definition at line 191 of file DataMixingModule.h.

◆ tok_hbhe_

edm::EDGetTokenT<HBHEDigitizerTraits::DigiCollection> edm::DataMixingModule::tok_hbhe_
private

Definition at line 160 of file DataMixingModule.h.

Referenced by DataMixingModule().

◆ tok_hf_

edm::EDGetTokenT<HFDigitizerTraits::DigiCollection> edm::DataMixingModule::tok_hf_
private

Definition at line 162 of file DataMixingModule.h.

Referenced by DataMixingModule().

◆ tok_ho_

edm::EDGetTokenT<HODigitizerTraits::DigiCollection> edm::DataMixingModule::tok_ho_
private

Definition at line 161 of file DataMixingModule.h.

Referenced by DataMixingModule().

◆ tok_qie10_

edm::EDGetTokenT<HcalQIE10DigitizerTraits::DigiCollection> edm::DataMixingModule::tok_qie10_
private

Definition at line 164 of file DataMixingModule.h.

Referenced by DataMixingModule().

◆ tok_qie11_

edm::EDGetTokenT<HcalQIE11DigitizerTraits::DigiCollection> edm::DataMixingModule::tok_qie11_
private

Definition at line 165 of file DataMixingModule.h.

Referenced by DataMixingModule().

◆ tok_zdc_

edm::EDGetTokenT<ZDCDigitizerTraits::DigiCollection> edm::DataMixingModule::tok_zdc_
private

Definition at line 163 of file DataMixingModule.h.

Referenced by DataMixingModule().

◆ useSiStripRawDigi_

bool edm::DataMixingModule::useSiStripRawDigi_
private

Definition at line 181 of file DataMixingModule.h.

Referenced by addSignals(), DataMixingModule(), pileWorker(), put(), and ~DataMixingModule().

◆ ZDCDigiCollectionDM_

std::string edm::DataMixingModule::ZDCDigiCollectionDM_
private

Definition at line 109 of file DataMixingModule.h.

Referenced by DataMixingModule().

◆ ZDCPileInputTag_

edm::InputTag edm::DataMixingModule::ZDCPileInputTag_
private

Definition at line 157 of file DataMixingModule.h.

Referenced by DataMixingModule().

◆ ZDCRecHitCollectionDM_

std::string edm::DataMixingModule::ZDCRecHitCollectionDM_
private

Definition at line 99 of file DataMixingModule.h.

Referenced by DataMixingModule().

edm::BMixingModule::endRun
void endRun(const edm::Run &r, const edm::EventSetup &setup) override
Definition: BMixingModule.cc:256
DataMixingMuonWorker
edm::BMixingModule::inputSources_
std::vector< std::shared_ptr< PileUp > > inputSources_
Definition: BMixingModule.h:108
edm::BMixingModule::endLuminosityBlock
void endLuminosityBlock(const edm::LuminosityBlock &l, const edm::EventSetup &setup) override
Definition: BMixingModule.cc:249
edm::source
static const std::string source("source")
edm::DataMixingModule::HODigiCollectionDM_
std::string HODigiCollectionDM_
Definition: DataMixingModule.h:105
edm::DataMixingEMWorker::addEMPileups
void addEMPileups(const int bcr, const edm::EventPrincipal *, unsigned int EventId, ModuleCallingContext const *)
Definition: DataMixingEMWorker.cc:136
edm::DataMixingModule::PixelDigiCollectionDM_
std::string PixelDigiCollectionDM_
Definition: DataMixingModule.h:131
edm::DataMixingModule::QIE11PileInputTag_
edm::InputTag QIE11PileInputTag_
Definition: DataMixingModule.h:159
edm::BMixingModule::minBunch_
int minBunch_
Definition: BMixingModule.h:94
edm::DataMixingModule::tok_zdc_
edm::EDGetTokenT< ZDCDigitizerTraits::DigiCollection > tok_zdc_
Definition: DataMixingModule.h:163
edm::DataMixingModule::MergeEMDigis_
bool MergeEMDigis_
Definition: DataMixingModule.h:142
DataMixingEMWorker
edm::DataMixingModule::AddedPileup_
bool AddedPileup_
Definition: DataMixingModule.h:171
edm::DataMixingModule::CSCStripDigiCollectionDM_
std::string CSCStripDigiCollectionDM_
Definition: DataMixingModule.h:120
edm::BMixingModule::setupPileUpEvent
void setupPileUpEvent(const edm::EventSetup &setup)
Definition: BMixingModule.cc:298
edm::DataMixingModule::MergeHcalDigisProd_
bool MergeHcalDigisProd_
Definition: DataMixingModule.h:168
DataMixingSiStripRawWorker
edm::DataMixingModule::ZDCRecHitCollectionDM_
std::string ZDCRecHitCollectionDM_
Definition: DataMixingModule.h:99
edm::DataMixingHcalDigiWorker::addHcalPileups
void addHcalPileups(const int bcr, const edm::EventPrincipal *, unsigned int EventId, const edm::EventSetup &ES, ModuleCallingContext const *)
Definition: DataMixingHcalDigiWorker.cc:353
edm::BMixingModule::maxBunch_
int maxBunch_
Definition: BMixingModule.h:95
edm::DataMixingModule::tok_ho_
edm::EDGetTokenT< HODigitizerTraits::DigiCollection > tok_ho_
Definition: DataMixingModule.h:161
edm::DataMixingEMDigiWorker::putEM
void putEM(edm::Event &e, const edm::EventSetup &ES)
Definition: DataMixingEMDigiWorker.cc:227
edm::DataMixingHcalWorker::putHcal
void putHcal(edm::Event &e)
Definition: DataMixingHcalWorker.cc:266
edm::DataMixingHcalDigiWorkerProd::addHcalSignals
void addHcalSignals(const edm::Event &e, const edm::EventSetup &ES)
Definition: DataMixingHcalDigiWorkerProd.cc:81
edm::DataMixingSiStripWorker::addSiStripPileups
void addSiStripPileups(const int bcr, const edm::EventPrincipal *, unsigned int EventId, ModuleCallingContext const *)
Definition: DataMixingSiStripWorker.cc:73
edm::DataMixingModule::QIE10PileInputTag_
edm::InputTag QIE10PileInputTag_
Definition: DataMixingModule.h:158
edm::DataMixingMuonWorker::addMuonSignals
void addMuonSignals(const edm::Event &e)
Definition: DataMixingMuonWorker.cc:71
edm::DataMixingHcalWorker::addHcalSignals
void addHcalSignals(const edm::Event &e)
Definition: DataMixingHcalWorker.cc:66
edm::BMixingModule::TrueNumInteractions_
std::vector< float > TrueNumInteractions_
Definition: BMixingModule.h:103
edm::DataMixingModule::MergeTrackerDigis_
bool MergeTrackerDigis_
Definition: DataMixingModule.h:134
edm::DataMixingModule::useSiStripRawDigi_
bool useSiStripRawDigi_
Definition: DataMixingModule.h:181
DataMixingPileupCopy
edm::DataMixingModule::SiStripDigiCollectionDM_
std::string SiStripDigiCollectionDM_
Definition: DataMixingModule.h:127
edm::BMixingModule::beginLuminosityBlock
void beginLuminosityBlock(const edm::LuminosityBlock &l, const edm::EventSetup &setup) override
Definition: BMixingModule.cc:233
edm::DataMixingSiPixelWorker::addSiPixelPileups
void addSiPixelPileups(const int bcr, const edm::EventPrincipal *, unsigned int EventId, ModuleCallingContext const *)
Definition: DataMixingSiPixelWorker.cc:79
edm::DataMixingModule::QIE10DigiCollectionDM_
std::string QIE10DigiCollectionDM_
Definition: DataMixingModule.h:111
edm::DataMixingModule::HcalDigiWorker_
DataMixingHcalDigiWorker * HcalDigiWorker_
Definition: DataMixingModule.h:147
edm::DataMixingSiStripWorker::addSiStripSignals
void addSiStripSignals(const edm::Event &e)
Definition: DataMixingSiStripWorker.cc:49
edm::DataMixingHcalDigiWorker::putHcal
void putHcal(edm::Event &e, const edm::EventSetup &ES)
Definition: DataMixingHcalDigiWorker.cc:409
edm::DataMixingModule::CSCWireDigiCollectionDM_
std::string CSCWireDigiCollectionDM_
Definition: DataMixingModule.h:122
edm::DataMixingModule::RPCDigiCollectionDM_
std::string RPCDigiCollectionDM_
Definition: DataMixingModule.h:119
HLTEgPhaseIITestSequence_cff.bunchSpacing
bunchSpacing
Definition: HLTEgPhaseIITestSequence_cff.py:1574
edm::DataMixingModule::ESPileInputTag_
edm::InputTag ESPileInputTag_
Definition: DataMixingModule.h:153
edm::BMixingModule::maxNbSources_
const static unsigned int maxNbSources_
Definition: BMixingModule.h:101
mixOne_sim_on_sim_cfi.GenPUProtonsInputTags
GenPUProtonsInputTags
Definition: mixOne_sim_on_sim_cfi.py:38
edm::DataMixingPileupCopy::putPileupInfo
void putPileupInfo(edm::Event &e)
Definition: DataMixingPileupCopy.cc:94
edm::DataMixingMuonWorker::putMuon
void putMuon(edm::Event &e)
Definition: DataMixingMuonWorker.cc:352
DataMixingEMDigiWorker
edm::DataMixingEMDigiWorker::addEMPileups
void addEMPileups(const int bcr, const edm::EventPrincipal *, unsigned int EventId, const edm::EventSetup &ES, ModuleCallingContext const *)
Definition: DataMixingEMDigiWorker.cc:149
edm::DataMixingModule::HORecHitCollectionDM_
std::string HORecHitCollectionDM_
Definition: DataMixingModule.h:95
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
edm::DataMixingModule::ZDCDigiCollectionDM_
std::string ZDCDigiCollectionDM_
Definition: DataMixingModule.h:109
edm::DataMixingModule::MuonWorker_
DataMixingMuonWorker * MuonWorker_
Definition: DataMixingModule.h:175
edm::DataMixingModule::SiStripRawWorker_
DataMixingSiStripRawWorker * SiStripRawWorker_
Definition: DataMixingModule.h:180
edm::DataMixingModule::EBPileInputTag_
edm::InputTag EBPileInputTag_
Definition: DataMixingModule.h:151
edm::ParameterSet::exists
bool exists(std::string const &parameterName) const
checks if a parameter exists
Definition: ParameterSet.cc:674
edm::DataMixingModule::EEDigiCollectionDM_
std::string EEDigiCollectionDM_
Definition: DataMixingModule.h:85
edm::DataMixingModule::SiPixelWorker_
DataMixingSiPixelWorker * SiPixelWorker_
Definition: DataMixingModule.h:186
LogDebug
#define LogDebug(id)
Definition: MessageLogger.h:670
edm::DataMixingHcalDigiWorkerProd::addHcalPileups
void addHcalPileups(const int bcr, const edm::EventPrincipal *, unsigned int EventId, const edm::EventSetup &ES, edm::ModuleCallingContext const *)
Definition: DataMixingHcalDigiWorkerProd.cc:86
edm::DataMixingSiStripRawWorker::putSiStrip
void putSiStrip(edm::Event &e)
Definition: DataMixingSiStripRawWorker.cc:94
edm::DataMixingModule::EEPileInputTag_
edm::InputTag EEPileInputTag_
Definition: DataMixingModule.h:152
edm::DataMixingModule::HBHEDigiCollectionDM_
std::string HBHEDigiCollectionDM_
Definition: DataMixingModule.h:103
edm::DataMixingEMWorker::putEM
void putEM(edm::Event &e)
Definition: DataMixingEMWorker.cc:210
edm::DataMixingModule::HOPileInputTag_
edm::InputTag HOPileInputTag_
Definition: DataMixingModule.h:155
edm::DataMixingSiStripWorker::putSiStrip
void putSiStrip(edm::Event &e)
Definition: DataMixingSiStripWorker.cc:132
edm::DataMixingModule::MergePileup_
bool MergePileup_
Definition: DataMixingModule.h:170
edm::DataMixingModule::EMWorker_
DataMixingEMWorker * EMWorker_
Definition: DataMixingModule.h:140
edm::DataMixingModule::ESRecHitCollectionDM_
std::string ESRecHitCollectionDM_
Definition: DataMixingModule.h:79
edm::DataMixingModule::HBHEPileInputTag_
edm::InputTag HBHEPileInputTag_
Definition: DataMixingModule.h:154
edm::DataMixingHcalDigiWorker::addHcalSignals
void addHcalSignals(const edm::Event &e, const edm::EventSetup &ES)
Definition: DataMixingHcalDigiWorker.cc:293
edm::DataMixingModule::MergeHcalDigis_
bool MergeHcalDigis_
Definition: DataMixingModule.h:167
HltBtagPostValidation_cff.c
c
Definition: HltBtagPostValidation_cff.py:31
edm::DataMixingModule::EBRecHitCollectionDM_
std::string EBRecHitCollectionDM_
Definition: DataMixingModule.h:75
DataMixingSiStripWorker
edm::DataMixingModule::CSCComparatorDigiCollectionDM_
std::string CSCComparatorDigiCollectionDM_
Definition: DataMixingModule.h:124
DataMixingHcalDigiWorkerProd
edm::DataMixingHcalDigiWorkerProd::putHcal
void putHcal(edm::Event &e, const edm::EventSetup &ES)
Definition: DataMixingHcalDigiWorkerProd.cc:110
edm::DataMixingSiStripRawWorker::addSiStripPileups
void addSiStripPileups(const int bcr, const edm::EventPrincipal *, unsigned int EventId, ModuleCallingContext const *)
Definition: DataMixingSiStripRawWorker.cc:72
edm::DataMixingModule::getSubdetectorNames
virtual void getSubdetectorNames()
Definition: DataMixingModule.cc:204
edm::ParameterSet::getParameter
T getParameter(std::string const &) const
edm::DataMixingModule::PUWorker_
DataMixingPileupCopy * PUWorker_
Definition: DataMixingModule.h:138
edm::DataMixingModule::HcalDigiWorkerProd_
DataMixingHcalDigiWorkerProd * HcalDigiWorkerProd_
Definition: DataMixingModule.h:148
edm::DataMixingModule::tok_hf_
edm::EDGetTokenT< HFDigitizerTraits::DigiCollection > tok_hf_
Definition: DataMixingModule.h:162
edm::DataMixingModule::EERecHitCollectionDM_
std::string EERecHitCollectionDM_
Definition: DataMixingModule.h:77
edm::DataMixingModule::QIE11DigiCollectionDM_
std::string QIE11DigiCollectionDM_
Definition: DataMixingModule.h:113
writedatasetfile.run
run
Definition: writedatasetfile.py:27
edm::DataMixingModule::DTDigiCollectionDM_
std::string DTDigiCollectionDM_
Definition: DataMixingModule.h:118
edm::DataMixingEMDigiWorker::addEMSignals
void addEMSignals(const edm::Event &e, const edm::EventSetup &ES)
Definition: DataMixingEMDigiWorker.cc:67
edm::BMixingModule::BMixingModule
BMixingModule(const edm::ParameterSet &ps, MixingCache::Config const *globalConf)
Definition: BMixingModule.cc:177
edm::DataMixingModule::HFRecHitCollectionDM_
std::string HFRecHitCollectionDM_
Definition: DataMixingModule.h:97
edm::DataMixingSiPixelWorker::addSiPixelSignals
void addSiPixelSignals(const edm::Event &e)
Definition: DataMixingSiPixelWorker.cc:48
DataMixingSiPixelWorker
edm::DataMixingHcalWorker::addHcalPileups
void addHcalPileups(const int bcr, const edm::EventPrincipal *, unsigned int EventId, ModuleCallingContext const *)
Definition: DataMixingHcalWorker.cc:171
edm::DataMixingModule::EMDigiWorker_
DataMixingEMDigiWorker * EMDigiWorker_
Definition: DataMixingModule.h:141
edm::DataMixingModule::HFPileInputTag_
edm::InputTag HFPileInputTag_
Definition: DataMixingModule.h:156
edm::DataMixingPileupCopy::addPileupInfo
void addPileupInfo(const edm::EventPrincipal *, unsigned int EventId, ModuleCallingContext const *mcc)
Definition: DataMixingPileupCopy.cc:46
edm::DataMixingEMWorker::addEMSignals
void addEMSignals(const edm::Event &e)
Definition: DataMixingEMWorker.cc:62
edm::DataMixingPileupCopy::getPileupInfo
void getPileupInfo(std::vector< PileupSummaryInfo > &ps, int &bs)
Definition: DataMixingPileupCopy.h:53
edm::DataMixingSiStripRawWorker::addSiStripSignals
void addSiStripSignals(const edm::Event &e)
Definition: DataMixingSiStripRawWorker.cc:56
edm::DataMixingModule::tok_hbhe_
edm::EDGetTokenT< HBHEDigitizerTraits::DigiCollection > tok_hbhe_
Definition: DataMixingModule.h:160
edm::DataMixingModule::label_
std::string label_
Definition: DataMixingModule.h:195
edm::DataMixingModule::ESDigiCollectionDM_
std::string ESDigiCollectionDM_
Definition: DataMixingModule.h:87
edm::DataMixingMuonWorker::addMuonPileups
void addMuonPileups(const int bcr, const edm::EventPrincipal *, unsigned int EventId, ModuleCallingContext const *)
Definition: DataMixingMuonWorker.cc:218
edm::DataMixingModule::tok_qie10_
edm::EDGetTokenT< HcalQIE10DigitizerTraits::DigiCollection > tok_qie10_
Definition: DataMixingModule.h:164
edm::DataMixingModule::tok_qie11_
edm::EDGetTokenT< HcalQIE11DigitizerTraits::DigiCollection > tok_qie11_
Definition: DataMixingModule.h:165
edm::DataMixingSiPixelWorker::putSiPixel
void putSiPixel(edm::Event &e)
Definition: DataMixingSiPixelWorker.cc:143
edm::DataMixingModule::HcalWorker_
DataMixingHcalWorker * HcalWorker_
Definition: DataMixingModule.h:146
edm::DataMixingModule::HFDigiCollectionDM_
std::string HFDigiCollectionDM_
Definition: DataMixingModule.h:107
edm::DataMixingModule::pileWorker
bool pileWorker(const edm::EventPrincipal &, int bcr, int EventId, const edm::EventSetup &ES, ModuleCallingContext const *)
Definition: DataMixingModule.cc:317
edm::DataMixingModule::ZDCPileInputTag_
edm::InputTag ZDCPileInputTag_
Definition: DataMixingModule.h:157
DataMixingHcalDigiWorker
edm::DataMixingModule::SiStripWorker_
DataMixingSiStripWorker * SiStripWorker_
Definition: DataMixingModule.h:179
edm::DataMixingModule::HBHERecHitCollectionDM_
std::string HBHERecHitCollectionDM_
Definition: DataMixingModule.h:93
SiStripBadComponentsDQMServiceTemplate_cfg.ep
ep
Definition: SiStripBadComponentsDQMServiceTemplate_cfg.py:86
edm::BMixingModule::beginRun
void beginRun(const edm::Run &r, const edm::EventSetup &setup) override
Definition: BMixingModule.cc:241
edm::InputTag
Definition: InputTag.h:15
DataMixingHcalWorker
edm::DataMixingModule::EBDigiCollectionDM_
std::string EBDigiCollectionDM_
Definition: DataMixingModule.h:83
MillePedeFileConverter_cfg.e
e
Definition: MillePedeFileConverter_cfg.py:37