CMS 3D CMS Logo

CaliGainRatioDat.h
Go to the documentation of this file.
1 #ifndef CALIGAINRATIODAT_H
2 #define CALIGAINRATIODAT_H
3 
4 #include <map>
5 #include <stdexcept>
6 
11 
12 class CaliGainRatioDat : public IDataItem {
13 public:
14  friend class EcalCondDBInterface;
16  ~CaliGainRatioDat() override;
17 
18  // User data methods
19  inline std::string getTable() override { return "CALI_GAIN_RATIO_DAT"; }
20 
21  inline void setG1G12(float c) { m_g1_g12 = c; }
22  inline float getG1G12() const { return m_g1_g12; }
23 
24  inline void setG6G12(float c) { m_g6_g12 = c; }
25  inline float getG6G12() const { return m_g6_g12; }
26 
27  inline void setTaskStatus(bool s) { m_taskStatus = s; }
28  inline bool getTaskStatus() const { return m_taskStatus; }
29 
30 private:
31  void prepareWrite() noexcept(false) override;
32 
33  void writeDB(const EcalLogicID* ecid, const CaliGainRatioDat* item, CaliIOV* iov) noexcept(false);
34 
35  void fetchData(std::map<EcalLogicID, CaliGainRatioDat>* fillVec, CaliIOV* iov) noexcept(false);
36 
38 
39  // User data
40  float m_g1_g12;
41  float m_g6_g12;
43 };
44 
45 #endif
void setG1G12(float c)
void prepareWrite() noexcept(false) override
std::string getTable() override
void setTaskStatus(bool s)
void writeArrayDB(const std::map< EcalLogicID, CaliGainRatioDat > *data, CaliIOV *iov) noexcept(false)
void setG6G12(float c)
void fetchData(std::map< EcalLogicID, CaliGainRatioDat > *fillVec, CaliIOV *iov) noexcept(false)
void writeDB(const EcalLogicID *ecid, const CaliGainRatioDat *item, CaliIOV *iov) noexcept(false)
float getG1G12() const
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:79
bool getTaskStatus() const
float getG6G12() const
~CaliGainRatioDat() override