CMS 3D CMS Logo

MODCCSTRDat.h
Go to the documentation of this file.
1 #ifndef MODCCSTRDAT_H
2 #define MODCCSTRDAT_H
3 
4 #include <map>
5 #include <stdexcept>
6 
10 
11 class MODCCSTRDat : public IDataItem {
12 public:
13  friend class EcalCondDBInterface;
14  MODCCSTRDat();
15  ~MODCCSTRDat() override;
16 
17  // User data methods
18  inline std::string getTable() override { return "OD_CCS_TR_DAT"; }
19 
20  inline void setWord(int x) { m_word = x; }
21  inline int getWord() const { return m_word; }
22 
23 private:
24  void prepareWrite() noexcept(false) override;
25 
26  void writeDB(const EcalLogicID* ecid, const MODCCSTRDat* item, MODRunIOV* iov) noexcept(false);
27 
28  void writeArrayDB(const std::map<EcalLogicID, MODCCSTRDat>* data, MODRunIOV* iov) noexcept(false);
29 
30  void fetchData(std::map<EcalLogicID, MODCCSTRDat>* fillMap, MODRunIOV* iov) noexcept(false);
31 
32  // User data
33  int m_word;
34 };
35 
36 #endif
void setWord(int x)
Definition: MODCCSTRDat.h:20
void prepareWrite() noexcept(false) override
Definition: MODCCSTRDat.cc:22
void fetchData(std::map< EcalLogicID, MODCCSTRDat > *fillMap, MODRunIOV *iov) noexcept(false)
Definition: MODCCSTRDat.cc:62
int getWord() const
Definition: MODCCSTRDat.h:21
void writeDB(const EcalLogicID *ecid, const MODCCSTRDat *item, MODRunIOV *iov) noexcept(false)
Definition: MODCCSTRDat.cc:37
~MODCCSTRDat() override
Definition: MODCCSTRDat.cc:20
void writeArrayDB(const std::map< EcalLogicID, MODCCSTRDat > *data, MODRunIOV *iov) noexcept(false)
Definition: MODCCSTRDat.cc:103
std::string getTable() override
Definition: MODCCSTRDat.h:18
#define noexcept
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:79