CMS 3D CMS Logo

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

#include <DataMixingHcalDigiWorker.h>

Public Member Functions

void addHcalPileups (const int bcr, const edm::EventPrincipal *, unsigned int EventId, const edm::EventSetup &ES, ModuleCallingContext const *)
 
void addHcalSignals (const edm::Event &e, const edm::EventSetup &ES)
 
 DataMixingHcalDigiWorker ()
 
 DataMixingHcalDigiWorker (const edm::ParameterSet &ps, edm::ConsumesCollector &&iC)
 
void putHcal (edm::Event &e, const edm::EventSetup &ES)
 
virtual ~DataMixingHcalDigiWorker ()
 

Private Types

typedef std::multimap< DetId, CaloSamplesHBHEDigiMap
 
typedef std::multimap< DetId, CaloSamplesHFDigiMap
 
typedef std::multimap< DetId, CaloSamplesHODigiMap
 
typedef std::multimap< DetId, CaloSamplesQIE10DigiMap
 
typedef std::multimap< DetId, CaloSamplesQIE11DigiMap
 
typedef std::multimap< DetId, CaloSamplesZDCDigiMap
 

Private Attributes

edm::ESGetToken< HcalDbService, HcalDbRecorddbToken_
 
bool DoZDC_
 
std::string HBHEDigiCollectionDM_
 
edm::InputTag HBHEdigiCollectionSig_
 
edm::EDGetTokenT< HBHEDigiCollectionHBHEDigiPToken_
 
HBHEDigiMap HBHEDigiStorage_
 
edm::EDGetTokenT< HBHEDigiCollectionHBHEDigiToken_
 
edm::InputTag HBHEPileInputTag_
 
std::string HFDigiCollectionDM_
 
edm::InputTag HFdigiCollectionSig_
 
edm::EDGetTokenT< HFDigiCollectionHFDigiPToken_
 
HFDigiMap HFDigiStorage_
 
edm::EDGetTokenT< HFDigiCollectionHFDigiToken_
 
edm::InputTag HFPileInputTag_
 
std::string HODigiCollectionDM_
 
edm::InputTag HOdigiCollectionSig_
 
edm::EDGetTokenT< HODigiCollectionHODigiPToken_
 
HODigiMap HODigiStorage_
 
edm::EDGetTokenT< HODigiCollectionHODigiToken_
 
edm::InputTag HOPileInputTag_
 
std::string label_
 
std::string QIE10DigiCollectionDM_
 
edm::InputTag QIE10digiCollectionSig_
 
edm::EDGetTokenT< QIE10DigiCollectionQIE10DigiPToken_
 
QIE10DigiMap QIE10DigiStorage_
 
edm::EDGetTokenT< QIE10DigiCollectionQIE10DigiToken_
 
edm::InputTag QIE10PileInputTag_
 
std::string QIE11DigiCollectionDM_
 
edm::InputTag QIE11digiCollectionSig_
 
edm::EDGetTokenT< QIE11DigiCollectionQIE11DigiPToken_
 
QIE11DigiMap QIE11DigiStorage_
 
edm::EDGetTokenT< QIE11DigiCollectionQIE11DigiToken_
 
edm::InputTag QIE11PileInputTag_
 
std::string ZDCDigiCollectionDM_
 
edm::InputTag ZDCdigiCollectionSig_
 
edm::EDGetTokenT< ZDCDigiCollectionZDCDigiPToken_
 
ZDCDigiMap ZDCDigiStorage_
 
edm::EDGetTokenT< ZDCDigiCollectionZDCDigiToken_
 
edm::InputTag ZDCPileInputTag_
 

Detailed Description

Definition at line 42 of file DataMixingHcalDigiWorker.h.

Member Typedef Documentation

◆ HBHEDigiMap

Definition at line 102 of file DataMixingHcalDigiWorker.h.

◆ HFDigiMap

Definition at line 103 of file DataMixingHcalDigiWorker.h.

◆ HODigiMap

Definition at line 104 of file DataMixingHcalDigiWorker.h.

◆ QIE10DigiMap

Definition at line 106 of file DataMixingHcalDigiWorker.h.

◆ QIE11DigiMap

Definition at line 107 of file DataMixingHcalDigiWorker.h.

◆ ZDCDigiMap

Definition at line 105 of file DataMixingHcalDigiWorker.h.

Constructor & Destructor Documentation

◆ DataMixingHcalDigiWorker() [1/2]

DataMixingHcalDigiWorker::DataMixingHcalDigiWorker ( )

Definition at line 232 of file DataMixingHcalDigiWorker.cc.

232 {}

◆ DataMixingHcalDigiWorker() [2/2]

