CMS 3D CMS Logo

MonPNIRedDat.h
Go to the documentation of this file.
1 #ifndef MONPNIREDDAT_H
2 #define MONPNIREDDAT_H
3 
4 #include <map>
5 #include <stdexcept>
6 
11 
12 class MonPNIRedDat : public IDataItem {
13 public:
14  friend class EcalCondDBInterface;
15  MonPNIRedDat();
16  ~MonPNIRedDat() override;
17 
18  // User data methods
19  inline std::string getTable() override { return "MON_PN_IRED_DAT"; }
20 
21  inline void setADCMeanG1(float mean) { m_adcMeanG1 = mean; }
22  inline float getADCMeanG1() const { return m_adcMeanG1; }
23 
24  inline void setADCRMSG1(float mean) { m_adcRMSG1 = mean; }
25  inline float getADCRMSG1() const { return m_adcRMSG1; }
26 
27  inline void setADCMeanG16(float mean) { m_adcMeanG16 = mean; }
28  inline float getADCMeanG16() const { return m_adcMeanG16; }
29 
30  inline void setADCRMSG16(float mean) { m_adcRMSG16 = mean; }
31  inline float getADCRMSG16() const { return m_adcRMSG16; }
32 
33  inline void setPedMeanG1(float mean) { m_pedMeanG1 = mean; }
34  inline float getPedMeanG1() const { return m_pedMeanG1; }
35 
36  inline void setPedRMSG1(float mean) { m_pedRMSG1 = mean; }
37  inline float getPedRMSG1() const { return m_pedRMSG1; }
38 
39  inline void setPedMeanG16(float mean) { m_pedMeanG16 = mean; }
40  inline float getPedMeanG16() const { return m_pedMeanG16; }
41 
42  inline void setPedRMSG16(float mean) { m_pedRMSG16 = mean; }
43  inline float getPedRMSG16() const { return m_pedRMSG16; }
44 
45  inline void setTaskStatus(bool status) { m_taskStatus = status; }
46  inline bool getTaskStatus() const { return m_taskStatus; }
47 
48 private:
49  void prepareWrite() noexcept(false) override;
50 
51  void writeDB(const EcalLogicID* ecid, const MonPNIRedDat* item, MonRunIOV* iov) noexcept(false);
52 
53  void writeArrayDB(const std::map<EcalLogicID, MonPNIRedDat>* data, MonRunIOV* iov) noexcept(false);
54 
55  void fetchData(std::map<EcalLogicID, MonPNIRedDat>* fillVec, MonRunIOV* iov) noexcept(false);
56 
57  // User data
58  float m_adcMeanG1;
59  float m_adcRMSG1;
60  float m_adcMeanG16;
61  float m_adcRMSG16;
62  float m_pedMeanG1;
63  float m_pedRMSG1;
64  float m_pedMeanG16;
65  float m_pedRMSG16;
67 };
68 
69 #endif
void setADCRMSG16(float mean)
Definition: MonPNIRedDat.h:30
void setPedRMSG16(float mean)
Definition: MonPNIRedDat.h:42
float getADCMeanG16() const
Definition: MonPNIRedDat.h:28
void writeArrayDB(const std::map< EcalLogicID, MonPNIRedDat > *data, MonRunIOV *iov) noexcept(false)
void setADCMeanG16(float mean)
Definition: MonPNIRedDat.h:27
float m_adcMeanG16
Definition: MonPNIRedDat.h:60
float m_adcRMSG16
Definition: MonPNIRedDat.h:61
float getADCMeanG1() const
Definition: MonPNIRedDat.h:22
float m_adcRMSG1
Definition: MonPNIRedDat.h:59
float m_pedRMSG16
Definition: MonPNIRedDat.h:65
float getPedMeanG1() const
Definition: MonPNIRedDat.h:34
void setADCMeanG1(float mean)
Definition: MonPNIRedDat.h:21
bool getTaskStatus() const
Definition: MonPNIRedDat.h:46
float getPedMeanG16() const
Definition: MonPNIRedDat.h:40
float getPedRMSG1() const
Definition: MonPNIRedDat.h:37
std::string getTable() override
Definition: MonPNIRedDat.h:19
float m_pedMeanG16
Definition: MonPNIRedDat.h:64
float getADCRMSG16() const
Definition: MonPNIRedDat.h:31
float getPedRMSG16() const
Definition: MonPNIRedDat.h:43
void setADCRMSG1(float mean)
Definition: MonPNIRedDat.h:24
void setPedRMSG1(float mean)
Definition: MonPNIRedDat.h:36
bool m_taskStatus
Definition: MonPNIRedDat.h:66
#define noexcept
float m_adcMeanG1
Definition: MonPNIRedDat.h:58
void writeDB(const EcalLogicID *ecid, const MonPNIRedDat *item, MonRunIOV *iov) noexcept(false)
Definition: MonPNIRedDat.cc:47
float getADCRMSG1() const
Definition: MonPNIRedDat.h:25
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:79
float m_pedRMSG1
Definition: MonPNIRedDat.h:63
void setPedMeanG1(float mean)
Definition: MonPNIRedDat.h:33
void prepareWrite() noexcept(false) override
Definition: MonPNIRedDat.cc:31
void fetchData(std::map< EcalLogicID, MonPNIRedDat > *fillVec, MonRunIOV *iov) noexcept(false)
Definition: MonPNIRedDat.cc:81
void setPedMeanG16(float mean)
Definition: MonPNIRedDat.h:39
void setTaskStatus(bool status)
Definition: MonPNIRedDat.h:45
float m_pedMeanG1
Definition: MonPNIRedDat.h:62
~MonPNIRedDat() override
Definition: MonPNIRedDat.cc:29