ATLAS Offline Software
Loading...
Searching...
No Matches
ZdcSubBlockHeader.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
11namespace {
12 const ZdcWordDecoder subBlockHeaderDecoder(
13 {
14 BitField("Type", 28, 4),
15 BitField("Version", 25, 3),
16 BitField("Format", 22, 3),
17 BitField("SeqNum", 16, 6),
18 BitField("Crate", 12, 4),
19 BitField("Module", 8, 4),
20 BitField("nSlice2", 3, 5),
21 BitField("nSlice1", 0, 3)
22 });
23}
24
28
29
30uint8_t ZdcSubBlockHeader::type() const {
31 return ::subBlockHeaderDecoder.get<uint8_t>(m_header, 0); }
32
34 return ::subBlockHeaderDecoder.get<uint8_t>(m_header, 1);
35}
37 return ::subBlockHeaderDecoder.get<uint8_t>(m_header,2);
38}
40 return ::subBlockHeaderDecoder.get<uint8_t>(m_header, 3);
41}
42uint8_t ZdcSubBlockHeader::crate() const {
43 return ::subBlockHeaderDecoder.get<uint8_t>(m_header, 4);
44}
46 return ::subBlockHeaderDecoder.get<uint8_t>(m_header, 5);
47}
49 return ::subBlockHeaderDecoder.get<uint8_t>(m_header, 6);
50}
52 return ::subBlockHeaderDecoder.get<uint8_t>(m_header, 7);
53}
54
56 return (type() & 0xc) == 0xc;
57}
58
60 return ZdcSubBlockHeader(word).isSubBlockHeader();
61}
62
64 return (type() & 0xe) == 0xc;
65}
66
67
uint8_t crate() const
uint8_t nSlice2() const
bool isSubBlockHeader() const
uint8_t format() const
uint8_t version() const
uint8_t seqNum() const
ZdcSubBlockHeader(uint32_t header=0x0)
Constructor - default just sets word ID and number of header words.
uint8_t module() const
uint8_t nSlice1() const