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;
17 
18  // User data methods
19  inline std::string getTable() { 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()
44  noexcept(false);
45 
46  void writeDB(const EcalLogicID* ecid, const MonTestPulseDat* item, MonRunIOV* iov )
47  noexcept(false);
48 
49  void writeArrayDB(const std::map< EcalLogicID, MonTestPulseDat >* data, MonRunIOV* iov)
50  noexcept(false);
51 
52 
53  void fetchData(std::map< EcalLogicID, MonTestPulseDat >* fillMap, MonRunIOV* iov)
54  noexcept(false);
55 
56  // User data
57  float m_adcMeanG1;
58  float m_adcRMSG1;
59  float m_adcMeanG6;
60  float m_adcRMSG6;
61  float m_adcMeanG12;
62  float m_adcRMSG12;
64 };
65 
66 #endif
void setADCRMSG1(float rms)
void prepareWrite() noexcept(false)
void writeDB(const EcalLogicID *ecid, const MonTestPulseDat *item, MonRunIOV *iov) noexcept(false)
std::string getTable()
float getADCMeanG6() const
#define noexcept
void setADCMeanG1(float mean)
float getADCRMSG12() const
void setADCMeanG6(float mean)
void setADCMeanG12(float mean)
void fetchData(std::map< EcalLogicID, MonTestPulseDat > *fillMap, MonRunIOV *iov) noexcept(false)
void setTaskStatus(bool status)
float getADCRMSG1() const
void setADCRMSG12(float rms)
float getADCMeanG12() const
bool getTaskStatus() const
void setADCRMSG6(float rms)
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:82
float getADCRMSG6() const
float getADCMeanG1() const
void writeArrayDB(const std::map< EcalLogicID, MonTestPulseDat > *data, MonRunIOV *iov) noexcept(false)