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
LMFColoredTable
Definition: LMFColoredTable.h:20
LMFPrimDat::getAPDoverAM3
float getAPDoverAM3(EcalLogicID &id)
Definition: LMFPrimDat.cc:210
LMFPrimDat::getAPDoverBMean
float getAPDoverBMean(EcalLogicID &id)
Definition: LMFPrimDat.cc:224
LMFPrimDat::getAPDoverBM3
float getAPDoverBM3(EcalLogicID &id)
Definition: LMFPrimDat.cc:216
LMFPrimDat::setAPDoverPnM3
LMFPrimDat & setAPDoverPnM3(EcalLogicID &id, float v)
Definition: LMFPrimDat.cc:162
SiStripPI::mean
Definition: SiStripPayloadInspectorHelper.h:169
LMFPrimDat::setBeta
LMFPrimDat & setBeta(EcalLogicID &id, float v)
Definition: LMFPrimDat.cc:194
LMFPrimDat::setAPDoverBRMS
LMFPrimDat & setAPDoverBRMS(EcalLogicID &id, float v)
Definition: LMFPrimDat.cc:150
LMFPrimDat::setAPDoverAMean
LMFPrimDat & setAPDoverAMean(EcalLogicID &id, float v)
Definition: LMFPrimDat.cc:123
LMFPrimDat::setAlpha
LMFPrimDat & setAlpha(EcalLogicID &id, float v)
Definition: LMFPrimDat.cc:189
LMFPrimDat::setAPDoverPnRMS
LMFPrimDat & setAPDoverPnRMS(EcalLogicID &id, float v)
Definition: LMFPrimDat.cc:172
LMFPrimDat::~LMFPrimDat
~LMFPrimDat() override
Definition: LMFPrimDat.h:30
LMFPrimDat::getAPDoverPnM3
float getAPDoverPnM3(EcalLogicID &id)
Definition: LMFPrimDat.cc:222
SiStripCommissioningClient_cfg.conn
conn
Definition: SiStripCommissioningClient_cfg.py:5
LMFPrimDat::setAPDoverBM3
LMFPrimDat & setAPDoverBM3(EcalLogicID &id, float v)
Definition: LMFPrimDat.cc:140
LMFPrimDat::setAPDoverPn
LMFPrimDat & setAPDoverPn(EcalLogicID &id, float mean, float rms, float m3)
Definition: LMFPrimDat.cc:177
LMFPrimDat::setAPDoverARMS
LMFPrimDat & setAPDoverARMS(EcalLogicID &id, float v)
Definition: LMFPrimDat.cc:128
findQualityFiles.v
v
Definition: findQualityFiles.py:179
LMFPrimDat::setAPDoverBMean
LMFPrimDat & setAPDoverBMean(EcalLogicID &id, float v)
Definition: LMFPrimDat.cc:145
SiStripPI::rms
Definition: SiStripPayloadInspectorHelper.h:169
LMFPrimDat::setAPDoverB
LMFPrimDat & setAPDoverB(EcalLogicID &id, float mean, float rms, float m3)
Definition: LMFPrimDat.cc:155
LMFPrimDat::getAPDoverARMS
float getAPDoverARMS(EcalLogicID &id)
Definition: LMFPrimDat.cc:214
LMFColoredTable::getSystem
virtual std::string getSystem() const
Definition: LMFColoredTable.cc:48
LMFColoredTable.h
LMFPrimDat::getAPDoverBRMS
float getAPDoverBRMS(EcalLogicID &id)
Definition: LMFPrimDat.cc:226
LMFPrimDat::setRMS
LMFPrimDat & setRMS(EcalLogicID &id, float v)
Definition: LMFPrimDat.cc:101
LMFPrimDat::getTableName
std::string getTableName() const override
Definition: LMFPrimDat.h:32
LMFPrimDat
Definition: LMFPrimDat.h:19
EcalLogicID
Definition: EcalLogicID.h:7
LMFPrimDat::getAPDoverPnRMS
float getAPDoverPnRMS(EcalLogicID &id)
Definition: LMFPrimDat.cc:220
LMFPrimDat::getAPDoverPnMean
float getAPDoverPnMean(EcalLogicID &id)
Definition: LMFPrimDat.cc:218
LMFPrimDat::getFlag
int getFlag(EcalLogicID &id)
Definition: LMFPrimDat.cc:234
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
web.browse_db.env
env
Definition: browse_db.py:18
LMFPrimDat::setAPDoverAM3
LMFPrimDat & setAPDoverAM3(EcalLogicID &id, float v)
Definition: LMFPrimDat.cc:118
LMFPrimDat::setM3
LMFPrimDat & setM3(EcalLogicID &id, float v)
Definition: LMFPrimDat.cc:106
LMFPrimDat::getBeta
float getBeta(EcalLogicID &id)
Definition: LMFPrimDat.cc:230
LMFPrimDat::setFlag
LMFPrimDat & setFlag(EcalLogicID &id, int v)
Definition: LMFPrimDat.cc:184
LMFPrimDat::getMean
float getMean(EcalLogicID &id)
Definition: LMFPrimDat.cc:204
LMFPrimDat::getShapeCorr
float getShapeCorr(EcalLogicID &id)
Definition: LMFPrimDat.cc:232
LMFPrimDat::setAPDoverA
LMFPrimDat & setAPDoverA(EcalLogicID &id, float mean, float rms, float m3)
Definition: LMFPrimDat.cc:133
LMFPrimDat::setAPDoverPnMean
LMFPrimDat & setAPDoverPnMean(EcalLogicID &id, float v)
Definition: LMFPrimDat.cc:167
LMFPrimDat::setMean
LMFPrimDat & setMean(EcalLogicID &id, float v)
Definition: LMFPrimDat.cc:96
LMFPrimDat::getRMS
float getRMS(EcalLogicID &id)
Definition: LMFPrimDat.cc:206
LMFPrimDat::setPN
LMFPrimDat & setPN(EcalLogicID &id, float mean, float rms, float m3)
Definition: LMFPrimDat.cc:111
LMFColoredTable::getColor
std::string getColor() const
Definition: LMFColoredTable.cc:39
LMFPrimDat::isValid
bool isValid() override
Definition: LMFPrimDat.cc:79
LMFPrimDat::init
void init()
Definition: LMFPrimDat.cc:52
LMFPrimDat::getAPDoverAMean
float getAPDoverAMean(EcalLogicID &id)
Definition: LMFPrimDat.cc:212
c
auto & c
Definition: CAHitNtupletGeneratorKernelsImpl.h:46
LMFPrimDat::LMFPrimDat
LMFPrimDat()
Definition: LMFPrimDat.cc:3
LMFPrimDat::setShapeCorr
LMFPrimDat & setShapeCorr(EcalLogicID &id, float v)
Definition: LMFPrimDat.cc:199
LMFPrimDat::getM3
float getM3(EcalLogicID &id)
Definition: LMFPrimDat.cc:208
EcalDBConnection
Definition: EcalDBConnection.h:15
LMFPrimDat::getAlpha
float getAlpha(EcalLogicID &id)
Definition: LMFPrimDat.cc:228