CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros 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 <math.h>
11 
18 class LMFClsDat : public LMFColoredTable {
19  public:
21  typedef oracle::occi::Statement Statement;
22 
23  LMFClsDat();
24  LMFClsDat(oracle::occi::Environment* env,
25  oracle::occi::Connection* conn);
28  LMFClsDat(int color);
29  LMFClsDat(oracle::occi::Environment* env,
30  oracle::occi::Connection* conn, std::string color);
32  LMFClsDat(oracle::occi::Environment* env,
33  oracle::occi::Connection* conn, int color);
36 
38  return "LMF_CLS_" + getColor() + "_DAT";
39  }
40 
41  LMFClsDat& setSystem(int system) { return *this; }
42  LMFClsDat& setSystem(std::string system) { return *this; }
43 
45  LMFClsDat& setMean(EcalLogicID &id, float v);
46  LMFClsDat& setNorm(EcalLogicID &id, float v);
47  LMFClsDat& setENorm(EcalLogicID &id, float v);
48  LMFClsDat& setRMS(EcalLogicID &id, float v);
49  LMFClsDat& setNevt(EcalLogicID &id, int v);
50  LMFClsDat& setFlag(EcalLogicID &id, int v);
51  LMFClsDat& setFlagNorm(EcalLogicID &id, float v);
52 
54  float getMean(EcalLogicID &id);
55  float getNorm(EcalLogicID &id);
56  float getENorm(EcalLogicID &id);
57  float getRMS(EcalLogicID &id);
58  int getNevt(EcalLogicID &id);
59  int getFlag(EcalLogicID &id);
60  float getFlagNorm(EcalLogicID &id);
61 
62  std::string getSystem() const { return ""; }
63 
64  bool isValid();
65  // to do: complete list of set/get methods
66 
67  private:
68  void init();
69 };
70 
71 #endif
LMFClsDat & setNorm(EcalLogicID &id, float v)
Definition: LMFClsDat.cc:93
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.h:35
LMFClsDat()
Definition: LMFClsDat.cc:3
int getLMFRefRunIOVID(EcalLogicID &id)
Definition: LMFClsDat.cc:123
bool isValid()
Definition: LMFClsDat.cc:74
oracle::occi::ResultSet ResultSet
Definition: LMFClsDat.h:20
LMFClsDat & setSystem(int system)
Definition: LMFClsDat.h:41
void init()
Definition: LMFClsDat.cc:55
float getFlagNorm(EcalLogicID &id)
Definition: LMFClsDat.cc:151
std::string getSystem() const
Definition: LMFClsDat.h:62
std::string getColor() const
oracle::occi::Statement Statement
Definition: LMFClsDat.h:21
LMFClsDat & setSystem(std::string system)
Definition: LMFClsDat.h:42
LMFClsDat & setFlagNorm(EcalLogicID &id, float v)
Definition: LMFClsDat.cc:118
float getMean(EcalLogicID &id)
Definition: LMFClsDat.cc:127
float getNorm(EcalLogicID &id)
Definition: LMFClsDat.cc:131
std::string getTableName() const
Definition: LMFClsDat.h:37
LMFClsDat & setFlag(EcalLogicID &id, int v)
Definition: LMFClsDat.cc:113
oracle::occi::ResultSet ResultSet
Definition: HcalDbOmds.cc:26
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
LMFClsDat & setMean(EcalLogicID &id, float v)
Definition: LMFClsDat.cc:88
int getFlag(EcalLogicID &id)
Definition: LMFClsDat.cc:147
LMFClsDat & setENorm(EcalLogicID &id, float v)
Definition: LMFClsDat.cc:98