test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
MonPedestalsDat.h
Go to the documentation of this file.
1 #ifndef MONPEDESTALSDAT_H
2 #define MONPEDESTALSDAT_H
3 
4 #include <vector>
5 #include <stdexcept>
6 
10 
11 class MonPedestalsDat : public IDataItem {
12  public:
13  friend class EcalCondDBInterface; // XXX temp should not need
16 
17  // User data methods
18  inline std::string getTable() { return "MON_PEDESTALS_DAT"; }
19 
20  inline void setPedMeanG1(float mean) { m_pedMeanG1 = mean; }
21  inline float getPedMeanG1() const { return m_pedMeanG1; }
22 
23  inline void setPedMeanG6(float mean) { m_pedMeanG6 = mean; }
24  inline float getPedMeanG6() const { return m_pedMeanG6; }
25 
26  inline void setPedMeanG12(float mean) { m_pedMeanG12 = mean; }
27  inline float getPedMeanG12() const { return m_pedMeanG12; }
28 
29  inline void setPedRMSG1(float rms) { m_pedRMSG1 = rms; }
30  inline float getPedRMSG1() const { return m_pedRMSG1; }
31 
32  inline void setPedRMSG6(float rms) { m_pedRMSG6 = rms; }
33  inline float getPedRMSG6() const { return m_pedRMSG6; }
34 
35  inline void setPedRMSG12(float rms) { m_pedRMSG12 = rms; }
36  inline float getPedRMSG12() const { return m_pedRMSG12; }
37 
38  inline void setTaskStatus(bool status) { m_taskStatus = status; }
39  inline bool getTaskStatus() const { return m_taskStatus; }
40 
41  private:
42  void prepareWrite()
43  throw(std::runtime_error);
44 
46  throw(std::runtime_error);
47 
48 
50  throw(std::runtime_error);
51 
52 
53  void fetchData(std::map< EcalLogicID, MonPedestalsDat >* fillMap, MonRunIOV* iov)
54  throw(std::runtime_error);
55 
56  // User data
57  float m_pedMeanG1;
58  float m_pedMeanG6;
59  float m_pedMeanG12;
60  float m_pedRMSG1;
61  float m_pedRMSG6;
62  float m_pedRMSG12;
64 };
65 
66 #endif
void fetchData(std::map< EcalLogicID, MonPedestalsDat > *fillMap, MonRunIOV *iov)
void setPedMeanG1(float mean)
float getPedRMSG1() const
void setPedRMSG6(float rms)
void setTaskStatus(bool status)
float getPedMeanG12() const
tuple iov
Definition: o2o.py:307
std::string getTable()
float getPedRMSG12() const
void setPedMeanG6(float mean)
bool getTaskStatus() const
void writeArrayDB(const std::map< EcalLogicID, MonPedestalsDat > *data, MonRunIOV *iov)
void setPedRMSG1(float rms)
void writeDB(const EcalLogicID *ecid, const MonPedestalsDat *item, MonRunIOV *iov)
string const
Definition: compareJSON.py:14
float getPedMeanG1() const
float getPedMeanG6() const
void setPedMeanG12(float mean)
float getPedRMSG6() const
void setPedRMSG12(float rms)
tuple status
Definition: mps_update.py:57