CMS 3D CMS Logo

FEConfigOddWeightInfo.h
Go to the documentation of this file.
1 #ifndef ONLINEDB_ECALCONDDB_FECONFIGODDWEIGHTINFO_H
2 #define ONLINEDB_ECALCONDDB_FECONFIGODDWEIGHTINFO_H
3 
4 #include <map>
5 #include <string>
6 
10 
12 public:
13  friend class EcalCondDBInterface;
14 
16  ~FEConfigOddWeightInfo() override;
17 
18  // Methods for user data
19  inline std::string getTable() override { return "FE_CONFIG_WEIGHT2_INFO"; }
20 
21  void setNumberOfGroups(int n) { m_ngr = n; }
22  int getNumberOfGroups() const { return m_ngr; }
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 FEConfigOddWeightInfo& r) const { return (m_ID == r.m_ID); }
44  inline bool operator!=(const FEConfigOddWeightInfo& r) const { return !(*this == r); }
45 
46 private:
47  // User data for this IOV
48  int m_ngr;
49  int m_ID;
51  int m_version;
52 
53  void prepareWrite() noexcept(false) override;
54  void writeDB() noexcept(false);
55  void clear();
58 };
59 
60 #endif
EcalCondDBInterface
Definition: EcalCondDBInterface.h:37
funct::false
false
Definition: Factorize.h:29
dqmiodumpmetadata.n
n
Definition: dqmiodumpmetadata.py:28
FEConfigOddWeightInfo::getId
int getId() const
Definition: FEConfigOddWeightInfo.h:25
FEConfigOddWeightInfo::fetchData
void fetchData(FEConfigOddWeightInfo *result) noexcept(false)
Definition: FEConfigOddWeightInfo.cc:102
FEConfigOddWeightInfo::setDBTime
void setDBTime(const Tm &x)
Definition: FEConfigOddWeightInfo.h:34
FEConfigOddWeightInfo::fetchNextId
int fetchNextId() noexcept(false)
Definition: FEConfigOddWeightInfo.cc:28
FEConfigOddWeightInfo::m_db_time
Tm m_db_time
Definition: FEConfigOddWeightInfo.h:50
FEConfigOddWeightInfo::~FEConfigOddWeightInfo
~FEConfigOddWeightInfo() override
Definition: FEConfigOddWeightInfo.cc:26
IODConfig.h
FEConfigOddWeightInfo
Definition: FEConfigOddWeightInfo.h:11
FEConfigOddWeightInfo::operator!=
bool operator!=(const FEConfigOddWeightInfo &r) const
Definition: FEConfigOddWeightInfo.h:44
FEConfigOddWeightInfo::fetchID
int fetchID() noexcept(false)
Definition: FEConfigOddWeightInfo.cc:156
DDAxes::x
watchdog.const
const
Definition: watchdog.py:83
FEConfigOddWeightInfo::m_version
int m_version
Definition: FEConfigOddWeightInfo.h:51
FEConfigOddWeightInfo::getDBTime
Tm getDBTime() const
Definition: FEConfigOddWeightInfo.h:33
FEConfigOddWeightInfo::setVersion
void setVersion(int id)
Definition: FEConfigOddWeightInfo.h:30
FEConfigOddWeightInfo::getVersion
int getVersion() const
Definition: FEConfigOddWeightInfo.h:31
Utilities.operator
operator
Definition: Utilities.py:24
FEConfigOddWeightInfo::setByID
void setByID(int id) noexcept(false)
Definition: FEConfigOddWeightInfo.cc:185
FEConfigOddWeightInfo::setId
void setId(int id)
Definition: FEConfigOddWeightInfo.h:24
FEConfigOddWeightInfo::FEConfigOddWeightInfo
FEConfigOddWeightInfo()
Definition: FEConfigOddWeightInfo.cc:13
Tm
Definition: Tm.h:13
FEConfigOddWeightInfo::fetchLastData
void fetchLastData(FEConfigOddWeightInfo *result) noexcept(false)
Definition: FEConfigOddWeightInfo.cc:133
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
FEConfigOddWeightInfo::setNumberOfGroups
void setNumberOfGroups(int n)
Definition: FEConfigOddWeightInfo.h:21
Tm.h
IODConfig
Definition: IODConfig.h:18
FEConfigOddWeightInfo::setParameters
void setParameters(const std::map< std::string, std::string > &my_keys_map)
Definition: FEConfigOddWeightInfo.cc:70
FEConfigOddWeightInfo::getTable
std::string getTable() override
Definition: FEConfigOddWeightInfo.h:19
alignCSCRings.r
r
Definition: alignCSCRings.py:93
FEConfigOddWeightInfo::getID
int getID()
Definition: FEConfigOddWeightInfo.h:28
FEConfigOddWeightInfo::m_ngr
int m_ngr
Definition: FEConfigOddWeightInfo.h:48
FEConfigOddWeightInfo::getNumberOfGroups
int getNumberOfGroups() const
Definition: FEConfigOddWeightInfo.h:22
std
Definition: JetResolutionObject.h:76
FEConfigOddWeightInfo::writeDB
void writeDB() noexcept(false)
Definition: FEConfigOddWeightInfo.cc:82
triggerObjects_cff.id
id
Definition: triggerObjects_cff.py:29
FEConfigOddWeightInfo::setID
void setID(int id)
Definition: FEConfigOddWeightInfo.h:27
DateHandler.h
mps_fire.result
result
Definition: mps_fire.py:311
genParticles_cff.map
map
Definition: genParticles_cff.py:11
FEConfigOddWeightInfo::prepareWrite
void prepareWrite() noexcept(false) override
Definition: FEConfigOddWeightInfo.cc:48
FEConfigOddWeightInfo::m_ID
int m_ID
Definition: FEConfigOddWeightInfo.h:49
FEConfigOddWeightInfo::clear
void clear()
Definition: FEConfigOddWeightInfo.cc:24