ATLAS Offline Software
ForwardDetectors
ZDC
ZdcCnv
ZdcByteStream
src
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
5
#include "
ZdcByteStream/ZdcSubBlockStatus.h
"
6
7
#include "
ZdcByteStream/ZdcWordDecoder.h
"
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
27
ZdcSubBlockStatus::ZdcSubBlockStatus
(
uint32_t
status
):
28
m_status(
status
){
29
}
30
31
uint8_t
ZdcSubBlockStatus::timeout
()
const
{
32
return ::subBlockStatusDecoder.get<
uint8_t
>(
m_status
, 0); }
33
34
uint8_t
ZdcSubBlockStatus::link
()
const
{
35
return ::subBlockStatusDecoder.get<
uint8_t
>(
m_status
, 1);
36
}
37
uint8_t
ZdcSubBlockStatus::specific
()
const
{
38
return ::subBlockStatusDecoder.get<
uint8_t
>(
m_status
,2);
39
}
40
uint8_t
ZdcSubBlockStatus::fifo
()
const
{
41
return ::subBlockStatusDecoder.get<
uint8_t
>(
m_status
, 3);
42
}
43
uint8_t
ZdcSubBlockStatus::bcn
()
const
{
44
return ::subBlockStatusDecoder.get<
uint8_t
>(
m_status
, 4);
45
}
46
uint8_t
ZdcSubBlockStatus::protocol
()
const
{
47
return ::subBlockStatusDecoder.get<
uint8_t
>(
m_status
, 5);
48
}
49
uint8_t
ZdcSubBlockStatus::parity
()
const
{
50
return ::subBlockStatusDecoder.get<
uint8_t
>(
m_status
, 6);
51
}
52
uint8_t
ZdcSubBlockStatus::bcLowBits
()
const
{
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
Generated on Thu Nov 7 2024 21:32:23 for ATLAS Offline Software by
1.8.18