DataMixingHcalDigiWorker::DataMixingHcalDigiWorker ( const edm::ParameterSet ps,
edm::ConsumesCollector &&  iC 
)
explicit

standard constructor

Definition at line 235 of file DataMixingHcalDigiWorker.cc.

References dbToken_, DoZDC_, edm::ParameterSet::getParameter(), HBHEDigiCollectionDM_, HBHEdigiCollectionSig_, HBHEDigiPToken_, HBHEDigiToken_, HBHEPileInputTag_, HFDigiCollectionDM_, HFdigiCollectionSig_, HFDigiPToken_, HFDigiToken_, HFPileInputTag_, HODigiCollectionDM_, HOdigiCollectionSig_, HODigiPToken_, HODigiToken_, HOPileInputTag_, edm::InputTag::label(), QIE10DigiCollectionDM_, QIE10digiCollectionSig_, QIE10DigiPToken_, QIE10DigiToken_, QIE10PileInputTag_, QIE11DigiCollectionDM_, QIE11digiCollectionSig_, QIE11DigiPToken_, QIE11DigiToken_, QIE11PileInputTag_, AlCaHLTBitMon_QueryRunRegistry::string, ZDCDigiCollectionDM_, ZDCdigiCollectionSig_, ZDCDigiPToken_, ZDCDigiToken_, and ZDCPileInputTag_.

236  : label_(ps.getParameter<std::string>("Label")) {
237  // get the subdetector names
238  // this->getSubdetectorNames(); //something like this may be useful to
239  // check what we are supposed to do...
240 
241  // declare the products to produce
242 
243  // Hcal
244 
245  HBHEdigiCollectionSig_ = ps.getParameter<edm::InputTag>("HBHEdigiCollectionSig");
246  HOdigiCollectionSig_ = ps.getParameter<edm::InputTag>("HOdigiCollectionSig");
247  HFdigiCollectionSig_ = ps.getParameter<edm::InputTag>("HFdigiCollectionSig");
248  ZDCdigiCollectionSig_ = ps.getParameter<edm::InputTag>("ZDCdigiCollectionSig");
249  QIE10digiCollectionSig_ = ps.getParameter<edm::InputTag>("QIE10digiCollectionSig");
250  QIE11digiCollectionSig_ = ps.getParameter<edm::InputTag>("QIE11digiCollectionSig");
251 
252  HBHEPileInputTag_ = ps.getParameter<edm::InputTag>("HBHEPileInputTag");
253  HOPileInputTag_ = ps.getParameter<edm::InputTag>("HOPileInputTag");
254  HFPileInputTag_ = ps.getParameter<edm::InputTag>("HFPileInputTag");
255  ZDCPileInputTag_ = ps.getParameter<edm::InputTag>("ZDCPileInputTag");
256  QIE10PileInputTag_ = ps.getParameter<edm::InputTag>("QIE10PileInputTag");
257  QIE11PileInputTag_ = ps.getParameter<edm::InputTag>("QIE11PileInputTag");
258 
264 
270 
271  DoZDC_ = false;
272  if (!ZDCPileInputTag_.label().empty())
273  DoZDC_ = true;
274 
275  if (DoZDC_) {
278  }
279 
280  HBHEDigiCollectionDM_ = ps.getParameter<std::string>("HBHEDigiCollectionDM");
281  HODigiCollectionDM_ = ps.getParameter<std::string>("HODigiCollectionDM");
282  HFDigiCollectionDM_ = ps.getParameter<std::string>("HFDigiCollectionDM");
283  ZDCDigiCollectionDM_ = ps.getParameter<std::string>("ZDCDigiCollectionDM");
284  QIE10DigiCollectionDM_ = ps.getParameter<std::string>("QIE10DigiCollectionDM");
285  QIE11DigiCollectionDM_ = ps.getParameter<std::string>("QIE11DigiCollectionDM");
286 
288  }
EDGetTokenT< ProductType > consumes(edm::InputTag const &tag)
T getParameter(std::string const &) const
Definition: ParameterSet.h:307
edm::EDGetTokenT< HBHEDigiCollection > HBHEDigiPToken_
edm::EDGetTokenT< HODigiCollection > HODigiToken_
edm::EDGetTokenT< ZDCDigiCollection > ZDCDigiToken_
edm::EDGetTokenT< HODigiCollection > HODigiPToken_
std::string const & label() const
Definition: InputTag.h:36
edm::EDGetTokenT< ZDCDigiCollection > ZDCDigiPToken_
edm::EDGetTokenT< HFDigiCollection > HFDigiPToken_
edm::ESGetToken< HcalDbService, HcalDbRecord > dbToken_
edm::EDGetTokenT< HFDigiCollection > HFDigiToken_
edm::EDGetTokenT< QIE11DigiCollection > QIE11DigiToken_
edm::EDGetTokenT< QIE11DigiCollection > QIE11DigiPToken_
edm::EDGetTokenT< QIE10DigiCollection > QIE10DigiToken_
edm::EDGetTokenT< QIE10DigiCollection > QIE10DigiPToken_
edm::EDGetTokenT< HBHEDigiCollection > HBHEDigiToken_

