ATLAS Offline Software
ZdcCaloUserHeader.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
3 */
4 
7 
8 //using namespace LVL1BS;
9 
10 namespace {
11  const ZdcWordDecoder caloUserWordDecoder({
12  BitField("Length", 0, 4),
13  BitField("L1A Slice: PP FADC", 4, 5),
14  BitField("LUT", 9, 3),
15  BitField("CP", 12, 4),
16  BitField("JEP", 16, 4),
17  BitField("PP Lower Bound", 20, 8),
18  BitField("Type", 28, 4)
19  });
20 }
21 
22 
24  m_header(header){
25 }
26 
27 
29  return ::caloUserWordDecoder.get<uint8_t>(m_header, 0);
30 }
32  return ::caloUserWordDecoder.get<uint8_t>(m_header, 1);
33 }
35  return ::caloUserWordDecoder.get<uint8_t>(m_header,2);
36 }
38  return ::caloUserWordDecoder.get<uint8_t>(m_header, 3);
39 }
41  return ::caloUserWordDecoder.get<uint8_t>(m_header, 4);
42 }
44  return ::caloUserWordDecoder.get<uint8_t>(m_header, 5);
45 }
47  return ::caloUserWordDecoder.get<uint8_t>(m_header, 6) == 0xf;
48 }
50  return ZdcCaloUserHeader(word).isValid();
51 }
52 
header
Definition: hcg.cxx:526
xAOD::uint8_t
uint8_t
Definition: Muon_v1.cxx:575
xAOD::uint32_t
setEventNumber uint32_t
Definition: EventInfo_v1.cxx:127
ZdcCaloUserHeader.h
ZdcCaloUserHeader::cp
uint8_t cp() const
Definition: ZdcCaloUserHeader.cxx:37
ZdcCaloUserHeader::lut
uint8_t lut() const
Definition: ZdcCaloUserHeader.cxx:34
ZdcCaloUserHeader::length
uint8_t length() const
Definition: ZdcCaloUserHeader.cxx:28
BitField
Definition: ZdcWordDecoder.h:14
ZdcCaloUserHeader::jep
uint8_t jep() const
Definition: ZdcCaloUserHeader.cxx:40
ZdcCaloUserHeader::ppLowerBound
uint8_t ppLowerBound() const
Definition: ZdcCaloUserHeader.cxx:43
ZdcCaloUserHeader::isValid
bool isValid() const
Definition: ZdcCaloUserHeader.cxx:46
ZdcCaloUserHeader::ppFadc
uint8_t ppFadc() const
Definition: ZdcCaloUserHeader.cxx:31
ZdcCaloUserHeader::m_header
uint32_t m_header
Definition: ZdcCaloUserHeader.h:24
ZdcCaloUserHeader::ZdcCaloUserHeader
ZdcCaloUserHeader(uint32_t header=0xf0000001)
Constructor - default just sets word ID and number of header words.
Definition: ZdcCaloUserHeader.cxx:23
ZdcWordDecoder
Definition: ZdcWordDecoder.h:37
ZdcWordDecoder.h