CMS 3D CMS Logo

List of all members | Public Member Functions | Private Member Functions | Private Attributes
EcalTrigPrimESProducer Class Reference

#include <EcalTrigPrimESProducer.h>

Inheritance diagram for EcalTrigPrimESProducer:
edm::ESProducer edm::ESProductResolverFactoryProducer edm::eventsetup::ESProductResolverProvider

Public Member Functions

 EcalTrigPrimESProducer (const edm::ParameterSet &)
 
std::unique_ptr< EcalTPGStripStatusproduceBadStrip (const EcalTPGStripStatusRcd &)
 
std::unique_ptr< EcalTPGTowerStatusproduceBadTT (const EcalTPGTowerStatusRcd &)
 
std::unique_ptr< EcalTPGCrystalStatusproduceBadX (const EcalTPGCrystalStatusRcd &)
 
std::unique_ptr< EcalTPGFineGrainEBIdMapproduceFineGrainEB (const EcalTPGFineGrainEBIdMapRcd &)
 
std::unique_ptr< EcalTPGFineGrainEBGroupproduceFineGrainEBGroup (const EcalTPGFineGrainEBGroupRcd &)
 
std::unique_ptr< EcalTPGFineGrainStripEEproduceFineGrainEEstrip (const EcalTPGFineGrainStripEERcd &)
 
std::unique_ptr< EcalTPGFineGrainTowerEEproduceFineGrainEEtower (const EcalTPGFineGrainTowerEERcd &)
 
std::unique_ptr< EcalTPGLinearizationConstproduceLinearizationConst (const EcalTPGLinearizationConstRcd &)
 
std::unique_ptr< EcalTPGLutIdMapproduceLUT (const EcalTPGLutIdMapRcd &)
 
std::unique_ptr< EcalTPGLutGroupproduceLutGroup (const EcalTPGLutGroupRcd &)
 
std::unique_ptr< EcalTPGOddWeightIdMapproduceOddWeight (const EcalTPGOddWeightIdMapRcd &)
 
std::unique_ptr< EcalTPGOddWeightGroupproduceOddWeightGroup (const EcalTPGOddWeightGroupRcd &)
 
std::unique_ptr< EcalTPGPedestalsproducePedestals (const EcalTPGPedestalsRcd &)
 
std::unique_ptr< EcalTPGPhysicsConstproducePhysicsConst (const EcalTPGPhysicsConstRcd &)
 
std::unique_ptr< EcalTPGSlidingWindowproduceSlidingWindow (const EcalTPGSlidingWindowRcd &)
 
std::unique_ptr< EcalTPGSpikeproduceSpike (const EcalTPGSpikeRcd &)
 
std::unique_ptr< EcalTPGTPModeproduceTPMode (const EcalTPGTPModeRcd &)
 
std::unique_ptr< EcalTPGWeightIdMapproduceWeight (const EcalTPGWeightIdMapRcd &)
 
std::unique_ptr< EcalTPGWeightGroupproduceWeightGroup (const EcalTPGWeightGroupRcd &)
 
 ~EcalTrigPrimESProducer () override
 
- Public Member Functions inherited from edm::ESProducer
 ESProducer ()
 
 ESProducer (const ESProducer &)=delete
 
 ESProducer (ESProducer &&)=delete
 
ESResolverIndex const * getTokenIndices (unsigned int iIndex) const
 
ESRecordIndex const * getTokenRecordIndices (unsigned int iIndex) const
 
bool hasMayConsumes () const noexcept
 
size_t numberOfTokenIndices (unsigned int iIndex) const
 
ESProduceroperator= (const ESProducer &)=delete
 
ESProduceroperator= (ESProducer &&)=delete
 
SerialTaskQueueChainqueue ()
 
template<typename Record >
std::optional< std::vector< ESResolverIndex > > updateFromMayConsumes (unsigned int iIndex, const Record &iRecord) const
 
void updateLookup (eventsetup::ESRecordsToProductResolverIndices const &) final
 
 ~ESProducer () noexcept(false) override
 
- Public Member Functions inherited from edm::ESProductResolverFactoryProducer
 ESProductResolverFactoryProducer ()
 
 ESProductResolverFactoryProducer (const ESProductResolverFactoryProducer &)=delete
 
const ESProductResolverFactoryProduceroperator= (const ESProductResolverFactoryProducer &)=delete
 
 ~ESProductResolverFactoryProducer () noexcept(false) override
 
- Public Member Functions inherited from edm::eventsetup::ESProductResolverProvider
void createKeyedResolvers (EventSetupRecordKey const &key, unsigned int nConcurrentIOVs)
 
const ComponentDescriptiondescription () const
 
 ESProductResolverProvider ()
 
 ESProductResolverProvider (const ESProductResolverProvider &)=delete
 
void fillRecordsNotAllowingConcurrentIOVs (std::set< EventSetupRecordKey > &recordsNotAllowingConcurrentIOVs) const
 
virtual void initConcurrentIOVs (EventSetupRecordKey const &key, unsigned int nConcurrentIOVs)
 
bool isUsingRecord (const EventSetupRecordKey &key) const
 
KeyedResolverskeyedResolvers (const EventSetupRecordKey &iRecordKey, unsigned int iovIndex=0)
 
const ESProductResolverProvideroperator= (const ESProductResolverProvider &)=delete
 
void setAppendToDataLabel (const edm::ParameterSet &)
 
void setDescription (const ComponentDescription &iDescription)
 
std::set< EventSetupRecordKeyusingRecords () const
 
virtual ~ESProductResolverProvider () noexcept(false)
 

Private Member Functions

std::vector< int > getRange (int subdet, int smNb, int towerNbInSm, int stripNbInTower=0, int xtalNbInStrip=0)
 
void parseTextFile ()
 

Private Attributes

std::string dbFilename_
 
bool flagPrint_
 
std::map< uint32_t, std::vector< uint32_t > > mapFg_
 
std::map< uint32_t, std::vector< uint32_t > > mapLut_
 
std::map< uint32_t, std::vector< float > > mapPhys_
 
std::map< uint32_t, std::vector< uint32_t > > mapStrip_ [2]
 
std::map< uint32_t, std::vector< uint32_t > > mapTower_ [2]
 
std::map< uint32_t, std::vector< uint32_t > > mapWeight_
 
std::map< uint32_t, std::vector< uint32_t > > mapWeight_odd_
 
std::map< uint32_t, std::vector< uint32_t > > mapXtal_
 
std::vector< uint32_t > tpMode_
 

Additional Inherited Members

- Static Public Member Functions inherited from edm::eventsetup::ESProductResolverProvider
static void prevalidate (ConfigurationDescriptions &)
 
- Protected Types inherited from edm::ESProductResolverFactoryProducer
using EventSetupRecordKey = eventsetup::EventSetupRecordKey
 