◆ ~DataMixingHcalDigiWorker()

DataMixingHcalDigiWorker::~DataMixingHcalDigiWorker ( )
virtual

Default destructor

Definition at line 291 of file DataMixingHcalDigiWorker.cc.

291 {}

Member Function Documentation

◆ addHcalPileups()

void DataMixingHcalDigiWorker::addHcalPileups ( const int  bcr,
const edm::EventPrincipal ep,
unsigned int  EventId,
const edm::EventSetup ES,
ModuleCallingContext const *  mcc 
)

Definition at line 352 of file DataMixingHcalDigiWorker.cc.

References HcalCoderDb::adc2fC(), edm::SortedCollection< T, SORT >::begin(), submitPVValidationJobs::conditions, dbToken_, DoZDC_, edm::SortedCollection< T, SORT >::end(), SiStripBadComponentsDQMServiceTemplate_cfg::ep, edm::EventSetup::getHandle(), HBHEDigiStorage_, HBHEPileInputTag_, HFDigiStorage_, HFPileInputTag_, HODigiStorage_, HOPileInputTag_, ALPAKA_ACCELERATOR_NAMESPACE::vertexFinder::it, LogDebug, QIE10DigiStorage_, QIE10PileInputTag_, QIE11DigiStorage_, QIE11PileInputTag_, l1trig_cff::shape, edm::SortedCollection< T, SORT >::size(), ZDCDigiStorage_, and ZDCPileInputTag_.

Referenced by edm::DataMixingModule::pileWorker().

356  {
357  LogDebug("DataMixingHcalDigiWorker") << "\n===============> adding pileups from event " << ep->id()
358  << " for bunchcrossing " << bcr;
359 
360  // get conditions
361  const auto &conditions = ES.getHandle(dbToken_);
362 
363  convertPileupHcalDigis<HBHEDigiCollection>(*ep, HBHEPileInputTag_, mcc, *conditions, HBHEDigiStorage_);
364  convertPileupHcalDigis<HODigiCollection>(*ep, HOPileInputTag_, mcc, *conditions, HODigiStorage_);
365  convertPileupHcalDigis<HFDigiCollection>(*ep, HFPileInputTag_, mcc, *conditions, HFDigiStorage_);
366  convertPileupHcalDigis<QIE10DigiCollection>(*ep, QIE10PileInputTag_, mcc, *conditions, QIE10DigiStorage_);
367  convertPileupHcalDigis<QIE11DigiCollection>(*ep, QIE11PileInputTag_, mcc, *conditions, QIE11DigiStorage_);
368 
369  // ZDC Next
370 
371  if (DoZDC_) {
372  std::shared_ptr<Wrapper<ZDCDigiCollection> const> ZDCDigisPTR =
373  getProductByTag<ZDCDigiCollection>(*ep, ZDCPileInputTag_, mcc);
374 
375  if (ZDCDigisPTR) {
376  const ZDCDigiCollection *ZDCDigis = const_cast<ZDCDigiCollection *>(ZDCDigisPTR->product());
377 
378  LogDebug("DataMixingHcalDigiWorker") << "total # ZDC digis: " << ZDCDigis->size();
379 
380  // loop over digis, adding these to the existing maps
381  for (ZDCDigiCollection::const_iterator it = ZDCDigis->begin(); it != ZDCDigis->end(); ++it) {
382  // calibration, for future reference: (same block for all Hcal types)
383  // ZDC is different
384  HcalZDCDetId cell = it->id();
385  const HcalQIECoder *channelCoder = conditions->getHcalCoder(cell);
386  const HcalQIEShape *shape = conditions->getHcalShape(channelCoder); // this one is generic
387  HcalCoderDb coder(*channelCoder, *shape);
388 
389  CaloSamples tool;
390  coder.adc2fC((*it), tool);
391 
392  ZDCDigiStorage_.insert(ZDCDigiMap::value_type((it->id()), tool));
393 
394 #ifdef DEBUG
395  // Commented out because this does not compile anymore
396  // LogDebug("DataMixingHcalDigiWorker") << "processed ZDCDigi with
397  // rawId: "
398  // << it->id() << "\n"
399  // << " digi energy: " <<
400  // it->energy();
401 #endif
402  }
403  }
404  }
405  }
size_type size() const
std::vector< T >::const_iterator const_iterator
edm::ESGetToken< HcalDbService, HcalDbRecord > dbToken_
const_iterator begin() const
ESHandle< T > getHandle(const ESGetToken< T, R > &iToken) const
Definition: EventSetup.h:130
const_iterator end() const
#define LogDebug(id)

