CMS 3D CMS Logo

LMFClsDat.h
Go to the documentation of this file.
1 #ifndef LMFCLSDAT_H
2 #define LMFCLSDAT_H
3 
4 /*
5  Last updated by Giovanni.Organtini@roma1.infn.it 2010
6  */
7 
9 
10 #include <cmath>
11 
18 class LMFClsDat : public LMFColoredTable {
19 public:
20  typedef oracle::occi::ResultSet ResultSet;
21  typedef oracle::occi::Statement Statement;
22 
23  LMFClsDat();
24  LMFClsDat(oracle::occi::Environment *env, oracle::occi::Connection *conn);
26  LMFClsDat(std::string color);
27  LMFClsDat(int color);
28  LMFClsDat(oracle::occi::Environment *env, oracle::occi::Connection *conn, std::string color);
30  LMFClsDat(oracle::occi::Environment *env, oracle::occi::Connection *conn, int color);
31  LMFClsDat(EcalDBConnection *c, int color);
32  ~LMFClsDat() override {}
33 
34  std::string getTableName() const override { return "LMF_CLS_" + getColor() + "_DAT"; }
35 
36  LMFClsDat &setSystem(int system) override { return *this; }
37  LMFClsDat &setSystem(std::string system) override { return *this; }
38 
40  LMFClsDat &setMean(EcalLogicID &id, float v);
41  LMFClsDat &setNorm(EcalLogicID &id, float v);
42  LMFClsDat &setENorm(EcalLogicID &id, float v);
43  LMFClsDat &setRMS(EcalLogicID &id, float v);
44  LMFClsDat &setNevt(EcalLogicID &id, int v);
45  LMFClsDat &setFlag(EcalLogicID &id, int v);
46  LMFClsDat &setFlagNorm(EcalLogicID &id, float v);
47 
49  float getMean(EcalLogicID &id);
50  float getNorm(EcalLogicID &id);
51  float getENorm(EcalLogicID &id);
52  float getRMS(EcalLogicID &id);
53  int getNevt(EcalLogicID &id);
54  int getFlag(EcalLogicID &id);
55  float getFlagNorm(EcalLogicID &id);
56 
57  std::string getSystem() const override { return ""; }
58 
59  bool isValid() override;
60  // to do: complete list of set/get methods
61 
62 private:
63  void init();
64 };
65 
66 #endif
LMFColoredTable
Definition: LMFColoredTable.h:20
LMFClsDat::setFlagNorm
LMFClsDat & setFlagNorm(EcalLogicID &id, float v)
Definition: LMFClsDat.cc:106
LMFClsDat::getFlagNorm
float getFlagNorm(EcalLogicID &id)
Definition: LMFClsDat.cc:125
LMFClsDat::getSystem
std::string getSystem() const override
Definition: LMFClsDat.h:57
LMFClsDat::setLMFRefRunIOVID
LMFClsDat & setLMFRefRunIOVID(EcalLogicID &id, int v)
Definition: LMFClsDat.cc:71
LMFClsDat::getLMFRefRunIOVID
int getLMFRefRunIOVID(EcalLogicID &id)
Definition: LMFClsDat.cc:111
LMFClsDat::setSystem
LMFClsDat & setSystem(std::string system) override
Definition: LMFClsDat.h:37
LMFClsDat::getNorm
float getNorm(EcalLogicID &id)
Definition: LMFClsDat.cc:115
LMFClsDat::setSystem
LMFClsDat & setSystem(int system) override
Definition: LMFClsDat.h:36
SiStripCommissioningClient_cfg.conn
conn
Definition: SiStripCommissioningClient_cfg.py:5
LMFClsDat::getFlag
int getFlag(EcalLogicID &id)
Definition: LMFClsDat.cc:123
LMFClsDat::setRMS
LMFClsDat & setRMS(EcalLogicID &id, float v)
Definition: LMFClsDat.cc:91
findQualityFiles.v
v
Definition: findQualityFiles.py:179
LMFClsDat::getENorm
float getENorm(EcalLogicID &id)
Definition: LMFClsDat.cc:117
LMFColoredTable.h
LMFClsDat::setENorm
LMFClsDat & setENorm(EcalLogicID &id, float v)
Definition: LMFClsDat.cc:86
LMFClsDat::init
void init()
Definition: LMFClsDat.cc:43
LMFClsDat::isValid
bool isValid() override
Definition: LMFClsDat.cc:62
EcalLogicID
Definition: EcalLogicID.h:7
LMFClsDat::~LMFClsDat
~LMFClsDat() override
Definition: LMFClsDat.h:32
LMFClsDat::ResultSet
oracle::occi::ResultSet ResultSet
Definition: LMFClsDat.h:20
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
web.browse_db.env
env
Definition: browse_db.py:18
LMFClsDat::getMean
float getMean(EcalLogicID &id)
Definition: LMFClsDat.cc:113
LMFClsDat::getNevt
int getNevt(EcalLogicID &id)
Definition: LMFClsDat.cc:121
LMFClsDat::LMFClsDat
LMFClsDat()
Definition: LMFClsDat.cc:3
LMFClsDat::setNevt
LMFClsDat & setNevt(EcalLogicID &id, int v)
Definition: LMFClsDat.cc:96
LMFClsDat::setNorm
LMFClsDat & setNorm(EcalLogicID &id, float v)
Definition: LMFClsDat.cc:81
LMFClsDat::getTableName
std::string getTableName() const override
Definition: LMFClsDat.h:34
LMFClsDat::getRMS
float getRMS(EcalLogicID &id)
Definition: LMFClsDat.cc:119
LMFClsDat::setFlag
LMFClsDat & setFlag(EcalLogicID &id, int v)
Definition: LMFClsDat.cc:101
LMFColoredTable::getColor
std::string getColor() const
Definition: LMFColoredTable.cc:39
LMFClsDat::setMean
LMFClsDat & setMean(EcalLogicID &id, float v)
Definition: LMFClsDat.cc:76
c
auto & c
Definition: CAHitNtupletGeneratorKernelsImpl.h:46
LMFClsDat
Definition: LMFClsDat.h:18
LMFClsDat::Statement
oracle::occi::Statement Statement
Definition: LMFClsDat.h:21
EcalDBConnection
Definition: EcalDBConnection.h:15