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;
17 
18  // User data methods
19  inline std::string getTable() { 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()
32  noexcept(false);
33 
34  void writeDB(const EcalLogicID* ecid, const CaliGainRatioDat* item, CaliIOV* iov)
35  noexcept(false);
36 
37  void fetchData(std::map< EcalLogicID, CaliGainRatioDat >* fillVec, CaliIOV* iov)
38  noexcept(false);
39 
40  void writeArrayDB(const std::map< EcalLogicID, CaliGainRatioDat >* data, CaliIOV* iov)
41  noexcept(false);
42 
43  // User data
44  float m_g1_g12;
45  float m_g6_g12;
47 
48 };
49 
50 #endif
void setG1G12(float c)
#define noexcept
void setTaskStatus(bool s)
void writeArrayDB(const std::map< EcalLogicID, CaliGainRatioDat > *data, CaliIOV *iov) noexcept(false)
void prepareWrite() noexcept(false)
std::string getTable()
float getG6G12() const
float getG1G12() const
void setG6G12(float c)
void fetchData(std::map< EcalLogicID, CaliGainRatioDat > *fillVec, CaliIOV *iov) noexcept(false)
bool getTaskStatus() const
void writeDB(const EcalLogicID *ecid, const CaliGainRatioDat *item, CaliIOV *iov) noexcept(false)
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:82