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
EcalCondDBInterface
Definition: EcalCondDBInterface.h:37
IDataItem.h
RunIOV
Definition: RunIOV.h:13
funct::false
false
Definition: Factorize.h:34
RunIOV.h
RunConfigDat
Definition: RunConfigDat.h:11
watchdog.const
const
Definition: watchdog.py:83
RunConfigDat::setConfigVersion
void setConfigVersion(int ver)
Definition: RunConfigDat.h:24
RunConfigDat::~RunConfigDat
~RunConfigDat() override
Definition: RunConfigDat.cc:21
IDataItem
Definition: IDataItem.h:16
GlobalPosition_Frontier_DevDB_cff.tag
tag
Definition: GlobalPosition_Frontier_DevDB_cff.py:11
EcalLogicID
Definition: EcalLogicID.h:7
RunConfigDat::m_configTag
std::string m_configTag
Definition: RunConfigDat.h:34
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
RunConfigDat::fetchData
void fetchData(std::map< EcalLogicID, RunConfigDat > *fillMap, RunIOV *iov) noexcept(false)
Definition: RunConfigDat.cc:64
RunConfigDat::m_configVer
int m_configVer
Definition: RunConfigDat.h:35
RunConfigDat::prepareWrite
void prepareWrite() noexcept(false) override
Definition: RunConfigDat.cc:23
RunConfigDat::setConfigTag
void setConfigTag(std::string tag)
Definition: RunConfigDat.h:21
B2GTnPMonitor_cfi.item
item
Definition: B2GTnPMonitor_cfi.py:147
RunConfigDat::getTable
std::string getTable() override
Definition: RunConfigDat.h:18
RunConfigDat::writeDB
void writeDB(const EcalLogicID *ecid, const RunConfigDat *item, RunIOV *iov) noexcept(false)
Definition: RunConfigDat.cc:38
EcalLogicID.h
std
Definition: JetResolutionObject.h:76
RunConfigDat::getConfigVersion
int getConfigVersion() const
Definition: RunConfigDat.h:23
RunConfigDat::RunConfigDat
RunConfigDat()
Definition: RunConfigDat.cc:11
RunConfigDat::getConfigTag
std::string getConfigTag() const
Definition: RunConfigDat.h:20
genParticles_cff.map
map
Definition: genParticles_cff.py:11