CMS 3D CMS Logo

FEConfigMainInfo.h
Go to the documentation of this file.
1 #ifndef FECONFIGMAININFO_H
2 #define FECONFIGMAININFO_H
3 
4 #include <stdexcept>
5 #include <iostream>
6 
7 #include <map>
8 #include <string>
9 
13 
14 class FEConfigMainInfo : public IODConfig {
15 public:
16  friend class EcalCondDBInterface;
17 
19  ~FEConfigMainInfo() override;
20 
21  inline std::string getTable() override { return "FE_CONFIG_MAIN"; }
22 
23  // Methods for user data
24  inline void setId(int id) { m_ID = id; }
25  inline int getId() const { return m_ID; }
26 
27  Tm getDBTime() const { return m_db_time; }
28  void setDBTime(const Tm &x) { m_db_time = x; }
29 
32  //
33  void setPedId(int x) { m_ped_id = x; }
34  int getPedId() const { return m_ped_id; }
35  //
36  void setLinId(int x) { m_lin_id = x; }
37  int getLinId() const { return m_lin_id; }
38  //
39  void setLUTId(int x) { m_lut_id = x; }
40  int getLUTId() const { return m_lut_id; }
41  //
42  void setFgrId(int x) { m_fgr_id = x; }
43  int getFgrId() const { return m_fgr_id; }
44  //
45  void setSliId(int x) { m_sli_id = x; }
46  int getSliId() const { return m_sli_id; }
47  //
48  void setWeiId(int x) { m_wei_id = x; }
49  int getWeiId() const { return m_wei_id; }
50  //
51  void setSpiId(int x) { m_spi_id = x; }
52  int getSpiId() const { return m_spi_id; }
53  //
54  void setTimId(int x) { m_tim_id = x; }
55  int getTimId() const { return m_tim_id; }
56  //
57  void setBxtId(int x) { m_bxt_id = x; }
58  int getBxtId() const { return m_bxt_id; }
59  //
60  void setBttId(int x) { m_btt_id = x; }
61  int getBttId() const { return m_btt_id; }
62  //
63  void setBstId(int x) { m_bst_id = x; }
64  int getBstId() const { return m_bst_id; }
65  //
66  inline void setVersion(int id) { m_version = id; }
67  inline int getVersion() const { return m_version; }
68 
69  // operators
70  inline bool operator==(const FEConfigMainInfo &r) const { return (m_ID == r.m_ID); }
71  inline bool operator!=(const FEConfigMainInfo &r) const { return !(*this == r); }
72 
73 private:
74  // User data for this IOV
75  int m_ID;
76  int m_ped_id;
77  int m_lin_id;
78  int m_lut_id;
79  int m_sli_id;
80  int m_fgr_id;
81  int m_wei_id;
82  int m_bxt_id;
83  int m_btt_id;
84  int m_bst_id;
85  int m_tim_id;
86  int m_spi_id;
87  int m_version;
90 
91  void prepareWrite() noexcept(false) override;
92  void writeDB() noexcept(false);
93  void clear();
94  void fetchData(FEConfigMainInfo *result) noexcept(false);
95  void insertConfig() noexcept(false);
96 
97  // Methods from IUniqueDBObject
98  int fetchID() noexcept(false); // fetches
99  int fetchNextId() noexcept(false); // fetches
100  int fetchIDLast() noexcept(false); // fetches the last one
101  void setByID(int id) noexcept(false);
102 };
103 
104 #endif
FEConfigMainInfo::getSpiId
int getSpiId() const
Definition: FEConfigMainInfo.h:52
EcalCondDBInterface
Definition: EcalCondDBInterface.h:37
FEConfigMainInfo::setSliId
void setSliId(int x)
Definition: FEConfigMainInfo.h:45
FEConfigMainInfo::getId
int getId() const
Definition: FEConfigMainInfo.h:25
funct::false
false
Definition: Factorize.h:29
FEConfigMainInfo::FEConfigMainInfo
FEConfigMainInfo()
Definition: FEConfigMainInfo.cc:11
FEConfigMainInfo::getVersion
int getVersion() const
Definition: FEConfigMainInfo.h:67
FEConfigMainInfo::setBttId
void setBttId(int x)
Definition: FEConfigMainInfo.h:60
FEConfigMainInfo::writeDB
void writeDB() noexcept(false)
Definition: FEConfigMainInfo.cc:127
FEConfigMainInfo::setLinId
void setLinId(int x)
Definition: FEConfigMainInfo.h:36
FEConfigMainInfo::getLinId
int getLinId() const
Definition: FEConfigMainInfo.h:37
FEConfigMainInfo
Definition: FEConfigMainInfo.h:14
FEConfigMainInfo::setLUTId
void setLUTId(int x)
Definition: FEConfigMainInfo.h:39
IODConfig.h
FEConfigMainInfo::m_version
int m_version
Definition: FEConfigMainInfo.h:87
FEConfigMainInfo::getDBTime
Tm getDBTime() const
Definition: FEConfigMainInfo.h:27
DDAxes::x
FEConfigMainInfo::fetchID
int fetchID() noexcept(false)
Definition: FEConfigMainInfo.cc:59
FEConfigMainInfo::setVersion
void setVersion(int id)
Definition: FEConfigMainInfo.h:66
FEConfigMainInfo::getDescription
std::string getDescription() const
Definition: FEConfigMainInfo.h:31
FEConfigMainInfo::getFgrId
int getFgrId() const
Definition: FEConfigMainInfo.h:43
FEConfigMainInfo::getBttId
int getBttId() const
Definition: FEConfigMainInfo.h:61
FEConfigMainInfo::~FEConfigMainInfo
~FEConfigMainInfo() override
Definition: FEConfigMainInfo.cc:22
FEConfigMainInfo::m_btt_id
int m_btt_id
Definition: FEConfigMainInfo.h:83
FEConfigMainInfo::setId
void setId(int id)
Definition: FEConfigMainInfo.h:24
FEConfigMainInfo::m_sli_id
int m_sli_id
Definition: FEConfigMainInfo.h:79
FEConfigMainInfo::prepareWrite
void prepareWrite() noexcept(false) override
Definition: FEConfigMainInfo.cc:107
FEConfigMainInfo::m_lin_id
int m_lin_id
Definition: FEConfigMainInfo.h:77
FEConfigMainInfo::fetchNextId
int fetchNextId() noexcept(false)
Definition: FEConfigMainInfo.cc:40
FEConfigMainInfo::setDescription
void setDescription(std::string x)
Definition: FEConfigMainInfo.h:30
FEConfigMainInfo::m_bst_id
int m_bst_id
Definition: FEConfigMainInfo.h:84
FEConfigMainInfo::getBxtId
int getBxtId() const
Definition: FEConfigMainInfo.h:58
FEConfigMainInfo::operator==
bool operator==(const FEConfigMainInfo &r) const
Definition: FEConfigMainInfo.h:70
FEConfigMainInfo::setBxtId
void setBxtId(int x)
Definition: FEConfigMainInfo.h:57
Tm
Definition: Tm.h:13
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
FEConfigMainInfo::getWeiId
int getWeiId() const
Definition: FEConfigMainInfo.h:49
FEConfigMainInfo::setFgrId
void setFgrId(int x)
Definition: FEConfigMainInfo.h:42
FEConfigMainInfo::setPedId
void setPedId(int x)
Definition: FEConfigMainInfo.h:33
FEConfigMainInfo::m_tim_id
int m_tim_id
Definition: FEConfigMainInfo.h:85
FEConfigMainInfo::m_fgr_id
int m_fgr_id
Definition: FEConfigMainInfo.h:80
FEConfigMainInfo::setWeiId
void setWeiId(int x)
Definition: FEConfigMainInfo.h:48
FEConfigMainInfo::m_ped_id
int m_ped_id
Definition: FEConfigMainInfo.h:76
Tm.h
IODConfig
Definition: IODConfig.h:18
FEConfigMainInfo::m_lut_id
int m_lut_id
Definition: FEConfigMainInfo.h:78
FEConfigMainInfo::operator!=
bool operator!=(const FEConfigMainInfo &r) const
Definition: FEConfigMainInfo.h:71
FEConfigMainInfo::setSpiId
void setSpiId(int x)
Definition: FEConfigMainInfo.h:51
FEConfigMainInfo::m_wei_id
int m_wei_id
Definition: FEConfigMainInfo.h:81
FEConfigMainInfo::getSliId
int getSliId() const
Definition: FEConfigMainInfo.h:46
alignCSCRings.r
r
Definition: alignCSCRings.py:93
FEConfigMainInfo::setDBTime
void setDBTime(const Tm &x)
Definition: FEConfigMainInfo.h:28
FEConfigMainInfo::fetchData
void fetchData(FEConfigMainInfo *result) noexcept(false)
Definition: FEConfigMainInfo.cc:229
FEConfigMainInfo::insertConfig
void insertConfig() noexcept(false)
Definition: FEConfigMainInfo.cc:281
FEConfigMainInfo::setByID
void setByID(int id) noexcept(false)
Definition: FEConfigMainInfo.cc:187
FEConfigMainInfo::m_spi_id
int m_spi_id
Definition: FEConfigMainInfo.h:86
FEConfigMainInfo::setTimId
void setTimId(int x)
Definition: FEConfigMainInfo.h:54
FEConfigMainInfo::clear
void clear()
Definition: FEConfigMainInfo.cc:24
triggerObjects_cff.id
id
Definition: triggerObjects_cff.py:31
FEConfigMainInfo::m_db_time
Tm m_db_time
Definition: FEConfigMainInfo.h:88
FEConfigMainInfo::setBstId
void setBstId(int x)
Definition: FEConfigMainInfo.h:63
FEConfigMainInfo::getPedId
int getPedId() const
Definition: FEConfigMainInfo.h:34
FEConfigMainInfo::m_bxt_id
int m_bxt_id
Definition: FEConfigMainInfo.h:82
DateHandler.h
FEConfigMainInfo::getTable
std::string getTable() override
Definition: FEConfigMainInfo.h:21
mps_fire.result
result
Definition: mps_fire.py:311
FEConfigMainInfo::getTimId
int getTimId() const
Definition: FEConfigMainInfo.h:55
FEConfigMainInfo::getBstId
int getBstId() const
Definition: FEConfigMainInfo.h:64
FEConfigMainInfo::fetchIDLast
int fetchIDLast() noexcept(false)
Definition: FEConfigMainInfo.cc:163
FEConfigMainInfo::m_ID
int m_ID
Definition: FEConfigMainInfo.h:75
FEConfigMainInfo::m_description
std::string m_description
Definition: FEConfigMainInfo.h:89
FEConfigMainInfo::getLUTId
int getLUTId() const
Definition: FEConfigMainInfo.h:40