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()
35  noexcept(false) override;
36 
37  void writeDB(const EcalLogicID* ecid, const MonPedestalOffsetsDat* item, MonRunIOV* iov )
38  noexcept(false);
39 
40  void writeArrayDB(const std::map< EcalLogicID, MonPedestalOffsetsDat >* data, MonRunIOV* iov)
41  noexcept(false);
42 
43 
44  void fetchData(std::map< EcalLogicID, MonPedestalOffsetsDat >* fillMap, MonRunIOV* iov, std::string mappa=" cv.maps_to " )
45  noexcept(false);
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 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:82