CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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  throw(std::runtime_error);
45 
47  throw(std::runtime_error);
48 
50  throw(std::runtime_error);
51 
52 
53  void fetchData(std::map< EcalLogicID, MonTestPulseDat >* fillMap, MonRunIOV* iov)
54  throw(std::runtime_error);
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)
std::string getTable()
float getADCMeanG6() const
void setADCMeanG1(float mean)
float getADCRMSG12() const
void setADCMeanG6(float mean)
dictionary map
Definition: Association.py:196
void writeArrayDB(const std::map< EcalLogicID, MonTestPulseDat > *data, MonRunIOV *iov)
void setADCMeanG12(float mean)
void fetchData(std::map< EcalLogicID, MonTestPulseDat > *fillMap, MonRunIOV *iov)
tuple iov
Definition: o2o.py:307
void setTaskStatus(bool status)
float getADCRMSG1() const
void setADCRMSG12(float rms)
float getADCMeanG12() const
bool getTaskStatus() const
void setADCRMSG6(float rms)
string const
Definition: compareJSON.py:14
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:82
void writeDB(const EcalLogicID *ecid, const MonTestPulseDat *item, MonRunIOV *iov)
float getADCRMSG6() const
void fillMap(Registry *reg, regmap_type &fillme)
Definition: Registry.cc:24
tuple status
Definition: ntuplemaker.py:245
float getADCMeanG1() const