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
MODDCCDetailsDat::m_opto
int m_opto
Definition: MODDCCDetailsDat.h:67
EcalCondDBInterface
Definition: EcalCondDBInterface.h:37
IDataItem.h
MODDCCDetailsDat::m_odpa
int m_odpa
Definition: MODDCCDetailsDat.h:73
MODDCCDetailsDat::getOpticalLink
int getOpticalLink() const
Definition: MODDCCDetailsDat.h:24
funct::false
false
Definition: Factorize.h:29
MODDCCDetailsDat::m_fusu
int m_fusu
Definition: MODDCCDetailsDat.h:77
MODDCCDetailsDat::getEventNumber
int getEventNumber() const
Definition: MODDCCDetailsDat.h:33
MODDCCDetailsDat::~MODDCCDetailsDat
~MODDCCDetailsDat() override
Definition: MODDCCDetailsDat.cc:31
MODDCCDetailsDat::writeArrayDB
void writeArrayDB(const std::map< EcalLogicID, MODDCCDetailsDat > *data, MODRunIOV *iov) noexcept(false)
Definition: MODDCCDetailsDat.cc:141
MODDCCDetailsDat
Definition: MODDCCDetailsDat.h:11
MODDCCDetailsDat::getEvenParity
int getEvenParity() const
Definition: MODDCCDetailsDat.h:39
DDAxes::x
watchdog.const
const
Definition: watchdog.py:83
MODDCCDetailsDat::setForcedFullSupp
void setForcedFullSupp(int x)
Definition: MODDCCDetailsDat.h:53
MODDCCDetailsDat::m_alff
int m_alff
Definition: MODDCCDetailsDat.h:75
MODRunIOV.h
MODDCCDetailsDat::prepareWrite
void prepareWrite() noexcept(false) override
Definition: MODDCCDetailsDat.cc:33
MODDCCDetailsDat::getHeader
int getHeader() const
Definition: MODDCCDetailsDat.h:30
MODDCCDetailsDat::setOpticalLink
void setOpticalLink(int x)
Definition: MODDCCDetailsDat.h:23
IDataItem
Definition: IDataItem.h:16
MODDCCDetailsDat::getQPLL
int getQPLL() const
Definition: MODDCCDetailsDat.h:21
MODDCCDetailsDat::setAlmostFullFIFO
void setAlmostFullFIFO(int x)
Definition: MODDCCDetailsDat.h:47
MODDCCDetailsDat::getAlmostFullFIFO
int getAlmostFullFIFO() const
Definition: MODDCCDetailsDat.h:48
EcalLogicID
Definition: EcalLogicID.h:7
MODDCCDetailsDat::setBlockSize
void setBlockSize(int x)
Definition: MODDCCDetailsDat.h:44
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
MODDCCDetailsDat::m_fuff
int m_fuff
Definition: MODDCCDetailsDat.h:76
MODDCCDetailsDat::fetchData
void fetchData(std::map< EcalLogicID, MODDCCDetailsDat > *fillMap, MODRunIOV *iov) noexcept(false)
Definition: MODDCCDetailsDat.cc:86
MODDCCDetailsDat::setHeader
void setHeader(int x)
Definition: MODDCCDetailsDat.h:29
MODDCCDetailsDat::m_qpll
int m_qpll
Definition: MODDCCDetailsDat.h:66
MODDCCDetailsDat::setOddParity
void setOddParity(int x)
Definition: MODDCCDetailsDat.h:41
MODDCCDetailsDat::setBXNumber
void setBXNumber(int x)
Definition: MODDCCDetailsDat.h:35
MODDCCDetailsDat::getBlockSize
int getBlockSize() const
Definition: MODDCCDetailsDat.h:45
MODDCCDetailsDat::m_tout
int m_tout
Definition: MODDCCDetailsDat.h:68
MODDCCDetailsDat::getForcedFullSupp
int getForcedFullSupp() const
Definition: MODDCCDetailsDat.h:54
MODDCCDetailsDat::m_evnu
int m_evnu
Definition: MODDCCDetailsDat.h:70
MODDCCDetailsDat::m_blsi
int m_blsi
Definition: MODDCCDetailsDat.h:74
B2GTnPMonitor_cfi.item
item
Definition: B2GTnPMonitor_cfi.py:147
MODDCCDetailsDat::writeDB
void writeDB(const EcalLogicID *ecid, const MODDCCDetailsDat *item, MODRunIOV *iov) noexcept(false)
Definition: MODDCCDetailsDat.cc:50
EcalLogicID.h
MODRunIOV
Definition: MODRunIOV.h:13
std
Definition: JetResolutionObject.h:76
MODDCCDetailsDat::setEvenParity
void setEvenParity(int x)
Definition: MODDCCDetailsDat.h:38
MODDCCDetailsDat::setEventNumber
void setEventNumber(int x)
Definition: MODDCCDetailsDat.h:32
MODDCCDetailsDat::getOddParity
int getOddParity() const
Definition: MODDCCDetailsDat.h:42
MODDCCDetailsDat::getTable
std::string getTable() override
Definition: MODDCCDetailsDat.h:18
MODDCCDetailsDat::setQPLL
void setQPLL(int x)
Definition: MODDCCDetailsDat.h:20
MODDCCDetailsDat::setFullFIFO
void setFullFIFO(int x)
Definition: MODDCCDetailsDat.h:50
MODDCCDetailsDat::m_evpa
int m_evpa
Definition: MODDCCDetailsDat.h:72
data
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:79
MODDCCDetailsDat::getDataTimeout
int getDataTimeout() const
Definition: MODDCCDetailsDat.h:27
genParticles_cff.map
map
Definition: genParticles_cff.py:11
MODDCCDetailsDat::getBXNumber
int getBXNumber() const
Definition: MODDCCDetailsDat.h:36
MODDCCDetailsDat::m_head
int m_head
Definition: MODDCCDetailsDat.h:69
MODDCCDetailsDat::setDataTimeout
void setDataTimeout(int x)
Definition: MODDCCDetailsDat.h:26
MODDCCDetailsDat::getFullFIFO
int getFullFIFO() const
Definition: MODDCCDetailsDat.h:51
MODDCCDetailsDat::m_bxnu
int m_bxnu
Definition: MODDCCDetailsDat.h:71
MODDCCDetailsDat::MODDCCDetailsDat
MODDCCDetailsDat()
Definition: MODDCCDetailsDat.cc:11