CMS 3D CMS Logo

FEConfigFgrInfo.h
Go to the documentation of this file.
1 #ifndef FECONFIGFGR_H
2 #define FECONFIGFGR_H
3 
4 #include <map>
5 #include <string>
6 
10 
11 class FEConfigFgrInfo : public IODConfig {
12 public:
13  friend class EcalCondDBInterface;
14 
16  ~FEConfigFgrInfo() override;
17 
18  // Methods for user data
19  inline std::string getTable() override { return "FE_CONFIG_FGR_INFO"; }
20 
21  inline void setNumberOfGroups(int iov_id) { m_iov_id = iov_id; }
22  int getNumberOfGroups() const { return m_iov_id; }
23 
24  inline void setId(int id) { m_ID = id; }
25  inline int getId() const { return m_ID; }
26  // for compatibility
27  void setID(int id) { setId(id); }
28  int getID() { return getId(); }
29  // the tag is already in IODConfig
30  inline void setVersion(int id) { m_version = id; }
31  inline int getVersion() const { return m_version; }
32 
33  Tm getDBTime() const { return m_db_time; }
34  void setDBTime(const Tm& x) { m_db_time = x; }
35 
36  // Methods from IUniqueDBObject
37  int fetchID() noexcept(false);
38  int fetchNextId() noexcept(false);
39  void setByID(int id) noexcept(false);
40  void setParameters(const std::map<std::string, std::string>& my_keys_map);
41 
42  // operators
43  inline bool operator==(const FEConfigFgrInfo& r) const { return (m_ID == r.m_ID); }
44  inline bool operator!=(const FEConfigFgrInfo& r) const { return !(*this == r); }
45 
46 private:
47  // User data for this IOV
48  int m_iov_id;
49  int m_ID;
51  int m_version;
52 
53  void prepareWrite() noexcept(false) override;
54  void writeDB() noexcept(false);
55  void clear();
56  void fetchData(FEConfigFgrInfo* result) noexcept(false);
57  void fetchLastData(FEConfigFgrInfo* result) noexcept(false);
58 };
59 
60 #endif
EcalCondDBInterface
Definition: EcalCondDBInterface.h:37
FEConfigFgrInfo::setDBTime
void setDBTime(const Tm &x)
Definition: FEConfigFgrInfo.h:34
funct::false
false
Definition: Factorize.h:29
FEConfigFgrInfo::m_db_time
Tm m_db_time
Definition: FEConfigFgrInfo.h:50
FEConfigFgrInfo::clear
void clear()
Definition: FEConfigFgrInfo.cc:24
FEConfigFgrInfo::setID
void setID(int id)
Definition: FEConfigFgrInfo.h:27
FEConfigFgrInfo::getId
int getId() const
Definition: FEConfigFgrInfo.h:25
FEConfigFgrInfo::setNumberOfGroups
void setNumberOfGroups(int iov_id)
Definition: FEConfigFgrInfo.h:21
IODConfig.h
FEConfigFgrInfo::writeDB
void writeDB() noexcept(false)
Definition: FEConfigFgrInfo.cc:84
DDAxes::x
FEConfigFgrInfo::fetchID
int fetchID() noexcept(false)
Definition: FEConfigFgrInfo.cc:161
FEConfigFgrInfo::setParameters
void setParameters(const std::map< std::string, std::string > &my_keys_map)
Definition: FEConfigFgrInfo.cc:70
watchdog.const
const
Definition: watchdog.py:83
FEConfigFgrInfo::prepareWrite
void prepareWrite() noexcept(false) override
Definition: FEConfigFgrInfo.cc:48
FEConfigFgrInfo::m_version
int m_version
Definition: FEConfigFgrInfo.h:51
Utilities.operator
operator
Definition: Utilities.py:24
FEConfigFgrInfo::setId
void setId(int id)
Definition: FEConfigFgrInfo.h:24
FEConfigFgrInfo::~FEConfigFgrInfo
~FEConfigFgrInfo() override
Definition: FEConfigFgrInfo.cc:26
FEConfigFgrInfo::getID
int getID()
Definition: FEConfigFgrInfo.h:28
FEConfigFgrInfo::setVersion
void setVersion(int id)
Definition: FEConfigFgrInfo.h:30
FEConfigFgrInfo::fetchData
void fetchData(FEConfigFgrInfo *result) noexcept(false)
Definition: FEConfigFgrInfo.cc:105
Tm
Definition: Tm.h:13
FEConfigFgrInfo::getDBTime
Tm getDBTime() const
Definition: FEConfigFgrInfo.h:33
FEConfigFgrInfo
Definition: FEConfigFgrInfo.h:11
FEConfigFgrInfo::FEConfigFgrInfo
FEConfigFgrInfo()
Definition: FEConfigFgrInfo.cc:13
Tm.h
IODConfig
Definition: IODConfig.h:18
FEConfigFgrInfo::getNumberOfGroups
int getNumberOfGroups() const
Definition: FEConfigFgrInfo.h:22
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
FEConfigFgrInfo::m_iov_id
int m_iov_id
Definition: FEConfigFgrInfo.h:48
alignCSCRings.r
r
Definition: alignCSCRings.py:93
std
Definition: JetResolutionObject.h:76
FEConfigFgrInfo::operator!=
bool operator!=(const FEConfigFgrInfo &r) const
Definition: FEConfigFgrInfo.h:44
triggerObjects_cff.id
id
Definition: triggerObjects_cff.py:29
FEConfigFgrInfo::setByID
void setByID(int id) noexcept(false)
Definition: FEConfigFgrInfo.cc:191
FEConfigFgrInfo::getTable
std::string getTable() override
Definition: FEConfigFgrInfo.h:19
DateHandler.h
mps_fire.result
result
Definition: mps_fire.py:311
genParticles_cff.map
map
Definition: genParticles_cff.py:11
FEConfigFgrInfo::m_ID
int m_ID
Definition: FEConfigFgrInfo.h:49
FEConfigFgrInfo::getVersion
int getVersion() const
Definition: FEConfigFgrInfo.h:31
FEConfigFgrInfo::fetchNextId
int fetchNextId() noexcept(false)
Definition: FEConfigFgrInfo.cc:28
FEConfigFgrInfo::fetchLastData
void fetchLastData(FEConfigFgrInfo *result) noexcept(false)
Definition: FEConfigFgrInfo.cc:137