CMS 3D CMS Logo

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;
16  ~MonPedestalOffsetsDat() override;
17 
18  // User data methods
19  inline std::string getTable() override { 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() noexcept(false) override;
35 
36  void writeDB(const EcalLogicID* ecid, const MonPedestalOffsetsDat* item, MonRunIOV* iov) noexcept(false);
37 
38  void writeArrayDB(const std::map<EcalLogicID, MonPedestalOffsetsDat>* data, MonRunIOV* iov) noexcept(false);
39 
40  void fetchData(std::map<EcalLogicID, MonPedestalOffsetsDat>* fillMap,
41  MonRunIOV* iov,
42  std::string mappa = " cv.maps_to ") noexcept(false);
43 
44  // User data
45  int m_dacG1;
46  int m_dacG6;
47  int m_dacG12;
49 };
50 
51 #endif
void setTaskStatus(bool status)
void writeArrayDB(const std::map< EcalLogicID, MonPedestalOffsetsDat > *data, MonRunIOV *iov) noexcept(false)
void writeDB(const EcalLogicID *ecid, const MonPedestalOffsetsDat *item, MonRunIOV *iov) noexcept(false)
void fetchData(std::map< EcalLogicID, MonPedestalOffsetsDat > *fillMap, MonRunIOV *iov, std::string mappa=" cv.maps_to ") noexcept(false)
void prepareWrite() noexcept(false) override
#define noexcept
std::string getTable() override
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:79