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;
16 
17  // User data methods
18  inline std::string getTable() { 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()
58  noexcept(false);
59 
60  void writeDB(const EcalLogicID* ecid, const MODDCCDetailsDat* item, MODRunIOV* iov )
61  noexcept(false);
62 
63  void writeArrayDB(const std::map< EcalLogicID, MODDCCDetailsDat >* data, MODRunIOV* iov)
64  noexcept(false);
65 
66 
67 
68  void fetchData(std::map< EcalLogicID, MODDCCDetailsDat >* fillMap, MODRunIOV* iov)
69  noexcept(false);
70 
71  // User data
72  int m_qpll;
73  int m_opto;
74  int m_tout;
75  int m_head;
76  int m_evnu;
77  int m_bxnu;
78  int m_evpa;
79  int m_odpa;
80  int m_blsi;
81  int m_alff;
82  int m_fuff;
83  int m_fusu;
84 
85 };
86 
87 #endif
int getOddParity() const
void fetchData(std::map< EcalLogicID, MODDCCDetailsDat > *fillMap, MODRunIOV *iov) noexcept(false)
void setHeader(int x)
void setOddParity(int x)
std::string getTable()
void setBXNumber(int x)
void writeDB(const EcalLogicID *ecid, const MODDCCDetailsDat *item, MODRunIOV *iov) noexcept(false)
void setEventNumber(int x)
#define noexcept
void setEvenParity(int x)
int getEventNumber() const
int getFullFIFO() const
void setQPLL(int x)
void setFullFIFO(int x)
int getBlockSize() const
int getAlmostFullFIFO() const
void setDataTimeout(int x)
int getQPLL() const
int getDataTimeout() const
int getForcedFullSupp() const
void writeArrayDB(const std::map< EcalLogicID, MODDCCDetailsDat > *data, MODRunIOV *iov) noexcept(false)
int getHeader() const
int getOpticalLink() const
void setForcedFullSupp(int x)
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:82
void setAlmostFullFIFO(int x)
void prepareWrite() noexcept(false)
int getEvenParity() const
void setOpticalLink(int x)
void setBlockSize(int x)
int getBXNumber() const