CMS 3D CMS Logo

ODBadTTDat.h
Go to the documentation of this file.
1 #ifndef OBADTTDAT_H
2 #define OBADTTDAT_H
3 
4 #include <vector>
5 #include <stdexcept>
6 
9 
10 class ODBadTTDat : public IODConfig {
11 public:
12  friend class EcalCondDBInterface;
13  ODBadTTDat();
14  ~ODBadTTDat() override;
15 
16  // User data methods
17  inline std::string getTable() override { return "BAD_TT_DAT"; }
18 
19  inline void setId(int dac) { m_ID = dac; }
20  inline int getId() const { return m_ID; }
21 
22  inline void setSMId(int dac) { m_sm = dac; }
23  inline int getSMId() const { return m_sm; }
24 
25  inline void setTRId(int dac) { m_sm = dac; }
26  inline int getTRId() const { return m_sm; }
27 
28  inline void setFedId(int dac) { m_fed = dac; }
29  inline int getFedId() const { return m_fed; }
30 
31  inline void setTTId(int dac) { m_tt = dac; }
32  inline int getTTId() const { return m_tt; }
33 
34  inline void setStatus(int dac) { m_t1 = dac; }
35  inline int getStatus() const { return m_t1; }
36 
37 private:
38  void prepareWrite() noexcept(false) override;
39 
40  void writeDB(const ODBadTTDat* item, ODBadTTInfo* iov) noexcept(false);
41 
42  void writeArrayDB(const std::vector<ODBadTTDat>& data, ODBadTTInfo* iov) noexcept(false);
43 
44  void fetchData(std::vector<ODBadTTDat>* fillMap, ODBadTTInfo* iov) noexcept(false);
45 
46  // User data
47  int m_sm;
48  int m_fed;
49  int m_tt;
50  int m_t1;
51  int m_ID;
52 };
53 
54 #endif
ODBadTTDat::setTTId
void setTTId(int dac)
Definition: ODBadTTDat.h:31
EcalCondDBInterface
Definition: EcalCondDBInterface.h:37
ODBadTTDat::setFedId
void setFedId(int dac)
Definition: ODBadTTDat.h:28
ODBadTTDat::getSMId
int getSMId() const
Definition: ODBadTTDat.h:23
funct::false
false
Definition: Factorize.h:29
ODBadTTDat::getFedId
int getFedId() const
Definition: ODBadTTDat.h:29
IODConfig.h
watchdog.const
const
Definition: watchdog.py:83
ODBadTTDat::~ODBadTTDat
~ODBadTTDat() override
Definition: ODBadTTDat.cc:22
ODBadTTDat::getTable
std::string getTable() override
Definition: ODBadTTDat.h:17
ODBadTTDat::setSMId
void setSMId(int dac)
Definition: ODBadTTDat.h:22
ODBadTTDat::m_sm
int m_sm
Definition: ODBadTTDat.h:47
ODBadTTDat::getTRId
int getTRId() const
Definition: ODBadTTDat.h:26
ODBadTTDat::m_tt
int m_tt
Definition: ODBadTTDat.h:49
ODBadTTDat::setTRId
void setTRId(int dac)
Definition: ODBadTTDat.h:25
ODBadTTDat::ODBadTTDat
ODBadTTDat()
Definition: ODBadTTDat.cc:10
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
ODBadTTDat::fetchData
void fetchData(std::vector< ODBadTTDat > *fillMap, ODBadTTInfo *iov) noexcept(false)
Definition: ODBadTTDat.cc:53
ODBadTTInfo
Definition: ODBadTTInfo.h:9
IODConfig
Definition: IODConfig.h:18
trackerHitRTTI::vector
Definition: trackerHitRTTI.h:21
ODBadTTDat::m_fed
int m_fed
Definition: ODBadTTDat.h:48
B2GTnPMonitor_cfi.item
item
Definition: B2GTnPMonitor_cfi.py:147
ODBadTTDat::setStatus
void setStatus(int dac)
Definition: ODBadTTDat.h:34
ODBadTTDat::prepareWrite
void prepareWrite() noexcept(false) override
Definition: ODBadTTDat.cc:24
ODBadTTDat
Definition: ODBadTTDat.h:10
ODBadTTDat::getId
int getId() const
Definition: ODBadTTDat.h:20
std
Definition: JetResolutionObject.h:76
ODBadTTDat::getTTId
int getTTId() const
Definition: ODBadTTDat.h:32
ODBadTTDat::m_ID
int m_ID
Definition: ODBadTTDat.h:51
ODBadTTInfo.h
ODBadTTDat::writeDB
void writeDB(const ODBadTTDat *item, ODBadTTInfo *iov) noexcept(false)
Definition: ODBadTTDat.cc:37
data
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:79
ODBadTTDat::writeArrayDB
void writeArrayDB(const std::vector< ODBadTTDat > &data, ODBadTTInfo *iov) noexcept(false)
Definition: ODBadTTDat.cc:86
ODBadTTDat::m_t1
int m_t1
Definition: ODBadTTDat.h:50
ODBadTTDat::getStatus
int getStatus() const
Definition: ODBadTTDat.h:35
ODBadTTDat::setId
void setId(int dac)
Definition: ODBadTTDat.h:19