CMS 3D CMS Logo

RPCFw.h
Go to the documentation of this file.
1 #ifndef RPC_DB_FW_H
2 #define RPC_DB_FW_H
3 
4 /*
5  * \class RPCFw
6  * Reads data from OMDS and creates conditioning objects
7  *
8  * \author D. Pagano - Dip. Fis. Nucl. e Teo. & INFN Pavia
9  */
10 
12 #include "CoralBase/TimeStamp.h"
23 
24 struct dbread {
25  float alias;
26  float value;
27 };
28 
29 class RPCFw : virtual public RPCDBCom {
30 public:
32  ~RPCFw() override;
33  void run() override;
34 
35  coral::TimeStamp UTtoT(long long utime);
36  unsigned long long TtoUT(const coral::TimeStamp& time);
37 
38  coral::TimeStamp tMIN;
39  coral::TimeStamp tMAX;
40  unsigned long long N_IOV;
41 
42  std::vector<RPCObImon::I_Item> createIMON(long long since, long long till);
43  std::vector<RPCObVmon::V_Item> createVMON(long long from, long long till);
44  std::vector<RPCObStatus::S_Item> createSTATUS(long long since, long long till);
45  std::vector<RPCObGas::Item> createGAS(long long since, long long till);
46  std::vector<RPCObTemp::T_Item> createT(long long since, long long till);
47  std::vector<RPCObPVSSmap::Item> createIDMAP();
48  std::vector<RPCObFebmap::Feb_Item> createFEB(long long since, long long till);
49  std::vector<RPCObUXC::Item> createUXC(long long since, long long till);
50  std::vector<RPCObGasMix::Item> createMix(long long since, long long till);
51  bool isMajor(const coral::TimeStamp& fir, const coral::TimeStamp& sec);
52 
53 private:
57 };
58 
59 #endif
unsigned long long TtoUT(const coral::TimeStamp &time)
Definition: RPCFw.cc:1845
std::string m_userName
Definition: RPCFw.h:55
std::vector< RPCObGasMix::Item > createMix(long long since, long long till)
Definition: RPCFw.cc:1601
bool isMajor(const coral::TimeStamp &fir, const coral::TimeStamp &sec)
Definition: RPCFw.cc:1874
Definition: RPCFw.h:29
std::vector< RPCObFebmap::Feb_Item > createFEB(long long since, long long till)
Definition: RPCFw.cc:618
~RPCFw() override
Definition: RPCFw.cc:33
void run() override
Definition: RPCFw.cc:35
RPCFw(const std::string &connectionString, const std::string &userName, const std::string &password)
Definition: RPCFw.cc:30
std::vector< RPCObUXC::Item > createUXC(long long since, long long till)
Definition: RPCFw.cc:1487
unsigned long long N_IOV
Definition: RPCFw.h:40
std::vector< RPCObPVSSmap::Item > createIDMAP()
Definition: RPCFw.cc:530
Definition: RPCFw.h:24
std::vector< RPCObGas::Item > createGAS(long long since, long long till)
Definition: RPCFw.cc:278
coral::TimeStamp UTtoT(long long utime)
Definition: RPCFw.cc:1714
std::vector< RPCObVmon::V_Item > createVMON(long long from, long long till)
Definition: RPCFw.cc:118
coral::TimeStamp tMAX
Definition: RPCFw.h:39
std::vector< RPCObStatus::S_Item > createSTATUS(long long since, long long till)
Definition: RPCFw.cc:199
std::vector< RPCObTemp::T_Item > createT(long long since, long long till)
Definition: RPCFw.cc:446
float value
Definition: RPCFw.h:26
std::string m_password
Definition: RPCFw.h:56
float alias
Definition: RPCFw.h:25
std::vector< RPCObImon::I_Item > createIMON(long long since, long long till)
Definition: RPCFw.cc:38
std::string m_connectionString
Definition: RPCFw.h:54
coral::TimeStamp tMIN
Definition: RPCFw.h:38