CMS 3D CMS Logo

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 <cmath>
11 
19 class LMFPrimDat : public LMFColoredTable {
20 public:
21  LMFPrimDat();
22  LMFPrimDat(oracle::occi::Environment *env, oracle::occi::Connection *conn);
24  LMFPrimDat(std::string color, std::string system);
25  LMFPrimDat(int color, std::string system);
26  LMFPrimDat(oracle::occi::Environment *env, oracle::occi::Connection *conn, std::string color, std::string system);
28  LMFPrimDat(oracle::occi::Environment *env, oracle::occi::Connection *conn, int color, std::string system);
29  LMFPrimDat(EcalDBConnection *c, int color, std::string system);
30  ~LMFPrimDat() override {}
31 
32  std::string getTableName() const override { return "LMF_" + getSystem() + "_" + getColor() + "_PRIM_DAT"; }
33 
34  LMFPrimDat &setFlag(EcalLogicID &id, int v);
35  LMFPrimDat &setMean(EcalLogicID &id, float v);
36  LMFPrimDat &setRMS(EcalLogicID &id, float v);
37  LMFPrimDat &setM3(EcalLogicID &id, float v);
38  LMFPrimDat &setPN(EcalLogicID &id, float mean, float rms, float m3);
42  LMFPrimDat &setAPDoverA(EcalLogicID &id, float mean, float rms, float m3);
46  LMFPrimDat &setAPDoverB(EcalLogicID &id, float mean, float rms, float m3);
50  LMFPrimDat &setAPDoverPn(EcalLogicID &id, float mean, float rms, float m3);
51  LMFPrimDat &setAlpha(EcalLogicID &id, float v);
52  LMFPrimDat &setBeta(EcalLogicID &id, float v);
53  LMFPrimDat &setShapeCorr(EcalLogicID &id, float v);
54 
55  float getMean(EcalLogicID &id);
56  float getRMS(EcalLogicID &id);
57  float getM3(EcalLogicID &id);
58  int getFlag(EcalLogicID &id);
59  float getAPDoverAMean(EcalLogicID &id);
60  float getAPDoverARMS(EcalLogicID &id);
61  float getAPDoverAM3(EcalLogicID &id);
62  float getAPDoverBMean(EcalLogicID &id);
63  float getAPDoverBRMS(EcalLogicID &id);
64  float getAPDoverBM3(EcalLogicID &id);
65  float getAPDoverPnMean(EcalLogicID &id);
66  float getAPDoverPnRMS(EcalLogicID &id);
67  float getAPDoverPnM3(EcalLogicID &id);
68  float getAlpha(EcalLogicID &id);
69  float getBeta(EcalLogicID &id);
70  float getShapeCorr(EcalLogicID &id);
71 
72  float getMean(int id);
73  float getRMS(int id);
74  float getM3(int id);
75  int getFlag(int id);
76  float getAPDoverAMean(int id);
77  float getAPDoverARMS(int id);
78  float getAPDoverAM3(int id);
79  float getAPDoverBMean(int id);
80  float getAPDoverBRMS(int id);
81  float getAPDoverBM3(int id);
82  float getAPDoverPnMean(int id);
83  float getAPDoverPnRMS(int id);
84  float getAPDoverPnM3(int id);
85  float getAlpha(int id);
86  float getBeta(int id);
87  float getShapeCorr(int id);
88 
89  bool isValid() override;
90  // to do: complete list of set/get methods
91 
92 private:
93  void init();
94 };
95 
96 #endif
LMFPrimDat & setBeta(EcalLogicID &id, float v)
Definition: LMFPrimDat.cc:194
LMFPrimDat & setAPDoverPnRMS(EcalLogicID &id, float v)
Definition: LMFPrimDat.cc:172
float getAPDoverPnM3(EcalLogicID &id)
Definition: LMFPrimDat.cc:222
bool isValid() override
Definition: LMFPrimDat.cc:79
float getAPDoverAM3(EcalLogicID &id)
Definition: LMFPrimDat.cc:210
LMFPrimDat & setAPDoverBMean(EcalLogicID &id, float v)
Definition: LMFPrimDat.cc:145
LMFPrimDat & setAPDoverBRMS(EcalLogicID &id, float v)
Definition: LMFPrimDat.cc:150
LMFPrimDat & setAPDoverAMean(EcalLogicID &id, float v)
Definition: LMFPrimDat.cc:123
float getAlpha(EcalLogicID &id)
Definition: LMFPrimDat.cc:228
LMFPrimDat & setAPDoverARMS(EcalLogicID &id, float v)
Definition: LMFPrimDat.cc:128
virtual std::string getSystem() const
float getAPDoverBM3(EcalLogicID &id)
Definition: LMFPrimDat.cc:216
LMFPrimDat & setAPDoverPnM3(EcalLogicID &id, float v)
Definition: LMFPrimDat.cc:162
~LMFPrimDat() override
Definition: LMFPrimDat.h:30
std::string getColor() const
float getAPDoverPnRMS(EcalLogicID &id)
Definition: LMFPrimDat.cc:220
LMFPrimDat & setAPDoverPn(EcalLogicID &id, float mean, float rms, float m3)
Definition: LMFPrimDat.cc:177
float getAPDoverPnMean(EcalLogicID &id)
Definition: LMFPrimDat.cc:218
LMFPrimDat & setAPDoverB(EcalLogicID &id, float mean, float rms, float m3)
Definition: LMFPrimDat.cc:155
LMFPrimDat & setAPDoverBM3(EcalLogicID &id, float v)
Definition: LMFPrimDat.cc:140
float getAPDoverBRMS(EcalLogicID &id)
Definition: LMFPrimDat.cc:226
LMFPrimDat & setRMS(EcalLogicID &id, float v)
Definition: LMFPrimDat.cc:101
std::string getTableName() const override
Definition: LMFPrimDat.h:32
float getAPDoverARMS(EcalLogicID &id)
Definition: LMFPrimDat.cc:214
float getBeta(EcalLogicID &id)
Definition: LMFPrimDat.cc:230
float getShapeCorr(EcalLogicID &id)
Definition: LMFPrimDat.cc:232
LMFPrimDat & setM3(EcalLogicID &id, float v)
Definition: LMFPrimDat.cc:106
int getFlag(EcalLogicID &id)
Definition: LMFPrimDat.cc:234
LMFPrimDat & setAPDoverAM3(EcalLogicID &id, float v)
Definition: LMFPrimDat.cc:118
float getRMS(EcalLogicID &id)
Definition: LMFPrimDat.cc:206
LMFPrimDat & setFlag(EcalLogicID &id, int v)
Definition: LMFPrimDat.cc:184
LMFPrimDat & setAPDoverA(EcalLogicID &id, float mean, float rms, float m3)
Definition: LMFPrimDat.cc:133
float getMean(EcalLogicID &id)
Definition: LMFPrimDat.cc:204
float getM3(EcalLogicID &id)
Definition: LMFPrimDat.cc:208
LMFPrimDat & setAPDoverPnMean(EcalLogicID &id, float v)
Definition: LMFPrimDat.cc:167
conn
Definition: getInfo.py:9
LMFPrimDat & setShapeCorr(EcalLogicID &id, float v)
Definition: LMFPrimDat.cc:199
float getAPDoverBMean(EcalLogicID &id)
Definition: LMFPrimDat.cc:224
LMFPrimDat & setPN(EcalLogicID &id, float mean, float rms, float m3)
Definition: LMFPrimDat.cc:111
LMFPrimDat & setMean(EcalLogicID &id, float v)
Definition: LMFPrimDat.cc:96
LMFPrimDat & setAlpha(EcalLogicID &id, float v)
Definition: LMFPrimDat.cc:189
void init()
Definition: LMFPrimDat.cc:52
float getAPDoverAMean(EcalLogicID &id)
Definition: LMFPrimDat.cc:212