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

L1Calo User Header class. More...

#include <SubBlockHeader.h>

Collaboration diagram for LVL1BS::SubBlockHeader:

Public Member Functions

 SubBlockHeader (uint32_t header=0x0)
 Constructor - default just sets word ID and number of header words. More...
 
uint8_t type () const
 
uint8_t version () const
 
uint8_t format () const
 
uint8_t seqNum () const
 
uint8_t crate () const
 
uint8_t module () const
 
uint8_t nSlice2 () const
 
uint8_t nSlice1 () const
 
uint8_t compVer () const
 
bool isPpmBlock () const
 
bool isSubBlockHeader () const
 

Static Public Member Functions

static bool isSubBlockHeader (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 20 of file SubBlockHeader.h.

Constructor & Destructor Documentation

◆ SubBlockHeader()

SubBlockHeader::SubBlockHeader ( uint32_t  header = 0x0)

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

Definition at line 27 of file SubBlockHeader.cxx.

27  :
29 }

Member Function Documentation

◆ compVer()

uint8_t LVL1BS::SubBlockHeader::compVer ( ) const
inline

Definition at line 34 of file SubBlockHeader.h.

34 { return seqNum();}

◆ crate()

uint8_t SubBlockHeader::crate ( ) const

Definition at line 44 of file SubBlockHeader.cxx.

44  {
45  return ::subBlockHeaderDecoder.get<uint8_t>(m_header, 4);
46 }

◆ format()

uint8_t SubBlockHeader::format ( ) const

Definition at line 38 of file SubBlockHeader.cxx.

38  {
39  return ::subBlockHeaderDecoder.get<uint8_t>(m_header,2);
40 }

◆ isPpmBlock()

bool SubBlockHeader::isPpmBlock ( ) const

Definition at line 65 of file SubBlockHeader.cxx.

65  {
66  return (type() & 0xe) == 0xc;
67 }

◆ isSubBlockHeader() [1/2]

bool SubBlockHeader::isSubBlockHeader ( ) const

Definition at line 57 of file SubBlockHeader.cxx.

57  {
58  return (type() & 0xc) == 0xc;
59 }

◆ isSubBlockHeader() [2/2]

bool SubBlockHeader::isSubBlockHeader ( uint32_t  word)
static

Definition at line 61 of file SubBlockHeader.cxx.

61  {
62  return SubBlockHeader(word).isSubBlockHeader();
63 }

◆ module()

uint8_t SubBlockHeader::module ( ) const

Definition at line 47 of file SubBlockHeader.cxx.

47  {
48  return ::subBlockHeaderDecoder.get<uint8_t>(m_header, 5);
49 }

◆ nSlice1()

uint8_t SubBlockHeader::nSlice1 ( ) const

Definition at line 53 of file SubBlockHeader.cxx.

53  {
54  return ::subBlockHeaderDecoder.get<uint8_t>(m_header, 7);
55 }

◆ nSlice2()

uint8_t SubBlockHeader::nSlice2 ( ) const

Definition at line 50 of file SubBlockHeader.cxx.

50  {
51  return ::subBlockHeaderDecoder.get<uint8_t>(m_header, 6);
52 }

◆ seqNum()

uint8_t SubBlockHeader::seqNum ( ) const

Definition at line 41 of file SubBlockHeader.cxx.

41  {
42  return ::subBlockHeaderDecoder.get<uint8_t>(m_header, 3);
43 }

◆ type()

uint8_t SubBlockHeader::type ( ) const

Definition at line 32 of file SubBlockHeader.cxx.

32  {
33  return ::subBlockHeaderDecoder.get<uint8_t>(m_header, 0); }

◆ version()

uint8_t SubBlockHeader::version ( ) const

Definition at line 35 of file SubBlockHeader.cxx.

35  {
36  return ::subBlockHeaderDecoder.get<uint8_t>(m_header, 1);
37 }

Member Data Documentation

◆ m_header

uint32_t LVL1BS::SubBlockHeader::m_header
private

Definition at line 22 of file SubBlockHeader.h.


The documentation for this class was generated from the following files:
LVL1BS::SubBlockHeader::seqNum
uint8_t seqNum() const
Definition: SubBlockHeader.cxx:41
header
Definition: hcg.cxx:526
xAOD::uint8_t
uint8_t
Definition: Muon_v1.cxx:557
LVL1BS::SubBlockHeader::type
uint8_t type() const
Definition: SubBlockHeader.cxx:32
LVL1BS::SubBlockHeader::SubBlockHeader
SubBlockHeader(uint32_t header=0x0)
Constructor - default just sets word ID and number of header words.
Definition: SubBlockHeader.cxx:27
LVL1BS::SubBlockHeader::m_header
uint32_t m_header
Definition: SubBlockHeader.h:22