◆ addHcalSignals()

void DataMixingHcalDigiWorker::addHcalSignals ( const edm::Event e,
const edm::EventSetup ES 
)

Definition at line 293 of file DataMixingHcalDigiWorker.cc.

References HcalCoderDb::adc2fC(), edm::SortedCollection< T, SORT >::begin(), submitPVValidationJobs::conditions, dbToken_, DoZDC_, MillePedeFileConverter_cfg::e, edm::SortedCollection< T, SORT >::end(), edm::EventSetup::getHandle(), HBHEDigiStorage_, HBHEDigiToken_, HFDigiStorage_, HFDigiToken_, HODigiStorage_, HODigiToken_, ALPAKA_ACCELERATOR_NAMESPACE::vertexFinder::it, LogDebug, edm::Handle< T >::product(), QIE10DigiStorage_, QIE10DigiToken_, QIE11DigiStorage_, QIE11DigiToken_, l1trig_cff::shape, edm::SortedCollection< T, SORT >::size(), ZDCDigiStorage_, and ZDCDigiToken_.

Referenced by edm::DataMixingModule::addSignals().

293  {
294  // Calibration stuff will look like this:
295  // get conditions
296  const auto &conditions = ES.getHandle(dbToken_);
297 
298  // fill in maps of hits
299 
300  LogInfo("DataMixingHcalDigiWorker") << "===============> adding MC signals for " << e.id();
301  convertSignalHcalDigis<HBHEDigiCollection>(e, HBHEDigiToken_, *conditions, HBHEDigiStorage_);
302  convertSignalHcalDigis<HODigiCollection>(e, HODigiToken_, *conditions, HODigiStorage_);
303  convertSignalHcalDigis<HFDigiCollection>(e, HFDigiToken_, *conditions, HFDigiStorage_);
304  convertSignalHcalDigis<QIE10DigiCollection>(e, QIE10DigiToken_, *conditions, QIE10DigiStorage_);
305  convertSignalHcalDigis<QIE11DigiCollection>(e, QIE11DigiToken_, *conditions, QIE11DigiStorage_);
306 
307  // ZDC next
308 
309  if (DoZDC_) {
310  Handle<ZDCDigiCollection> pZDCDigis;
311 
312  const ZDCDigiCollection *ZDCDigis = nullptr;
313 
314  if (e.getByToken(ZDCDigiToken_, pZDCDigis)) {
315  ZDCDigis = pZDCDigis.product(); // get a ptr to the product
316 #ifdef DEBUG
317  LogDebug("DataMixingHcalDigiWorker") << "total # ZDC digis: " << ZDCDigis->size();
318 #endif
319  }
320 
321  if (ZDCDigis) {
322  // loop over digis, storing them in a map so we can add pileup later
323  for (ZDCDigiCollection::const_iterator it = ZDCDigis->begin(); it != ZDCDigis->end(); ++it) {
324  // calibration, for future reference: (same block for all Hcal types)
325  // ZDC is different
326  HcalZDCDetId cell = it->id();
327  // const HcalCalibrations&
328  // calibrations=conditions->getHcalCalibrations(cell);
329  const HcalQIECoder *channelCoder = conditions->getHcalCoder(cell);
330  const HcalQIEShape *shape = conditions->getHcalShape(channelCoder); // this one is generic
331  HcalCoderDb coder(*channelCoder, *shape);
332 
333  CaloSamples tool;
334  coder.adc2fC((*it), tool);
335 
336  ZDCDigiStorage_.insert(ZDCDigiMap::value_type((it->id()), tool));
337 
338 #ifdef DEBUG
339  // Commented out because this does not compile anymore
340  // LogDebug("DataMixingHcalDigiWorker") << "processed ZDCDigi with
341  // rawId: "
342  // << it->id() << "\n"
343  // << " digi energy: " <<
344  // it->energy();
345 #endif
346  }
347  }
348  }
349 
350  } // end of addHCalSignals
edm::EDGetTokenT< HODigiCollection > HODigiToken_
edm::EDGetTokenT< ZDCDigiCollection > ZDCDigiToken_
size_type size() const
std::vector< T >::const_iterator const_iterator
edm::ESGetToken< HcalDbService, HcalDbRecord > dbToken_
const_iterator begin() const
ESHandle< T > getHandle(const ESGetToken< T, R > &iToken) const
Definition: EventSetup.h:130
const_iterator end() const
Log< level::Info, false > LogInfo
edm::EDGetTokenT< HFDigiCollection > HFDigiToken_
edm::EDGetTokenT< QIE11DigiCollection > QIE11DigiToken_
edm::EDGetTokenT< QIE10DigiCollection > QIE10DigiToken_
edm::EDGetTokenT< HBHEDigiCollection > HBHEDigiToken_
#define LogDebug(id)

