CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
ODWeightsDat.h
Go to the documentation of this file.
1 #ifndef ODWEIGHTSDAT_H
2 #define ODWEIGHTSDAT_H
3 
4 #include <vector>
5 #include <stdexcept>
6 
11 
12 class ODWeightsDat : public IODConfig {
13  public:
14  friend class EcalCondDBInterface;
15  ODWeightsDat();
16  ~ODWeightsDat();
17 
18  // User data methods
19  inline std::string getTable() { return "DCC_WEIGHTS_DAT"; }
20 
21  inline void setId(int dac) { m_ID = dac; }
22  inline int getId() const { return m_ID; }
23 
24  inline void setSMId(int dac) { m_sm = dac; }
25  inline int getSMId() const { return m_sm; }
26 
27  inline void setFedId(int dac) { m_fed = dac; }
28  inline int getFedId() const { return m_fed; }
29 
30  inline void setTTId(int dac) { m_tt = dac; }
31  inline int getTTId() const { return m_tt; }
32 
33  inline void setCrystalId(int dac) { m_xt = dac; }
34  inline int getCrystalId() const { return m_xt; }
35 
36  inline void setWeight0( float x) { m_wei0 = x; }
37  inline void setWeight1( float x) { m_wei1 = x; }
38  inline void setWeight2( float x) { m_wei2 = x; }
39  inline void setWeight3( float x) { m_wei3 = x; }
40  inline void setWeight4( float x) { m_wei4 = x; }
41  inline void setWeight5( float x) { m_wei5 = x; }
42 
43  inline float getWeight0() const { return m_wei0; }
44  inline float getWeight1() const { return m_wei1; }
45  inline float getWeight2() const { return m_wei2; }
46  inline float getWeight3() const { return m_wei3; }
47  inline float getWeight4() const { return m_wei4; }
48  inline float getWeight5() const { return m_wei5; }
49 
50 
51  private:
52  void prepareWrite()
53  throw(std::runtime_error);
54 
56  throw(std::runtime_error);
57 
58  void writeArrayDB(const std::vector< ODWeightsDat > data, ODFEWeightsInfo* iov)
59  throw(std::runtime_error);
60 
61 
62  void fetchData(std::vector< ODWeightsDat >* fillMap, ODFEWeightsInfo* iov)
63  throw(std::runtime_error);
64 
65  // User data
66  int m_sm;
67  int m_fed;
68  int m_tt;
69  int m_xt;
70  int m_ID;
71  float m_wei0;
72  float m_wei1;
73  float m_wei2;
74  float m_wei3;
75  float m_wei4;
76  float m_wei5;
77 
78 };
79 
80 #endif
float getWeight0() const
Definition: ODWeightsDat.h:43
void setId(int dac)
Definition: ODWeightsDat.h:21
void writeDB(const ODWeightsDat *item, ODFEWeightsInfo *iov)
Definition: ODWeightsDat.cc:48
void fetchData(std::vector< ODWeightsDat > *fillMap, ODFEWeightsInfo *iov)
Definition: ODWeightsDat.cc:75
void setWeight3(float x)
Definition: ODWeightsDat.h:39
void setWeight2(float x)
Definition: ODWeightsDat.h:38
int getId() const
Definition: ODWeightsDat.h:22
std::string getTable()
Definition: ODWeightsDat.h:19
float getWeight5() const
Definition: ODWeightsDat.h:48
int getCrystalId() const
Definition: ODWeightsDat.h:34
void setSMId(int dac)
Definition: ODWeightsDat.h:24
void prepareWrite()
Definition: ODWeightsDat.cc:32
float getWeight3() const
Definition: ODWeightsDat.h:46
void setWeight4(float x)
Definition: ODWeightsDat.h:40
float getWeight4() const
Definition: ODWeightsDat.h:47
void setWeight1(float x)
Definition: ODWeightsDat.h:37
int getTTId() const
Definition: ODWeightsDat.h:31
float getWeight1() const
Definition: ODWeightsDat.h:44
tuple iov
Definition: o2o.py:307
void setTTId(int dac)
Definition: ODWeightsDat.h:30
void setWeight0(float x)
Definition: ODWeightsDat.h:36
void setCrystalId(int dac)
Definition: ODWeightsDat.h:33
string const
Definition: compareJSON.py:14
float getWeight2() const
Definition: ODWeightsDat.h:45
int getSMId() const
Definition: ODWeightsDat.h:25
void setWeight5(float x)
Definition: ODWeightsDat.h:41
Definition: DDAxes.h:10
void fillMap(Registry *reg, regmap_type &fillme)
Definition: Registry.cc:24
void setFedId(int dac)
Definition: ODWeightsDat.h:27
void writeArrayDB(const std::vector< ODWeightsDat > data, ODFEWeightsInfo *iov)
int getFedId() const
Definition: ODWeightsDat.h:28