CMS 3D CMS Logo

DCUIDarkDat.h
Go to the documentation of this file.
1 #ifndef DCUIDARKDAT_H
2 #define DCUIDARKDAT_H
3 
4 #include <map>
5 #include <stdexcept>
6 
11 
12 class DCUIDarkDat : public IDataItem {
13  public:
14  friend class EcalCondDBInterface;
15  DCUIDarkDat();
16  ~DCUIDarkDat() override;
17 
18  // User data methods
19  inline std::string getTable() override { return "DCU_IDARK_DAT"; }
20 
21  inline void setAPDIDark(float i) { m_apdIDark = i; }
22  inline float getAPDIDark() const { return m_apdIDark; }
23 
24  private:
25  void prepareWrite()
26  noexcept(false) override;
27 
28  void writeDB(const EcalLogicID* ecid, const DCUIDarkDat* item, DCUIOV* iov)
29  noexcept(false);
30 
31  void writeArrayDB(const std::map< EcalLogicID, DCUIDarkDat>* data, DCUIOV* iov)
32  noexcept(false);
33 
34 
35  void fetchData(std::map< EcalLogicID, DCUIDarkDat >* fillVec, DCUIOV* iov)
36  noexcept(false);
37 
38  // User data
39  float m_apdIDark;
40 
41 };
42 
43 #endif
std::string getTable() override
Definition: DCUIDarkDat.h:19
#define noexcept
void setAPDIDark(float i)
Definition: DCUIDarkDat.h:21
Definition: DCUIOV.h:13
void writeArrayDB(const std::map< EcalLogicID, DCUIDarkDat > *data, DCUIOV *iov) noexcept(false)
Definition: DCUIDarkDat.cc:116
void writeDB(const EcalLogicID *ecid, const DCUIDarkDat *item, DCUIOV *iov) noexcept(false)
Definition: DCUIDarkDat.cc:48
void fetchData(std::map< EcalLogicID, DCUIDarkDat > *fillVec, DCUIOV *iov) noexcept(false)
Definition: DCUIDarkDat.cc:74
float m_apdIDark
Definition: DCUIDarkDat.h:39
void prepareWrite() noexcept(false) override
Definition: DCUIDarkDat.cc:30
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:82
~DCUIDarkDat() override
Definition: DCUIDarkDat.cc:24
float getAPDIDark() const
Definition: DCUIDarkDat.h:22