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()
35  noexcept(false) override;
36 
37  void writeDB(const EcalLogicID* ecid, const CaliTempDat* item, CaliIOV* iov)
38  noexcept(false);
39 
40  void fetchData(std::map< EcalLogicID, CaliTempDat >* fillVec, CaliIOV* iov)
41  noexcept(false);
42 
43  void writeArrayDB(const std::map< EcalLogicID, CaliTempDat >* data, CaliIOV* iov)
44  noexcept(false);
45 
46 
47 
48  // User data
49  float m_beta;
50  float m_r25;
51  float m_offset;
53 
54 
55 };
56 
57 #endif
float getOffset() const
Definition: CaliTempDat.h:28
bool m_taskStatus
Definition: CaliTempDat.h:52
float m_beta
Definition: CaliTempDat.h:49
bool getTaskStatus() const
Definition: CaliTempDat.h:31
void prepareWrite() noexcept(false) override
Definition: CaliTempDat.cc:32
float m_offset
Definition: CaliTempDat.h:51
#define noexcept
float getR25() const
Definition: CaliTempDat.h:25
float getBeta() const
Definition: CaliTempDat.h:22
void fetchData(std::map< EcalLogicID, CaliTempDat > *fillVec, CaliIOV *iov) noexcept(false)
Definition: CaliTempDat.cc:79
void writeArrayDB(const std::map< EcalLogicID, CaliTempDat > *data, CaliIOV *iov) noexcept(false)
Definition: CaliTempDat.cc:125
void setBeta(float c)
Definition: CaliTempDat.h:21
void setOffset(float c)
Definition: CaliTempDat.h:27
~CaliTempDat() override
Definition: CaliTempDat.cc:26
void setR25(float c)
Definition: CaliTempDat.h:24
float m_r25
Definition: CaliTempDat.h:50
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:82
std::string getTable() override
Definition: CaliTempDat.h:19
void writeDB(const EcalLogicID *ecid, const CaliTempDat *item, CaliIOV *iov) noexcept(false)
Definition: CaliTempDat.cc:50
void setTaskStatus(bool s)
Definition: CaliTempDat.h:30