CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
MonPedestalOffsetsDat.h
Go to the documentation of this file.
1 #ifndef MONPEDESTALOFFSETSDAT_H
2 #define MONPEDESTALOFFSETSDAT_H
3 
4 #include <map>
5 #include <stdexcept>
6 
11 
13  public:
14  friend class EcalCondDBInterface;
17 
18  // User data methods
19  inline std::string getTable() { return "MON_PEDESTAL_OFFSETS_DAT"; }
20 
21  inline void setDACG1(int dac) { m_dacG1 = dac; }
22  inline int getDACG1() const { return m_dacG1; }
23 
24  inline void setDACG6(int dac) { m_dacG6 = dac; }
25  inline int getDACG6() const { return m_dacG6; }
26 
27  inline void setDACG12(int dac) { m_dacG12 = dac; }
28  inline int getDACG12() const { return m_dacG12; }
29 
30  inline void setTaskStatus(bool status) { m_taskStatus = status; }
31  inline bool getTaskStatus() const { return m_taskStatus; }
32 
33  private:
34  void prepareWrite()
35  throw(std::runtime_error);
36 
38  throw(std::runtime_error);
39 
41  throw(std::runtime_error);
42 
43 
44  void fetchData(std::map< EcalLogicID, MonPedestalOffsetsDat >* fillMap, MonRunIOV* iov, std::string mappa=" cv.maps_to " )
45  throw(std::runtime_error);
46 
47  // User data
48  int m_dacG1;
49  int m_dacG6;
50  int m_dacG12;
52 };
53 
54 #endif
void setTaskStatus(bool status)
void writeDB(const EcalLogicID *ecid, const MonPedestalOffsetsDat *item, MonRunIOV *iov)
tuple iov
Definition: o2o.py:307
dictionary cv
Definition: cuy.py:362
void fetchData(std::map< EcalLogicID, MonPedestalOffsetsDat > *fillMap, MonRunIOV *iov, std::string mappa=" cv.maps_to ")
string const
Definition: compareJSON.py:14
void writeArrayDB(const std::map< EcalLogicID, MonPedestalOffsetsDat > *data, MonRunIOV *iov)
tuple status
Definition: ntuplemaker.py:245