test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
MonPNPedDat.h
Go to the documentation of this file.
1 #ifndef MONPNPEDDAT_H
2 #define MONPNPEDDAT_H
3 
4 #include <map>
5 #include <stdexcept>
6 
11 
12 class MonPNPedDat : public IDataItem {
13  public:
14  friend class EcalCondDBInterface;
15  MonPNPedDat();
16  ~MonPNPedDat();
17 
18  // User data methods
19  inline std::string getTable() { return "MON_PN_PED_DAT"; }
20 
21  inline void setPedMeanG1(float mean) { m_pedMeanG1 = mean; }
22  inline float getPedMeanG1() const { return m_pedMeanG1; }
23 
24  inline void setPedRMSG1(float mean) { m_pedRMSG1 = mean; }
25  inline float getPedRMSG1() const { return m_pedRMSG1; }
26 
27  inline void setPedMeanG16(float mean) { m_pedMeanG16 = mean; }
28  inline float getPedMeanG16() const { return m_pedMeanG16; }
29 
30  inline void setPedRMSG16(float mean) { m_pedRMSG16 = mean; }
31  inline float getPedRMSG16() const { return m_pedRMSG16; }
32 
33  inline void setTaskStatus(bool status) { m_taskStatus = status; }
34  inline bool getTaskStatus() const { return m_taskStatus; }
35 
36  private:
37  void prepareWrite()
38  throw(std::runtime_error);
39 
41  throw(std::runtime_error);
42 
44  throw(std::runtime_error);
45 
46 
47 
48  void fetchData(std::map< EcalLogicID, MonPNPedDat >* fillVec, MonRunIOV* iov)
49  throw(std::runtime_error);
50 
51  // User data
52  float m_pedMeanG1;
53  float m_pedRMSG1;
54  float m_pedMeanG16;
55  float m_pedRMSG16;
57 };
58 
59 #endif
float m_pedRMSG1
Definition: MonPNPedDat.h:53
float m_pedRMSG16
Definition: MonPNPedDat.h:55
float getPedRMSG1() const
Definition: MonPNPedDat.h:25
void setPedRMSG16(float mean)
Definition: MonPNPedDat.h:30
void writeDB(const EcalLogicID *ecid, const MonPNPedDat *item, MonRunIOV *iov)
Definition: MonPNPedDat.cc:52
void prepareWrite()
Definition: MonPNPedDat.cc:34
void setPedRMSG1(float mean)
Definition: MonPNPedDat.h:24
void setPedMeanG1(float mean)
Definition: MonPNPedDat.h:21
float m_pedMeanG16
Definition: MonPNPedDat.h:54
std::string getTable()
Definition: MonPNPedDat.h:19
tuple iov
Definition: o2o.py:307
void setPedMeanG16(float mean)
Definition: MonPNPedDat.h:27
bool m_taskStatus
Definition: MonPNPedDat.h:56
float getPedRMSG16() const
Definition: MonPNPedDat.h:31
string const
Definition: compareJSON.py:14
float getPedMeanG16() const
Definition: MonPNPedDat.h:28
bool getTaskStatus() const
Definition: MonPNPedDat.h:34
float getPedMeanG1() const
Definition: MonPNPedDat.h:22
void writeArrayDB(const std::map< EcalLogicID, MonPNPedDat > *data, MonRunIOV *iov)
Definition: MonPNPedDat.cc:128
void setTaskStatus(bool status)
Definition: MonPNPedDat.h:33
void fetchData(std::map< EcalLogicID, MonPNPedDat > *fillVec, MonRunIOV *iov)
Definition: MonPNPedDat.cc:82
float m_pedMeanG1
Definition: MonPNPedDat.h:52
tuple status
Definition: mps_update.py:57