CMS 3D CMS Logo

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, RunCrystalErrorsDatmapCrystalErrors_
 
std::map< EcalLogicID, RunMemChErrorsDatmapMemChErrors_
 
std::map< EcalLogicID, RunMemTTErrorsDatmapMemTTErrors_
 
std::map< EcalLogicID, RunPNErrorsDatmapPNErrors_
 
std::map< EcalLogicID, RunTTErrorsDatmapTTErrors_
 
int runNb_
 

Detailed Description

Definition at line 16 of file EcalErrorMask.h.

Member Function Documentation

◆ fetchDataSet() [1/5]

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

◆ fetchDataSet() [2/5]

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

◆ fetchDataSet() [3/5]

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

◆ fetchDataSet() [4/5]

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

◆ fetchDataSet() [5/5]

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

◆ readDB()

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

Definition at line 13 of file EcalErrorMask.cc.

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

13  {
14  if (eConn) {
15  RunIOV validIOV;
16  RunTag runTag = runIOV->getRunTag();
17 
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
std::map< EcalLogicID, RunMemTTErrorsDat > mapMemTTErrors_
Definition: EcalErrorMask.h:33
Definition: RunTag.h:13
std::map< EcalLogicID, RunCrystalErrorsDat > mapCrystalErrors_
Definition: EcalErrorMask.h:29
run_t getRunNumber() const
Definition: RunIOV.cc:31
location
10.6 INPUT and workflows
Definition: relval_nano.py:81
std::map< EcalLogicID, RunMemChErrorsDat > mapMemChErrors_
Definition: EcalErrorMask.h:32
std::string getLocation() const
Definition: LocationDef.cc:18
RunTag getRunTag() const
Definition: RunIOV.cc:58
LocationDef getLocationDef() const
Definition: RunTag.cc:31
void fetchValidDataSet(std::map< EcalLogicID, DATT > *fillMap, IOVT *fillIOV, RunTag *tag, run_t run=(unsigned int) -1) noexcept(false)
Definition: RunIOV.h:13

Member Data Documentation

◆ mapCrystalErrors_

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

Definition at line 29 of file EcalErrorMask.h.

Referenced by fetchDataSet().

◆ mapMemChErrors_

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

Definition at line 32 of file EcalErrorMask.h.

Referenced by fetchDataSet().

◆ mapMemTTErrors_

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

Definition at line 33 of file EcalErrorMask.h.

Referenced by fetchDataSet().

◆ mapPNErrors_

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

Definition at line 31 of file EcalErrorMask.h.

Referenced by fetchDataSet().

◆ mapTTErrors_

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

Definition at line 30 of file EcalErrorMask.h.

Referenced by fetchDataSet().

◆ runNb_

int EcalErrorMask::runNb_
private

Definition at line 27 of file EcalErrorMask.h.