test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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, RunTTErrorsDat > *fillMap)
 
static void fetchDataSet (std::map< EcalLogicID, RunPNErrorsDat > *fillMap)
 
static void fetchDataSet (std::map< EcalLogicID, RunMemChErrorsDat > *fillMap)
 
static void fetchDataSet (std::map< EcalLogicID, RunMemTTErrorsDat > *fillMap)
 
static void readDB (EcalCondDBInterface *eConn, RunIOV *runIOV) throw ( std::runtime_error )
 

Static Private Attributes

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

Detailed Description

Definition at line 18 of file EcalErrorMask.h.

Member Function Documentation

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

Definition at line 83 of file EcalErrorMask.cc.

References mapCrystalErrors_.

Referenced by popcon::EcalChannelStatusHandler::laserMasking(), popcon::EcalChannelStatusHandler::pedMasking(), popcon::EcalChannelStatusHandler::pedOnlineMasking(), and popcon::EcalChannelStatusHandler::physicsMasking().

83  {
84 
85  fillMap->clear();
87  return;
88 
89 }
static std::map< EcalLogicID, RunCrystalErrorsDat > mapCrystalErrors_
Definition: EcalErrorMask.h:34
void EcalErrorMask::fetchDataSet ( std::map< EcalLogicID, RunTTErrorsDat > *  fillMap)
static

Definition at line 91 of file EcalErrorMask.cc.

References mapTTErrors_.

91  {
92 
93  fillMap->clear();
94  *fillMap = EcalErrorMask::mapTTErrors_;
95  return;
96 
97 }
static std::map< EcalLogicID, RunTTErrorsDat > mapTTErrors_
Definition: EcalErrorMask.h:35
void EcalErrorMask::fetchDataSet ( std::map< EcalLogicID, RunPNErrorsDat > *  fillMap)
static

Definition at line 99 of file EcalErrorMask.cc.

References mapPNErrors_.

99  {
100 
101  fillMap->clear();
102  *fillMap = EcalErrorMask::mapPNErrors_;
103  return;
104 
105 }
static std::map< EcalLogicID, RunPNErrorsDat > mapPNErrors_
Definition: EcalErrorMask.h:36
void EcalErrorMask::fetchDataSet ( std::map< EcalLogicID, RunMemChErrorsDat > *  fillMap)
static

Definition at line 107 of file EcalErrorMask.cc.

References mapMemChErrors_.

107  {
108 
109  fillMap->clear();
111  return;
112 
113 }
static std::map< EcalLogicID, RunMemChErrorsDat > mapMemChErrors_
Definition: EcalErrorMask.h:37
void EcalErrorMask::fetchDataSet ( std::map< EcalLogicID, RunMemTTErrorsDat > *  fillMap)
static

Definition at line 115 of file EcalErrorMask.cc.

References mapMemTTErrors_.

115  {
116 
117  fillMap->clear();
119  return;
120 
121 }
static std::map< EcalLogicID, RunMemTTErrorsDat > mapMemTTErrors_
Definition: EcalErrorMask.h:38
void EcalErrorMask::readDB ( EcalCondDBInterface eConn,
RunIOV runIOV 
)
throw (std::runtime_error
)
static

Definition at line 26 of file EcalErrorMask.cc.

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

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

26  {
27 
28  if( eConn ) {
29 
30  RunIOV validIOV;
31  RunTag runTag = runIOV->getRunTag();
32 
33  std::string location = runTag.getLocationDef().getLocation();
34 
35  std::cout << std::endl;
36  std::cout << " RunCrystalErrorsDat: ";
37  try {
38  eConn->fetchValidDataSet( &EcalErrorMask::mapCrystalErrors_, &validIOV, location, runIOV->getRunNumber() );
39  std::cout << "found" << std::endl;
40  } catch ( std::runtime_error &e ) {
41  std::cout << "not found" << std::endl;
42  throw( std::runtime_error( e.what() ) );
43  }
44 
45  // use the IOV for CrystalErrors as reference
47 
48  std::cout << " RunTTErrorsDat: ";
49  try {
50  eConn->fetchValidDataSet( &EcalErrorMask::mapTTErrors_, &validIOV, location, runIOV->getRunNumber() );
51  std::cout << "found" << std::endl;
52  } catch ( std::runtime_error &e ) {
53  std::cout << "not found" << std::endl;
54  }
55  std::cout << " RunPNErrorsDat: ";
56  try {
57  eConn->fetchValidDataSet( &EcalErrorMask::mapPNErrors_, &validIOV, location, runIOV->getRunNumber() );
58  std::cout << "found" << std::endl;
59  } catch ( std::runtime_error &e ) {
60  std::cout << "not found" << std::endl;
61  }
62  std::cout << " RunMemChErrorsDat: ";
63  try {
64  eConn->fetchValidDataSet( &EcalErrorMask::mapMemChErrors_, &validIOV, location, runIOV->getRunNumber() );
65  std::cout << "found" << std::endl;
66  } catch ( std::runtime_error &e ) {
67  std::cout << "not found" << std::endl;
68  }
69  std::cout << " RunMemTTErrorsDat: ";
70  try {
71  eConn->fetchValidDataSet( &EcalErrorMask::mapMemTTErrors_, &validIOV, location, runIOV->getRunNumber() );
72  std::cout << "found" << std::endl;
73  } catch ( std::runtime_error &e ) {
74  std::cout << "not found" << std::endl;
75  }
76 
77  std::cout << std::endl;
78 
79  }
80 
81 }
LocationDef getLocationDef() const
Definition: RunTag.cc:46
Definition: RunTag.h:13
void fetchValidDataSet(std::map< EcalLogicID, DATT > *fillMap, IOVT *fillIOV, RunTag *tag, run_t run=(unsigned int)-1)
static std::map< EcalLogicID, RunCrystalErrorsDat > mapCrystalErrors_
Definition: EcalErrorMask.h:34
RunTag getRunTag() const
Definition: RunIOV.cc:96
std::string getLocation() const
Definition: LocationDef.cc:26
static std::map< EcalLogicID, RunPNErrorsDat > mapPNErrors_
Definition: EcalErrorMask.h:36
static int runNb_
Definition: EcalErrorMask.h:32
static std::map< EcalLogicID, RunTTErrorsDat > mapTTErrors_
Definition: EcalErrorMask.h:35
run_t getRunNumber() const
Definition: RunIOV.cc:45
static std::map< EcalLogicID, RunMemTTErrorsDat > mapMemTTErrors_
Definition: EcalErrorMask.h:38
tuple cout
Definition: gather_cfg.py:121
Definition: RunIOV.h:13
static std::map< EcalLogicID, RunMemChErrorsDat > mapMemChErrors_
Definition: EcalErrorMask.h:37

Member Data Documentation

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

Definition at line 34 of file EcalErrorMask.h.

Referenced by fetchDataSet(), and readDB().

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

Definition at line 37 of file EcalErrorMask.h.

Referenced by fetchDataSet(), and readDB().

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

Definition at line 38 of file EcalErrorMask.h.

Referenced by fetchDataSet(), and readDB().

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

Definition at line 36 of file EcalErrorMask.h.

Referenced by fetchDataSet(), and readDB().

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

Definition at line 35 of file EcalErrorMask.h.

Referenced by fetchDataSet(), and readDB().

int EcalErrorMask::runNb_ = -1
staticprivate

Definition at line 32 of file EcalErrorMask.h.

Referenced by readDB().