CMS 3D CMS Logo

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

#include <EcalErrorMask.h>

Static Public Member Functions

static void fetchDataSet (std::map< EcalLogicID, RunCrystalErrorsDat > *fillMap)
 
static void fetchDataSet (std::map< EcalLogicID, RunMemChErrorsDat > *fillMap)
 
static void fetchDataSet (std::map< EcalLogicID, RunMemTTErrorsDat > *fillMap)
 
static void fetchDataSet (std::map< EcalLogicID, RunPNErrorsDat > *fillMap)
 
static void fetchDataSet (std::map< EcalLogicID, RunTTErrorsDat > *fillMap)
 
static void readDB (EcalCondDBInterface *eConn, RunIOV *runIOV) noexcept(false)
 

Static Private Attributes

static std::map< EcalLogicID, RunCrystalErrorsDatmapCrystalErrors_
 
static std::map< EcalLogicID, RunMemChErrorsDatmapMemChErrors_
 
static std::map< EcalLogicID, RunMemTTErrorsDatmapMemTTErrors_
 
static std::map< EcalLogicID, RunPNErrorsDatmapPNErrors_
 
static std::map< EcalLogicID, RunTTErrorsDatmapTTErrors_
 
static int runNb_ = -1
 

Detailed Description

Definition at line 18 of file EcalErrorMask.h.

Member Function Documentation

◆ fetchDataSet() [1/5]

void EcalErrorMask::fetchDataSet ( std::map< EcalLogicID, RunCrystalErrorsDat > *  fillMap)
static

◆ fetchDataSet() [2/5]

void EcalErrorMask::fetchDataSet ( std::map< EcalLogicID, RunMemChErrorsDat > *  fillMap)
static

Definition at line 97 of file EcalErrorMask.cc.

97  {
98  fillMap->clear();
100  return;
101 }

References mapMemChErrors_.

◆ fetchDataSet() [3/5]

void EcalErrorMask::fetchDataSet ( std::map< EcalLogicID, RunMemTTErrorsDat > *  fillMap)
static

Definition at line 103 of file EcalErrorMask.cc.

103  {
104  fillMap->clear();
106  return;
107 }

References mapMemTTErrors_.

◆ fetchDataSet() [4/5]

void EcalErrorMask::fetchDataSet ( std::map< EcalLogicID, RunPNErrorsDat > *  fillMap)
static

Definition at line 91 of file EcalErrorMask.cc.

91  {
92  fillMap->clear();
93  *fillMap = EcalErrorMask::mapPNErrors_;
94  return;
95 }

References mapPNErrors_.

◆ fetchDataSet() [5/5]

void EcalErrorMask::fetchDataSet ( std::map< EcalLogicID, RunTTErrorsDat > *  fillMap)
static

Definition at line 85 of file EcalErrorMask.cc.

85  {
86  fillMap->clear();
87  *fillMap = EcalErrorMask::mapTTErrors_;
88  return;
89 }

References mapTTErrors_.

◆ readDB()

void EcalErrorMask::readDB ( EcalCondDBInterface eConn,
RunIOV runIOV 
)
staticnoexcept

Definition at line 26 of file EcalErrorMask.cc.

26  {
27  if (eConn) {
28  RunIOV validIOV;
29  RunTag runTag = runIOV->getRunTag();
30 
32 
33  std::cout << std::endl;
34  std::cout << " RunCrystalErrorsDat: ";
35  try {
37  std::cout << "found" << std::endl;
38  } catch (std::runtime_error& e) {
39  std::cout << "not found" << std::endl;
40  throw(std::runtime_error(e.what()));
41  }
42 
43  // use the IOV for CrystalErrors as reference
45 
46  std::cout << " RunTTErrorsDat: ";
47  try {
49  std::cout << "found" << std::endl;
50  } catch (std::runtime_error& e) {
51  std::cout << "not found" << std::endl;
52  }
53  std::cout << " RunPNErrorsDat: ";
54  try {
56  std::cout << "found" << std::endl;
57  } catch (std::runtime_error& e) {
58  std::cout << "not found" << std::endl;
59  }
60  std::cout << " RunMemChErrorsDat: ";
61  try {
63  std::cout << "found" << std::endl;
64  } catch (std::runtime_error& e) {
65  std::cout << "not found" << std::endl;
66  }
67  std::cout << " RunMemTTErrorsDat: ";
68  try {
70  std::cout << "found" << std::endl;
71  } catch (std::runtime_error& e) {
72  std::cout << "not found" << std::endl;
73  }
74 
75  std::cout << std::endl;
76  }
77 }