- Protected Types inherited from edm::eventsetup::ESProductResolverProvider
using KeyedResolversVector = std::vector< std::pair< DataKey, std::shared_ptr< ESProductResolver > >>
 
- Protected Member Functions inherited from edm::ESProducer
ESConsumesInfoconsumesInfoPushBackNew ()
 
unsigned int consumesInfoSize () const
 
template<typename CallbackT , typename TList , typename TRecord >
void registerProducts (std::shared_ptr< std::pair< unsigned int, std::shared_ptr< CallbackT >>> iCallback, const TList *, const TRecord *iRecord, const es::Label &iLabel)
 
template<typename CallbackT , typename TRecord >
void registerProducts (std::shared_ptr< std::pair< unsigned int, std::shared_ptr< CallbackT >>>, const eventsetup::produce::Null *, const TRecord *, const es::Label &)
 
template<typename T >
auto setWhatProduced (T *iThis, const es::Label &iLabel={})
 
template<typename T >
auto setWhatProduced (T *iThis, const char *iLabel)
 
template<typename T >
auto setWhatProduced (T *iThis, const std::string &iLabel)
 
template<typename T , typename TDecorator >
auto setWhatProduced (T *iThis, const TDecorator &iDec, const es::Label &iLabel={})
 
template<typename T , typename TReturn , typename TRecord >
auto setWhatProduced (T *iThis, TReturn(T::*iMethod)(const TRecord &), const es::Label &iLabel={})
 
template<typename T , typename TReturn , typename TRecord , typename TDecorator >
auto setWhatProduced (T *iThis, TReturn(T ::*iMethod)(const TRecord &), const TDecorator &iDec, const es::Label &iLabel={})
 
template<typename TFunc >
auto setWhatProduced (TFunc &&func, const es::Label &iLabel={})
 
template<typename TReturn , typename TRecord , typename TFunc , typename TDecorator >
ESConsumesCollectorT< TRecord > setWhatProduced (TFunc &&func, TDecorator &&iDec, const es::Label &iLabel={})
 
void usesResources (std::vector< std::string > const &)
 
- Protected Member Functions inherited from edm::ESProductResolverFactoryProducer
template<class TFactory >
void registerFactory (std::unique_ptr< TFactory > iFactory, const std::string &iLabel=std::string())
 
virtual void registerFactoryWithKey (const EventSetupRecordKey &iRecord, std::unique_ptr< eventsetup::ESProductResolverFactoryBase > iFactory, const std::string &iLabel=std::string())
 
KeyedResolversVector registerResolvers (const EventSetupRecordKey &, unsigned int iovIndex) override
 
- Protected Member Functions inherited from edm::eventsetup::ESProductResolverProvider
template<class T >
void usingRecord ()
 
void usingRecordWithKey (const EventSetupRecordKey &key)
 

Detailed Description

Definition at line 56 of file EcalTrigPrimESProducer.h.

Constructor & Destructor Documentation

◆ EcalTrigPrimESProducer()

EcalTrigPrimESProducer::EcalTrigPrimESProducer ( const edm::ParameterSet iConfig)

Definition at line 57 of file EcalTrigPrimESProducer.cc.

References produceBadStrip(), produceBadTT(), produceBadX(), produceFineGrainEB(), produceFineGrainEBGroup(), produceFineGrainEEstrip(), produceFineGrainEEtower(), produceLinearizationConst(), produceLUT(), produceLutGroup(), produceOddWeight(), produceOddWeightGroup(), producePedestals(), producePhysicsConst(), produceSlidingWindow(), produceSpike(), produceTPMode(), produceWeight(), produceWeightGroup(), edm::ESProducer::setWhatProduced(), and tpMode_.

58  : dbFilename_(iConfig.getUntrackedParameter<std::string>("DatabaseFile", "")),
59  flagPrint_(iConfig.getParameter<bool>("WriteInFile")) {
60  // the following line is needed to tell the framework what
61  // data is being produced
81  // now do what ever other initialization is needed
82  //init TPmode
83  tpMode_ = std::vector<uint32_t>(18, 0);
84 }
auto setWhatProduced(T *iThis, const es::Label &iLabel={})
Definition: ESProducer.h:166
T getParameter(std::string const &) const
Definition: ParameterSet.h:307
std::unique_ptr< EcalTPGWeightGroup > produceWeightGroup(const EcalTPGWeightGroupRcd &)
std::unique_ptr< EcalTPGCrystalStatus > produceBadX(const EcalTPGCrystalStatusRcd &)
std::vector< uint32_t > tpMode_
std::unique_ptr< EcalTPGLinearizationConst > produceLinearizationConst(const EcalTPGLinearizationConstRcd &)
std::unique_ptr< EcalTPGFineGrainEBIdMap > produceFineGrainEB(const EcalTPGFineGrainEBIdMapRcd &)
std::unique_ptr< EcalTPGLutIdMap > produceLUT(const EcalTPGLutIdMapRcd &)
T getUntrackedParameter(std::string const &, T const &) const
std::unique_ptr< EcalTPGTowerStatus > produceBadTT(const EcalTPGTowerStatusRcd &)
std::unique_ptr< EcalTPGPedestals > producePedestals(const EcalTPGPedestalsRcd &)
std::unique_ptr< EcalTPGPhysicsConst > producePhysicsConst(const EcalTPGPhysicsConstRcd &)
std::unique_ptr< EcalTPGOddWeightGroup > produceOddWeightGroup(const EcalTPGOddWeightGroupRcd &)
std::unique_ptr< EcalTPGTPMode > produceTPMode(const EcalTPGTPModeRcd &)
std::unique_ptr< EcalTPGFineGrainTowerEE > produceFineGrainEEtower(const EcalTPGFineGrainTowerEERcd &)
std::unique_ptr< EcalTPGSpike > produceSpike(const EcalTPGSpikeRcd &)
std::unique_ptr< EcalTPGSlidingWindow > produceSlidingWindow(const EcalTPGSlidingWindowRcd &)
std::unique_ptr< EcalTPGOddWeightIdMap > produceOddWeight(const EcalTPGOddWeightIdMapRcd &)
std::unique_ptr< EcalTPGFineGrainEBGroup > produceFineGrainEBGroup(const EcalTPGFineGrainEBGroupRcd &)
std::unique_ptr< EcalTPGLutGroup > produceLutGroup(const EcalTPGLutGroupRcd &)
std::unique_ptr< EcalTPGFineGrainStripEE > produceFineGrainEEstrip(const EcalTPGFineGrainStripEERcd &)
std::unique_ptr< EcalTPGWeightIdMap > produceWeight(const EcalTPGWeightIdMapRcd &)
std::unique_ptr< EcalTPGStripStatus > produceBadStrip(const EcalTPGStripStatusRcd &)

