CMS 3D CMS Logo

RunTPGConfigDat.h
Go to the documentation of this file.
1 #ifndef RUNTPGCONFIGDAT_H
2 #define RUNTPGCONFIGDAT_H
3 
4 #include <vector>
5 #include <stdexcept>
6 
10 
11 class RunTPGConfigDat : public IDataItem {
12 public:
13  friend class EcalCondDBInterface;
15  ~RunTPGConfigDat() override;
16 
17  // User data methods
18  inline std::string getTable() override { return "RUN_TPGCONFIG_DAT"; }
19 
20  inline std::string getConfigTag() const { return m_config; }
21  inline void setConfigTag(std::string x) { m_config = x; }
22  inline int getVersion() const { return m_version; }
23  inline void setVersion(int x) { m_version = x; }
24 
25 private:
26  void prepareWrite() noexcept(false) override;
27 
28  void writeDB(const EcalLogicID* ecid, const RunTPGConfigDat* item, RunIOV* iov) noexcept(false);
29 
30  void fetchData(std::map<EcalLogicID, RunTPGConfigDat>* fillMap, RunIOV* iov) noexcept(false);
31 
32  // User data
33  int m_version;
35 };
36 
37 #endif
std::string getConfigTag() const
void setConfigTag(std::string x)
std::string m_config
int getVersion() const
~RunTPGConfigDat() override
void writeDB(const EcalLogicID *ecid, const RunTPGConfigDat *item, RunIOV *iov) noexcept(false)
void prepareWrite() noexcept(false) override
void setVersion(int x)
#define noexcept
void fetchData(std::map< EcalLogicID, RunTPGConfigDat > *fillMap, RunIOV *iov) noexcept(false)
Definition: RunIOV.h:13
std::string getTable() override