CMS 3D CMS Logo

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;
16  ~ODWeightsSamplesDat() override;
17 
18  // User data methods
19  inline std::string getTable() override { 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 private:
34  void clear();
35  void prepareWrite() noexcept(false) override;
36 
38 
40 
41  void fetchData(std::vector<ODWeightsSamplesDat>* fillMap, ODFEWeightsInfo* iov) noexcept(false);
42 
43  void fetchData(ODWeightsSamplesDat* p) noexcept(false);
44 
45  // User data
46 
47  int m_fed;
48  int m_ss;
49  int m_sn;
50  int m_ID;
51 };
52 
53 #endif
void setWeightNumber(int dac)
void prepareWrite() noexcept(false) override
void writeArrayDB(const std::vector< ODWeightsSamplesDat > &data, ODFEWeightsInfo *iov) noexcept(false)
void fetchData(std::vector< ODWeightsSamplesDat > *fillMap, ODFEWeightsInfo *iov) noexcept(false)
void writeDB(const ODWeightsSamplesDat *item, ODFEWeightsInfo *iov) noexcept(false)
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:79
std::string getTable() override