CMS 3D CMS Logo

MonPNPedDat.h
Go to the documentation of this file.
1 #ifndef MONPNPEDDAT_H
2 #define MONPNPEDDAT_H
3 
4 #include <map>
5 #include <stdexcept>
6 
11 
12 class MonPNPedDat : public IDataItem {
13 public:
14  friend class EcalCondDBInterface;
15  MonPNPedDat();
16  ~MonPNPedDat() override;
17 
18  // User data methods
19  inline std::string getTable() override { return "MON_PN_PED_DAT"; }
20 
21  inline void setPedMeanG1(float mean) { m_pedMeanG1 = mean; }
22  inline float getPedMeanG1() const { return m_pedMeanG1; }
23 
24  inline void setPedRMSG1(float mean) { m_pedRMSG1 = mean; }
25  inline float getPedRMSG1() const { return m_pedRMSG1; }
26 
27  inline void setPedMeanG16(float mean) { m_pedMeanG16 = mean; }
28  inline float getPedMeanG16() const { return m_pedMeanG16; }
29 
30  inline void setPedRMSG16(float mean) { m_pedRMSG16 = mean; }
31  inline float getPedRMSG16() const { return m_pedRMSG16; }
32 
33  inline void setTaskStatus(bool status) { m_taskStatus = status; }
34  inline bool getTaskStatus() const { return m_taskStatus; }
35 
36 private:
37  void prepareWrite() noexcept(false) override;
38 
39  void writeDB(const EcalLogicID* ecid, const MonPNPedDat* item, MonRunIOV* iov) noexcept(false);
40 
42 
43  void fetchData(std::map<EcalLogicID, MonPNPedDat>* fillVec, MonRunIOV* iov) noexcept(false);
44 
45  // User data
46  float m_pedMeanG1;
47  float m_pedRMSG1;
48  float m_pedMeanG16;
49  float m_pedRMSG16;
51 };
52 
53 #endif
float m_pedRMSG1
Definition: MonPNPedDat.h:47
float m_pedRMSG16
Definition: MonPNPedDat.h:49
void setPedRMSG16(float mean)
Definition: MonPNPedDat.h:30
void writeDB(const EcalLogicID *ecid, const MonPNPedDat *item, MonRunIOV *iov) noexcept(false)
Definition: MonPNPedDat.cc:42
float getPedMeanG16() const
Definition: MonPNPedDat.h:28
void fetchData(std::map< EcalLogicID, MonPNPedDat > *fillVec, MonRunIOV *iov) noexcept(false)
Definition: MonPNPedDat.cc:72
void setPedRMSG1(float mean)
Definition: MonPNPedDat.h:24
void setPedMeanG1(float mean)
Definition: MonPNPedDat.h:21
void prepareWrite() noexcept(false) override
Definition: MonPNPedDat.cc:27
float m_pedMeanG16
Definition: MonPNPedDat.h:48
void setPedMeanG16(float mean)
Definition: MonPNPedDat.h:27
bool getTaskStatus() const
Definition: MonPNPedDat.h:34
void writeArrayDB(const std::map< EcalLogicID, MonPNPedDat > *data, MonRunIOV *iov) noexcept(false)
Definition: MonPNPedDat.cc:116
bool m_taskStatus
Definition: MonPNPedDat.h:50
~MonPNPedDat() override
Definition: MonPNPedDat.cc:25
float getPedRMSG1() const
Definition: MonPNPedDat.h:25
float getPedMeanG1() const
Definition: MonPNPedDat.h:22
float getPedRMSG16() const
Definition: MonPNPedDat.h:31
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:79
void setTaskStatus(bool status)
Definition: MonPNPedDat.h:33
std::string getTable() override
Definition: MonPNPedDat.h:19
float m_pedMeanG1
Definition: MonPNPedDat.h:46