◆ putHcal()

void DataMixingHcalDigiWorker::putHcal ( edm::Event e,
const edm::EventSetup ES 
)

Definition at line 407 of file DataMixingHcalDigiWorker.cc.

References submitPVValidationJobs::conditions, dbToken_, MillePedeFileConverter_cfg::e, HcalCoderDb::fC2adc(), edm::EventSetup::getHandle(), HBHEDigiCollectionDM_, HBHEDigiStorage_, HFDigiCollectionDM_, HFDigiStorage_, HODigiCollectionDM_, HODigiStorage_, CaloSamples::id(), SiStripPI::max, eostools::move(), QIE10DigiCollectionDM_, QIE10DigiStorage_, QIE11DigiCollectionDM_, QIE11DigiStorage_, l1trig_cff::shape, CaloSamples::size(), ZDCDigiCollectionDM_, and ZDCDigiStorage_.

Referenced by edm::DataMixingModule::put().

407  {
408  const auto &conditions = ES.getHandle(dbToken_);
409 
410  // collection of digis to put in the event
411  std::unique_ptr<HBHEDigiCollection> HBHEdigis = buildHcalDigis<HBHEDigiCollection>(HBHEDigiStorage_, *conditions);
412  std::unique_ptr<HODigiCollection> HOdigis = buildHcalDigis<HODigiCollection>(HODigiStorage_, *conditions);
413  std::unique_ptr<HFDigiCollection> HFdigis = buildHcalDigis<HFDigiCollection>(HFDigiStorage_, *conditions);
414  std::unique_ptr<QIE10DigiCollection> QIE10digis =
415  buildHcalDigis<QIE10DigiCollection>(QIE10DigiStorage_, *conditions);
416  std::unique_ptr<QIE11DigiCollection> QIE11digis =
417  buildHcalDigis<QIE11DigiCollection>(QIE11DigiStorage_, *conditions);
418  std::unique_ptr<ZDCDigiCollection> ZDCdigis(new ZDCDigiCollection);
419 
420  // loop over the maps we have, re-making individual hits or digis if
421  // necessary.
422  DetId formerID = 0;
423  DetId currentID;
424 
425  double fC_new;
426  double fC_old;
427  double fC_sum;
428 
429  // ZDC next...
430 
431  // loop over the maps we have, re-making individual hits or digis if
432  // necessary.
433  formerID = 0;
434  CaloSamples ZDC_old;
435 
436  ZDCDigiMap::const_iterator iZDCchk;
437 
438  for (ZDCDigiMap::const_iterator iZDC = ZDCDigiStorage_.begin(); iZDC != ZDCDigiStorage_.end(); ++iZDC) {
439  currentID = iZDC->first;
440 
441  if (currentID == formerID) { // we have to add these digis together
442 
443  // loop over digi samples in each CaloSample
444  unsigned int sizenew = (iZDC->second).size();
445  unsigned int sizeold = ZDC_old.size();
446 
447  unsigned int max_samp = std::max(sizenew, sizeold);
448 
449  CaloSamples ZDC_bigger(currentID, max_samp);
450 
451  bool usenew = false;
452 
453  if (sizenew > sizeold)
454  usenew = true;
455 
456  // samples from different events can be of different lengths - sum all
457  // that overlap.
458 
459  for (unsigned int isamp = 0; isamp < max_samp; isamp++) {
460  if (isamp < sizenew) {
461  fC_new = (iZDC->second)[isamp];
462  } else {
463  fC_new = 0;
464  }
465 
466  if (isamp < sizeold) {
467  fC_old = ZDC_old[isamp];
468  } else {
469  fC_old = 0;
470  }
471 
472  // add values
473  fC_sum = fC_new + fC_old;
474 
475  if (usenew) {
476  ZDC_bigger[isamp] = fC_sum;
477  } else {
478  ZDC_old[isamp] = fC_sum;
479  } // overwrite old sample, adding new info
480  }
481  if (usenew)
482  ZDC_old = ZDC_bigger; // save new, larger sized sample in "old" slot
483 
484  } else {
485  if (formerID > 0) {
486  // make new digi
487  ZDCdigis->push_back(ZDCDataFrame(formerID));
488 
489  // set up information to convert back
490 
491  HcalZDCDetId cell = ZDC_old.id();
492  const HcalQIECoder *channelCoder = conditions->getHcalCoder(cell);
493  const HcalQIEShape *shape = conditions->getHcalShape(channelCoder); // this one is generic
494  HcalCoderDb coder(*channelCoder, *shape);
495 
496  unsigned int sizeold = ZDC_old.size();
497  for (unsigned int isamp = 0; isamp < sizeold; isamp++) {
498  coder.fC2adc(ZDC_old, (ZDCdigis->back()),
499  1); // as per simulation, capid=1
500  }
501  }
502  // save pointers for next iteration
503  formerID = currentID;
504  ZDC_old = iZDC->second;
505  }
506 
507  iZDCchk = iZDC;
508  if ((++iZDCchk) == ZDCDigiStorage_.end()) { // make sure not to lose the last one
509  // make new digi
510  ZDCdigis->push_back(ZDCDataFrame(currentID));
511 
512  // set up information to convert back
513 
514  HcalZDCDetId cell = (iZDC->second).id();
515  const HcalQIECoder *channelCoder = conditions->getHcalCoder(cell);
516  const HcalQIEShape *shape = conditions->getHcalShape(channelCoder); // this one is generic
517  HcalCoderDb coder(*channelCoder, *shape);
518 
519  unsigned int sizeold = (iZDC->second).size();
520  for (unsigned int isamp = 0; isamp < sizeold; isamp++) {
521  coder.fC2adc(ZDC_old, (ZDCdigis->back()),
522  1); // as per simulation, capid=1
523  }
524  }
525  }
526 
527  // done merging
528 
529  // put the collection of recunstructed hits in the event
530  LogInfo("DataMixingHcalDigiWorker") << "total # HBHE Merged digis: " << HBHEdigis->size();
531  LogInfo("DataMixingHcalDigiWorker") << "total # HO Merged digis: " << HOdigis->size();
532  LogInfo("DataMixingHcalDigiWorker") << "total # HF Merged digis: " << HFdigis->size();
533  LogInfo("DataMixingHcalDigiWorker") << "total # QIE10 Merged digis: " << QIE10digis->size();
534  LogInfo("DataMixingHcalDigiWorker") << "total # QIE11 Merged digis: " << QIE11digis->size();
535  LogInfo("DataMixingHcalDigiWorker") << "total # ZDC Merged digis: " << ZDCdigis->size();
536 
537  e.put(std::move(HBHEdigis), HBHEDigiCollectionDM_);
538  e.put(std::move(HOdigis), HODigiCollectionDM_);
539  e.put(std::move(HFdigis), HFDigiCollectionDM_);
540  e.put(std::move(QIE10digis), QIE10DigiCollectionDM_);
541  e.put(std::move(QIE11digis), QIE11DigiCollectionDM_);
542  e.put(std::move(ZDCdigis), ZDCDigiCollectionDM_);
543 
544  // clear local storage after this event
545  HBHEDigiStorage_.clear();
546  HODigiStorage_.clear();
547  HFDigiStorage_.clear();
548  QIE10DigiStorage_.clear();
549  QIE11DigiStorage_.clear();
550  ZDCDigiStorage_.clear();
551  }
size
Write out results.
int size() const
get the size
Definition: CaloSamples.h:24
DetId id() const
get the (generic) id
Definition: CaloSamples.h:21
edm::ESGetToken< HcalDbService, HcalDbRecord > dbToken_
ESHandle< T > getHandle(const ESGetToken< T, R > &iToken) const
Definition: EventSetup.h:130
Log< level::Info, false > LogInfo
Definition: DetId.h:17
def move(src, dest)
Definition: eostools.py:511

