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 
34 
35  private:
36  void clear();
37  void prepareWrite()
38  noexcept(false) override;
39 
40  void writeDB(const ODWeightsSamplesDat* item, ODFEWeightsInfo* iov )
41  noexcept(false);
42 
43  void writeArrayDB(const std::vector< ODWeightsSamplesDat >& data, ODFEWeightsInfo* iov)
44  noexcept(false);
45 
46 
47  void fetchData(std::vector< ODWeightsSamplesDat >* fillMap, ODFEWeightsInfo* iov)
48  noexcept(false);
49 
50  void fetchData(ODWeightsSamplesDat * p) noexcept(false);
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 setWeightNumber(int dac)
void prepareWrite() noexcept(false) override
int getWeightNumber() const
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)
#define noexcept
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:82
std::string getTable() override