CMS 3D CMS Logo

ODFEPedestalOffsetInfo.h
Go to the documentation of this file.
1 #ifndef ODFEPEDOFFINFO_H
2 #define ODFEPEDOFFINFO_H
3 
4 #include <map>
5 #include <string>
6 
8 
10 public:
11  friend class EcalCondDBInterface;
13  ~ODFEPedestalOffsetInfo() override;
14 
15  // User data methods
16  inline std::string getTable() override { return "PEDESTAL_OFFSETS_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 
39 
40  // User data
41  int m_ID;
42  int m_version;
43 };
44 
45 #endif
EcalCondDBInterface
Definition: EcalCondDBInterface.h:37
funct::false
false
Definition: Factorize.h:29
IODConfig.h
ODFEPedestalOffsetInfo::fetchID
int fetchID() noexcept(false)
Definition: ODFEPedestalOffsetInfo.cc:163
ODFEPedestalOffsetInfo::setParameters
void setParameters(const std::map< std::string, std::string > &my_keys_map)
Definition: ODFEPedestalOffsetInfo.cc:69
ODFEPedestalOffsetInfo::prepareWrite
void prepareWrite() noexcept(false) override
Definition: ODFEPedestalOffsetInfo.cc:47
watchdog.const
const
Definition: watchdog.py:83
ODFEPedestalOffsetInfo::getTable
std::string getTable() override
Definition: ODFEPedestalOffsetInfo.h:16
ODFEPedestalOffsetInfo::m_version
int m_version
Definition: ODFEPedestalOffsetInfo.h:42
ODFEPedestalOffsetInfo::fetchNextId
int fetchNextId() noexcept(false)
Definition: ODFEPedestalOffsetInfo.cc:27
ODFEPedestalOffsetInfo::clear
void clear()
Definition: ODFEPedestalOffsetInfo.cc:23
ODFEPedestalOffsetInfo::ODFEPedestalOffsetInfo
ODFEPedestalOffsetInfo()
Definition: ODFEPedestalOffsetInfo.cc:12
ODFEPedestalOffsetInfo
Definition: ODFEPedestalOffsetInfo.h:9
ODFEPedestalOffsetInfo::m_ID
int m_ID
Definition: ODFEPedestalOffsetInfo.h:41
ODFEPedestalOffsetInfo::fetchLastData
void fetchLastData(ODFEPedestalOffsetInfo *result) noexcept(false)
Definition: ODFEPedestalOffsetInfo.cc:144
IODConfig
Definition: IODConfig.h:18
ODFEPedestalOffsetInfo::writeDB
void writeDB() noexcept(false)
Definition: ODFEPedestalOffsetInfo.cc:81
ODFEPedestalOffsetInfo::setVersion
void setVersion(int id)
Definition: ODFEPedestalOffsetInfo.h:23
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
ODFEPedestalOffsetInfo::fetchData
void fetchData(ODFEPedestalOffsetInfo *result) noexcept(false)
Definition: ODFEPedestalOffsetInfo.cc:109
ODFEPedestalOffsetInfo::setId
void setId(int id)
Definition: ODFEPedestalOffsetInfo.h:18
std
Definition: JetResolutionObject.h:76
ODFEPedestalOffsetInfo::~ODFEPedestalOffsetInfo
~ODFEPedestalOffsetInfo() override
Definition: ODFEPedestalOffsetInfo.cc:25
triggerObjects_cff.id
id
Definition: triggerObjects_cff.py:29
ODFEPedestalOffsetInfo::getVersion
int getVersion() const
Definition: ODFEPedestalOffsetInfo.h:24
mps_fire.result
result
Definition: mps_fire.py:311
genParticles_cff.map
map
Definition: genParticles_cff.py:11
ODFEPedestalOffsetInfo::getId
int getId() const
Definition: ODFEPedestalOffsetInfo.h:19