CMS 3D CMS Logo

MODDCCDetailsDat.h
Go to the documentation of this file.
1 #ifndef MODDCCDETAILSDAT_H
2 #define MODDCCDETAILSDAT_H
3 
4 #include <map>
5 #include <stdexcept>
6 
10 
11 class MODDCCDetailsDat : public IDataItem {
12 public:
13  friend class EcalCondDBInterface;
15  ~MODDCCDetailsDat() override;
16 
17  // User data methods
18  inline std::string getTable() override { return "OD_DCC_DETAILS_DAT"; }
19 
20  inline void setQPLL(int x) { m_qpll = x; }
21  inline int getQPLL() const { return m_qpll; }
22 
23  inline void setOpticalLink(int x) { m_opto = x; }
24  inline int getOpticalLink() const { return m_opto; }
25 
26  inline void setDataTimeout(int x) { m_tout = x; }
27  inline int getDataTimeout() const { return m_tout; }
28 
29  inline void setHeader(int x) { m_head = x; }
30  inline int getHeader() const { return m_head; }
31 
32  inline void setEventNumber(int x) { m_evnu = x; }
33  inline int getEventNumber() const { return m_evnu; }
34 
35  inline void setBXNumber(int x) { m_bxnu = x; }
36  inline int getBXNumber() const { return m_bxnu; }
37 
38  inline void setEvenParity(int x) { m_evpa = x; }
39  inline int getEvenParity() const { return m_evpa; }
40 
41  inline void setOddParity(int x) { m_odpa = x; }
42  inline int getOddParity() const { return m_odpa; }
43 
44  inline void setBlockSize(int x) { m_blsi = x; }
45  inline int getBlockSize() const { return m_blsi; }
46 
47  inline void setAlmostFullFIFO(int x) { m_alff = x; }
48  inline int getAlmostFullFIFO() const { return m_alff; }
49 
50  inline void setFullFIFO(int x) { m_fuff = x; }
51  inline int getFullFIFO() const { return m_fuff; }
52 
53  inline void setForcedFullSupp(int x) { m_fusu = x; }
54  inline int getForcedFullSupp() const { return m_fusu; }
55 
56 private:
57  void prepareWrite() noexcept(false) override;
58 
59  void writeDB(const EcalLogicID* ecid, const MODDCCDetailsDat* item, MODRunIOV* iov) noexcept(false);
60 
62 
63  void fetchData(std::map<EcalLogicID, MODDCCDetailsDat>* fillMap, MODRunIOV* iov) noexcept(false);
64 
65  // User data
66  int m_qpll;
67  int m_opto;
68  int m_tout;
69  int m_head;
70  int m_evnu;
71  int m_bxnu;
72  int m_evpa;
73  int m_odpa;
74  int m_blsi;
75  int m_alff;
76  int m_fuff;
77  int m_fusu;
78 };
79 
80 #endif
void fetchData(std::map< EcalLogicID, MODDCCDetailsDat > *fillMap, MODRunIOV *iov) noexcept(false)
int getForcedFullSupp() const
void setHeader(int x)
void setOddParity(int x)
void setBXNumber(int x)
int getBlockSize() const
void writeDB(const EcalLogicID *ecid, const MODDCCDetailsDat *item, MODRunIOV *iov) noexcept(false)
void setEventNumber(int x)
void setEvenParity(int x)
int getOddParity() const
std::string getTable() override
int getDataTimeout() const
void setQPLL(int x)
int getBXNumber() const
void setFullFIFO(int x)
int getFullFIFO() const
void setDataTimeout(int x)
~MODDCCDetailsDat() override
void writeArrayDB(const std::map< EcalLogicID, MODDCCDetailsDat > *data, MODRunIOV *iov) noexcept(false)
int getOpticalLink() const
int getEventNumber() const
int getEvenParity() const
void setForcedFullSupp(int x)
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:79
int getHeader() const
int getQPLL() const
void setAlmostFullFIFO(int x)
int getAlmostFullFIFO() const
void prepareWrite() noexcept(false) override
void setOpticalLink(int x)
void setBlockSize(int x)