ATLAS Offline Software
Loading...
Searching...
No Matches
ZdcCaloUserHeader Class Reference

L1Calo User Header class. More...

#include <ZdcCaloUserHeader.h>

Collaboration diagram for ZdcCaloUserHeader:

Public Member Functions

 ZdcCaloUserHeader (uint32_t header=0xf0000001)
 Constructor - default just sets word ID and number of header words.
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 ZdcCaloUserHeader.h.

Constructor & Destructor Documentation

◆ ZdcCaloUserHeader()

ZdcCaloUserHeader::ZdcCaloUserHeader ( uint32_t header = 0xf0000001)

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

Definition at line 23 of file ZdcCaloUserHeader.cxx.

23 :
24 m_header(header){
25}

Member Function Documentation

◆ cp()

uint8_t ZdcCaloUserHeader::cp ( ) const

Definition at line 37 of file ZdcCaloUserHeader.cxx.

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

◆ isValid() [1/2]

bool ZdcCaloUserHeader::isValid ( ) const

Definition at line 46 of file ZdcCaloUserHeader.cxx.

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

◆ isValid() [2/2]

bool ZdcCaloUserHeader::isValid ( uint32_t word)
static

Definition at line 49 of file ZdcCaloUserHeader.cxx.

49 {
50 return ZdcCaloUserHeader(word).isValid();
51}
ZdcCaloUserHeader(uint32_t header=0xf0000001)
Constructor - default just sets word ID and number of header words.

◆ jep()

uint8_t ZdcCaloUserHeader::jep ( ) const

Definition at line 40 of file ZdcCaloUserHeader.cxx.

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

◆ length()

uint8_t ZdcCaloUserHeader::length ( ) const

Definition at line 28 of file ZdcCaloUserHeader.cxx.

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

◆ lut()

uint8_t ZdcCaloUserHeader::lut ( ) const

Definition at line 34 of file ZdcCaloUserHeader.cxx.

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

◆ ppFadc()

uint8_t ZdcCaloUserHeader::ppFadc ( ) const

Definition at line 31 of file ZdcCaloUserHeader.cxx.

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

◆ ppLowerBound()

uint8_t ZdcCaloUserHeader::ppLowerBound ( ) const

Definition at line 43 of file ZdcCaloUserHeader.cxx.

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

Member Data Documentation

◆ m_header

uint32_t ZdcCaloUserHeader::m_header
private

Definition at line 24 of file ZdcCaloUserHeader.h.


The documentation for this class was generated from the following files: