CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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();
56  void fetchData(FEConfigOddWeightInfo* result) noexcept(false);
57  void fetchLastData(FEConfigOddWeightInfo* result) noexcept(false);
58 };
59 
60 #endif
uint16_t *__restrict__ id
int fetchNextId() noexcept(false)
bool operator!=(const FEConfigOddWeightInfo &r) const
void prepareWrite() noexcept(false) override
void writeDB() noexcept(false)
void fetchData(FEConfigOddWeightInfo *result) noexcept(false)
void setDBTime(const Tm &x)
tuple result
Definition: mps_fire.py:311
void setByID(int id) noexcept(false)
#define override(base_class)
int fetchID() noexcept(false)
std::string getTable() override
void fetchLastData(FEConfigOddWeightInfo *result) noexcept(false)
void setParameters(const std::map< std::string, std::string > &my_keys_map)
Definition: Tm.h:13