CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DCUIDarkPedDat.h
Go to the documentation of this file.
1 #ifndef DCUIDARKPEDDAT_H
2 #define DCUIDARKPEDDAT_H
3 
4 #include <map>
5 #include <stdexcept>
6 
11 
12 class DCUIDarkPedDat : public IDataItem {
13 public:
14  friend class EcalCondDBInterface;
16  ~DCUIDarkPedDat() override;
17 
18  // User data methods
19  inline std::string getTable() override { return "DCU_IDARK_PED_DAT"; }
20 
21  inline void setPed(float temp) { m_ped = temp; }
22  inline float getPed() const { return m_ped; }
23 
24 private:
25  void prepareWrite() noexcept(false) override;
26 
27  void writeDB(const EcalLogicID* ecid, const DCUIDarkPedDat* item, DCUIOV* iov) noexcept(false);
28 
29  void writeArrayDB(const std::map<EcalLogicID, DCUIDarkPedDat>* data, DCUIOV* iov) noexcept(false);
30 
31  void fetchData(std::map<EcalLogicID, DCUIDarkPedDat>* fillVec, DCUIOV* iov) noexcept(false);
32 
33  // User data
34  float m_ped;
35 };
36 
37 #endif
~DCUIDarkPedDat() override
void prepareWrite() noexcept(false) override
void writeDB(const EcalLogicID *ecid, const DCUIDarkPedDat *item, DCUIOV *iov) noexcept(false)
Definition: DCUIOV.h:13
std::string getTable() override
void setPed(float temp)
void fetchData(std::map< EcalLogicID, DCUIDarkPedDat > *fillVec, DCUIOV *iov) noexcept(false)
float getPed() const
void writeArrayDB(const std::map< EcalLogicID, DCUIDarkPedDat > *data, DCUIOV *iov) noexcept(false)
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:79