CMS 3D CMS Logo

CaliTempDat.h
Go to the documentation of this file.
1 #ifndef CALITEMPDAT_H
2 #define CALITEMPDAT_H
3 
4 #include <map>
5 #include <stdexcept>
6 
11 
12 class CaliTempDat : public IDataItem {
13 public:
14  friend class EcalCondDBInterface;
15  CaliTempDat();
16  ~CaliTempDat() override;
17 
18  // User data methods
19  inline std::string getTable() override { return "CALI_TEMP_DAT"; }
20 
21  inline void setBeta(float c) { m_beta = c; }
22  inline float getBeta() const { return m_beta; }
23 
24  inline void setR25(float c) { m_r25 = c; }
25  inline float getR25() const { return m_r25; }
26 
27  inline void setOffset(float c) { m_offset = c; }
28  inline float getOffset() const { return m_offset; }
29 
30  inline void setTaskStatus(bool s) { m_taskStatus = s; }
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 CaliTempDat* item, CaliIOV* iov) noexcept(false);
37 
38  void fetchData(std::map<EcalLogicID, CaliTempDat>* fillVec, CaliIOV* iov) noexcept(false);
39 
40  void writeArrayDB(const std::map<EcalLogicID, CaliTempDat>* data, CaliIOV* iov) noexcept(false);
41 
42  // User data
43  float m_beta;
44  float m_r25;
45  float m_offset;
47 };
48 
49 #endif
bool m_taskStatus
Definition: CaliTempDat.h:46
float m_beta
Definition: CaliTempDat.h:43
float getOffset() const
Definition: CaliTempDat.h:28
void prepareWrite() noexcept(false) override
Definition: CaliTempDat.cc:25
float m_offset
Definition: CaliTempDat.h:45
void fetchData(std::map< EcalLogicID, CaliTempDat > *fillVec, CaliIOV *iov) noexcept(false)
Definition: CaliTempDat.cc:69
bool getTaskStatus() const
Definition: CaliTempDat.h:31
void writeArrayDB(const std::map< EcalLogicID, CaliTempDat > *data, CaliIOV *iov) noexcept(false)
Definition: CaliTempDat.cc:113
void setBeta(float c)
Definition: CaliTempDat.h:21
float getR25() const
Definition: CaliTempDat.h:25
void setOffset(float c)
Definition: CaliTempDat.h:27
~CaliTempDat() override
Definition: CaliTempDat.cc:23
void setR25(float c)
Definition: CaliTempDat.h:24
float getBeta() const
Definition: CaliTempDat.h:22
float m_r25
Definition: CaliTempDat.h:44
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:80
std::string getTable() override
Definition: CaliTempDat.h:19
void writeDB(const EcalLogicID *ecid, const CaliTempDat *item, CaliIOV *iov) noexcept(false)
Definition: CaliTempDat.cc:40
void setTaskStatus(bool s)
Definition: CaliTempDat.h:30