CMS 3D CMS Logo

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  noexcept(false);
44 
45  void writeDB(const EcalLogicID* ecid, const MonPedestalsDat* item, MonRunIOV* iov)
46  noexcept(false);
47 
48 
49  void writeArrayDB(const std::map< EcalLogicID, MonPedestalsDat>* data, MonRunIOV* iov)
50  noexcept(false);
51 
52 
53  void fetchData(std::map< EcalLogicID, MonPedestalsDat >* fillMap, MonRunIOV* iov)
54  noexcept(false);
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 setPedMeanG1(float mean)
float getPedRMSG1() const
#define noexcept
void setPedRMSG6(float rms)
void setTaskStatus(bool status)
float getPedMeanG12() const
std::string getTable()
float getPedRMSG12() const
void setPedMeanG6(float mean)
void prepareWrite() noexcept(false)
bool getTaskStatus() const
void setPedRMSG1(float rms)
void fetchData(std::map< EcalLogicID, MonPedestalsDat > *fillMap, MonRunIOV *iov) noexcept(false)
float getPedMeanG1() const
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:82
float getPedMeanG6() const
void setPedMeanG12(float mean)
void writeDB(const EcalLogicID *ecid, const MonPedestalsDat *item, MonRunIOV *iov) noexcept(false)
void writeArrayDB(const std::map< EcalLogicID, MonPedestalsDat > *data, MonRunIOV *iov) noexcept(false)
float getPedRMSG6() const
void setPedRMSG12(float rms)