CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
LMFClsDat.cc
Go to the documentation of this file.
2 
4  init();
5 }
6 
7 LMFClsDat::LMFClsDat(oracle::occi::Environment* env,
8  oracle::occi::Connection* conn) :
9  LMFColoredTable(env, conn) {
10  init();
11 }
12 
14  init();
15 }
16 
17 LMFClsDat::LMFClsDat(std::string color) :
18  LMFColoredTable() {
19  init();
20  setColor(color);
21 }
22 
24  LMFColoredTable() {
25  init();
26  setColor(color);
27 }
28 
29 LMFClsDat::LMFClsDat(oracle::occi::Environment* env,
30  oracle::occi::Connection* conn,
31  std::string color) :
32  LMFColoredTable(env, conn) {
33  init();
34  setColor(color);
35 }
36 
37 LMFClsDat::LMFClsDat(oracle::occi::Environment* env,
38  oracle::occi::Connection* conn,
39  int color) :
40  LMFColoredTable(env, conn) {
41  init();
42  setColor(color);
43 }
44 
46  init();
47  setColor(color);
48 }
49 
51  init();
52  setColor(color);
53 }
54 
56  m_className = "LMFClsDat";
57  m_keys["LMF_IOV_ID_REF"] = 0;
58  m_keys["MEAN"] = 1;
59  m_keys["NORM"] = 2;
60  m_keys["RMS"] = 3;
61  m_keys["NEVT"] = 4;
62  m_keys["ENORM"] = 5;
63  m_keys["FLAG"] = 6;
64  m_keys["FLAGNORM"] = 7;
65  m_keys["VMIN"] = 8;
66  m_keys["VMAX"] = 9;
67  for (unsigned int i = 0; i < m_keys.size(); i++) {
68  m_type.push_back("NUMBER");
69  }
70  m_system = 0;
71  m_color = 0;
72 }
73 
75  bool ret = true;
76  if ((getColor() != "BLUE") && (getColor() != "IR")) {
77  m_Error += " Color not properly set [" + getColor() + "]";
78  ret = false;
79  }
80  return ret;
81 }
82 
84  LMFDat::setData(id, "LMF_IOV_ID_REF", v);
85  return *this;
86 }
87 
89  LMFDat::setData(id, "MEAN", v);
90  return *this;
91 }
92 
94  LMFDat::setData(id, "NORM", v);
95  return *this;
96 }
97 
99  LMFDat::setData(id, "ENORM", v);
100  return *this;
101 }
102 
104  LMFDat::setData(id, "RMS", v);
105  return *this;
106 }
107 
109  LMFDat::setData(id, "NEVT", v);
110  return *this;
111 }
112 
114  LMFDat::setData(id, "FLAG", v);
115  return *this;
116 }
117 
119  LMFDat::setData(id, "FLAGNORM", v);
120  return *this;
121 }
122 
124  return getData(id, "LMF_IOV_ID_REF");
125 }
126 
128  return getData(id, "MEAN");
129 }
130 
132  return getData(id, "NORM");
133 }
134 
136  return getData(id, "ENORM");
137 }
138 
140  return getData(id, "RMS");
141 }
142 
144  return getData(id, "NEVT");
145 }
146 
148  return getData(id, "FLAG");
149 }
150 
152  return getData(id, "FLAGNORM");
153 }
154 
LMFClsDat & setNorm(EcalLogicID &id, float v)
Definition: LMFClsDat.cc:93
std::string m_className
Definition: LMFUnique.h:99
int i
Definition: DBlmapReader.cc:9
int getNevt(EcalLogicID &id)
Definition: LMFClsDat.cc:143
float getRMS(EcalLogicID &id)
Definition: LMFClsDat.cc:139
float getENorm(EcalLogicID &id)
Definition: LMFClsDat.cc:135
LMFClsDat()
Definition: LMFClsDat.cc:3
int getLMFRefRunIOVID(EcalLogicID &id)
Definition: LMFClsDat.cc:123
LMFDat & setData(int logic_id, const std::vector< float > &data)
Definition: LMFDat.h:55
bool isValid()
Definition: LMFClsDat.cc:74
std::vector< std::string > m_type
Definition: LMFDat.h:150
void init()
Definition: LMFClsDat.cc:55
float getFlagNorm(EcalLogicID &id)
Definition: LMFClsDat.cc:151
std::string getColor() const
std::string m_Error
Definition: LMFDat.h:157
LMFColoredTable & setColor(int color)
LMFClsDat & setFlagNorm(EcalLogicID &id, float v)
Definition: LMFClsDat.cc:118
std::map< int, std::vector< float > > getData()
Definition: LMFDat.cc:636
float getMean(EcalLogicID &id)
Definition: LMFClsDat.cc:127
float getNorm(EcalLogicID &id)
Definition: LMFClsDat.cc:131
LMFClsDat & setFlag(EcalLogicID &id, int v)
Definition: LMFClsDat.cc:113
LMFClsDat & setNevt(EcalLogicID &id, int v)
Definition: LMFClsDat.cc:108
LMFClsDat & setRMS(EcalLogicID &id, float v)
Definition: LMFClsDat.cc:103
LMFClsDat & setLMFRefRunIOVID(EcalLogicID &id, int v)
Definition: LMFClsDat.cc:83
std::map< std::string, unsigned int > m_keys
Definition: LMFDat.h:155
LMFClsDat & setMean(EcalLogicID &id, float v)
Definition: LMFClsDat.cc:88
int getFlag(EcalLogicID &id)
Definition: LMFClsDat.cc:147
mathSSE::Vec4< T > v
tuple conn
Definition: results_mgr.py:53
LMFClsDat & setENorm(EcalLogicID &id, float v)
Definition: LMFClsDat.cc:98