ATLAS Offline Software
Public Member Functions | Protected Member Functions | Private Attributes | List of all members
L1Topo::L1TopoROD Class Reference

#include <L1TopoROD.h>

Collaboration diagram for L1Topo::L1TopoROD:

Public Member Functions

 L1TopoROD (const uint32_t trailer1, const uint32_t trailer2)
 Construct from contents and decode trailers. More...
 
uint32_t rodTrailer1 () const
 access methods More...
 
uint32_t rodTrailer2 () const
 
uint32_t shelf () const
 
uint32_t rod () const
 
uint32_t linkErrMap () const
 
uint32_t payloadLength () const
 
uint32_t crc () const
 
bool linkErrs () const
 
bool ct () const
 
bool pc () const
 
bool hc () const
 
bool pe () const
 
bool lm () const
 
bool hm () const
 
bool pt () const
 

Protected Member Functions

void decode ()
 method used by constructor to decode word More...
 

Private Attributes

uint32_t m_rodTrailer1
 variables More...
 
uint32_t m_rodTrailer2
 
uint32_t m_shelf
 
uint32_t m_rod
 
uint32_t m_linkErrMap
 
uint32_t m_payloadLength
 
uint32_t m_crc
 
bool m_linkErrs
 
bool m_ct
 
bool m_pc
 
bool m_hc
 
bool m_pe
 
bool m_lm
 
bool m_hm
 
bool m_pt
 

Detailed Description

Definition at line 14 of file L1TopoROD.h.

Constructor & Destructor Documentation

◆ L1TopoROD()

L1Topo::L1TopoROD::L1TopoROD ( const uint32_t  trailer1,
const uint32_t  trailer2 
)

Construct from contents and decode trailers.

Definition at line 11 of file L1TopoROD.cxx.

12  :m_rodTrailer1(trailer1), m_rodTrailer2(trailer2) {
13  this->decode();
14  }

Member Function Documentation

◆ crc()

uint32_t L1Topo::L1TopoROD::crc ( ) const

Definition at line 57 of file L1TopoROD.cxx.

57  {
58  return m_crc;
59  }

◆ ct()

bool L1Topo::L1TopoROD::ct ( ) const

Definition at line 65 of file L1TopoROD.cxx.

65  {
66  return m_ct;
67  }

◆ decode()

void L1Topo::L1TopoROD::decode ( )
protected

method used by constructor to decode word

Definition at line 16 of file L1TopoROD.cxx.

16  {
21 
23  m_linkErrs = (L1Topo::decode(m_rodTrailer2,8,4) & 0xf) != 0;
24  m_ct = (L1Topo::decode(m_rodTrailer2,6,1) & 0xf) != 0;
25  m_pc = (L1Topo::decode(m_rodTrailer2,5,1) & 0xf) != 0;
26  m_hc = (L1Topo::decode(m_rodTrailer2,4,1) & 0xf) != 0;
27  m_pe = (L1Topo::decode(m_rodTrailer2,3,1) & 0xf) != 0;
28  m_lm = (L1Topo::decode(m_rodTrailer2,2,1) & 0xf) != 0;
29  m_hm = (L1Topo::decode(m_rodTrailer2,1,1) & 0xf) != 0;
30  m_pt = (L1Topo::decode(m_rodTrailer2,0,1) & 0xf) != 0;
31  }

◆ hc()

bool L1Topo::L1TopoROD::hc ( ) const

Definition at line 73 of file L1TopoROD.cxx.

73  {
74  return m_hc;
75  }

◆ hm()

bool L1Topo::L1TopoROD::hm ( ) const

Definition at line 85 of file L1TopoROD.cxx.

85  {
86  return m_hm;
87  }

◆ linkErrMap()

uint32_t L1Topo::L1TopoROD::linkErrMap ( ) const

Definition at line 49 of file L1TopoROD.cxx.

49  {
50  return m_linkErrMap;
51  }

◆ linkErrs()

bool L1Topo::L1TopoROD::linkErrs ( ) const

Definition at line 61 of file L1TopoROD.cxx.

61  {
62  return m_linkErrs;
63  }

◆ lm()

bool L1Topo::L1TopoROD::lm ( ) const

Definition at line 81 of file L1TopoROD.cxx.

81  {
82  return m_lm;
83  }

◆ payloadLength()

uint32_t L1Topo::L1TopoROD::payloadLength ( ) const

Definition at line 53 of file L1TopoROD.cxx.

53  {
54  return m_payloadLength;
55  }

◆ pc()

bool L1Topo::L1TopoROD::pc ( ) const

Definition at line 69 of file L1TopoROD.cxx.

69  {
70  return m_pc;
71  }

◆ pe()

bool L1Topo::L1TopoROD::pe ( ) const

Definition at line 77 of file L1TopoROD.cxx.

77  {
78  return m_pe;
79  }

◆ pt()

bool L1Topo::L1TopoROD::pt ( ) const

Definition at line 89 of file L1TopoROD.cxx.

89  {
90  return m_pt;
91  }

◆ rod()

uint32_t L1Topo::L1TopoROD::rod ( ) const

