ATLAS Offline Software
SubBlockStatus.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #include "SubBlockStatus.h"
6 
7 #include "WordDecoder.h"
8 
9 using namespace LVL1BS;
10 
11 namespace {
12  const WordDecoder 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 }
LVL1BS::SubBlockStatus::timeout
uint8_t timeout() const
Definition: SubBlockStatus.cxx:31
xAOD::uint8_t
uint8_t
Definition: Muon_v1.cxx:575
xAOD::uint32_t
setEventNumber uint32_t
Definition: EventInfo_v1.cxx:127
LVL1BS::SubBlockStatus::parity
uint8_t parity() const
Definition: SubBlockStatus.cxx:49
LVL1BS::SubBlockStatus::m_status
uint32_t m_status
Definition: SubBlockStatus.h:22
LVL1BS::SubBlockStatus::bcn
uint8_t bcn() const
Definition: SubBlockStatus.cxx:43
LVL1BS::SubBlockStatus::link
uint8_t link() const
Definition: SubBlockStatus.cxx:34
LVL1BS::SubBlockStatus::specific
uint8_t specific() const
Definition: SubBlockStatus.cxx:37
LVL1BS::WordDecoder
Definition: WordDecoder.h:37
LVL1BS::SubBlockStatus::protocol
uint8_t protocol() const
Definition: SubBlockStatus.cxx:46
SubBlockStatus.h
LVL1BS::BitField
Definition: WordDecoder.h:14
LVL1BS::SubBlockStatus::fifo
uint8_t fifo() const
Definition: SubBlockStatus.cxx:40
WordDecoder.h
LVL1BS::SubBlockStatus::SubBlockStatus
SubBlockStatus(uint32_t status=0x0)
Constructor - default just sets word ID and number of header words.
Definition: SubBlockStatus.cxx:27
LVL1BS::SubBlockStatus::bcLowBits
uint8_t bcLowBits() const
Definition: SubBlockStatus.cxx:52
LVL1BS
Definition: ZdcByteStreamReadV1V2Tool.h:47
merge.status
status
Definition: merge.py:17