CMS 3D CMS Logo

LMFRunDat.h
Go to the documentation of this file.
1 #ifndef LMFRUNDAT_H
2 #define LMFRUNDAT_H
3 
4 #include <cmath>
5 
6 /*
7  Last updated by Giovanni.Organtini@roma1.infn.it 2010
8 */
9 
11 
15 class LMFRunDat : public LMFDat {
16 public:
17  LMFRunDat();
19  LMFRunDat(oracle::occi::Environment *env, oracle::occi::Connection *conn);
20  ~LMFRunDat() override {}
21 
22  int getEvents(const EcalLogicID &id) { return (int)rint(LMFDat::getData(id, "NEVENTS")); }
23  int getEvents(int id) { return (int)rint(LMFDat::getData(id, "NEVENTS")); }
24  int getQualityFlag(const EcalLogicID &id) { return (int)rint(LMFDat::getData(id, "QUALITY_FLAG")); }
25  int getQualityFlag(int id) { return (int)rint(LMFDat::getData(id, "QUALITY_FLAG")); }
26  LMFRunDat &setEvents(const EcalLogicID &id, int n) {
27  LMFDat::setData(id, "NEVENTS", (float)n);
28  return *this;
29  }
31  LMFDat::setData(id, "QUALITY_FLAG", (float)q);
32  return *this;
33  }
34  LMFRunDat &setData(const EcalLogicID &id, int n, int q) {
35  LMFDat::setData(id, "NEVENTS", (float)n);
36  LMFDat::setData(id, "QUALITY_FLAG", (float)q);
37  return *this;
38  }
39  LMFRunDat &Data(const EcalLogicID &id, const std::vector<float> &v) {
40  LMFDat::setData(id, v);
41  return *this;
42  }
43 
44 protected:
45 };
46 
47 #endif
LMFDat.h
LMFDat::getData
std::map< int, std::vector< float > > getData()
Definition: LMFDat.cc:559
dqmiodumpmetadata.n
n
Definition: dqmiodumpmetadata.py:28
data-class-funcs.q
q
Definition: data-class-funcs.py:169
SiStripCommissioningClient_cfg.conn
conn
Definition: SiStripCommissioningClient_cfg.py:5
LMFRunDat
Definition: LMFRunDat.h:15
findQualityFiles.v
v
Definition: findQualityFiles.py:179
LMFRunDat::Data
LMFRunDat & Data(const EcalLogicID &id, const std::vector< float > &v)
Definition: LMFRunDat.h:39
LMFRunDat::getQualityFlag
int getQualityFlag(int id)
Definition: LMFRunDat.h:25
LMFDat
Definition: LMFDat.h:18
LMFRunDat::~LMFRunDat
~LMFRunDat() override
Definition: LMFRunDat.h:20
EcalLogicID
Definition: EcalLogicID.h:7
LMFRunDat::LMFRunDat
LMFRunDat()
Definition: LMFRunDat.cc:3
LMFDat::setData
LMFDat & setData(int logic_id, const std::vector< float > &data)
Definition: LMFDat.h:49
LMFRunDat::getQualityFlag
int getQualityFlag(const EcalLogicID &id)
Definition: LMFRunDat.h:24
web.browse_db.env
env
Definition: browse_db.py:18
LMFRunDat::setQualityFlag
LMFRunDat & setQualityFlag(const EcalLogicID &id, int q)
Definition: LMFRunDat.h:30
LMFRunDat::setEvents
LMFRunDat & setEvents(const EcalLogicID &id, int n)
Definition: LMFRunDat.h:26
LMFRunDat::getEvents
int getEvents(int id)
Definition: LMFRunDat.h:23
LMFRunDat::getEvents
int getEvents(const EcalLogicID &id)
Definition: LMFRunDat.h:22
LMFRunDat::setData
LMFRunDat & setData(const EcalLogicID &id, int n, int q)
Definition: LMFRunDat.h:34
EcalDBConnection
Definition: EcalDBConnection.h:15