CMS 3D CMS Logo

ODFEWeightsInfo.h
Go to the documentation of this file.
1 #ifndef ODFEWEIGHTSINFO_H
2 #define ODFEWEIGHTSINFO_H
3 
4 #include <map>
5 #include <string>
6 
8 
9 class ODFEWeightsInfo : public IODConfig {
10 public:
11  friend class EcalCondDBInterface;
13  ~ODFEWeightsInfo() override;
14 
15  // User data methods
16  inline std::string getTable() override { return "DCC_WEIGHTS_INFO"; }
17 
18  inline void setId(int id) { m_ID = id; }
19  inline int getId() const { return m_ID; }
20 
21  // the tag is already in IODConfig
22 
23  inline void setVersion(int id) { m_version = id; }
24  inline int getVersion() const { return m_version; }
25 
26  int fetchNextId() noexcept(false);
27  void setParameters(const std::map<std::string, std::string>& my_keys_map);
28  int fetchID() noexcept(false);
29 
30 private:
31  void prepareWrite() noexcept(false) override;
32 
33  void writeDB() noexcept(false);
34 
35  void clear();
36 
37  void fetchData(ODFEWeightsInfo* result) noexcept(false);
38 
39  // User data
40  int m_ID;
41  int m_version;
42 };
43 
44 #endif
EcalCondDBInterface
Definition: EcalCondDBInterface.h:37
ODFEWeightsInfo::getTable
std::string getTable() override
Definition: ODFEWeightsInfo.h:16
ODFEWeightsInfo::setVersion
void setVersion(int id)
Definition: ODFEWeightsInfo.h:23
funct::false
false
Definition: Factorize.h:29
ODFEWeightsInfo::prepareWrite
void prepareWrite() noexcept(false) override
Definition: ODFEWeightsInfo.cc:47
IODConfig.h
ODFEWeightsInfo::m_version
int m_version
Definition: ODFEWeightsInfo.h:41
watchdog.const
const
Definition: watchdog.py:83
ODFEWeightsInfo::writeDB
void writeDB() noexcept(false)
Definition: ODFEWeightsInfo.cc:81
ODFEWeightsInfo::fetchID
int fetchID() noexcept(false)
Definition: ODFEWeightsInfo.cc:143
ODFEWeightsInfo::getVersion
int getVersion() const
Definition: ODFEWeightsInfo.h:24
ODFEWeightsInfo::getId
int getId() const
Definition: ODFEWeightsInfo.h:19
ODFEWeightsInfo
Definition: ODFEWeightsInfo.h:9
ODFEWeightsInfo::setParameters
void setParameters(const std::map< std::string, std::string > &my_keys_map)
Definition: ODFEWeightsInfo.cc:69
ODFEWeightsInfo::fetchNextId
int fetchNextId() noexcept(false)
Definition: ODFEWeightsInfo.cc:27
ODFEWeightsInfo::setId
void setId(int id)
Definition: ODFEWeightsInfo.h:18
ODFEWeightsInfo::m_ID
int m_ID
Definition: ODFEWeightsInfo.h:40
IODConfig
Definition: IODConfig.h:18
ODFEWeightsInfo::clear
void clear()
Definition: ODFEWeightsInfo.cc:23
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
ODFEWeightsInfo::~ODFEWeightsInfo
~ODFEWeightsInfo() override
Definition: ODFEWeightsInfo.cc:25
ODFEWeightsInfo::fetchData
void fetchData(ODFEWeightsInfo *result) noexcept(false)
Definition: ODFEWeightsInfo.cc:108
std
Definition: JetResolutionObject.h:76
triggerObjects_cff.id
id
Definition: triggerObjects_cff.py:29
ODFEWeightsInfo::ODFEWeightsInfo
ODFEWeightsInfo()
Definition: ODFEWeightsInfo.cc:12
mps_fire.result
result
Definition: mps_fire.py:311
genParticles_cff.map
map
Definition: genParticles_cff.py:11