CMS 3D CMS Logo

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
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"); }
LMFClsDat & setNorm(EcalLogicID &id, float v)
Definition: LMFClsDat.cc:81
std::string m_className
Definition: LMFUnique.h:99
int getNevt(EcalLogicID &id)
Definition: LMFClsDat.cc:121
float getRMS(EcalLogicID &id)
Definition: LMFClsDat.cc:119
float getENorm(EcalLogicID &id)
Definition: LMFClsDat.cc:117
LMFClsDat()
Definition: LMFClsDat.cc:3
ret
prodAgent to be discontinued
int getLMFRefRunIOVID(EcalLogicID &id)
Definition: LMFClsDat.cc:111
std::string getColor() const
LMFDat & setData(int logic_id, const std::vector< float > &data)
Definition: LMFDat.h:49
std::vector< std::string > m_type
Definition: LMFDat.h:140
void init()
Definition: LMFClsDat.cc:43
float getFlagNorm(EcalLogicID &id)
Definition: LMFClsDat.cc:125
std::string m_Error
Definition: LMFDat.h:147
LMFColoredTable & setColor(int color)
LMFClsDat & setFlagNorm(EcalLogicID &id, float v)
Definition: LMFClsDat.cc:106
std::map< int, std::vector< float > > getData()
Definition: LMFDat.cc:559
float getMean(EcalLogicID &id)
Definition: LMFClsDat.cc:113
float getNorm(EcalLogicID &id)
Definition: LMFClsDat.cc:115
bool isValid() override
Definition: LMFClsDat.cc:62
LMFClsDat & setFlag(EcalLogicID &id, int v)
Definition: LMFClsDat.cc:101
LMFClsDat & setNevt(EcalLogicID &id, int v)
Definition: LMFClsDat.cc:96
LMFClsDat & setRMS(EcalLogicID &id, float v)
Definition: LMFClsDat.cc:91
LMFClsDat & setLMFRefRunIOVID(EcalLogicID &id, int v)
Definition: LMFClsDat.cc:71
std::map< std::string, unsigned int > m_keys
Definition: LMFDat.h:145
conn
Definition: getInfo.py:9
LMFClsDat & setMean(EcalLogicID &id, float v)
Definition: LMFClsDat.cc:76
int getFlag(EcalLogicID &id)
Definition: LMFClsDat.cc:123
LMFClsDat & setENorm(EcalLogicID &id, float v)
Definition: LMFClsDat.cc:86