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, oracle::occi::Connection *conn);
24  LMFPnPrimDat(std::string color, std::string system);
25  LMFPnPrimDat(oracle::occi::Environment *env, oracle::occi::Connection *conn, std::string color, std::string system);
28  LMFPnPrimDat(int color, std::string system);
29  LMFPnPrimDat(oracle::occi::Environment *env, oracle::occi::Connection *conn, int color, std::string system);
30  LMFPnPrimDat(EcalDBConnection *c, int color, std::string system);
31  ~LMFPnPrimDat() override {}
32 
33  std::string getTableName() const override { return "LMF_" + getSystem() + "_" + getColor() + "_PN_PRIM_DAT"; }
34 
35  LMFPnPrimDat &setMean(EcalLogicID &id, float v);
36  LMFPnPrimDat &setRMS(EcalLogicID &id, float v);
37  LMFPnPrimDat &setM3(EcalLogicID &id, float v);
38  LMFPnPrimDat &setPN(EcalLogicID &id, float mean, float rms, float m3);
39  LMFPnPrimDat &setShapeCorr(EcalLogicID &id, float mean);
42  LMFPnPrimDat &setPNAoverBM3(EcalLogicID &id, float v);
43  LMFPnPrimDat &setPNAoverB(EcalLogicID &id, float mean, float rms, float m3);
44  LMFPnPrimDat &setFlag(EcalLogicID &id, int v);
45 
47 
48  float getMean(EcalLogicID &id);
49  float getRMS(EcalLogicID &id);
50  float getM3(EcalLogicID &id);
51  float getPNAoverBMean(EcalLogicID &id);
52  float getPNAoverBRMS(EcalLogicID &id);
53  float getPNAoverBM3(EcalLogicID &id);
54  float getShapeCor(EcalLogicID &id);
55  int getFlag(EcalLogicID &id);
56 
57  float getMean(int id);
58  float getRMS(int id);
59  float getM3(int id);
60  float getPNAoverBMean(int id);
61  float getPNAoverBRMS(int id);
62  float getPNAoverBM3(int id);
63  float getShapeCor(int id);
64  int getFlag(int id);
65 
66  bool isValid() override;
67  // to do: complete list of set/get methods
68 
69 private:
70  void init();
71 };
72 
73 #endif
std::string getTableName() const override
Definition: LMFPnPrimDat.h:33
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:62
std::string getColor() const
bool isValid() override
LMFPnPrimDat & setRMS(EcalLogicID &id, float v)
LMFPnPrimDat & setShapeCorr(EcalLogicID &id, float mean)
~LMFPnPrimDat() override
Definition: LMFPnPrimDat.h:31
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:70
float getRMS(EcalLogicID &id)
LMFPnPrimDat & setPNAoverBM3(EcalLogicID &id, float v)
LMFPnPrimDat & setMean(EcalLogicID &id, float v)
virtual std::string getSystem() const