CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
RunDCSMagnetDat.h
Go to the documentation of this file.
1 #ifndef RUNDCSMAGNET_H
2 #define RUNDCSMAGNET_H
3 
4 #include <vector>
5 #include <stdexcept>
6 
14 
15 class RunDCSMagnetDat : public IDataItem {
16  public:
18 
19  friend class EcalCondDBInterface;
22 
23  // User data methods
24  inline std::string getTable() { return "CMSFWMAGNET_LV"; }
25  inline std::string getMagnetAccount() { return "CMS_DCS_ENV_PVSS_COND"; }
26  inline void setMagnetCurrent(float t) { m_current = t; }
27  inline float getMagnetCurrent() const { return m_current; }
28 
29  void setTime(const Tm& start);
30  Tm getTime() const;
31 
32  private:
34 
35  int nowMicroseconds();
36 
37  void fillTheMap(ResultSet *, std::map< EcalLogicID, RunDCSMagnetDat >* );
38 
39  void prepareWrite()
40  throw(std::runtime_error);
41 
43  throw(std::runtime_error);
44 
45  void fetchData(std::map< EcalLogicID, RunDCSMagnetDat >* fillMap, RunIOV* iov)
46  throw(std::runtime_error);
47 
48  void fetchLastData(std::map< EcalLogicID, RunDCSMagnetDat >* fillMap)
49  throw(std::runtime_error);
50 
51 
52  // User data
53  float m_current;
55 
56 };
57 
58 #endif
tuple t
Definition: tree.py:139
tuple start
Check for commandline option errors.
Definition: dqm_diff.py:58
std::string getMagnetAccount()
void writeDB(const EcalLogicID *ecid, const RunDCSMagnetDat *item, RunIOV *iov)
float getMagnetCurrent() const
tuple iov
Definition: o2o.py:307
std::string getTable()
void fetchLastData(std::map< EcalLogicID, RunDCSMagnetDat > *fillMap)
void setMagnetCurrent(float t)
oracle::occi::ResultSet ResultSet
void fillTheMap(ResultSet *, std::map< EcalLogicID, RunDCSMagnetDat > *)
string const
Definition: compareJSON.py:14
oracle::occi::ResultSet ResultSet
Definition: HcalDbOmds.cc:26
void fetchData(std::map< EcalLogicID, RunDCSMagnetDat > *fillMap, RunIOV *iov)
ResultSet * getMagnetRset()
void setTime(const Tm &start)
Definition: RunIOV.h:13
Definition: Tm.h:13
Tm getTime() const