Back to home page

Project CMSSW displayed by LXR

 
 

    


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

0001 #ifndef ODFEWEIGHTSINFO_H
0002 #define ODFEWEIGHTSINFO_H
0003 
0004 #include <map>
0005 #include <string>
0006 
0007 #include "OnlineDB/EcalCondDB/interface/IODConfig.h"
0008 
0009 class ODFEWeightsInfo : public IODConfig {
0010 public:
0011   friend class EcalCondDBInterface;
0012   ODFEWeightsInfo();
0013   ~ODFEWeightsInfo() override;
0014 
0015   // User data methods
0016   inline std::string getTable() override { return "DCC_WEIGHTS_INFO"; }
0017 
0018   inline void setId(int id) { m_ID = id; }
0019   inline int getId() const { return m_ID; }
0020 
0021   // the tag is already in IODConfig
0022 
0023   inline void setVersion(int id) { m_version = id; }
0024   inline int getVersion() const { return m_version; }
0025 
0026   int fetchNextId() noexcept(false);
0027   void setParameters(const std::map<std::string, std::string>& my_keys_map);
0028   int fetchID() noexcept(false);
0029 
0030 private:
0031   void prepareWrite() noexcept(false) override;
0032 
0033   void writeDB() noexcept(false);
0034 
0035   void clear();
0036 
0037   void fetchData(ODFEWeightsInfo* result) noexcept(false);
0038 
0039   // User data
0040   int m_ID;
0041   int m_version;
0042 };
0043 
0044 #endif