Definition at line 45 of file L1TopoROD.cxx.

45  {
46  return m_rod;
47  }

◆ rodTrailer1()

uint32_t L1Topo::L1TopoROD::rodTrailer1 ( ) const

access methods

Definition at line 33 of file L1TopoROD.cxx.

33  {
34  return m_rodTrailer1;
35  }

◆ rodTrailer2()

uint32_t L1Topo::L1TopoROD::rodTrailer2 ( ) const

Definition at line 37 of file L1TopoROD.cxx.

37  {
38  return m_rodTrailer2;
39  }

◆ shelf()

uint32_t L1Topo::L1TopoROD::shelf ( ) const

Definition at line 41 of file L1TopoROD.cxx.

41  {
42  return m_shelf;
43  }

Member Data Documentation

◆ m_crc

uint32_t L1Topo::L1TopoROD::m_crc
private

Definition at line 48 of file L1TopoROD.h.

◆ m_ct

bool L1Topo::L1TopoROD::m_ct
private

Definition at line 50 of file L1TopoROD.h.

◆ m_hc

bool L1Topo::L1TopoROD::m_hc
private

Definition at line 52 of file L1TopoROD.h.

◆ m_hm

bool L1Topo::L1TopoROD::m_hm
private

Definition at line 55 of file L1TopoROD.h.

◆ m_linkErrMap

uint32_t L1Topo::L1TopoROD::m_linkErrMap
private

Definition at line 45 of file L1TopoROD.h.

◆ m_linkErrs

bool L1Topo::L1TopoROD::m_linkErrs
private

Definition at line 49 of file L1TopoROD.h.

◆ m_lm

bool L1Topo::L1TopoROD::m_lm
private

Definition at line 54 of file L1TopoROD.h.

◆ m_payloadLength

uint32_t L1Topo::L1TopoROD::m_payloadLength
private

Definition at line 46 of file L1TopoROD.h.

◆ m_pc

bool L1Topo::L1TopoROD::m_pc
private

Definition at line 51 of file L1TopoROD.h.

◆ m_pe

bool L1Topo::L1TopoROD::m_pe
private

Definition at line 53 of file L1TopoROD.h.

◆ m_pt

bool L1Topo::L1TopoROD::m_pt
private

Definition at line 56 of file L1TopoROD.h.

◆ m_rod

uint32_t L1Topo::L1TopoROD::m_rod
private

Definition at line 44 of file L1TopoROD.h.

◆ m_rodTrailer1

uint32_t L1Topo::L1TopoROD::m_rodTrailer1
private

variables

Definition at line 40 of file L1TopoROD.h.

◆ m_rodTrailer2

uint32_t L1Topo::L1TopoROD::m_rodTrailer2
private

Definition at line 41 of file L1TopoROD.h.

◆ m_shelf

uint32_t L1Topo::L1TopoROD::m_shelf
private

Definition at line 43 of file L1TopoROD.h.


The documentation for this class was generated from the following files:
L1Topo::L1TopoROD::m_linkErrs
bool m_linkErrs
Definition: L1TopoROD.h:49
L1Topo::L1TopoROD::m_rodTrailer1
uint32_t m_rodTrailer1
variables
Definition: L1TopoROD.h:40
L1Topo::L1TopoROD::m_crc
uint32_t m_crc
Definition: L1TopoROD.h:48
L1Topo::L1TopoROD::m_ct
bool m_ct
Definition: L1TopoROD.h:50
L1Topo::L1TopoROD::m_shelf
uint32_t m_shelf
Definition: L1TopoROD.h:43
L1Topo::L1TopoROD::m_hc
bool m_hc
Definition: L1TopoROD.h:52
L1Topo::L1TopoROD::m_pc
bool m_pc
Definition: L1TopoROD.h:51
L1Topo::L1TopoROD::m_pe
bool m_pe
Definition: L1TopoROD.h:53
L1Topo::L1TopoROD::m_pt
bool m_pt
Definition: L1TopoROD.h:56
L1Topo::decode
uint32_t decode(const uint32_t &word, const uint32_t &offset, const uint32_t &size)
Helper function to decode word based on offset and size.
Definition: Trigger/TrigT1/L1Topo/L1TopoRDO/src/Helpers.cxx:107
L1Topo::L1TopoROD::m_rodTrailer2
uint32_t m_rodTrailer2
Definition: L1TopoROD.h:41
L1Topo::L1TopoROD::m_payloadLength
uint32_t m_payloadLength
Definition: L1TopoROD.h:46
L1Topo::L1TopoROD::m_linkErrMap
uint32_t m_linkErrMap
Definition: L1TopoROD.h:45
L1Topo::L1TopoROD::m_rod
uint32_t m_rod
Definition: L1TopoROD.h:44
L1Topo::L1TopoROD::m_lm
bool m_lm
Definition: L1TopoROD.h:54
L1Topo::L1TopoROD::m_hm
bool m_hm
Definition: L1TopoROD.h:55
L1Topo::L1TopoROD::decode
void decode()
method used by constructor to decode word
Definition: L1TopoROD.cxx:16