Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 13:31:53

0001 #ifndef RUNTPGCONFIGDAT_H
0002 #define RUNTPGCONFIGDAT_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 RunTPGConfigDat : public IDataItem {
0012 public:
0013   friend class EcalCondDBInterface;
0014   RunTPGConfigDat();
0015   ~RunTPGConfigDat() override;
0016 
0017   // User data methods
0018   inline std::string getTable() override { return "RUN_TPGCONFIG_DAT"; }
0019 
0020   inline std::string getConfigTag() const { return m_config; }
0021   inline void setConfigTag(std::string x) { m_config = x; }
0022   inline int getVersion() const { return m_version; }
0023   inline void setVersion(int x) { m_version = x; }
0024 
0025 private:
0026   void prepareWrite() noexcept(false) override;
0027 
0028   void writeDB(const EcalLogicID* ecid, const RunTPGConfigDat* item, RunIOV* iov) noexcept(false);
0029 
0030   void fetchData(std::map<EcalLogicID, RunTPGConfigDat>* fillMap, RunIOV* iov) noexcept(false);
0031 
0032   // User data
0033   int m_version;
0034   std::string m_config;
0035 };
0036 
0037 #endif