Back to home page

Project CMSSW displayed by LXR

 
 

    


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

0001 #ifndef FECONFIGBADXTINFO_H
0002 #define FECONFIGBADXTINFO_H
0003 
0004 #include <map>
0005 #include <string>
0006 
0007 #include "OnlineDB/EcalCondDB/interface/IODConfig.h"
0008 
0009 class FEConfigBadXTInfo : public IODConfig {
0010 public:
0011   friend class EcalCondDBInterface;
0012   FEConfigBadXTInfo();
0013   ~FEConfigBadXTInfo() override;
0014 
0015   // User data methods
0016   inline std::string getTable() override { return "FE_CONFIG_BadCrystals_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   int fetchID() noexcept(false);
0026 
0027   int fetchNextId() noexcept(false);
0028   void setParameters(const std::map<std::string, std::string>& my_keys_map);
0029 
0030 private:
0031   void prepareWrite() noexcept(false) override;
0032 
0033   void writeDB() noexcept(false);
0034 
0035   void clear();
0036 
0037   void fetchData(FEConfigBadXTInfo* result) noexcept(false);
0038 
0039   // User data
0040   int m_ID;
0041   int m_version;
0042 };
0043 
0044 #endif