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);
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
LMFPnPrimDat::getPNAoverBRMS
float getPNAoverBRMS(EcalLogicID &id)
Definition: LMFPnPrimDat.cc:223
LMFColoredTable
Definition: LMFColoredTable.h:20
LMFPnPrimDat::setPNAoverBRMS
LMFPnPrimDat & setPNAoverBRMS(EcalLogicID &id, float v)
Definition: LMFPnPrimDat.cc:167
SiStripPI::mean
Definition: SiStripPayloadInspectorHelper.h:169
LMFPnPrimDat::setPNAoverBMean
LMFPnPrimDat & setPNAoverBMean(EcalLogicID &id, float v)
Definition: LMFPnPrimDat.cc:162
LMFPnPrimDat::setSystem
LMFPnPrimDat & setSystem(std::string s) override
Definition: LMFPnPrimDat.cc:62
LMFPnPrimDat::init
void init()
Definition: LMFPnPrimDat.cc:89
LMFPnPrimDat::getRMS
float getRMS(EcalLogicID &id)
Definition: LMFPnPrimDat.cc:215
SiStripCommissioningClient_cfg.conn
conn
Definition: SiStripCommissioningClient_cfg.py:5
findQualityFiles.v
v
Definition: findQualityFiles.py:179
SiStripPI::rms
Definition: SiStripPayloadInspectorHelper.h:169
LMFPnPrimDat::setRMS
LMFPnPrimDat & setRMS(EcalLogicID &id, float v)
Definition: LMFPnPrimDat.cc:134
LMFColoredTable::getSystem
virtual std::string getSystem() const
Definition: LMFColoredTable.cc:48
LMFPnPrimDat::setMean
LMFPnPrimDat & setMean(EcalLogicID &id, float v)
Definition: LMFPnPrimDat.cc:129
LMFColoredTable.h
alignCSCRings.s
s
Definition: alignCSCRings.py:92
LMFPnPrimDat::setShapeCorr
LMFPnPrimDat & setShapeCorr(EcalLogicID &id, float mean)
Definition: LMFPnPrimDat.cc:150
LMFPnPrimDat::LMFPnPrimDat
LMFPnPrimDat()
Definition: LMFPnPrimDat.cc:3
EcalLogicID
Definition: EcalLogicID.h:7
web.browse_db.env
env
Definition: browse_db.py:18
LMFPnPrimDat::setM3
LMFPnPrimDat & setM3(EcalLogicID &id, float v)
Definition: LMFPnPrimDat.cc:139
LMFPnPrimDat::getM3
float getM3(EcalLogicID &id)
Definition: LMFPnPrimDat.cc:217
LMFPnPrimDat::setPNAoverBM3
LMFPnPrimDat & setPNAoverBM3(EcalLogicID &id, float v)
Definition: LMFPnPrimDat.cc:157
LMFPnPrimDat::~LMFPnPrimDat
~LMFPnPrimDat() override
Definition: LMFPnPrimDat.h:31
LMFPnPrimDat
Definition: LMFPnPrimDat.h:19
LMFPnPrimDat::setPN
LMFPnPrimDat & setPN(EcalLogicID &id, float mean, float rms, float m3)
Definition: LMFPnPrimDat.cc:144
LMFPnPrimDat::getTableName
std::string getTableName() const override
Definition: LMFPnPrimDat.h:33
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
LMFPnPrimDat::setPNAoverB
LMFPnPrimDat & setPNAoverB(EcalLogicID &id, float mean, float rms, float m3)
Definition: LMFPnPrimDat.cc:172
LMFPnPrimDat::setFlag
LMFPnPrimDat & setFlag(EcalLogicID &id, int v)
Definition: LMFPnPrimDat.cc:178
LMFPnPrimDat::isValid
bool isValid() override
Definition: LMFPnPrimDat.cc:112
LMFColoredTable::getColor
std::string getColor() const
Definition: LMFColoredTable.cc:39
LMFPnPrimDat::getPNAoverBMean
float getPNAoverBMean(EcalLogicID &id)
Definition: LMFPnPrimDat.cc:221
LMFPnPrimDat::getShapeCor
float getShapeCor(EcalLogicID &id)
Definition: LMFPnPrimDat.cc:207
LMFPnPrimDat::getMean
float getMean(EcalLogicID &id)
Definition: LMFPnPrimDat.cc:205
c
auto & c
Definition: CAHitNtupletGeneratorKernelsImpl.h:56
LMFUnique::debug
void debug()
Definition: LMFUnique.h:74
LMFPnPrimDat::getPNAoverBM3
float getPNAoverBM3(EcalLogicID &id)
Definition: LMFPnPrimDat.cc:219
LMFPnPrimDat::getFlag
int getFlag(EcalLogicID &id)
Definition: LMFPnPrimDat.cc:225
EcalDBConnection
Definition: EcalDBConnection.h:15