CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
LMFPnPrimDat.h
Go to the documentation of this file.
1 #ifndef LMFPNPRIMDAT_H
2 #define LMFPNPRIMDAT_H
3 
4 /*
5  Last updated by Giovanni.Organtini@roma1.infn.it 2010
6  */
7 
9 
10 #include <math.h>
11 
19 class LMFPnPrimDat : public LMFColoredTable {
20  public:
21  LMFPnPrimDat();
22  LMFPnPrimDat(oracle::occi::Environment* env,
23  oracle::occi::Connection* conn);
26  LMFPnPrimDat(oracle::occi::Environment* env,
27  oracle::occi::Connection* conn, std::string color,
28  std::string system);
31  bool debug);
32  LMFPnPrimDat(int color, std::string system);
33  LMFPnPrimDat(oracle::occi::Environment* env,
34  oracle::occi::Connection* conn, int color,
35  std::string system);
36  LMFPnPrimDat(EcalDBConnection *c, int color, std::string system);
38 
40  return "LMF_" + getSystem() + "_" + getColor() + "_PN_PRIM_DAT";
41  }
42 
43  LMFPnPrimDat& setMean(EcalLogicID &id, float v);
44  LMFPnPrimDat& setRMS(EcalLogicID &id, float v);
45  LMFPnPrimDat& setM3(EcalLogicID &id, float v);
46  LMFPnPrimDat& setPN(EcalLogicID &id, float mean, float rms, float m3);
51  LMFPnPrimDat& setPNAoverB(EcalLogicID &id, float mean, float rms, float m3);
52  LMFPnPrimDat& setFlag(EcalLogicID &id, int v);
53 
55 
56  float getMean(EcalLogicID &id);
57  float getRMS(EcalLogicID &id);
58  float getM3(EcalLogicID &id);
59  float getPNAoverBMean(EcalLogicID &id);
60  float getPNAoverBRMS(EcalLogicID &id);
61  float getPNAoverBM3(EcalLogicID &id);
62  float getShapeCor(EcalLogicID &id);
63  int getFlag(EcalLogicID &id);
64 
65  float getMean(int id);
66  float getRMS(int id);
67  float getM3(int id);
68  float getPNAoverBMean(int id);
69  float getPNAoverBRMS(int id);
70  float getPNAoverBM3(int id);
71  float getShapeCor(int id);
72  int getFlag(int id);
73 
74  bool isValid();
75  // to do: complete list of set/get methods
76 
77  private:
78  void init();
79 };
80 
81 #endif
int getFlag(EcalLogicID &id)
float getM3(EcalLogicID &id)
LMFPnPrimDat & setPN(EcalLogicID &id, float mean, float rms, float m3)
float getMean(EcalLogicID &id)
float getShapeCor(EcalLogicID &id)
std::string getColor() const
LMFPnPrimDat & setRMS(EcalLogicID &id, float v)
LMFPnPrimDat & setShapeCorr(EcalLogicID &id, float mean)
LMFPnPrimDat & setSystem(std::string s)
Definition: LMFPnPrimDat.cc:73
LMFPnPrimDat & setM3(EcalLogicID &id, float v)
LMFPnPrimDat & setFlag(EcalLogicID &id, int v)
float getPNAoverBM3(EcalLogicID &id)
float getPNAoverBMean(EcalLogicID &id)
float getPNAoverBRMS(EcalLogicID &id)
LMFPnPrimDat & setPNAoverB(EcalLogicID &id, float mean, float rms, float m3)
std::string getTableName() const
Definition: LMFPnPrimDat.h:39
LMFPnPrimDat & setPNAoverBMean(EcalLogicID &id, float v)
LMFPnPrimDat & setPNAoverBRMS(EcalLogicID &id, float v)
void debug()
Definition: LMFUnique.h:68
float getRMS(EcalLogicID &id)
LMFPnPrimDat & setPNAoverBM3(EcalLogicID &id, float v)
LMFPnPrimDat & setMean(EcalLogicID &id, float v)
virtual std::string getSystem() const