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 
11 
12 
14 #include "CoralBase/TimeStamp.h"
25 
26 struct dbread{
27  float alias;
28  float value;
29 };
30 
31 
32 class RPCFw : virtual public RPCDBCom
33 {
34 public:
35  RPCFw( const std::string& connectionString,
36  const std::string& userName,
37  const std::string& password);
38  virtual ~RPCFw();
39  void run();
40 
41  coral::TimeStamp UTtoT(long long utime);
42  unsigned long long TtoUT(const coral::TimeStamp& time);
43 
44  coral::TimeStamp tMIN;
45  coral::TimeStamp tMAX;
46  unsigned long long N_IOV;
47 
48  std::vector<RPCObImon::I_Item> createIMON(long long since, long long till);
49  std::vector<RPCObVmon::V_Item> createVMON(long long from, long long till);
50  std::vector<RPCObStatus::S_Item> createSTATUS(long long since, long long till);
51  std::vector<RPCObGas::Item> createGAS(long long since, long long till);
52  std::vector<RPCObTemp::T_Item> createT(long long since, long long till);
53  std::vector<RPCObPVSSmap::Item> createIDMAP();
54  std::vector<RPCObFebmap::Feb_Item> createFEB(long long since, long long till);
55  std::vector<RPCObUXC::Item> createUXC(long long since, long long till);
56  std::vector<RPCObGasMix::Item> createMix(long long since, long long till);
57  bool isMajor(const coral::TimeStamp& fir, const coral::TimeStamp& sec);
58 
59 private:
63 };
64 
65 #endif
std::string m_userName
Definition: RPCFw.h:61
Definition: RPCFw.h:32
unsigned long long N_IOV
Definition: RPCFw.h:46
Definition: RPCFw.h:26
coral::TimeStamp tMAX
Definition: RPCFw.h:45
float value
Definition: RPCFw.h:28
std::string m_password
Definition: RPCFw.h:62
float alias
Definition: RPCFw.h:27
std::string m_connectionString
Definition: RPCFw.h:60
coral::TimeStamp tMIN
Definition: RPCFw.h:44