CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups 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
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 
46  void writeArrayDB(const std::map<EcalLogicID, MonPedestalsDat>* data, MonRunIOV* iov) noexcept(false);
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 getPedRMSG1() const
list status
Definition: mps_update.py:107
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
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:79
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)