Member Data Documentation

◆ dbToken_

edm::ESGetToken<HcalDbService, HcalDbRecord> edm::DataMixingHcalDigiWorker::dbToken_
private

◆ DoZDC_

bool edm::DataMixingHcalDigiWorker::DoZDC_
private

◆ HBHEDigiCollectionDM_

std::string edm::DataMixingHcalDigiWorker::HBHEDigiCollectionDM_
private

Definition at line 92 of file DataMixingHcalDigiWorker.h.

Referenced by DataMixingHcalDigiWorker(), and putHcal().

◆ HBHEdigiCollectionSig_

edm::InputTag edm::DataMixingHcalDigiWorker::HBHEdigiCollectionSig_
private

Definition at line 64 of file DataMixingHcalDigiWorker.h.

Referenced by DataMixingHcalDigiWorker().

◆ HBHEDigiPToken_

edm::EDGetTokenT<HBHEDigiCollection> edm::DataMixingHcalDigiWorker::HBHEDigiPToken_
private

Definition at line 85 of file DataMixingHcalDigiWorker.h.

Referenced by DataMixingHcalDigiWorker().

◆ HBHEDigiStorage_

HBHEDigiMap edm::DataMixingHcalDigiWorker::HBHEDigiStorage_
private

Definition at line 109 of file DataMixingHcalDigiWorker.h.

