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  void setCokeId(int x) { m_coke_id = x; }
67  int getCokeId() const { return m_coke_id; }
68  //
69  void setWeight2Id(int x) { m_wei2_id = x; }
70  int getWeight2Id() const { return m_wei2_id; }
71  //
72  void setWei2Id(int x) { m_wei2_id = x; }
73  int getWei2Id() const { return m_wei2_id; }
74  //
75  void setOddWeiId(int x) { m_wei2_id = x; }
76  int getOddWeiId() const { return m_wei2_id; }
77  //
78  inline void setVersion(int id) { m_version = id; }
79  inline int getVersion() const { return m_version; }
80 
81  // operators
82  inline bool operator==(const FEConfigMainInfo &r) const { return (m_ID == r.m_ID); }
83  inline bool operator!=(const FEConfigMainInfo &r) const { return !(*this == r); }
84 
85 private:
86  // User data for this IOV
87  int m_ID;
88  int m_ped_id;
89  int m_lin_id;
90  int m_lut_id;
91  int m_sli_id;
92  int m_fgr_id;
93  int m_wei_id;
94  int m_bxt_id;
95  int m_btt_id;
96  int m_bst_id;
97  int m_tim_id;
98  int m_spi_id;
99  int m_coke_id;
104 
105  void prepareWrite() noexcept(false) override;
106  void writeDB() noexcept(false);
107  void clear();
108  void fetchData(FEConfigMainInfo *result) noexcept(false);
109  void insertConfig() noexcept(false);
110 
111  // Methods from IUniqueDBObject
112  int fetchID() noexcept(false); // fetches
113  int fetchNextId() noexcept(false); // fetches
114  int fetchIDLast() noexcept(false); // fetches the last one
115  void setByID(int id) noexcept(false);
116 };
117 
118 #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::setOddWeiId
void setOddWeiId(int x)
Definition: FEConfigMainInfo.h:75
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:79
FEConfigMainInfo::setBttId
void setBttId(int x)
Definition: FEConfigMainInfo.h:60
FEConfigMainInfo::writeDB
void writeDB() noexcept(false)
Definition: FEConfigMainInfo.cc:130
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_wei2_id
int m_wei2_id
Definition: FEConfigMainInfo.h:100
FEConfigMainInfo::m_version
int m_version
Definition: FEConfigMainInfo.h:101
FEConfigMainInfo::getDBTime
Tm getDBTime() const
Definition: FEConfigMainInfo.h:27
DDAxes::x
FEConfigMainInfo::fetchID
int fetchID() noexcept(false)
Definition: FEConfigMainInfo.cc:61
FEConfigMainInfo::setVersion
void setVersion(int id)
Definition: FEConfigMainInfo.h:78
FEConfigMainInfo::m_coke_id
int m_coke_id
Definition: FEConfigMainInfo.h:99
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:95
FEConfigMainInfo::setId
void setId(int id)
Definition: FEConfigMainInfo.h:24
FEConfigMainInfo::m_sli_id
int m_sli_id
Definition: FEConfigMainInfo.h:91
FEConfigMainInfo::prepareWrite
void prepareWrite() noexcept(false) override
Definition: FEConfigMainInfo.cc:109
FEConfigMainInfo::m_lin_id
int m_lin_id
Definition: FEConfigMainInfo.h:89
FEConfigMainInfo::fetchNextId
int fetchNextId() noexcept(false)
Definition: FEConfigMainInfo.cc:42
FEConfigMainInfo::setDescription
void setDescription(std::string x)
Definition: FEConfigMainInfo.h:30
FEConfigMainInfo::m_bst_id
int m_bst_id
Definition: FEConfigMainInfo.h:96
FEConfigMainInfo::setWei2Id
void setWei2Id(int x)
Definition: FEConfigMainInfo.h:72
FEConfigMainInfo::getWeight2Id
int getWeight2Id() const
Definition: FEConfigMainInfo.h:70
FEConfigMainInfo::getBxtId
int getBxtId() const
Definition: FEConfigMainInfo.h:58
FEConfigMainInfo::operator==
bool operator==(const FEConfigMainInfo &r) const
Definition: FEConfigMainInfo.h:82
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::setWeight2Id
void setWeight2Id(int x)
Definition: FEConfigMainInfo.h:69
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:97
FEConfigMainInfo::m_fgr_id
int m_fgr_id
Definition: FEConfigMainInfo.h:92
FEConfigMainInfo::getCokeId
int getCokeId() const
Definition: FEConfigMainInfo.h:67
FEConfigMainInfo::setWeiId
void setWeiId(int x)
Definition: FEConfigMainInfo.h:48
FEConfigMainInfo::m_ped_id
int m_ped_id
Definition: FEConfigMainInfo.h:88
Tm.h
IODConfig
Definition: IODConfig.h:18
FEConfigMainInfo::m_lut_id
int m_lut_id
Definition: FEConfigMainInfo.h:90
FEConfigMainInfo::setCokeId
void setCokeId(int x)
Definition: FEConfigMainInfo.h:66
FEConfigMainInfo::operator!=
bool operator!=(const FEConfigMainInfo &r) const
Definition: FEConfigMainInfo.h:83
FEConfigMainInfo::setSpiId
void setSpiId(int x)
Definition: FEConfigMainInfo.h:51
FEConfigMainInfo::m_wei_id
int m_wei_id
Definition: FEConfigMainInfo.h:93
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:239
FEConfigMainInfo::insertConfig
void insertConfig() noexcept(false)
Definition: FEConfigMainInfo.cc:296
FEConfigMainInfo::setByID
void setByID(int id) noexcept(false)
Definition: FEConfigMainInfo.cc:192
FEConfigMainInfo::m_spi_id
int m_spi_id
Definition: FEConfigMainInfo.h:98
FEConfigMainInfo::setTimId
void setTimId(int x)
Definition: FEConfigMainInfo.h:54
FEConfigMainInfo::getOddWeiId
int getOddWeiId() const
Definition: FEConfigMainInfo.h:76
FEConfigMainInfo::clear
void clear()
Definition: FEConfigMainInfo.cc:24
triggerObjects_cff.id
id
Definition: triggerObjects_cff.py:29
FEConfigMainInfo::m_db_time
Tm m_db_time
Definition: FEConfigMainInfo.h:102
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:94
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:168
FEConfigMainInfo::m_ID
int m_ID
Definition: FEConfigMainInfo.h:87
FEConfigMainInfo::getWei2Id
int getWei2Id() const
Definition: FEConfigMainInfo.h:73
FEConfigMainInfo::m_description
std::string m_description
Definition: FEConfigMainInfo.h:103
FEConfigMainInfo::getLUTId
int getLUTId() const
Definition: FEConfigMainInfo.h:40