References gather_cfg::cout, MillePedeFileConverter_cfg::e, LocationDef::getLocation(), RunTag::getLocationDef(), RunIOV::getRunNumber(), EcalCondDBWriter_cfi::location, mapCrystalErrors_, mapMemChErrors_, mapMemTTErrors_, mapPNErrors_, mapTTErrors_, runNb_, and AlCaHLTBitMon_QueryRunRegistry::string.

Referenced by popcon::EcalChannelStatusHandler::getNewObjects().

Member Data Documentation

◆ mapCrystalErrors_

std::map< EcalLogicID, RunCrystalErrorsDat > EcalErrorMask::mapCrystalErrors_
staticprivate

Definition at line 31 of file EcalErrorMask.h.

Referenced by fetchDataSet(), and readDB().

◆ mapMemChErrors_

std::map< EcalLogicID, RunMemChErrorsDat > EcalErrorMask::mapMemChErrors_
staticprivate

Definition at line 34 of file EcalErrorMask.h.

Referenced by fetchDataSet(), and readDB().

◆ mapMemTTErrors_

std::map< EcalLogicID, RunMemTTErrorsDat > EcalErrorMask::mapMemTTErrors_
staticprivate

Definition at line 35 of file EcalErrorMask.h.

Referenced by fetchDataSet(), and readDB().

◆ mapPNErrors_

std::map< EcalLogicID, RunPNErrorsDat > EcalErrorMask::mapPNErrors_
staticprivate

Definition at line 33 of file EcalErrorMask.h.

Referenced by fetchDataSet(), and readDB().

◆ mapTTErrors_

std::map< EcalLogicID, RunTTErrorsDat > EcalErrorMask::mapTTErrors_
staticprivate

Definition at line 32 of file EcalErrorMask.h.

Referenced by fetchDataSet(), and readDB().

◆ runNb_

int EcalErrorMask::runNb_ = -1
staticprivate

Definition at line 29 of file EcalErrorMask.h.

Referenced by readDB().

RunIOV
Definition: RunIOV.h:13
EcalErrorMask::mapCrystalErrors_
static std::map< EcalLogicID, RunCrystalErrorsDat > mapCrystalErrors_
Definition: EcalErrorMask.h:31
RunTag
Definition: RunTag.h:13
gather_cfg.cout
cout
Definition: gather_cfg.py:144
LocationDef::getLocation
std::string getLocation() const
Definition: LocationDef.cc:18
EcalErrorMask::runNb_
static int runNb_
Definition: EcalErrorMask.h:29
RunTag::getLocationDef
LocationDef getLocationDef() const
Definition: RunTag.cc:31
RunIOV::getRunTag
RunTag getRunTag() const
Definition: RunIOV.cc:58
RunIOV::getRunNumber
run_t getRunNumber() const
Definition: RunIOV.cc:31
EcalErrorMask::mapMemChErrors_
static std::map< EcalLogicID, RunMemChErrorsDat > mapMemChErrors_
Definition: EcalErrorMask.h:34
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
EcalErrorMask::mapMemTTErrors_
static std::map< EcalLogicID, RunMemTTErrorsDat > mapMemTTErrors_
Definition: EcalErrorMask.h:35
EcalErrorMask::mapPNErrors_
static std::map< EcalLogicID, RunPNErrorsDat > mapPNErrors_
Definition: EcalErrorMask.h:33
EcalCondDBInterface::fetchValidDataSet
void fetchValidDataSet(std::map< EcalLogicID, DATT > *fillMap, IOVT *fillIOV, RunTag *tag, run_t run=(unsigned int) -1) noexcept(false)
Definition: EcalCondDBInterface.h:545
EcalErrorMask::mapTTErrors_
static std::map< EcalLogicID, RunTTErrorsDat > mapTTErrors_
Definition: EcalErrorMask.h:32
EcalCondDBWriter_cfi.location
location
Definition: EcalCondDBWriter_cfi.py:63
MillePedeFileConverter_cfg.e
e
Definition: MillePedeFileConverter_cfg.py:37