ATLAS Offline Software
Public Member Functions | Static Public Member Functions | Private Attributes | List of all members
LVL1BS::CaloUserHeader Class Reference

L1Calo User Header class. More...

#include <CaloUserHeader.h>

Collaboration diagram for LVL1BS::CaloUserHeader:

Public Member Functions

 CaloUserHeader (uint32_t header=0xf0000001)
 Constructor - default just sets word ID and number of header words. More...
 
uint8_t length () const
 
uint8_t ppFadc () const
 
uint8_t lut () const
 
uint8_t cp () const
 
uint8_t jep () const
 
uint8_t ppLowerBound () const
 
bool isValid () const
 

Static Public Member Functions

static bool isValid (uint32_t word)
 

Private Attributes

uint32_t m_header
 

Detailed Description

L1Calo User Header class.

The User Header is the first word of the ROD data and contains Triggered slice offsets for all the sub-detector types.

Author
alexa.nosp@m.nder.nosp@m..mazu.nosp@m.rov@.nosp@m.cern..nosp@m.ch

Definition at line 22 of file CaloUserHeader.h.

Constructor & Destructor Documentation

◆ CaloUserHeader()

CaloUserHeader::CaloUserHeader ( uint32_t  header = 0xf0000001)

Constructor - default just sets word ID and number of header words.

Definition at line 23 of file CaloUserHeader.cxx.

23  :
25 }

Member Function Documentation

◆ cp()

uint8_t CaloUserHeader::cp ( ) const

Definition at line 37 of file CaloUserHeader.cxx.

37  {
38  return ::caloUserWordDecoder.get<uint8_t>(m_header, 3);
39 }

◆ isValid() [1/2]

bool CaloUserHeader::isValid ( ) const

Definition at line 46 of file CaloUserHeader.cxx.

46  {
47  return ::caloUserWordDecoder.get<uint8_t>(m_header, 6) == 0xf;
48 }

◆ isValid() [2/2]

bool CaloUserHeader::isValid ( uint32_t  word)
static

Definition at line 49 of file CaloUserHeader.cxx.

49  {
50  return CaloUserHeader(word).isValid();
51 }

◆ jep()

uint8_t CaloUserHeader::jep ( ) const

Definition at line 40 of file CaloUserHeader.cxx.

40  {
41  return ::caloUserWordDecoder.get<uint8_t>(m_header, 4);
42 }

◆ length()

uint8_t CaloUserHeader::length ( ) const

Definition at line 28 of file CaloUserHeader.cxx.

28  {
29  return ::caloUserWordDecoder.get<uint8_t>(m_header, 0);
30 }

◆ lut()

uint8_t CaloUserHeader::lut ( ) const

Definition at line 34 of file CaloUserHeader.cxx.

34  {
35  return ::caloUserWordDecoder.get<uint8_t>(m_header,2);
36 }

◆ ppFadc()

uint8_t CaloUserHeader::ppFadc ( ) const

Definition at line 31 of file CaloUserHeader.cxx.

31  {
32  return ::caloUserWordDecoder.get<uint8_t>(m_header, 1);
33 }

◆ ppLowerBound()

uint8_t CaloUserHeader::ppLowerBound ( ) const

Definition at line 43 of file CaloUserHeader.cxx.

43  {
44  return ::caloUserWordDecoder.get<uint8_t>(m_header, 5);
45 }

Member Data Documentation

◆ m_header

uint32_t LVL1BS::CaloUserHeader::m_header
private

Definition at line 24 of file CaloUserHeader.h.


The documentation for this class was generated from the following files:
header
Definition: hcg.cxx:526
xAOD::uint8_t
uint8_t
Definition: Muon_v1.cxx:557
LVL1BS::CaloUserHeader::m_header
uint32_t m_header
Definition: CaloUserHeader.h:24
LVL1BS::CaloUserHeader::CaloUserHeader
CaloUserHeader(uint32_t header=0xf0000001)
Constructor - default just sets word ID and number of header words.
Definition: CaloUserHeader.cxx:23