test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
FEConfigPedDat.h
Go to the documentation of this file.
1 #ifndef FECONFPEDDAT_H
2 #define FECONFPEDDAT_H
3 
4 #include <vector>
5 #include <stdexcept>
6 
10 
11 class FEConfigPedDat : public IDataItem {
12  public:
13  friend class EcalCondDBInterface;
16 
17  // User data methods
18  inline std::string getTable() { return "FE_CONFIG_PED_DAT"; }
19 
20  inline void setId(int x) { m_ID = x; }
21  inline int getId() const { return m_ID; }
22 
23  inline void setPedMeanG1(float mean) { m_pedMeanG1 = mean; }
24  inline float getPedMeanG1() const { return m_pedMeanG1; }
25 
26  inline void setPedMeanG6(float mean) { m_pedMeanG6 = mean; }
27  inline float getPedMeanG6() const { return m_pedMeanG6; }
28 
29  inline void setPedMeanG12(float mean) { m_pedMeanG12 = mean; }
30  inline float getPedMeanG12() const { return m_pedMeanG12; }
31 
32 
33  private:
34  void prepareWrite()
35  throw(std::runtime_error);
36 
37  void writeDB(const EcalLogicID* ecid, const FEConfigPedDat* item, FEConfigPedInfo* iconf )
38  throw(std::runtime_error);
39 
41  throw(std::runtime_error);
42 
43  void fetchData(std::map< EcalLogicID, FEConfigPedDat >* fillMap, FEConfigPedInfo* iconf)
44  throw(std::runtime_error);
45 
46  // User data
47  float m_pedMeanG1;
48  float m_pedMeanG6;
49  float m_pedMeanG12;
50  int m_ID;
51 
52 };
53 
54 #endif
55 
56 
void fetchData(std::map< EcalLogicID, FEConfigPedDat > *fillMap, FEConfigPedInfo *iconf)
float getPedMeanG1() const
void writeArrayDB(const std::map< EcalLogicID, FEConfigPedDat > *data, FEConfigPedInfo *iconf)
void setPedMeanG6(float mean)
void writeDB(const EcalLogicID *ecid, const FEConfigPedDat *item, FEConfigPedInfo *iconf)
void setPedMeanG1(float mean)
std::string getTable()
int getId() const
float getPedMeanG12() const
void setPedMeanG12(float mean)
string const
Definition: compareJSON.py:14
float getPedMeanG6() const
void setId(int x)