CMS 3D CMS Logo

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