◆ ~EcalTrigPrimESProducer()

EcalTrigPrimESProducer::~EcalTrigPrimESProducer ( )
override

Definition at line 86 of file EcalTrigPrimESProducer.cc.

86 {}

Member Function Documentation

◆ getRange()

std::vector< int > EcalTrigPrimESProducer::getRange ( int  subdet,
int  smNb,
int  towerNbInSm,
int  stripNbInTower = 0,
int  xtalNbInStrip = 0 
)
private

Definition at line 788 of file EcalTrigPrimESProducer.cc.

References FastTimerService_cff::range.

789  {
790  std::vector<int> range;
791  if (subdet == 0) {
792  // Barrel
793  range.push_back(37); // stccNbMin
794  range.push_back(73); // tccNbMax
795  range.push_back(1); // towerNbMin
796  range.push_back(69); // towerNbMax
797  range.push_back(1); // stripNbMin
798  range.push_back(6); // stripNbMax
799  range.push_back(1); // xtalNbMin
800  range.push_back(6); // xtalNbMax
801  } else {
802  // Endcap eta >0
803  if (subdet > 0) {
804  range.push_back(73); // tccNbMin
805  range.push_back(109); // tccNbMax
806  } else { // endcap eta <0
807  range.push_back(1); // tccNbMin
808  range.push_back(37); // tccNbMax
809  }
810  range.push_back(1); // towerNbMin
811  range.push_back(29); // towerNbMax
812  range.push_back(1); // stripNbMin
813  range.push_back(6); // stripNbMax
814  range.push_back(1); // xtalNbMin
815  range.push_back(6); // xtalNbMax
816  }
817 
818  if (tccNb > 0) {
819  range[0] = tccNb;
820  range[1] = tccNb + 1;
821  }
822  if (towerNbInTcc > 0) {
823  range[2] = towerNbInTcc;
824  range[3] = towerNbInTcc + 1;
825  }
826  if (stripNbInTower > 0) {
827  range[4] = stripNbInTower;
828  range[5] = stripNbInTower + 1;
829  }
830  if (xtalNbInStrip > 0) {
831  range[6] = xtalNbInStrip;
832  range[7] = xtalNbInStrip + 1;
833  }
834 
835  return range;
836 }

◆ parseTextFile()

void EcalTrigPrimESProducer::parseTextFile ( )
private

Definition at line 365 of file EcalTrigPrimESProducer.cc.

References data, dbFilename_, TauDecayModes::dec, corrVsCorr::filename, flagPrint_, edm::FileInPath::fullPath(), mps_fire::i, l1ctLayer2EG_cff::id, timingPdfMaker::infile, dqmdumpme::k, mps_splice::line, mapFg_, mapLut_, mapPhys_, mapStrip_, mapTower_, mapWeight_, mapWeight_odd_, mapXtal_, pickleFileParser::slash, AlCaHLTBitMon_QueryRunRegistry::string, and tpMode_.

Referenced by produceBadTT(), produceBadX(), produceFineGrainEB(), produceFineGrainEBGroup(), produceFineGrainEEstrip(), produceFineGrainEEtower(), produceLinearizationConst(), produceLUT(), produceLutGroup(), produceOddWeight(), produceOddWeightGroup(), producePedestals(), producePhysicsConst(), produceSlidingWindow(), produceSpike(), produceTPMode(), produceWeight(), and produceWeightGroup().