Referenced by addHcalPileups(), addHcalSignals(), and putHcal().

◆ HBHEDigiToken_

edm::EDGetTokenT<HBHEDigiCollection> edm::DataMixingHcalDigiWorker::HBHEDigiToken_
private

Definition at line 78 of file DataMixingHcalDigiWorker.h.

Referenced by addHcalSignals(), and DataMixingHcalDigiWorker().

◆ HBHEPileInputTag_

edm::InputTag edm::DataMixingHcalDigiWorker::HBHEPileInputTag_
private

Definition at line 71 of file DataMixingHcalDigiWorker.h.

Referenced by addHcalPileups(), and DataMixingHcalDigiWorker().

◆ HFDigiCollectionDM_

std::string edm::DataMixingHcalDigiWorker::HFDigiCollectionDM_
private

Definition at line 95 of file DataMixingHcalDigiWorker.h.

Referenced by DataMixingHcalDigiWorker(), and putHcal().

◆ HFdigiCollectionSig_

edm::InputTag edm::DataMixingHcalDigiWorker::HFdigiCollectionSig_
private

Definition at line 66 of file DataMixingHcalDigiWorker.h.

Referenced by DataMixingHcalDigiWorker().

◆ HFDigiPToken_

edm::EDGetTokenT<HFDigiCollection> edm::DataMixingHcalDigiWorker::HFDigiPToken_
private

Definition at line 87 of file DataMixingHcalDigiWorker.h.

Referenced by DataMixingHcalDigiWorker().

◆ HFDigiStorage_

HFDigiMap edm::DataMixingHcalDigiWorker::HFDigiStorage_
private

Definition at line 110 of file DataMixingHcalDigiWorker.h.

Referenced by addHcalPileups(), addHcalSignals(), and putHcal().

◆ HFDigiToken_

edm::EDGetTokenT<HFDigiCollection> edm::DataMixingHcalDigiWorker::HFDigiToken_
private

Definition at line 80 of file DataMixingHcalDigiWorker.h.

Referenced by addHcalSignals(), and DataMixingHcalDigiWorker().

◆ HFPileInputTag_

edm::InputTag edm::DataMixingHcalDigiWorker::HFPileInputTag_
private

Definition at line 73 of file DataMixingHcalDigiWorker.h.

Referenced by addHcalPileups(), and DataMixingHcalDigiWorker().

◆ HODigiCollectionDM_

std::string edm::DataMixingHcalDigiWorker::HODigiCollectionDM_
private

Definition at line 94 of file DataMixingHcalDigiWorker.h.

Referenced by DataMixingHcalDigiWorker(), and putHcal().

◆ HOdigiCollectionSig_

edm::InputTag edm::DataMixingHcalDigiWorker::HOdigiCollectionSig_
private

Definition at line 65 of file DataMixingHcalDigiWorker.h.

Referenced by DataMixingHcalDigiWorker().

◆ HODigiPToken_

edm::EDGetTokenT<HODigiCollection> edm::DataMixingHcalDigiWorker::HODigiPToken_
private

Definition at line 86 of file DataMixingHcalDigiWorker.h.

Referenced by DataMixingHcalDigiWorker().

◆ HODigiStorage_

HODigiMap edm::DataMixingHcalDigiWorker::HODigiStorage_
private

Definition at line 111 of file DataMixingHcalDigiWorker.h.

Referenced by addHcalPileups(), addHcalSignals(), and putHcal().

◆ HODigiToken_

edm::EDGetTokenT<HODigiCollection> edm::DataMixingHcalDigiWorker::HODigiToken_
private

Definition at line 79 of file DataMixingHcalDigiWorker.h.

Referenced by addHcalSignals(), and DataMixingHcalDigiWorker().

◆ HOPileInputTag_

edm::InputTag edm::DataMixingHcalDigiWorker::HOPileInputTag_
private

Definition at line 72 of file DataMixingHcalDigiWorker.h.

Referenced by addHcalPileups(), and DataMixingHcalDigiWorker().

◆ label_

std::string edm::DataMixingHcalDigiWorker::label_
private

◆ QIE10DigiCollectionDM_

std::string edm::DataMixingHcalDigiWorker::QIE10DigiCollectionDM_
private

Definition at line 97 of file DataMixingHcalDigiWorker.h.

Referenced by DataMixingHcalDigiWorker(), and putHcal().

◆ QIE10digiCollectionSig_

edm::InputTag edm::DataMixingHcalDigiWorker::QIE10digiCollectionSig_
private

Definition at line 68 of file DataMixingHcalDigiWorker.h.

