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
15  ~MonPedestalsDat() override;
16 
17  // User data methods
18  inline std::string getTable() override { 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) override;
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
void setPedRMSG6(float rms)
void setTaskStatus(bool status)
float getPedMeanG12() const
std::string getTable() override
float getPedRMSG12() const
void prepareWrite() noexcept(false) override
void setPedMeanG6(float mean)
bool getTaskStatus() const
#define noexcept
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
~MonPedestalsDat() override
void setPedRMSG12(float rms)