365  {
366  if (!mapXtal_.empty())
367  return; // just parse the file once!
368 
369  uint32_t id;
370  std::string dataCard;
372  std::ifstream infile;
373  std::vector<unsigned int> param;
374  std::vector<float> paramF;
375  int NBstripparams[2] = {5, 5};
376  unsigned int data;
377  float dataF;
378 
379  std::string bufString;
380  std::string iString;
381  std::string fString;
382  std::string filename = "SimCalorimetry/EcalTrigPrimProducers/data/" + dbFilename_;
383  std::string finalFileName;
384  size_t slash = dbFilename_.find('/');
385  if (slash != 0) {
386  edm::FileInPath fileInPath(filename);
387  finalFileName = fileInPath.fullPath();
388  } else {
389  finalFileName = dbFilename_;
390  edm::LogWarning("EcalTPG") << "Couldnt find database file via fileinpath, "
391  "trying with pathname directly!!";
392  }
393 
394  int k = 0;
395 
396  GzInputStream gis(finalFileName.c_str());
397  while (gis >> dataCard) {
398  if (dataCard == "PHYSICS_EB" || dataCard == "PHYSICS_EE") {
399  gis >> std::dec >> id;
400 
401  if (flagPrint_) {
402  edm::LogVerbatim("EcalTrigPrimESProducer") << dataCard << " " << std::dec << id;
403  }
404 
405  paramF.clear();
406 
407  std::string st1;
408  std::string st2;
409 
410  for (int i = 0; i < 7; i++) {
411  gis >> std::dec >> dataF;
412  paramF.push_back(dataF);
413 
414  // edm::LogVerbatim("EcalTrigPrimESProducer")<<", "<<std::dec<<dataF ;
415  if (flagPrint_) {
416  //---------------------------------
417  if (i < 3) {
418  std::ostringstream oss;
419  oss << dataF;
420  std::string result1 = oss.str();
421 
422  st1.append(result1);
423  if (i != 2)
424  st1.append(" ");
425  }
426 
427  if (i > 2) {
428  std::ostringstream oss;
429  oss << dataF;
430  std::string result2 = oss.str();
431 
432  st2.append(result2);
433  if (i != 6)
434  st2.append(" ");
435  }
436  //----------------------------------
437  }
438  }
439 
440  if (flagPrint_) {
441  edm::LogVerbatim("EcalTrigPrimESProducer") << "" << st1;
442  edm::LogVerbatim("EcalTrigPrimESProducer") << "" << st2;
443  edm::LogVerbatim("EcalTrigPrimESProducer") << "";
444  }
445 
446  // edm::LogVerbatim("EcalTrigPrimESProducer")<<std::endl ;
447  mapPhys_[id] = paramF;
448  }
449 
450  if (dataCard == "CRYSTAL") {
451  gis >> std::dec >> id;
452  // edm::LogVerbatim("EcalTrigPrimESProducer")<<dataCard<<" "<<std::dec<<id;
453  std::string st3;
454  std::string st4;
455  std::string st5;
456 
457  if (flagPrint_) {
458  // Print this comment only one time
459  if (k == 0)
460  edm::LogVerbatim("EcalTrigPrimESProducer") << "COMMENT ====== barrel crystals ====== ";
461 
462  if (k == 61200)
463  edm::LogVerbatim("EcalTrigPrimESProducer") << "COMMENT ====== endcap crystals ====== ";
464 
465  k = k + 1;
466 
467  edm::LogVerbatim("EcalTrigPrimESProducer") << dataCard << " " << std::dec << id;
468  }
469 
470  param.clear();
471  for (int i = 0; i < 9; i++) {
472  gis >> std::hex >> data;
473  // edm::LogVerbatim("EcalTrigPrimESProducer")<<", "<<std::hex<<data ;
474  param.push_back(data);
475 
476  if (flagPrint_) {
477  if (i < 3) {
478  std::ostringstream oss;
479  oss << std::hex << data;
480  std::string result1 = oss.str();
481 
482  st3.append("0x");
483  st3.append(result1);
484  if (i != 2)
485  st3.append(" ");
486 
487  } else if (i > 2 && i < 6) {
488  std::ostringstream oss;
489  oss << std::hex << data;
490  std::string result2 = oss.str();
491 
492  st4.append("0x");
493  st4.append(result2);
494  if (i != 5)
495  st4.append(" ");
496  } else if (i > 5 && i < 9) {
497  std::ostringstream oss;
498  oss << std::hex << data;
499  std::string result3 = oss.str();
500 
501  st5.append("0x");
502  st5.append(result3);
503  if (i != 8)
504  st5.append(" ");
505  }
506  }
507 
508  } // end for
509 
510  if (flagPrint_) {
511  edm::LogVerbatim("EcalTrigPrimESProducer") << " " << st3;
512  edm::LogVerbatim("EcalTrigPrimESProducer") << " " << st4;
513  edm::LogVerbatim("EcalTrigPrimESProducer") << " " << st5;
514  }
515 
516  // edm::LogVerbatim("EcalTrigPrimESProducer")<<std::endl ;
517  mapXtal_[id] = param;
518  }
519 
520  if (dataCard == "STRIP_EB") {
521  gis >> std::dec >> id;
522 
523  std::string st1;
524 
525  if (flagPrint_)
526  edm::LogVerbatim("EcalTrigPrimESProducer") << dataCard << " " << std::dec << id;
527 
528  param.clear();
529  for (int i = 0; i < NBstripparams[0]; i++) {
530  gis >> std::hex >> data;
531  // edm::LogVerbatim("EcalTrigPrimESProducer") << " data = " << data;
532  param.push_back(data);
533 
534  if (flagPrint_) {
535  if (i == 0) {
536  edm::LogVerbatim("EcalTrigPrimESProducer") << "0x" << std::hex << data;
537  } else if (i >= 1 && i < 3) {
538  edm::LogVerbatim("EcalTrigPrimESProducer") << "" << std::dec << data;
539  } else if (i > 2) {
540  std::ostringstream oss;
541  if (i == 3) {
542  oss << "0x" << std::hex << data;
543  std::string result4 = oss.str();
544  st1.append(result4);
545  } else if (i == 4) {
546  std::ostringstream oss;
547  oss << " 0x" << std::hex << data;
548  std::string result5 = oss.str();
549  st1.append(result5);
550  edm::LogVerbatim("EcalTrigPrimESProducer") << "" << st1;
551  }
552  }
553  }
554  }
555 
556  // edm::LogVerbatim("EcalTrigPrimESProducer")<<std::endl ;
557  mapStrip_[0][id] = param;
558  }
559 
560  if (dataCard == "STRIP_EE") {
561  gis >> std::dec >> id;
562 
563  std::string st6;
564 
565  if (flagPrint_) {
566  edm::LogVerbatim("EcalTrigPrimESProducer") << dataCard << " " << std::dec << id;
567  }
568 
569  param.clear();
570  for (int i = 0; i < NBstripparams[1]; i++) {
571  gis >> std::hex >> data;
572  param.push_back(data);
573 
574  if (flagPrint_) {
575  if (i == 0) {
576  edm::LogVerbatim("EcalTrigPrimESProducer") << "0x" << std::hex << data;
577  } else if (i >= 1 && i < 3) {
578  edm::LogVerbatim("EcalTrigPrimESProducer") << " " << std::hex << data;
579  } else if (i > 2) {
580  std::ostringstream oss;
581  if (i == 3) {
582  oss << "0x" << std::hex << data;
583  std::string result4 = oss.str();
584  st6.append(result4);
585  } else if (i == 4) {
586  std::ostringstream oss;
587  oss << " 0x" << std::hex << data;
588  std::string result5 = oss.str();
589 
590  st6.append(result5);
591  edm::LogVerbatim("EcalTrigPrimESProducer") << "" << st6;
592  }
593  }
594  }
595  }
596 
597  // edm::LogVerbatim("EcalTrigPrimESProducer")<<std::endl ;
598  mapStrip_[1][id] = param;
599  }
600 
601  if (dataCard == "TOWER_EE") {
602  gis >> std::dec >> id;
603 
604  if (flagPrint_)
605  edm::LogVerbatim("EcalTrigPrimESProducer") << dataCard << " " << std::dec << id;
606 
607  param.clear();
608  for (int i = 0; i < 2; i++) {
609  gis >> std::hex >> data;
610  param.push_back(data);
611 
612  if (flagPrint_) {
613  if (i == 1) {
614  edm::LogVerbatim("EcalTrigPrimESProducer") << "0x" << std::dec << data;
615  } else {
616  edm::LogVerbatim("EcalTrigPrimESProducer") << " " << std::dec << data;
617  }
618  }
619  }
620 
621  // edm::LogVerbatim("EcalTrigPrimESProducer")<<std::endl ;
622  mapTower_[1][id] = param;
623  }
624 
625  if (dataCard == "TOWER_EB") {
626  gis >> std::dec >> id;
627 
628  if (flagPrint_)
629  edm::LogVerbatim("EcalTrigPrimESProducer") << dataCard << " " << std::dec << id;
630 
631  param.clear();
632  for (int i = 0; i < 3; i++) {
633  gis >> std::dec >> data;
634 
635  if (flagPrint_) {
636  edm::LogVerbatim("EcalTrigPrimESProducer") << " " << std::dec << data;
637  }
638 
639  param.push_back(data);
640  }
641 
642  // edm::LogVerbatim("EcalTrigPrimESProducer")<<std::endl ;
643  mapTower_[0][id] = param;
644  }
645 
646  if (dataCard == "WEIGHT") {
647  gis >> std::hex >> id;
648  if (flagPrint_) {
649  edm::LogVerbatim("EcalTrigPrimESProducer") << dataCard << " " << std::dec << id;
650  }
651 
652  param.clear();
653 
654  std::string st6;
655  for (int i = 0; i < 5; i++) {
656  gis >> std::hex >> data;
657  param.push_back(data);
658 
659  if (flagPrint_) {
660  std::ostringstream oss;
661  oss << std::hex << data;
662  std::string result4 = oss.str();
663 
664  st6.append("0x");
665  st6.append(result4);
666  st6.append(" ");
667  }
668  }
669 
670  if (flagPrint_) {
671  edm::LogVerbatim("EcalTrigPrimESProducer") << st6;
672  }
673 
674  // edm::LogVerbatim("EcalTrigPrimESProducer")<<std::endl ;
675  mapWeight_[id] = param;
676  }
677 
678  if (dataCard == "WEIGHT_ODD") {
679  gis >> std::hex >> id;
680  if (flagPrint_) {
681  edm::LogVerbatim("EcalTrigPrimESProducer") << dataCard << " " << std::dec << id;
682  }
683 
684  param.clear();
685 
686  std::string st6;
687  for (int i = 0; i < 5; i++) {
688  gis >> std::hex >> data;
689  param.push_back(data);
690 
691  if (flagPrint_) {
692  std::ostringstream oss;
693  oss << std::hex << data;
694  std::string result4 = oss.str();
695 
696  st6.append("0x");
697  st6.append(result4);
698  st6.append(" ");
699  }
700  }
701 
702  if (flagPrint_) {
703  edm::LogVerbatim("EcalTrigPrimESProducer") << st6;
704  }
705 
706  // edm::LogVerbatim("EcalTrigPrimESProducer")<<std::endl ;
707  mapWeight_odd_[id] = param;
708  }
709 
710  if (dataCard == "FG") {
711  gis >> std::hex >> id;
712  if (flagPrint_)
713  edm::LogVerbatim("EcalTrigPrimESProducer") << dataCard << " " << std::dec << id;
714 
715  param.clear();
716  std::string st7;
717  for (int i = 0; i < 5; i++) {
718  gis >> std::hex >> data;
719  param.push_back(data);
720 
721  if (flagPrint_) {
722  std::ostringstream oss;
723  oss << std::hex << data;
724 
725  std::string result5 = oss.str();
726 
727  st7.append("0x");
728  st7.append(result5);
729  if (i != 4)
730  st7.append(" ");
731  }
732  }
733 
734  if (flagPrint_) {
735  edm::LogVerbatim("EcalTrigPrimESProducer") << st7;
736  }
737 
738  mapFg_[id] = param;
739  }
740 
741  if (dataCard == "LUT") {
742  gis >> std::hex >> id;
743 
744  if (flagPrint_)
745  edm::LogVerbatim("EcalTrigPrimESProducer") << dataCard << " " << std::dec << id;
746 
747  param.clear();
748  for (int i = 0; i < 1024; i++) {
749  gis >> std::hex >> data;
750  param.push_back(data);
751 
752  if (flagPrint_) {
753  edm::LogVerbatim("EcalTrigPrimESProducer") << "0x" << std::hex << data;
754  }
755  }
756 
757  mapLut_[id] = param;
758  }
759 
760  if (dataCard == "TP_MODE") {
761  param.clear();
762 
763  std::string st8;
764  for (int i = 0; i < 18; i++) {
765  gis >> std::dec >> data;
766  param.push_back(data);
767 
768  if (flagPrint_) {
769  std::ostringstream oss;
770  oss << std::dec << data;
771  std::string result6 = oss.str();
772 
773  st8.append(result6);
774  st8.append(" ");
775  }
776  }
777 
778  if (flagPrint_) {
779  edm::LogVerbatim("EcalTrigPrimESProducer") << dataCard << " " << st8;
780  }
781 
782  // edm::LogVerbatim("EcalTrigPrimESProducer")<<std::endl ;
783  tpMode_ = param;
784  }
785  }
786 }
Log< level::Info, true > LogVerbatim
std::vector< uint32_t > tpMode_
std::map< uint32_t, std::vector< uint32_t > > mapWeight_odd_
std::map< uint32_t, std::vector< uint32_t > > mapTower_[2]
std::map< uint32_t, std::vector< uint32_t > > mapXtal_
std::map< uint32_t, std::vector< uint32_t > > mapWeight_
std::map< uint32_t, std::vector< uint32_t > > mapFg_
std::map< uint32_t, std::vector< float > > mapPhys_
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:80
Log< level::Warning, false > LogWarning
std::map< uint32_t, std::vector< uint32_t > > mapLut_
std::map< uint32_t, std::vector< uint32_t > > mapStrip_[2]

