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() noexcept(false) override;
26 
27  void writeDB(const EcalLogicID* ecid, const DCUIDarkDat* item, DCUIOV* iov) noexcept(false);
28 
29  void writeArrayDB(const std::map<EcalLogicID, DCUIDarkDat>* data, DCUIOV* iov) noexcept(false);
30 
31  void fetchData(std::map<EcalLogicID, DCUIDarkDat>* fillVec, DCUIOV* iov) noexcept(false);
32 
33  // User data
34  float m_apdIDark;
35 };
36 
37 #endif
std::string getTable() override
Definition: DCUIDarkDat.h:19
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:104
void writeDB(const EcalLogicID *ecid, const DCUIDarkDat *item, DCUIOV *iov) noexcept(false)
Definition: DCUIDarkDat.cc:38
float getAPDIDark() const
Definition: DCUIDarkDat.h:22
void fetchData(std::map< EcalLogicID, DCUIDarkDat > *fillVec, DCUIOV *iov) noexcept(false)
Definition: DCUIDarkDat.cc:64
float m_apdIDark
Definition: DCUIDarkDat.h:34
void prepareWrite() noexcept(false) override
Definition: DCUIDarkDat.cc:23
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:79
~DCUIDarkDat() override
Definition: DCUIDarkDat.cc:21