test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
LMFPrimDat.h
Go to the documentation of this file.
1 #ifndef LMFPRIMDAT_H
2 #define LMFPRIMDAT_H
3 
4 /*
5  Last updated by Giovanni.Organtini@roma1.infn.it 2010
6  */
7 
9 
10 #include <math.h>
11 
19 class LMFPrimDat : public LMFColoredTable {
20  public:
21  LMFPrimDat();
22  LMFPrimDat(oracle::occi::Environment* env,
23  oracle::occi::Connection* conn);
26  LMFPrimDat(int color, std::string system);
27  LMFPrimDat(oracle::occi::Environment* env,
28  oracle::occi::Connection* conn, std::string color,
29  std::string system);
31  LMFPrimDat(oracle::occi::Environment* env,
32  oracle::occi::Connection* conn, int color,
33  std::string system);
34  LMFPrimDat(EcalDBConnection *c, int color, std::string system);
36 
38  return "LMF_" + getSystem() + "_" + getColor() + "_PRIM_DAT";
39  }
40 
41  LMFPrimDat& setFlag(EcalLogicID &id, int v);
42  LMFPrimDat& setMean(EcalLogicID &id, float v);
43  LMFPrimDat& setRMS(EcalLogicID &id, float v);
44  LMFPrimDat& setM3(EcalLogicID &id, float v);
45  LMFPrimDat& setPN(EcalLogicID &id, float mean, float rms, float m3);
49  LMFPrimDat& setAPDoverA(EcalLogicID &id, float mean, float rms, float m3);
53  LMFPrimDat& setAPDoverB(EcalLogicID &id, float mean, float rms, float m3);
57  LMFPrimDat& setAPDoverPn(EcalLogicID &id, float mean, float rms, float m3);
58  LMFPrimDat& setAlpha(EcalLogicID &id, float v);
59  LMFPrimDat& setBeta(EcalLogicID &id, float v);
60  LMFPrimDat& setShapeCorr(EcalLogicID &id, float v);
61 
62  float getMean(EcalLogicID &id);
63  float getRMS(EcalLogicID &id);
64  float getM3(EcalLogicID &id);
65  int getFlag(EcalLogicID &id);
66  float getAPDoverAMean(EcalLogicID &id);
67  float getAPDoverARMS(EcalLogicID &id);
68  float getAPDoverAM3(EcalLogicID &id);
69  float getAPDoverBMean(EcalLogicID &id);
70  float getAPDoverBRMS(EcalLogicID &id);
71  float getAPDoverBM3(EcalLogicID &id);
72  float getAPDoverPnMean(EcalLogicID &id);
73  float getAPDoverPnRMS(EcalLogicID &id);
74  float getAPDoverPnM3(EcalLogicID &id);
75  float getAlpha(EcalLogicID &id);
76  float getBeta(EcalLogicID &id);
77  float getShapeCorr(EcalLogicID &id);
78 
79  float getMean(int id);
80  float getRMS(int id);
81  float getM3(int id);
82  int getFlag(int id);
83  float getAPDoverAMean(int id);
84  float getAPDoverARMS(int id);
85  float getAPDoverAM3(int id);
86  float getAPDoverBMean(int id);
87  float getAPDoverBRMS(int id);
88  float getAPDoverBM3(int id);
89  float getAPDoverPnMean(int id);
90  float getAPDoverPnRMS(int id);
91  float getAPDoverPnM3(int id);
92  float getAlpha(int id);
93  float getBeta(int id);
94  float getShapeCorr(int id);
95 
96  bool isValid();
97  // to do: complete list of set/get methods
98 
99  private:
100  void init();
101 };
102 
103 #endif
LMFPrimDat & setBeta(EcalLogicID &id, float v)
Definition: LMFPrimDat.cc:211
LMFPrimDat & setAPDoverPnRMS(EcalLogicID &id, float v)
Definition: LMFPrimDat.cc:188
float getAPDoverPnM3(EcalLogicID &id)
Definition: LMFPrimDat.cc:257
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
float getAPDoverPnRMS(EcalLogicID &id)
Definition: LMFPrimDat.cc:253
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
float getShapeCorr(EcalLogicID &id)
Definition: LMFPrimDat.cc:277
LMFPrimDat & setM3(EcalLogicID &id, float v)
Definition: LMFPrimDat.cc:119
int getFlag(EcalLogicID &id)
Definition: LMFPrimDat.cc:281
LMFPrimDat & setAPDoverAM3(EcalLogicID &id, float v)
Definition: LMFPrimDat.cc:132
float getRMS(EcalLogicID &id)
Definition: LMFPrimDat.cc:225
LMFPrimDat & setFlag(EcalLogicID &id, int v)
Definition: LMFPrimDat.cc:201
std::string getTableName() const
Definition: LMFPrimDat.h:37
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
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