CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
LMFClsDat.h
Go to the documentation of this file.
1 #ifndef LMFCLSDAT_H
2 #define LMFCLSDAT_H
3 
4 /*
5  Last updated by Giovanni.Organtini@roma1.infn.it 2010
6  */
7 
9 
10 #include <cmath>
11 
18 class LMFClsDat : public LMFColoredTable {
19 public:
20  typedef oracle::occi::ResultSet ResultSet;
21  typedef oracle::occi::Statement Statement;
22 
23  LMFClsDat();
24  LMFClsDat(oracle::occi::Environment *env, oracle::occi::Connection *conn);
26  LMFClsDat(std::string color);
27  LMFClsDat(int color);
28  LMFClsDat(oracle::occi::Environment *env, oracle::occi::Connection *conn, std::string color);
30  LMFClsDat(oracle::occi::Environment *env, oracle::occi::Connection *conn, int color);
31  LMFClsDat(EcalDBConnection *c, int color);
32  ~LMFClsDat() override {}
33 
34  std::string getTableName() const override { return "LMF_CLS_" + getColor() + "_DAT"; }
35 
36  LMFClsDat &setSystem(int system) override { return *this; }
37  LMFClsDat &setSystem(std::string system) override { return *this; }
38 
40  LMFClsDat &setMean(EcalLogicID &id, float v);
41  LMFClsDat &setNorm(EcalLogicID &id, float v);
42  LMFClsDat &setENorm(EcalLogicID &id, float v);
43  LMFClsDat &setRMS(EcalLogicID &id, float v);
44  LMFClsDat &setNevt(EcalLogicID &id, int v);
45  LMFClsDat &setFlag(EcalLogicID &id, int v);
46  LMFClsDat &setFlagNorm(EcalLogicID &id, float v);
47 
49  float getMean(EcalLogicID &id);
50  float getNorm(EcalLogicID &id);
51  float getENorm(EcalLogicID &id);
52  float getRMS(EcalLogicID &id);
53  int getNevt(EcalLogicID &id);
54  int getFlag(EcalLogicID &id);
55  float getFlagNorm(EcalLogicID &id);
56 
57  std::string getSystem() const override { return ""; }
58 
59  bool isValid() override;
60  // to do: complete list of set/get methods
61 
62 private:
63  void init();
64 };
65 
66 #endif
LMFClsDat & setNorm(EcalLogicID &id, float v)
Definition: LMFClsDat.cc:81
int getNevt(EcalLogicID &id)
Definition: LMFClsDat.cc:121
float getRMS(EcalLogicID &id)
Definition: LMFClsDat.cc:119
const edm::EventSetup & c
LMFClsDat & setSystem(int system) override
Definition: LMFClsDat.h:36
float getENorm(EcalLogicID &id)
Definition: LMFClsDat.cc:117
LMFClsDat()
Definition: LMFClsDat.cc:3
LMFClsDat & setSystem(std::string system) override
Definition: LMFClsDat.h:37
int getLMFRefRunIOVID(EcalLogicID &id)
Definition: LMFClsDat.cc:111
oracle::occi::ResultSet ResultSet
Definition: LMFClsDat.h:20
void init()
Definition: LMFClsDat.cc:43
float getFlagNorm(EcalLogicID &id)
Definition: LMFClsDat.cc:125
std::string getColor() const
~LMFClsDat() override
Definition: LMFClsDat.h:32
oracle::occi::Statement Statement
Definition: LMFClsDat.h:21
std::string getTableName() const override
Definition: LMFClsDat.h:34
LMFClsDat & setFlagNorm(EcalLogicID &id, float v)
Definition: LMFClsDat.cc:106
float getMean(EcalLogicID &id)
Definition: LMFClsDat.cc:113
float getNorm(EcalLogicID &id)
Definition: LMFClsDat.cc:115
std::string getSystem() const override
Definition: LMFClsDat.h:57
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
tuple 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