CMS 3D CMS Logo

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