CMS 3D CMS Logo

MonTestPulseDat.h
Go to the documentation of this file.
1 #ifndef MONTESTPULSEDAT_H
2 #define MONTESTPULSEDAT_H
3 
4 #include <map>
5 #include <stdexcept>
6 
11 
12 class MonTestPulseDat : public IDataItem {
13 public:
14  friend class EcalCondDBInterface;
16  ~MonTestPulseDat() override;
17 
18  // User data methods
19  inline std::string getTable() override { return "MON_TEST_PULSE_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 rms) { m_adcRMSG1 = rms; }
25  inline float getADCRMSG1() const { return m_adcRMSG1; }
26 
27  inline void setADCMeanG6(float mean) { m_adcMeanG6 = mean; }
28  inline float getADCMeanG6() const { return m_adcMeanG6; }
29 
30  inline void setADCRMSG6(float rms) { m_adcRMSG6 = rms; }
31  inline float getADCRMSG6() const { return m_adcRMSG6; }
32 
33  inline void setADCMeanG12(float mean) { m_adcMeanG12 = mean; }
34  inline float getADCMeanG12() const { return m_adcMeanG12; }
35 
36  inline void setADCRMSG12(float rms) { m_adcRMSG12 = rms; }
37  inline float getADCRMSG12() const { return m_adcRMSG12; }
38 
39  inline void setTaskStatus(bool status) { m_taskStatus = status; }
40  inline bool getTaskStatus() const { return m_taskStatus; }
41 
42 private:
43  void prepareWrite() noexcept(false) override;
44 
45  void writeDB(const EcalLogicID* ecid, const MonTestPulseDat* item, MonRunIOV* iov) noexcept(false);
46 
48 
49  void fetchData(std::map<EcalLogicID, MonTestPulseDat>* fillMap, MonRunIOV* iov) noexcept(false);
50 
51  // User data
52  float m_adcMeanG1;
53  float m_adcRMSG1;
54  float m_adcMeanG6;
55  float m_adcRMSG6;
56  float m_adcMeanG12;
57  float m_adcRMSG12;
59 };
60 
61 #endif
void setADCRMSG1(float rms)
float getADCMeanG1() const
void writeDB(const EcalLogicID *ecid, const MonTestPulseDat *item, MonRunIOV *iov) noexcept(false)
void setADCMeanG1(float mean)
void setADCMeanG6(float mean)
bool getTaskStatus() const
float getADCRMSG12() const
void setADCMeanG12(float mean)
std::string getTable() override
void fetchData(std::map< EcalLogicID, MonTestPulseDat > *fillMap, MonRunIOV *iov) noexcept(false)
float getADCRMSG1() const
void setTaskStatus(bool status)
void setADCRMSG12(float rms)
void prepareWrite() noexcept(false) override
float getADCMeanG6() const
void setADCRMSG6(float rms)
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:80
float getADCRMSG6() const
~MonTestPulseDat() override
float getADCMeanG12() const
void writeArrayDB(const std::map< EcalLogicID, MonTestPulseDat > *data, MonRunIOV *iov) noexcept(false)