CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
ODWeightsSamplesDat.h
Go to the documentation of this file.
1 #ifndef ODWEIGHTSSAMPLESDAT_H
2 #define ODWEIGHTSSAMPLESDAT_H
3 
4 #include <vector>
5 #include <stdexcept>
6 
11 
13  public:
14  friend class EcalCondDBInterface;
17 
18  // User data methods
19  inline std::string getTable() { return "DCC_WEIGHTSAMPLE_DAT"; }
20 
21  inline void setId(int dac) { m_ID = dac; }
22  inline int getId() const { return m_ID; }
23 
24  inline void setFedId(int dac) { m_fed = dac; }
25  inline int getFedId() const { return m_fed; }
26 
27  inline void setSampleId(int dac) { m_ss = dac; }
28  inline int getSampleId() const { return m_ss; }
29 
30  inline void setWeightNumber(int dac) { m_sn = dac; }
31  inline int getWeightNumber() const { return m_sn; }
32 
33 
34 
35  private:
36  void clear();
37  void prepareWrite()
38  throw(std::runtime_error);
39 
41  throw(std::runtime_error);
42 
44  throw(std::runtime_error);
45 
46 
47  void fetchData(std::vector< ODWeightsSamplesDat >* fillMap, ODFEWeightsInfo* iov)
48  throw(std::runtime_error);
49 
50  void fetchData(ODWeightsSamplesDat * p) throw(std::runtime_error);
51 
52  // User data
53 
54  int m_fed;
55  int m_ss;
56  int m_sn;
57  int m_ID;
58 
59 };
60 
61 #endif
void writeArrayDB(const std::vector< ODWeightsSamplesDat > &data, ODFEWeightsInfo *iov)
void setWeightNumber(int dac)
void fetchData(std::vector< ODWeightsSamplesDat > *fillMap, ODFEWeightsInfo *iov)
int getWeightNumber() const
tuple iov
Definition: o2o.py:307
string const
Definition: compareJSON.py:14
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:82
void writeDB(const ODWeightsSamplesDat *item, ODFEWeightsInfo *iov)