CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Private Attributes
EcalErrorMask Class Reference

#include <EcalErrorMask.h>

Public Member Functions

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

Private Attributes

std::map< EcalLogicID,
RunCrystalErrorsDat
mapCrystalErrors_
 
std::map< EcalLogicID,
RunMemChErrorsDat
mapMemChErrors_
 
std::map< EcalLogicID,
RunMemTTErrorsDat
mapMemTTErrors_
 
std::map< EcalLogicID,
RunPNErrorsDat
mapPNErrors_
 
std::map< EcalLogicID,
RunTTErrorsDat
mapTTErrors_
 
int runNb_
 

Detailed Description

Definition at line 16 of file EcalErrorMask.h.

Member Function Documentation

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

Definition at line 66 of file EcalErrorMask.cc.

References mapCrystalErrors_.

66  {
67  fillMap->clear();
68  *fillMap = mapCrystalErrors_;
69  return;
70 }
std::map< EcalLogicID, RunCrystalErrorsDat > mapCrystalErrors_
Definition: EcalErrorMask.h:29
void EcalErrorMask::fetchDataSet ( std::map< EcalLogicID, RunTTErrorsDat > *  fillMap)

Definition at line 72 of file EcalErrorMask.cc.

References mapTTErrors_.

72  {
73  fillMap->clear();
74  *fillMap = mapTTErrors_;
75  return;
76 }
std::map< EcalLogicID, RunTTErrorsDat > mapTTErrors_
Definition: EcalErrorMask.h:30
void EcalErrorMask::fetchDataSet ( std::map< EcalLogicID, RunPNErrorsDat > *  fillMap)

Definition at line 78 of file EcalErrorMask.cc.

References mapPNErrors_.

78  {
79  fillMap->clear();
80  *fillMap = mapPNErrors_;
81  return;
82 }
std::map< EcalLogicID, RunPNErrorsDat > mapPNErrors_
Definition: EcalErrorMask.h:31
void EcalErrorMask::fetchDataSet ( std::map< EcalLogicID, RunMemChErrorsDat > *  fillMap)

Definition at line 84 of file EcalErrorMask.cc.

References mapMemChErrors_.

84  {
85  fillMap->clear();
86  *fillMap = mapMemChErrors_;
87  return;
88 }
std::map< EcalLogicID, RunMemChErrorsDat > mapMemChErrors_
Definition: EcalErrorMask.h:32
void EcalErrorMask::fetchDataSet ( std::map< EcalLogicID, RunMemTTErrorsDat > *  fillMap)

Definition at line 90 of file EcalErrorMask.cc.

References mapMemTTErrors_.

90  {
91  fillMap->clear();
92  *fillMap = mapMemTTErrors_;
93  return;
94 }
std::map< EcalLogicID, RunMemTTErrorsDat > mapMemTTErrors_
Definition: EcalErrorMask.h:33
void EcalErrorMask::readDB ( EcalCondDBInterface eConn,
RunIOV runIOV 
)
noexcept

Definition at line 13 of file EcalErrorMask.cc.

References gather_cfg::cout, alignCSCRings::e, LocationDef::getLocation(), RunTag::getLocationDef(), RunIOV::getRunNumber(), and AlCaHLTBitMon_QueryRunRegistry::string.

13  {
14  if (eConn) {
15  RunIOV validIOV;
16  RunTag runTag = runIOV->getRunTag();
17 
18  std::string location = runTag.getLocationDef().getLocation();
19 
20  std::cout << std::endl;
21  std::cout << " RunCrystalErrorsDat: ";
22  try {
23  eConn->fetchValidDataSet(&mapCrystalErrors_, &validIOV, location, runIOV->getRunNumber());
24  std::cout << "found" << std::endl;
25  } catch (std::runtime_error& e) {
26  std::cout << "not found" << std::endl;
27  throw(std::runtime_error(e.what()));
28  }
29 
30  // use the IOV for CrystalErrors as reference
31  runNb_ = validIOV.getRunNumber();
32 
33  std::cout << " RunTTErrorsDat: ";
34  try {
35  eConn->fetchValidDataSet(&mapTTErrors_, &validIOV, location, runIOV->getRunNumber());
36  std::cout << "found" << std::endl;
37  } catch (std::runtime_error& e) {
38  std::cout << "not found" << std::endl;
39  }
40  std::cout << " RunPNErrorsDat: ";
41  try {
42  eConn->fetchValidDataSet(&mapPNErrors_, &validIOV, location, runIOV->getRunNumber());
43  std::cout << "found" << std::endl;
44  } catch (std::runtime_error& e) {
45  std::cout << "not found" << std::endl;
46  }
47  std::cout << " RunMemChErrorsDat: ";
48  try {
49  eConn->fetchValidDataSet(&mapMemChErrors_, &validIOV, location, runIOV->getRunNumber());
50  std::cout << "found" << std::endl;
51  } catch (std::runtime_error& e) {
52  std::cout << "not found" << std::endl;
53  }
54  std::cout << " RunMemTTErrorsDat: ";
55  try {
56  eConn->fetchValidDataSet(&mapMemTTErrors_, &validIOV, location, runIOV->getRunNumber());
57  std::cout << "found" << std::endl;
58  } catch (std::runtime_error& e) {
59  std::cout << "not found" << std::endl;
60  }
61 
62  std::cout << std::endl;
63  }
64 }
std::map< EcalLogicID, RunPNErrorsDat > mapPNErrors_
Definition: EcalErrorMask.h:31
std::map< EcalLogicID, RunTTErrorsDat > mapTTErrors_
Definition: EcalErrorMask.h:30
LocationDef getLocationDef() const
Definition: RunTag.cc:31
std::map< EcalLogicID, RunMemTTErrorsDat > mapMemTTErrors_
Definition: EcalErrorMask.h:33
Definition: RunTag.h:13
std::map< EcalLogicID, RunCrystalErrorsDat > mapCrystalErrors_
Definition: EcalErrorMask.h:29
std::map< EcalLogicID, RunMemChErrorsDat > mapMemChErrors_
Definition: EcalErrorMask.h:32
RunTag getRunTag() const
Definition: RunIOV.cc:58
std::string getLocation() const
Definition: LocationDef.cc:18
run_t getRunNumber() const
Definition: RunIOV.cc:31
tuple cout
Definition: gather_cfg.py:144
Definition: RunIOV.h:13
void fetchValidDataSet(std::map< EcalLogicID, DATT > *fillMap, IOVT *fillIOV, RunTag *tag, run_t run=(unsigned int)-1) noexcept(false)

Member Data Documentation

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

Definition at line 29 of file EcalErrorMask.h.

Referenced by fetchDataSet().

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

Definition at line 32 of file EcalErrorMask.h.

Referenced by fetchDataSet().

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

Definition at line 33 of file EcalErrorMask.h.

Referenced by fetchDataSet().

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

Definition at line 31 of file EcalErrorMask.h.

Referenced by fetchDataSet().

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

Definition at line 30 of file EcalErrorMask.h.

Referenced by fetchDataSet().

int EcalErrorMask::runNb_
private

Definition at line 27 of file EcalErrorMask.h.