CMS 3D CMS Logo

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 <cmath>
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);
37  ~LMFPnPrimDat() override {}
38 
39  std::string getTableName() const override {
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);
47  LMFPnPrimDat& setShapeCorr(EcalLogicID &id, float mean);
50  LMFPnPrimDat& setPNAoverBM3(EcalLogicID &id, float v);
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() override;
75  // to do: complete list of set/get methods
76 
77  private:
78  void init();
79 };
80 
81 #endif
std::string getTableName() const override
Definition: LMFPnPrimDat.h:39
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)
LMFPnPrimDat & setSystem(std::string s) override
Definition: LMFPnPrimDat.cc:73
std::string getColor() const
bool isValid() override
LMFPnPrimDat & setRMS(EcalLogicID &id, float v)
LMFPnPrimDat & setShapeCorr(EcalLogicID &id, float mean)
~LMFPnPrimDat() override
Definition: LMFPnPrimDat.h:37
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)
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