◆ produceBadStrip()

std::unique_ptr< EcalTPGStripStatus > EcalTrigPrimESProducer::produceBadStrip ( const EcalTPGStripStatusRcd iRecord)

Definition at line 330 of file EcalTrigPrimESProducer.cc.

References dumpMFGeometry_cfg::prod.

Referenced by EcalTrigPrimESProducer().

330  {
331  auto prod = std::make_unique<EcalTPGStripStatus>();
332  // returns an empty map
333  return prod;
334 }

◆ produceBadTT()

std::unique_ptr< EcalTPGTowerStatus > EcalTrigPrimESProducer::produceBadTT ( const EcalTPGTowerStatusRcd iRecord)

Definition at line 336 of file EcalTrigPrimESProducer.cc.

References mapTower_, parseTextFile(), and dumpMFGeometry_cfg::prod.

Referenced by EcalTrigPrimESProducer().

336  {
337  auto prod = std::make_unique<EcalTPGTowerStatus>();
338  parseTextFile();
339  std::map<uint32_t, std::vector<uint32_t>>::const_iterator it;
340  // Barrel
341  for (it = mapTower_[0].begin(); it != mapTower_[0].end(); it++) {
342  // set the BadTT status to 0
343  prod->setValue(it->first, 0);
344  }
345  // Endcap
346  for (it = mapTower_[1].begin(); it != mapTower_[1].end(); it++) {
347  // set the BadTT status to 0
348  prod->setValue(it->first, 0);
349  }
350 
351  return prod;
352 }
std::map< uint32_t, std::vector< uint32_t > > mapTower_[2]

◆ produceBadX()

std::unique_ptr< EcalTPGCrystalStatus > EcalTrigPrimESProducer::produceBadX ( const EcalTPGCrystalStatusRcd iRecord)

Definition at line 318 of file EcalTrigPrimESProducer.cc.

References mapXtal_, parseTextFile(), dumpMFGeometry_cfg::prod, and EcalTPGCrystalStatusCode::setStatusCode().

Referenced by EcalTrigPrimESProducer().

318  {
319  auto prod = std::make_unique<EcalTPGCrystalStatus>();
320  parseTextFile();
321  std::map<uint32_t, std::vector<uint32_t>>::const_iterator it;
322  for (it = mapXtal_.begin(); it != mapXtal_.end(); it++) {
323  EcalTPGCrystalStatusCode badXValue;
324  badXValue.setStatusCode(0);
325  prod->setValue(it->first, badXValue);
326  }
327  return prod;
328 }
void setStatusCode(const uint16_t &val)
std::map< uint32_t, std::vector< uint32_t > > mapXtal_

