CMS 3D CMS Logo

LMFClsDat.cc
Go to the documentation of this file.
2 
4 
5 LMFClsDat::LMFClsDat(oracle::occi::Environment *env, oracle::occi::Connection *conn) : LMFColoredTable(env, conn) {
6  init();
7 }
8 
10 
12  init();
13  setColor(color);
14 }
15 
17  init();
18  setColor(color);
19 }
20 
21 LMFClsDat::LMFClsDat(oracle::occi::Environment *env, oracle::occi::Connection *conn, std::string color)
23  init();
24  setColor(color);
25 }
26 
27 LMFClsDat::LMFClsDat(oracle::occi::Environment *env, oracle::occi::Connection *conn, int color)
29  init();
30  setColor(color);
31 }
32 
34  init();
35  setColor(color);
36 }
37 
39  init();
40  setColor(color);
41 }
42 
44  m_className = "LMFClsDat";
45  m_keys["LMF_IOV_ID_REF"] = 0;
46  m_keys["MEAN"] = 1;
47  m_keys["NORM"] = 2;
48  m_keys["RMS"] = 3;
49  m_keys["NEVT"] = 4;
50  m_keys["ENORM"] = 5;
51  m_keys["FLAG"] = 6;
52  m_keys["FLAGNORM"] = 7;
53  m_keys["VMIN"] = 8;
54  m_keys["VMAX"] = 9;
55  for (unsigned int i = 0; i < m_keys.size(); i++) {
56  m_type.push_back("NUMBER");
57  }
58  m_system = 0;
59  m_color = 0;
60 }
61 
63  bool ret = true;
64  if ((getColor() != "BLUE") && (getColor() != "IR")) {
65  m_Error += " Color not properly set [" + getColor() + "]";
66  ret = false;
67  }
68  return ret;
69 }
70 
72  LMFDat::setData(id, "LMF_IOV_ID_REF", v);
73  return *this;
74 }
75 
77  LMFDat::setData(id, "MEAN", v);
78  return *this;
79 }
80 
82  LMFDat::setData(id, "NORM", v);
83  return *this;
84 }
85 
87  LMFDat::setData(id, "ENORM", v);
88  return *this;
89 }
90 
92  LMFDat::setData(id, "RMS", v);
93  return *this;
94 }
95 
97  LMFDat::setData(id, "NEVT", v);
98  return *this;
99 }
100 
102  LMFDat::setData(id, "FLAG", v);
103  return *this;
104 }
105 
107  LMFDat::setData(id, "FLAGNORM", v);
108  return *this;
109 }
110 
111 int LMFClsDat::getLMFRefRunIOVID(EcalLogicID &id) { return getData(id, "LMF_IOV_ID_REF"); }
112 
113 float LMFClsDat::getMean(EcalLogicID &id) { return getData(id, "MEAN"); }
114 
115 float LMFClsDat::getNorm(EcalLogicID &id) { return getData(id, "NORM"); }
116 
117 float LMFClsDat::getENorm(EcalLogicID &id) { return getData(id, "ENORM"); }
118 
119 float LMFClsDat::getRMS(EcalLogicID &id) { return getData(id, "RMS"); }
120 
121 int LMFClsDat::getNevt(EcalLogicID &id) { return getData(id, "NEVT"); }
122 
123 int LMFClsDat::getFlag(EcalLogicID &id) { return getData(id, "FLAG"); }
124 
125 float LMFClsDat::getFlagNorm(EcalLogicID &id) { return getData(id, "FLAGNORM"); }
runTheMatrix.ret
ret
prodAgent to be discontinued
Definition: runTheMatrix.py:542
LMFColoredTable
Definition: LMFColoredTable.h:20
LMFClsDat::setFlagNorm
LMFClsDat & setFlagNorm(EcalLogicID &id, float v)
Definition: LMFClsDat.cc:106
LMFDat::getData
std::map< int, std::vector< float > > getData()
Definition: LMFDat.cc:559
LMFClsDat::getFlagNorm
float getFlagNorm(EcalLogicID &id)
Definition: LMFClsDat.cc:125
mps_fire.i
i
Definition: mps_fire.py:428
LMFClsDat::setLMFRefRunIOVID
LMFClsDat & setLMFRefRunIOVID(EcalLogicID &id, int v)
Definition: LMFClsDat.cc:71
LMFClsDat::getLMFRefRunIOVID
int getLMFRefRunIOVID(EcalLogicID &id)
Definition: LMFClsDat.cc:111
LMFClsDat::getNorm
float getNorm(EcalLogicID &id)
Definition: LMFClsDat.cc:115
SiStripCommissioningClient_cfg.conn
conn
Definition: SiStripCommissioningClient_cfg.py:5
LMFClsDat::getFlag
int getFlag(EcalLogicID &id)
Definition: LMFClsDat.cc:123
LMFUnique::m_className
std::string m_className
Definition: LMFUnique.h:99
LMFClsDat::setRMS
LMFClsDat & setRMS(EcalLogicID &id, float v)
Definition: LMFClsDat.cc:91
findQualityFiles.v
v
Definition: findQualityFiles.py:179
LMFColoredTable::setColor
LMFColoredTable & setColor(int color)
Definition: LMFColoredTable.h:32
LMFClsDat::getENorm
float getENorm(EcalLogicID &id)
Definition: LMFClsDat.cc:117
LMFClsDat::setENorm
LMFClsDat & setENorm(EcalLogicID &id, float v)
Definition: LMFClsDat.cc:86
LMFClsDat::init
void init()
Definition: LMFClsDat.cc:43
LMFClsDat::isValid
bool isValid() override
Definition: LMFClsDat.cc:62
LMFColoredTable::m_system
int m_system
Definition: LMFColoredTable.h:71
EcalLogicID
Definition: EcalLogicID.h:7
LMFDat::setData
LMFDat & setData(int logic_id, const std::vector< float > &data)
Definition: LMFDat.h:49
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
web.browse_db.env
env
Definition: browse_db.py:18
LMFDat::m_keys
std::map< std::string, unsigned int > m_keys
Definition: LMFDat.h:145
LMFClsDat::getMean
float getMean(EcalLogicID &id)
Definition: LMFClsDat.cc:113
LMFClsDat::getNevt
int getNevt(EcalLogicID &id)
Definition: LMFClsDat.cc:121
LMFClsDat::LMFClsDat
LMFClsDat()
Definition: LMFClsDat.cc:3
LMFClsDat::setNevt
LMFClsDat & setNevt(EcalLogicID &id, int v)
Definition: LMFClsDat.cc:96
LMFColoredTable::m_color
int m_color
Definition: LMFColoredTable.h:70
LMFClsDat::setNorm
LMFClsDat & setNorm(EcalLogicID &id, float v)
Definition: LMFClsDat.cc:81
LMFClsDat.h
LMFClsDat::getRMS
float getRMS(EcalLogicID &id)
Definition: LMFClsDat.cc:119
LMFClsDat::setFlag
LMFClsDat & setFlag(EcalLogicID &id, int v)
Definition: LMFClsDat.cc:101
LMFColoredTable::getColor
std::string getColor() const
Definition: LMFColoredTable.cc:39
LMFClsDat::setMean
LMFClsDat & setMean(EcalLogicID &id, float v)
Definition: LMFClsDat.cc:76
c
auto & c
Definition: CAHitNtupletGeneratorKernelsImpl.h:46
LMFClsDat
Definition: LMFClsDat.h:18
LMFDat::m_type
std::vector< std::string > m_type
Definition: LMFDat.h:140
LMFDat::m_Error
std::string m_Error
Definition: LMFDat.h:147
EcalDBConnection
Definition: EcalDBConnection.h:15