CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
MonPNLed2Dat.h
Go to the documentation of this file.
1 #ifndef MONPNLED2DAT_H
2 #define MONPNLED2DAT_H
3 
4 #include <map>
5 #include <stdexcept>
6 
11 
12 class MonPNLed2Dat : public IDataItem {
13  public:
14  friend class EcalCondDBInterface;
15  MonPNLed2Dat();
16  ~MonPNLed2Dat();
17 
18  // User data methods
19  inline std::string getTable() { return "MON_PN_LED2_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()
50  throw(std::runtime_error);
51 
53  throw(std::runtime_error);
54 
56  throw(std::runtime_error);
57 
58  void fetchData(std::map< EcalLogicID, MonPNLed2Dat >* fillVec, MonRunIOV* iov)
59  throw(std::runtime_error);
60 
61  // User data
62  float m_adcMeanG1;
63  float m_adcRMSG1;
64  float m_adcMeanG16;
65  float m_adcRMSG16;
66  float m_pedMeanG1;
67  float m_pedRMSG1;
68  float m_pedMeanG16;
69  float m_pedRMSG16;
71 };
72 
73 #endif
void fetchData(std::map< EcalLogicID, MonPNLed2Dat > *fillVec, MonRunIOV *iov)
Definition: MonPNLed2Dat.cc:90
void setPedMeanG1(float mean)
Definition: MonPNLed2Dat.h:33
float m_pedRMSG1
Definition: MonPNLed2Dat.h:67
float getPedRMSG1() const
Definition: MonPNLed2Dat.h:37
void setPedRMSG1(float mean)
Definition: MonPNLed2Dat.h:36
float m_pedRMSG16
Definition: MonPNLed2Dat.h:69
void setADCMeanG1(float mean)
Definition: MonPNLed2Dat.h:21
float m_adcRMSG1
Definition: MonPNLed2Dat.h:63
float getADCRMSG1() const
Definition: MonPNLed2Dat.h:25
float m_adcRMSG16
Definition: MonPNLed2Dat.h:65
float m_adcMeanG16
Definition: MonPNLed2Dat.h:64
void setTaskStatus(bool status)
Definition: MonPNLed2Dat.h:45
void setPedMeanG16(float mean)
Definition: MonPNLed2Dat.h:39
tuple iov
Definition: o2o.py:307
float getPedRMSG16() const
Definition: MonPNLed2Dat.h:43
float m_pedMeanG16
Definition: MonPNLed2Dat.h:68
void writeArrayDB(const std::map< EcalLogicID, MonPNLed2Dat > *data, MonRunIOV *iov)
float getADCMeanG16() const
Definition: MonPNLed2Dat.h:28
void setADCMeanG16(float mean)
Definition: MonPNLed2Dat.h:27
std::string getTable()
Definition: MonPNLed2Dat.h:19
float getPedMeanG1() const
Definition: MonPNLed2Dat.h:34
float m_pedMeanG1
Definition: MonPNLed2Dat.h:66
bool m_taskStatus
Definition: MonPNLed2Dat.h:70
void setADCRMSG16(float mean)
Definition: MonPNLed2Dat.h:30
void writeDB(const EcalLogicID *ecid, const MonPNLed2Dat *item, MonRunIOV *iov)
Definition: MonPNLed2Dat.cc:56
float getADCRMSG16() const
Definition: MonPNLed2Dat.h:31
void setADCRMSG1(float mean)
Definition: MonPNLed2Dat.h:24
void prepareWrite()
Definition: MonPNLed2Dat.cc:38
string const
Definition: compareJSON.py:14
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:82
void setPedRMSG16(float mean)
Definition: MonPNLed2Dat.h:42
bool getTaskStatus() const
Definition: MonPNLed2Dat.h:46
float getADCMeanG1() const
Definition: MonPNLed2Dat.h:22
tuple status
Definition: ntuplemaker.py:245
float getPedMeanG16() const
Definition: MonPNLed2Dat.h:40
float m_adcMeanG1
Definition: MonPNLed2Dat.h:62