◆ produceFineGrainEB()

std::unique_ptr< EcalTPGFineGrainEBIdMap > EcalTrigPrimESProducer::produceFineGrainEB ( const EcalTPGFineGrainEBIdMapRcd iRecord)

Definition at line 139 of file EcalTrigPrimESProducer.cc.

References mapFg_, parseTextFile(), dumpMFGeometry_cfg::prod, and EcalTPGFineGrainConstEB::setValues().

Referenced by EcalTrigPrimESProducer().

140  {
141  auto prod = std::make_unique<EcalTPGFineGrainEBIdMap>();
142  parseTextFile();
144  std::map<uint32_t, std::vector<uint32_t>>::const_iterator it;
145  for (it = mapFg_.begin(); it != mapFg_.end(); it++) {
146  fg.setValues((it->second)[0], (it->second)[1], (it->second)[2], (it->second)[3], (it->second)[4]);
147  prod->setValue(it->first, fg);
148  }
149  return prod;
150 }
void setValues(const uint32_t &ThresholdETLow, const uint32_t &ThresholdETHigh, const uint32_t &RatioLow, const uint32_t &RatioHigh, const uint32_t &LUT)
std::map< uint32_t, std::vector< uint32_t > > mapFg_

◆ produceFineGrainEBGroup()

std::unique_ptr< EcalTPGFineGrainEBGroup > EcalTrigPrimESProducer::produceFineGrainEBGroup ( const EcalTPGFineGrainEBGroupRcd iRecord)

Definition at line 289 of file EcalTrigPrimESProducer.cc.

References mapTower_, parseTextFile(), and dumpMFGeometry_cfg::prod.

Referenced by EcalTrigPrimESProducer().

290  {
291  auto prod = std::make_unique<EcalTPGFineGrainEBGroup>();
292  parseTextFile();
293  std::map<uint32_t, std::vector<uint32_t>>::const_iterator it;
294  for (it = mapTower_[0].begin(); it != mapTower_[0].end(); it++) {
295  prod->setValue(it->first, (it->second)[1]);
296  }
297  return prod;
298 }
std::map< uint32_t, std::vector< uint32_t > > mapTower_[2]

◆ produceFineGrainEEstrip()

std::unique_ptr< EcalTPGFineGrainStripEE > EcalTrigPrimESProducer::produceFineGrainEEstrip ( const EcalTPGFineGrainStripEERcd iRecord)

Definition at line 152 of file EcalTrigPrimESProducer.cc.

References B2GTnPMonitor_cfi::item, mapStrip_, parseTextFile(), and dumpMFGeometry_cfg::prod.

Referenced by EcalTrigPrimESProducer().

153  {
154  auto prod = std::make_unique<EcalTPGFineGrainStripEE>();
155  parseTextFile();
156  // EE Strips
157  std::map<uint32_t, std::vector<uint32_t>>::const_iterator it;
158  for (it = mapStrip_[1].begin(); it != mapStrip_[1].end(); it++) {
160  item.threshold = (it->second)[3];
161  item.lut = (it->second)[4];
162  prod->setValue(it->first, item);
163  }
164  // EB Strips
165  for (it = mapStrip_[0].begin(); it != mapStrip_[0].end(); it++) {
167  item.threshold = (it->second)[3];
168  item.lut = (it->second)[4];
169  prod->setValue(it->first, item);
170  }
171  return prod;
172 }
std::map< uint32_t, std::vector< uint32_t > > mapStrip_[2]

◆ produceFineGrainEEtower()

std::unique_ptr< EcalTPGFineGrainTowerEE > EcalTrigPrimESProducer::produceFineGrainEEtower ( const EcalTPGFineGrainTowerEERcd iRecord)

Definition at line 174 of file EcalTrigPrimESProducer.cc.

References mapTower_, parseTextFile(), and dumpMFGeometry_cfg::prod.

Referenced by EcalTrigPrimESProducer().

175  {
176  auto prod = std::make_unique<EcalTPGFineGrainTowerEE>();
177  parseTextFile();
178  std::map<uint32_t, std::vector<uint32_t>>::const_iterator it;
179  for (it = mapTower_[1].begin(); it != mapTower_[1].end(); it++) {
180  prod->setValue(it->first, (it->second)[1]);
181  }
182  return prod;
183 }
std::map< uint32_t, std::vector< uint32_t > > mapTower_[2]

◆ produceLinearizationConst()

std::unique_ptr< EcalTPGLinearizationConst > EcalTrigPrimESProducer::produceLinearizationConst ( const EcalTPGLinearizationConstRcd iRecord)

Definition at line 108 of file EcalTrigPrimESProducer.cc.

References B2GTnPMonitor_cfi::item, mapXtal_, parseTextFile(), and dumpMFGeometry_cfg::prod.

Referenced by EcalTrigPrimESProducer().

109  {
110  auto prod = std::make_unique<EcalTPGLinearizationConst>();
111  parseTextFile();
112  std::map<uint32_t, std::vector<uint32_t>>::const_iterator it;
113  for (it = mapXtal_.begin(); it != mapXtal_.end(); it++) {
115  item.mult_x12 = (it->second)[1];
116  item.mult_x6 = (it->second)[4];
117  item.mult_x1 = (it->second)[7];
118  item.shift_x12 = (it->second)[2];
119  item.shift_x6 = (it->second)[5];
120  item.shift_x1 = (it->second)[8];
121  prod->setValue(it->first, item);
122  }
123  return prod;
124 }
std::map< uint32_t, std::vector< uint32_t > > mapXtal_

◆ produceLUT()

std::unique_ptr< EcalTPGLutIdMap > EcalTrigPrimESProducer::produceLUT ( const EcalTPGLutIdMapRcd iRecord)

Definition at line 185 of file EcalTrigPrimESProducer.cc.

References mps_fire::i, mapLut_, parseTextFile(), dumpMFGeometry_cfg::prod, and EcalTPGLut::setLut().

Referenced by EcalTrigPrimESProducer().

185  {
186  auto prod = std::make_unique<EcalTPGLutIdMap>();
187  parseTextFile();
188  EcalTPGLut lut;
189  std::map<uint32_t, std::vector<uint32_t>>::const_iterator it;
190  for (it = mapLut_.begin(); it != mapLut_.end(); it++) {
191  unsigned int lutArray[1024];
192  for (int i = 0; i < 1024; i++)
193  lutArray[i] = (it->second)[i];
194  lut.setLut(lutArray);
195  prod->setValue(it->first, lut);
196  }
197  return prod;
198 }
void setLut(const unsigned int *lut)
Definition: EcalTPGLut.cc:15
std::map< uint32_t, std::vector< uint32_t > > mapLut_

