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() noexcept(false) override;
43 
44  void writeDB(const EcalLogicID* ecid, const MonPedestalsDat* item, MonRunIOV* iov) noexcept(false);
45 
47 
48  void fetchData(std::map<EcalLogicID, MonPedestalsDat>* fillMap, MonRunIOV* iov) noexcept(false);
49 
50  // User data
51  float m_pedMeanG1;
52  float m_pedMeanG6;
53  float m_pedMeanG12;
54  float m_pedRMSG1;
55  float m_pedRMSG6;
56  float m_pedRMSG12;
58 };
59 
60 #endif
void setPedMeanG1(float mean)
float getPedRMSG6() const
void setPedRMSG6(float rms)
float getPedRMSG1() const
void setTaskStatus(bool status)
float getPedMeanG1() const
std::string getTable() override
void prepareWrite() noexcept(false) override
float getPedMeanG6() const
void setPedMeanG6(float mean)
float getPedRMSG12() const
void setPedRMSG1(float rms)
void fetchData(std::map< EcalLogicID, MonPedestalsDat > *fillMap, MonRunIOV *iov) noexcept(false)
float getPedMeanG12() const
bool getTaskStatus() const
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:80
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)
~MonPedestalsDat() override
void setPedRMSG12(float rms)