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  Copyright (c) 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);
25  LMFPrimDat(std::string color, std::string system);
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);
30  LMFPrimDat(EcalDBConnection *c, std::string color, 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 
37  std::string getTableName() const {
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  bool isValid();
80  // to do: complete list of set/get methods
81 
82  private:
83  void init();
84 };
85 
86 #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
mathSSE::Vec4< T > v
void init()
Definition: LMFPrimDat.cc:63
float getAPDoverAMean(EcalLogicID &id)
Definition: LMFPrimDat.cc:237
virtual std::string getSystem() const