◆ produceLutGroup()

std::unique_ptr< EcalTPGLutGroup > EcalTrigPrimESProducer::produceLutGroup ( const EcalTPGLutGroupRcd iRecord)

Definition at line 277 of file EcalTrigPrimESProducer.cc.

References mapTower_, parseTextFile(), and dumpMFGeometry_cfg::prod.

Referenced by EcalTrigPrimESProducer().

277  {
278  auto prod = std::make_unique<EcalTPGLutGroup>();
279  parseTextFile();
280  for (int subdet = 0; subdet < 2; subdet++) {
281  std::map<uint32_t, std::vector<uint32_t>>::const_iterator it;
282  for (it = mapTower_[subdet].begin(); it != mapTower_[subdet].end(); it++) {
283  prod->setValue(it->first, (it->second)[0]);
284  }
285  }
286  return prod;
287 }
std::map< uint32_t, std::vector< uint32_t > > mapTower_[2]

◆ produceOddWeight()

std::unique_ptr< EcalTPGOddWeightIdMap > EcalTrigPrimESProducer::produceOddWeight ( const EcalTPGOddWeightIdMapRcd iRecord)

Definition at line 224 of file EcalTrigPrimESProducer.cc.

References mapWeight_odd_, parseTextFile(), dumpMFGeometry_cfg::prod, and hltDeepSecondaryVertexTagInfosPFPuppi_cfi::weights.

Referenced by EcalTrigPrimESProducer().

225  {
226  auto prod = std::make_unique<EcalTPGOddWeightIdMap>();
227  parseTextFile();
229  std::map<uint32_t, std::vector<uint32_t>>::const_iterator it;
230  for (it = mapWeight_odd_.begin(); it != mapWeight_odd_.end(); it++) {
231  weights.setValues((it->second)[0], (it->second)[1], (it->second)[2], (it->second)[3], (it->second)[4]);
232  prod->setValue(it->first, weights);
233  }
234  return prod;
235 }
std::map< uint32_t, std::vector< uint32_t > > mapWeight_odd_

◆ produceOddWeightGroup()

std::unique_ptr< EcalTPGOddWeightGroup > EcalTrigPrimESProducer::produceOddWeightGroup ( const EcalTPGOddWeightGroupRcd iRecord)

Definition at line 237 of file EcalTrigPrimESProducer.cc.

References mapStrip_, parseTextFile(), and dumpMFGeometry_cfg::prod.

Referenced by EcalTrigPrimESProducer().

238  {
239  auto prod = std::make_unique<EcalTPGOddWeightGroup>();
240  parseTextFile();
241  for (int subdet = 0; subdet < 2; subdet++) {
242  std::map<uint32_t, std::vector<uint32_t>>::const_iterator it;
243  for (it = mapStrip_[subdet].begin(); it != mapStrip_[subdet].end(); it++) {
244  prod->setValue(it->first, (it->second)[2]);
245  }
246  }
247  return prod;
248 }
std::map< uint32_t, std::vector< uint32_t > > mapStrip_[2]

◆ producePedestals()

std::unique_ptr< EcalTPGPedestals > EcalTrigPrimESProducer::producePedestals ( const EcalTPGPedestalsRcd iRecord)

Definition at line 94 of file EcalTrigPrimESProducer.cc.

References B2GTnPMonitor_cfi::item, mapXtal_, parseTextFile(), and dumpMFGeometry_cfg::prod.

Referenced by EcalTrigPrimESProducer().

94  {
95  auto prod = std::make_unique<EcalTPGPedestals>();
96  parseTextFile();
97  std::map<uint32_t, std::vector<uint32_t>>::const_iterator it;
98  for (it = mapXtal_.begin(); it != mapXtal_.end(); it++) {
100  item.mean_x12 = (it->second)[0];
101  item.mean_x6 = (it->second)[3];
102  item.mean_x1 = (it->second)[6];
103  prod->setValue(it->first, item);
104  }
105  return prod;
106 }
std::map< uint32_t, std::vector< uint32_t > > mapXtal_

◆ producePhysicsConst()

std::unique_ptr< EcalTPGPhysicsConst > EcalTrigPrimESProducer::producePhysicsConst ( const EcalTPGPhysicsConstRcd iRecord)

Definition at line 300 of file EcalTrigPrimESProducer.cc.

References B2GTnPMonitor_cfi::item, mapPhys_, parseTextFile(), and dumpMFGeometry_cfg::prod.

Referenced by EcalTrigPrimESProducer().

300  {
301  auto prod = std::make_unique<EcalTPGPhysicsConst>();
302  parseTextFile();
303  std::map<uint32_t, std::vector<float>>::const_iterator it;
304  for (it = mapPhys_.begin(); it != mapPhys_.end(); it++) {
306  item.EtSat = (it->second)[0];
307  item.ttf_threshold_Low = (it->second)[1];
308  item.ttf_threshold_High = (it->second)[2];
309  item.FG_lowThreshold = (it->second)[3];
310  item.FG_highThreshold = (it->second)[4];
311  item.FG_lowRatio = (it->second)[5];
312  item.FG_highRatio = (it->second)[6];
313  prod->setValue(it->first, item);
314  }
315  return prod;
316 }
std::map< uint32_t, std::vector< float > > mapPhys_

◆ produceSlidingWindow()

std::unique_ptr< EcalTPGSlidingWindow > EcalTrigPrimESProducer::produceSlidingWindow ( const EcalTPGSlidingWindowRcd iRecord)

Definition at line 126 of file EcalTrigPrimESProducer.cc.

References mapStrip_, parseTextFile(), and dumpMFGeometry_cfg::prod.

Referenced by EcalTrigPrimESProducer().

127  {
128  auto prod = std::make_unique<EcalTPGSlidingWindow>();
129  parseTextFile();
130  for (int subdet = 0; subdet < 2; subdet++) {
131  std::map<uint32_t, std::vector<uint32_t>>::const_iterator it;
132  for (it = mapStrip_[subdet].begin(); it != mapStrip_[subdet].end(); it++) {
133  prod->setValue(it->first, (it->second)[0]);
134  }
135  }
136  return prod;
137 }
std::map< uint32_t, std::vector< uint32_t > > mapStrip_[2]

◆ produceSpike()

std::unique_ptr< EcalTPGSpike > EcalTrigPrimESProducer::produceSpike ( const EcalTPGSpikeRcd iRecord)

Definition at line 354 of file EcalTrigPrimESProducer.cc.

References mapTower_, parseTextFile(), and dumpMFGeometry_cfg::prod.

