ATLAS Offline Software
ZdcSubBlockStatus.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
3 */
4 
6 
8 
9 //using namespace LVL1BS;
10 
11 namespace {
12  const ZdcWordDecoder subBlockStatusDecoder(
13  {
14  BitField("Timeout", 7, 1),
15  BitField("Link", 6, 1),
16  BitField("Specific", 4, 1),
17  BitField("Fifo", 3, 1),
18  BitField("BCN", 2, 1),
19  BitField("Protocol", 1, 1),
20  BitField("Parity", 0, 1),
21  BitField("BCLowBits", 22, 6)
22  });
23 }
24 
25 
26 
28  m_status(status){
29 }
30 
32  return ::subBlockStatusDecoder.get<uint8_t>(m_status, 0); }
33 
35  return ::subBlockStatusDecoder.get<uint8_t>(m_status, 1);
36 }
38  return ::subBlockStatusDecoder.get<uint8_t>(m_status,2);
39 }
41  return ::subBlockStatusDecoder.get<uint8_t>(m_status, 3);
42 }
44  return ::subBlockStatusDecoder.get<uint8_t>(m_status, 4);
45 }
47  return ::subBlockStatusDecoder.get<uint8_t>(m_status, 5);
48 }
50  return ::subBlockStatusDecoder.get<uint8_t>(m_status, 6);
51 }
53  return ::subBlockStatusDecoder.get<uint8_t>(m_status, 7);
54 }
xAOD::uint8_t
uint8_t
Definition: Muon_v1.cxx:557
xAOD::uint32_t
setEventNumber uint32_t
Definition: EventInfo_v1.cxx:127
ZdcSubBlockStatus.h
ZdcSubBlockStatus::m_status
uint32_t m_status
Definition: ZdcSubBlockStatus.h:22
ZdcSubBlockStatus::protocol
uint8_t protocol() const
Definition: ZdcSubBlockStatus.cxx:46
ZdcSubBlockStatus::link
uint8_t link() const
Definition: ZdcSubBlockStatus.cxx:34
ZdcSubBlockStatus::timeout
uint8_t timeout() const
Definition: ZdcSubBlockStatus.cxx:31
BitField
Definition: ZdcWordDecoder.h:14
ZdcSubBlockStatus::ZdcSubBlockStatus
ZdcSubBlockStatus(uint32_t status=0x0)
Constructor - default just sets word ID and number of header words.
Definition: ZdcSubBlockStatus.cxx:27
ZdcSubBlockStatus::fifo
uint8_t fifo() const
Definition: ZdcSubBlockStatus.cxx:40
ZdcSubBlockStatus::specific
uint8_t specific() const
Definition: ZdcSubBlockStatus.cxx:37
ZdcWordDecoder
Definition: ZdcWordDecoder.h:37
ZdcSubBlockStatus::bcLowBits
uint8_t bcLowBits() const
Definition: ZdcSubBlockStatus.cxx:52
merge.status
status
Definition: merge.py:17
ZdcSubBlockStatus::parity
uint8_t parity() const
Definition: ZdcSubBlockStatus.cxx:49
ZdcSubBlockStatus::bcn
uint8_t bcn() const
Definition: ZdcSubBlockStatus.cxx:43
ZdcWordDecoder.h