CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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  throw(std::runtime_error);
59 
61  throw(std::runtime_error);
62 
64  throw(std::runtime_error);
65 
66 
67 
68  void fetchData(std::map< EcalLogicID, MODDCCDetailsDat >* fillMap, MODRunIOV* iov)
69  throw(std::runtime_error);
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 setHeader(int x)
void writeDB(const EcalLogicID *ecid, const MODDCCDetailsDat *item, MODRunIOV *iov)
void setOddParity(int x)
std::string getTable()
void setBXNumber(int x)
void fetchData(std::map< EcalLogicID, MODDCCDetailsDat > *fillMap, MODRunIOV *iov)
void setEventNumber(int x)
void setEvenParity(int x)
int getEventNumber() const
int getFullFIFO() const
void setQPLL(int x)
void setFullFIFO(int x)
int getBlockSize() const
int getAlmostFullFIFO() const
tuple iov
Definition: o2o.py:307
void setDataTimeout(int x)
int getQPLL() const
int getDataTimeout() const
int getForcedFullSupp() const
int getHeader() const
int getOpticalLink() const
void writeArrayDB(const std::map< EcalLogicID, MODDCCDetailsDat > *data, MODRunIOV *iov)
string const
Definition: compareJSON.py:14
void setForcedFullSupp(int x)
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:82
void setAlmostFullFIFO(int x)
void fillMap(Registry *reg, regmap_type &fillme)
Definition: Registry.cc:24
x
Definition: VDTMath.h:216
int getEvenParity() const
void setOpticalLink(int x)
void setBlockSize(int x)
int getBXNumber() const