Referenced by DataMixingHcalDigiWorker().

◆ QIE10DigiPToken_

edm::EDGetTokenT<QIE10DigiCollection> edm::DataMixingHcalDigiWorker::QIE10DigiPToken_
private

Definition at line 89 of file DataMixingHcalDigiWorker.h.

Referenced by DataMixingHcalDigiWorker().

◆ QIE10DigiStorage_

QIE10DigiMap edm::DataMixingHcalDigiWorker::QIE10DigiStorage_
private

Definition at line 113 of file DataMixingHcalDigiWorker.h.

Referenced by addHcalPileups(), addHcalSignals(), and putHcal().

◆ QIE10DigiToken_

edm::EDGetTokenT<QIE10DigiCollection> edm::DataMixingHcalDigiWorker::QIE10DigiToken_
private

Definition at line 82 of file DataMixingHcalDigiWorker.h.

Referenced by addHcalSignals(), and DataMixingHcalDigiWorker().

◆ QIE10PileInputTag_

edm::InputTag edm::DataMixingHcalDigiWorker::QIE10PileInputTag_
private

Definition at line 75 of file DataMixingHcalDigiWorker.h.

Referenced by addHcalPileups(), and DataMixingHcalDigiWorker().

◆ QIE11DigiCollectionDM_

std::string edm::DataMixingHcalDigiWorker::QIE11DigiCollectionDM_
private

Definition at line 99 of file DataMixingHcalDigiWorker.h.

Referenced by DataMixingHcalDigiWorker(), and putHcal().

◆ QIE11digiCollectionSig_

edm::InputTag edm::DataMixingHcalDigiWorker::QIE11digiCollectionSig_
private

Definition at line 69 of file DataMixingHcalDigiWorker.h.

Referenced by DataMixingHcalDigiWorker().

◆ QIE11DigiPToken_

edm::EDGetTokenT<QIE11DigiCollection> edm::DataMixingHcalDigiWorker::QIE11DigiPToken_
private

Definition at line 90 of file DataMixingHcalDigiWorker.h.

Referenced by DataMixingHcalDigiWorker().

◆ QIE11DigiStorage_

QIE11DigiMap edm::DataMixingHcalDigiWorker::QIE11DigiStorage_
private

Definition at line 114 of file DataMixingHcalDigiWorker.h.

Referenced by addHcalPileups(), addHcalSignals(), and putHcal().

◆ QIE11DigiToken_

edm::EDGetTokenT<QIE11DigiCollection> edm::DataMixingHcalDigiWorker::QIE11DigiToken_
private

Definition at line 83 of file DataMixingHcalDigiWorker.h.

Referenced by addHcalSignals(), and DataMixingHcalDigiWorker().

◆ QIE11PileInputTag_

edm::InputTag edm::DataMixingHcalDigiWorker::QIE11PileInputTag_
private

Definition at line 76 of file DataMixingHcalDigiWorker.h.

Referenced by addHcalPileups(), and DataMixingHcalDigiWorker().

◆ ZDCDigiCollectionDM_

std::string edm::DataMixingHcalDigiWorker::ZDCDigiCollectionDM_
private

Definition at line 96 of file DataMixingHcalDigiWorker.h.

Referenced by DataMixingHcalDigiWorker(), and putHcal().

◆ ZDCdigiCollectionSig_

edm::InputTag edm::DataMixingHcalDigiWorker::ZDCdigiCollectionSig_
private

Definition at line 67 of file DataMixingHcalDigiWorker.h.

Referenced by DataMixingHcalDigiWorker().

◆ ZDCDigiPToken_

edm::EDGetTokenT<ZDCDigiCollection> edm::DataMixingHcalDigiWorker::ZDCDigiPToken_
private

Definition at line 88 of file DataMixingHcalDigiWorker.h.

Referenced by DataMixingHcalDigiWorker().

◆ ZDCDigiStorage_

ZDCDigiMap edm::DataMixingHcalDigiWorker::ZDCDigiStorage_
private

Definition at line 112 of file DataMixingHcalDigiWorker.h.

Referenced by addHcalPileups(), addHcalSignals(), and putHcal().

◆ ZDCDigiToken_

edm::EDGetTokenT<ZDCDigiCollection> edm::DataMixingHcalDigiWorker::ZDCDigiToken_
private

Definition at line 81 of file DataMixingHcalDigiWorker.h.

Referenced by addHcalSignals(), and DataMixingHcalDigiWorker().

◆ ZDCPileInputTag_

edm::InputTag edm::DataMixingHcalDigiWorker::ZDCPileInputTag_
private

Definition at line 74 of file DataMixingHcalDigiWorker.h.

Referenced by addHcalPileups(), and DataMixingHcalDigiWorker().