CMS 3D CMS Logo

LMFRunDat.h
Go to the documentation of this file.
1 #ifndef LMFRUNDAT_H
2 #define LMFRUNDAT_H
3 
4 #include <cmath>
5 
6 /*
7  Last updated by Giovanni.Organtini@roma1.infn.it 2010
8 */
9 
11 
15 class LMFRunDat : public LMFDat {
16 public:
17  LMFRunDat();
19  LMFRunDat(oracle::occi::Environment *env, oracle::occi::Connection *conn);
20  ~LMFRunDat() override {}
21 
22  int getEvents(const EcalLogicID &id) { return (int)rint(LMFDat::getData(id, "NEVENTS")); }
23  int getEvents(int id) { return (int)rint(LMFDat::getData(id, "NEVENTS")); }
24  int getQualityFlag(const EcalLogicID &id) { return (int)rint(LMFDat::getData(id, "QUALITY_FLAG")); }
25  int getQualityFlag(int id) { return (int)rint(LMFDat::getData(id, "QUALITY_FLAG")); }
26  LMFRunDat &setEvents(const EcalLogicID &id, int n) {
27  LMFDat::setData(id, "NEVENTS", (float)n);
28  return *this;
29  }
31  LMFDat::setData(id, "QUALITY_FLAG", (float)q);
32  return *this;
33  }
34  LMFRunDat &setData(const EcalLogicID &id, int n, int q) {
35  LMFDat::setData(id, "NEVENTS", (float)n);
36  LMFDat::setData(id, "QUALITY_FLAG", (float)q);
37  return *this;
38  }
39  LMFRunDat &Data(const EcalLogicID &id, const std::vector<float> &v) {
40  LMFDat::setData(id, v);
41  return *this;
42  }
43 
44 protected:
45 };
46 
47 #endif
LMFRunDat & setQualityFlag(const EcalLogicID &id, int q)
Definition: LMFRunDat.h:30
~LMFRunDat() override
Definition: LMFRunDat.h:20
int getEvents(const EcalLogicID &id)
Definition: LMFRunDat.h:22
int getQualityFlag(const EcalLogicID &id)
Definition: LMFRunDat.h:24
LMFRunDat & setData(const EcalLogicID &id, int n, int q)
Definition: LMFRunDat.h:34
LMFDat & setData(int logic_id, const std::vector< float > &data)
Definition: LMFDat.h:49
int getEvents(int id)
Definition: LMFRunDat.h:23
LMFRunDat & Data(const EcalLogicID &id, const std::vector< float > &v)
Definition: LMFRunDat.h:39
LMFRunDat & setEvents(const EcalLogicID &id, int n)
Definition: LMFRunDat.h:26
Definition: LMFDat.h:18
std::map< int, std::vector< float > > getData()
Definition: LMFDat.cc:559
int getQualityFlag(int id)
Definition: LMFRunDat.h:25
LMFRunDat()
Definition: LMFRunDat.cc:3