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()
38  noexcept(false) override;
39 
40  void writeDB(const EcalLogicID* ecid, const MonPNPedDat* item, MonRunIOV* iov)
41  noexcept(false);
42 
43  void writeArrayDB(const std::map< EcalLogicID, MonPNPedDat >* data, MonRunIOV* iov)
44  noexcept(false);
45 
46 
47 
48  void fetchData(std::map< EcalLogicID, MonPNPedDat >* fillVec, MonRunIOV* iov)
49  noexcept(false);
50 
51  // User data
52  float m_pedMeanG1;
53  float m_pedRMSG1;
54  float m_pedMeanG16;
55  float m_pedRMSG16;
57 };
58 
59 #endif
float m_pedRMSG1
Definition: MonPNPedDat.h:53
float m_pedRMSG16
Definition: MonPNPedDat.h:55
float getPedRMSG1() const
Definition: MonPNPedDat.h:25
void setPedRMSG16(float mean)
Definition: MonPNPedDat.h:30
void writeDB(const EcalLogicID *ecid, const MonPNPedDat *item, MonRunIOV *iov) noexcept(false)
Definition: MonPNPedDat.cc:52
#define noexcept
void fetchData(std::map< EcalLogicID, MonPNPedDat > *fillVec, MonRunIOV *iov) noexcept(false)
Definition: MonPNPedDat.cc:82
void setPedRMSG1(float mean)
Definition: MonPNPedDat.h:24
void setPedMeanG1(float mean)
Definition: MonPNPedDat.h:21
void prepareWrite() noexcept(false) override
Definition: MonPNPedDat.cc:34
float m_pedMeanG16
Definition: MonPNPedDat.h:54
void setPedMeanG16(float mean)
Definition: MonPNPedDat.h:27
void writeArrayDB(const std::map< EcalLogicID, MonPNPedDat > *data, MonRunIOV *iov) noexcept(false)
Definition: MonPNPedDat.cc:128
bool m_taskStatus
Definition: MonPNPedDat.h:56
~MonPNPedDat() override
Definition: MonPNPedDat.cc:28
float getPedRMSG16() const
Definition: MonPNPedDat.h:31
float getPedMeanG16() const
Definition: MonPNPedDat.h:28
bool getTaskStatus() const
Definition: MonPNPedDat.h:34
float getPedMeanG1() const
Definition: MonPNPedDat.h:22
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:82
void setTaskStatus(bool status)
Definition: MonPNPedDat.h:33
std::string getTable() override
Definition: MonPNPedDat.h:19
float m_pedMeanG1
Definition: MonPNPedDat.h:52