Referenced by EcalTrigPrimESProducer().

354  {
355  auto prod = std::make_unique<EcalTPGSpike>();
356  parseTextFile();
357  // Only need to do barrel
358  std::map<uint32_t, std::vector<uint32_t>>::const_iterator it;
359  for (it = mapTower_[0].begin(); it != mapTower_[0].end(); ++it) {
360  prod->setValue(it->first, (it->second)[2]);
361  }
362  return prod;
363 }
std::map< uint32_t, std::vector< uint32_t > > mapTower_[2]

◆ produceTPMode()

std::unique_ptr< EcalTPGTPMode > EcalTrigPrimESProducer::produceTPMode ( const EcalTPGTPModeRcd iRecord)

Definition at line 250 of file EcalTrigPrimESProducer.cc.

References parseTextFile(), dumpMFGeometry_cfg::prod, and tpMode_.

Referenced by EcalTrigPrimESProducer().

250  {
251  auto prod = std::make_unique<EcalTPGTPMode>();
252  parseTextFile();
253  if (tpMode_.size() < 14)
254  edm::LogError("EcalTPG") << "Missing TPMode entries!";
255 
256  prod->EnableEBOddFilter = tpMode_[0];
257  prod->EnableEEOddFilter = tpMode_[1];
258  prod->EnableEBOddPeakFinder = tpMode_[2];
259  prod->EnableEEOddPeakFinder = tpMode_[3];
260  prod->DisableEBEvenPeakFinder = tpMode_[4];
261  prod->DisableEEEvenPeakFinder = tpMode_[5];
262  prod->FenixEBStripOutput = tpMode_[6];
263  prod->FenixEEStripOutput = tpMode_[7];
264  prod->FenixEBStripInfobit2 = tpMode_[8];
265  prod->FenixEEStripInfobit2 = tpMode_[9];
266  prod->EBFenixTcpOutput = tpMode_[10];
267  prod->EBFenixTcpInfobit1 = tpMode_[11];
268  prod->EEFenixTcpOutput = tpMode_[12];
269  prod->EEFenixTcpInfobit1 = tpMode_[13];
270  prod->FenixPar15 = tpMode_[14];
271  prod->FenixPar16 = tpMode_[15];
272  prod->FenixPar17 = tpMode_[16];
273  prod->FenixPar18 = tpMode_[17];
274  return prod;
275 }
std::vector< uint32_t > tpMode_

◆ produceWeight()

std::unique_ptr< EcalTPGWeightIdMap > EcalTrigPrimESProducer::produceWeight ( const EcalTPGWeightIdMapRcd iRecord)

Definition at line 200 of file EcalTrigPrimESProducer.cc.

References mapWeight_, parseTextFile(), dumpMFGeometry_cfg::prod, and hltDeepSecondaryVertexTagInfosPFPuppi_cfi::weights.

Referenced by EcalTrigPrimESProducer().

200  {
201  auto prod = std::make_unique<EcalTPGWeightIdMap>();
202  parseTextFile();
204  std::map<uint32_t, std::vector<uint32_t>>::const_iterator it;
205  for (it = mapWeight_.begin(); it != mapWeight_.end(); it++) {
206  weights.setValues((it->second)[0], (it->second)[1], (it->second)[2], (it->second)[3], (it->second)[4]);
207  prod->setValue(it->first, weights);
208  }
209  return prod;
210 }
std::map< uint32_t, std::vector< uint32_t > > mapWeight_

◆ produceWeightGroup()

std::unique_ptr< EcalTPGWeightGroup > EcalTrigPrimESProducer::produceWeightGroup ( const EcalTPGWeightGroupRcd iRecord)

Definition at line 212 of file EcalTrigPrimESProducer.cc.

References mapStrip_, parseTextFile(), and dumpMFGeometry_cfg::prod.

Referenced by EcalTrigPrimESProducer().

212  {
213  auto prod = std::make_unique<EcalTPGWeightGroup>();
214  parseTextFile();
215  for (int subdet = 0; subdet < 2; subdet++) {
216  std::map<uint32_t, std::vector<uint32_t>>::const_iterator it;
217  for (it = mapStrip_[subdet].begin(); it != mapStrip_[subdet].end(); it++) {
218  prod->setValue(it->first, (it->second)[1]);
219  }
220  }
221  return prod;
222 }
std::map< uint32_t, std::vector< uint32_t > > mapStrip_[2]

Member Data Documentation

◆ dbFilename_

std::string EcalTrigPrimESProducer::dbFilename_
private

Definition at line 86 of file EcalTrigPrimESProducer.h.

Referenced by parseTextFile().

◆ flagPrint_

bool EcalTrigPrimESProducer::flagPrint_
private

Definition at line 87 of file EcalTrigPrimESProducer.h.

Referenced by parseTextFile().

◆ mapFg_

std::map<uint32_t, std::vector<uint32_t> > EcalTrigPrimESProducer::mapFg_
private

Definition at line 93 of file EcalTrigPrimESProducer.h.

Referenced by parseTextFile(), and produceFineGrainEB().

◆ mapLut_

std::map<uint32_t, std::vector<uint32_t> > EcalTrigPrimESProducer::mapLut_
private

Definition at line 94 of file EcalTrigPrimESProducer.h.

Referenced by parseTextFile(), and produceLUT().

◆ mapPhys_

std::map<uint32_t, std::vector<float> > EcalTrigPrimESProducer::mapPhys_
private

Definition at line 95 of file EcalTrigPrimESProducer.h.

Referenced by parseTextFile(), and producePhysicsConst().

◆ mapStrip_

std::map<uint32_t, std::vector<uint32_t> > EcalTrigPrimESProducer::mapStrip_[2]
private

◆ mapTower_

std::map<uint32_t, std::vector<uint32_t> > EcalTrigPrimESProducer::mapTower_[2]
private

◆ mapWeight_

std::map<uint32_t, std::vector<uint32_t> > EcalTrigPrimESProducer::mapWeight_
private

Definition at line 91 of file EcalTrigPrimESProducer.h.

Referenced by parseTextFile(), and produceWeight().

◆ mapWeight_odd_

std::map<uint32_t, std::vector<uint32_t> > EcalTrigPrimESProducer::mapWeight_odd_
private

Definition at line 92 of file EcalTrigPrimESProducer.h.

Referenced by parseTextFile(), and produceOddWeight().

◆ mapXtal_

std::map<uint32_t, std::vector<uint32_t> > EcalTrigPrimESProducer::mapXtal_
private

◆ tpMode_

std::vector<uint32_t> EcalTrigPrimESProducer::tpMode_
private

Definition at line 96 of file EcalTrigPrimESProducer.h.

Referenced by EcalTrigPrimESProducer(), parseTextFile(), and produceTPMode().