Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:22:57

0001 #ifndef RUNCONFIGDAT_H
0002 #define RUNCONFIGDAT_H
0003 
0004 #include <vector>
0005 #include <stdexcept>
0006 
0007 #include "OnlineDB/EcalCondDB/interface/IDataItem.h"
0008 #include "OnlineDB/EcalCondDB/interface/RunIOV.h"
0009 #include "OnlineDB/EcalCondDB/interface/EcalLogicID.h"
0010 
0011 class RunConfigDat : public IDataItem {
0012 public:
0013   friend class EcalCondDBInterface;
0014   RunConfigDat();
0015   ~RunConfigDat() override;
0016 
0017   // User data methods
0018   inline std::string getTable() override { return "RUN_CONFIG_DAT"; }
0019 
0020   inline std::string getConfigTag() const { return m_configTag; }
0021   inline void setConfigTag(std::string tag) { m_configTag = tag; }
0022 
0023   inline int getConfigVersion() const { return m_configVer; }
0024   inline void setConfigVersion(int ver) { m_configVer = ver; }
0025 
0026 private:
0027   void prepareWrite() noexcept(false) override;
0028 
0029   void writeDB(const EcalLogicID* ecid, const RunConfigDat* item, RunIOV* iov) noexcept(false);
0030 
0031   void fetchData(std::map<EcalLogicID, RunConfigDat>* fillMap, RunIOV* iov) noexcept(false);
0032 
0033   // User data
0034   std::string m_configTag;
0035   int m_configVer;
0036 };
0037 
0038 #endif