test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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  throw(std::runtime_error);
33 
35  throw(std::runtime_error);
36 
37  void fetchData(std::map< EcalLogicID, CaliGainRatioDat >* fillVec, CaliIOV* iov)
38  throw(std::runtime_error);
39 
40  void writeArrayDB(const std::map< EcalLogicID, CaliGainRatioDat >* data, CaliIOV* iov)
41  throw(std::runtime_error);
42 
43  // User data
44  float m_g1_g12;
45  float m_g6_g12;
47 
48 };
49 
50 #endif
void setG1G12(float c)
void setTaskStatus(bool s)
tuple iov
Definition: o2o.py:307
std::string getTable()
float getG6G12() const
float getG1G12() const
void setG6G12(float c)
bool getTaskStatus() const
string const
Definition: compareJSON.py:14
void writeDB(const EcalLogicID *ecid, const CaliGainRatioDat *item, CaliIOV *iov)
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:82
void writeArrayDB(const std::map< EcalLogicID, CaliGainRatioDat > *data, CaliIOV *iov)
void fetchData(std::map< EcalLogicID, CaliGainRatioDat > *fillVec, CaliIOV *iov)