test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
LMFPrimDat.cc
Go to the documentation of this file.
2 
4  init();
5 }
6 
7 LMFPrimDat::LMFPrimDat(oracle::occi::Environment* env,
8  oracle::occi::Connection* conn) :
9  LMFColoredTable(env, conn) {
10  init();
11 }
12 
14  init();
15 }
16 
18  LMFColoredTable() {
19  init();
20  setColor(color);
21  setSystem(system);
22 }
23 
25  LMFColoredTable() {
26  init();
27  setColor(color);
28  setSystem(system);
29 }
30 
31 LMFPrimDat::LMFPrimDat(oracle::occi::Environment* env,
32  oracle::occi::Connection* conn,
33  std::string color, std::string system) :
34  LMFColoredTable(env, conn) {
35  init();
36  setColor(color);
37  setSystem(system);
38 }
39 
40 LMFPrimDat::LMFPrimDat(oracle::occi::Environment* env,
41  oracle::occi::Connection* conn,
42  int color, std::string system) :
43  LMFColoredTable(env, conn) {
44  init();
45  setColor(color);
46  setSystem(system);
47 }
48 
50  std::string system) : LMFColoredTable(c) {
51  init();
52  setColor(color);
53  setSystem(system);
54 }
55 
57  std::string system) : LMFColoredTable(c) {
58  init();
59  setColor(color);
60  setSystem(system);
61 }
62 
64  m_className = "LMFPrimDat";
65  m_keys["FLAG"] = 0;
66  m_keys["MEAN"] = 1;
67  m_keys["RMS"] = 2;
68  m_keys["M3"] = 3;
69  m_keys["APDAMEAN"] = 4;
70  m_keys["APDARMS"] = 5;
71  m_keys["APDAM3"] = 6;
72  m_keys["APDBMEAN"] = 7;
73  m_keys["APDBRMS"] = 8;
74  m_keys["APDBM3"] = 9;
75  m_keys["APDPNMEAN"] = 10;
76  m_keys["APDPNRMS"] = 11;
77  m_keys["APDPNM3"] = 12;
78  m_keys["ALPHA"] = 13;
79  m_keys["BETA"] = 14;
80  m_keys["SHAPECORR"] = 15;
81  m_keys["VMIN"] = 16;
82  m_keys["VMAX"] = 17;
83  for (unsigned int i = 0; i < m_keys.size(); i++) {
84  m_type.push_back("NUMBER");
85  }
86  m_system = 0;
87  m_color = 0;
88 }
89 
91  bool ret = true;
92  if ((getSystem() != "LASER") && (getSystem() != "LED")) {
93  m_Error += " System name not properly set [" + getSystem() + "]";
94  ret = false;
95  }
96  if ((getSystem() == "LASER") &&
97  (getColor() != "BLUE") && (getColor() != "IR")) {
98  m_Error += " Color not properly set [" + getColor() + "]";
99  ret = false;
100  }
101  if ((getSystem() == "LED") &&
102  (getColor() != "BLUE") && (getColor() != "ORANGE")) {
103  m_Error += " Color not properly set [" + getColor() + "]";
104  ret = false;
105  }
106  return ret;
107 }
108 
110  LMFDat::setData(id, "MEAN", v);
111  return *this;
112 }
113 
115  LMFDat::setData(id, "RMS", v);
116  return *this;
117 }
118 
120  LMFDat::setData(id, "M3", v);
121  return *this;
122 }
123 
125  float m3) {
126  setMean(id, mean);
127  setRMS(id, rms);
128  setM3(id, m3);
129  return *this;
130 }
131 
133  LMFDat::setData(id, "APDAM3", v);
134  return *this;
135 }
136 
138  LMFDat::setData(id, "APDAMEAN", v);
139  return *this;
140 }
141 
143  LMFDat::setData(id, "APDARMS", v);
144  return *this;
145 }
146 
148  float mean, float rms, float m3) {
149  setAPDoverAMean(id, mean);
150  setAPDoverARMS(id, rms);
151  setAPDoverAM3(id, m3);
152  return *this;
153 }
154 
156  LMFDat::setData(id, "APDBM3", v);
157  return *this;
158 }
159 
161  LMFDat::setData(id, "APDBMEAN", v);
162  return *this;
163 }
164 
166  LMFDat::setData(id, "APDBRMS", v);
167  return *this;
168 }
169 
171  float mean, float rms, float m3) {
172  setAPDoverBMean(id, mean);
173  setAPDoverBRMS(id, rms);
174  setAPDoverBM3(id, m3);
175  return *this;
176 }
177 
179  LMFDat::setData(id, "APDPNM3", v);
180  return *this;
181 }
182 
184  LMFDat::setData(id, "APDPNMEAN", v);
185  return *this;
186 }
187 
189  LMFDat::setData(id, "APDPNRMS", v);
190  return *this;
191 }
192 
194  float mean, float rms, float m3) {
195  setAPDoverPnMean(id, mean);
196  setAPDoverPnRMS(id, rms);
197  setAPDoverPnM3(id, m3);
198  return *this;
199 }
200 
202  LMFDat::setData(id, "FLAG", v);
203  return *this;
204 }
205 
207  LMFDat::setData(id, "ALPHA", v);
208  return *this;
209 }
210 
212  LMFDat::setData(id, "BETA", v);
213  return *this;
214 }
215 
217  LMFDat::setData(id, "SHAPECORR", v);
218  return *this;
219 }
220 
222  return getData(id, "MEAN");
223 }
224 
226  return getData(id, "RMS");
227 }
228 
230  return getData(id, "M3");
231 }
232 
234  return getData(id, "APDAM3");
235 }
236 
238  return getData(id, "APDAMEAN");
239 }
240 
242  return getData(id, "APDARMS");
243 }
244 
246  return getData(id, "APDBM3");
247 }
248 
250  return getData(id, "APDPNMEAN");
251 }
252 
254  return getData(id, "APDPNRMS");
255 }
256 
258  return getData(id, "APDPNM3");
259 }
260 
262  return getData(id, "APDBMEAN");
263 }
264 
266  return getData(id, "APDBRMS");
267 }
268 
270  return getData(id, "ALPHA");
271 }
272 
274  return getData(id, "BETA");
275 }
276 
278  return getData(id, "SHAPECORR");
279 }
280 
282  return getData(id, "FLAG");
283 }
284 
285 float LMFPrimDat::getMean(int id) {
286  return getData(id, "MEAN");
287 }
288 
289 float LMFPrimDat::getRMS(int id) {
290  return getData(id, "RMS");
291 }
292 
293 float LMFPrimDat::getM3(int id) {
294  return getData(id, "M3");
295 }
296 
298  return getData(id, "APDAM3");
299 }
300 
302  return getData(id, "APDAMEAN");
303 }
304 
306  return getData(id, "APDARMS");
307 }
308 
310  return getData(id, "APDBM3");
311 }
312 
314  return getData(id, "APDPNMEAN");
315 }
316 
318  return getData(id, "APDPNRMS");
319 }
320 
322  return getData(id, "APDPNM3");
323 }
324 
326  return getData(id, "APDBMEAN");
327 }
328 
330  return getData(id, "APDBRMS");
331 }
332 
333 float LMFPrimDat::getAlpha(int id) {
334  return getData(id, "ALPHA");
335 }
336 
337 float LMFPrimDat::getBeta(int id) {
338  return getData(id, "BETA");
339 }
340 
342  return getData(id, "SHAPECORR");
343 }
344 
345 int LMFPrimDat::getFlag(int id) {
346  return getData(id, "FLAG");
347 }
348 
LMFPrimDat & setBeta(EcalLogicID &id, float v)
Definition: LMFPrimDat.cc:211
std::string m_className
Definition: LMFUnique.h:99
LMFPrimDat & setAPDoverPnRMS(EcalLogicID &id, float v)
Definition: LMFPrimDat.cc:188
float getAPDoverPnM3(EcalLogicID &id)
Definition: LMFPrimDat.cc:257
int i
Definition: DBlmapReader.cc:9
tuple ret
prodAgent to be discontinued
float getAPDoverAM3(EcalLogicID &id)
Definition: LMFPrimDat.cc:233
LMFPrimDat & setAPDoverBMean(EcalLogicID &id, float v)
Definition: LMFPrimDat.cc:160
LMFPrimDat & setAPDoverBRMS(EcalLogicID &id, float v)
Definition: LMFPrimDat.cc:165
LMFPrimDat & setAPDoverAMean(EcalLogicID &id, float v)
Definition: LMFPrimDat.cc:137
float getAlpha(EcalLogicID &id)
Definition: LMFPrimDat.cc:269
LMFPrimDat & setAPDoverARMS(EcalLogicID &id, float v)
Definition: LMFPrimDat.cc:142
float getAPDoverBM3(EcalLogicID &id)
Definition: LMFPrimDat.cc:245
LMFPrimDat & setAPDoverPnM3(EcalLogicID &id, float v)
Definition: LMFPrimDat.cc:178
LMFDat & setData(int logic_id, const std::vector< float > &data)
Definition: LMFDat.h:55
float getAPDoverPnRMS(EcalLogicID &id)
Definition: LMFPrimDat.cc:253
std::vector< std::string > m_type
Definition: LMFDat.h:150
LMFPrimDat & setAPDoverPn(EcalLogicID &id, float mean, float rms, float m3)
Definition: LMFPrimDat.cc:193
float getAPDoverPnMean(EcalLogicID &id)
Definition: LMFPrimDat.cc:249
std::string getColor() const
LMFPrimDat & setAPDoverB(EcalLogicID &id, float mean, float rms, float m3)
Definition: LMFPrimDat.cc:170
LMFPrimDat & setAPDoverBM3(EcalLogicID &id, float v)
Definition: LMFPrimDat.cc:155
float getAPDoverBRMS(EcalLogicID &id)
Definition: LMFPrimDat.cc:265
LMFPrimDat & setRMS(EcalLogicID &id, float v)
Definition: LMFPrimDat.cc:114
float getAPDoverARMS(EcalLogicID &id)
Definition: LMFPrimDat.cc:241
float getBeta(EcalLogicID &id)
Definition: LMFPrimDat.cc:273
std::string m_Error
Definition: LMFDat.h:157
float getShapeCorr(EcalLogicID &id)
Definition: LMFPrimDat.cc:277
LMFPrimDat & setM3(EcalLogicID &id, float v)
Definition: LMFPrimDat.cc:119
LMFColoredTable & setColor(int color)
int getFlag(EcalLogicID &id)
Definition: LMFPrimDat.cc:281
LMFPrimDat & setAPDoverAM3(EcalLogicID &id, float v)
Definition: LMFPrimDat.cc:132
std::map< int, std::vector< float > > getData()
Definition: LMFDat.cc:636
float getRMS(EcalLogicID &id)
Definition: LMFPrimDat.cc:225
LMFPrimDat & setFlag(EcalLogicID &id, int v)
Definition: LMFPrimDat.cc:201
virtual LMFColoredTable & setSystem(int system)
LMFPrimDat & setAPDoverA(EcalLogicID &id, float mean, float rms, float m3)
Definition: LMFPrimDat.cc:147
float getMean(EcalLogicID &id)
Definition: LMFPrimDat.cc:221
float getM3(EcalLogicID &id)
Definition: LMFPrimDat.cc:229
LMFPrimDat & setAPDoverPnMean(EcalLogicID &id, float v)
Definition: LMFPrimDat.cc:183
bool isValid()
Definition: LMFPrimDat.cc:90
std::map< std::string, unsigned int > m_keys
Definition: LMFDat.h:155
LMFPrimDat & setShapeCorr(EcalLogicID &id, float v)
Definition: LMFPrimDat.cc:216
float getAPDoverBMean(EcalLogicID &id)
Definition: LMFPrimDat.cc:261
LMFPrimDat & setPN(EcalLogicID &id, float mean, float rms, float m3)
Definition: LMFPrimDat.cc:124
LMFPrimDat & setMean(EcalLogicID &id, float v)
Definition: LMFPrimDat.cc:109
LMFPrimDat & setAlpha(EcalLogicID &id, float v)
Definition: LMFPrimDat.cc:206
void init()
Definition: LMFPrimDat.cc:63
float getAPDoverAMean(EcalLogicID &id)
Definition: LMFPrimDat.cc:237
virtual std::string getSystem() const