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

#include <L1TopoFPGA.h>

Collaboration diagram for L1Topo::L1TopoFPGA:

Public Member Functions

 L1TopoFPGA (const uint32_t trailer1, const uint32_t trailer2)
 Construct from contents and decode trailers. More...
 
uint32_t fpgaTrailer1 () const
 access methods More...
 
uint32_t fpgaTrailer2 () const
 
size_t fpgaBlockSize () const
 
uint32_t topoNumber () const
 
uint32_t fpgaNumber () const
 
uint32_t numSlices () const
 
uint32_t sliceNumber () const
 
uint32_t crc () const
 
bool ct () const
 
bool sm () 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_fpgaTrailer1
 variables More...
 
uint32_t m_fpgaTrailer2
 
size_t m_fpgaBlockSize
 
uint32_t m_topoNumber
 
uint32_t m_fpgaNumber
 
uint32_t m_numSlices
 
uint32_t m_sliceNumber
 
uint32_t m_crc
 
bool m_ct
 
bool m_sm
 
bool m_pe
 
bool m_lm
 
bool m_hm
 
bool m_pt
 

Detailed Description

Definition at line 14 of file L1TopoFPGA.h.

Constructor & Destructor Documentation

◆ L1TopoFPGA()

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

Construct from contents and decode trailers.

Definition at line 11 of file L1TopoFPGA.cxx.

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

Member Function Documentation

◆ crc()

uint32_t L1Topo::L1TopoFPGA::crc ( ) const

Definition at line 59 of file L1TopoFPGA.cxx.

59  {
60  return m_crc;
61  }

◆ ct()

bool L1Topo::L1TopoFPGA::ct ( ) const

Definition at line 64 of file L1TopoFPGA.cxx.

64  {
65  return m_ct;
66  }

◆ decode()

void L1Topo::L1TopoFPGA::decode ( )
protected

method used by constructor to decode word

Definition at line 16 of file L1TopoFPGA.cxx.

16  {
23  m_ct = (L1Topo::decode(m_fpgaTrailer2,5,1) & 0x1) != 0;
24  m_sm = (L1Topo::decode(m_fpgaTrailer2,4,1) & 0x1) != 0;
25  m_pe = (L1Topo::decode(m_fpgaTrailer2,3,1) & 0x1) != 0;
26  m_lm = (L1Topo::decode(m_fpgaTrailer2,2,1) & 0x1) != 0;
27  m_hm = (L1Topo::decode(m_fpgaTrailer2,1,1) & 0x1) != 0;
28  m_pt = (L1Topo::decode(m_fpgaTrailer2,0,1) & 0x1) != 0;
29  }

◆ fpgaBlockSize()

size_t L1Topo::L1TopoFPGA::fpgaBlockSize ( ) const

Definition at line 39 of file L1TopoFPGA.cxx.

39  {
40  return m_fpgaBlockSize;
41  }

◆ fpgaNumber()

uint32_t L1Topo::L1TopoFPGA::fpgaNumber ( ) const

Definition at line 47 of file L1TopoFPGA.cxx.

47  {
48  return m_fpgaNumber;
49  }

◆ fpgaTrailer1()

uint32_t L1Topo::L1TopoFPGA::fpgaTrailer1 ( ) const

access methods

Definition at line 31 of file L1TopoFPGA.cxx.

31  {
32  return m_fpgaTrailer1;
33  }

◆ fpgaTrailer2()

uint32_t L1Topo::L1TopoFPGA::fpgaTrailer2 ( ) const

Definition at line 35 of file L1TopoFPGA.cxx.

35  {
36  return m_fpgaTrailer2;
37  }

◆ hm()

bool L1Topo::L1TopoFPGA::hm ( ) const

Definition at line 80 of file L1TopoFPGA.cxx.

80  {
81  return m_hm;
82  }

◆ lm()

bool L1Topo::L1TopoFPGA::lm ( ) const

Definition at line 76 of file L1TopoFPGA.cxx.

76  {
77  return m_lm;
78  }

◆ numSlices()

uint32_t L1Topo::L1TopoFPGA::numSlices ( ) const

Definition at line 51 of file L1TopoFPGA.cxx.

51  {
52  return m_numSlices;
53  }

◆ pe()

bool L1Topo::L1TopoFPGA::pe ( ) const

Definition at line 72 of file L1TopoFPGA.cxx.

72  {
73  return m_pe;
74  }

◆ pt()

bool L1Topo::L1TopoFPGA::pt ( ) const

Definition at line 84 of file L1TopoFPGA.cxx.

84  {
85  return m_pt;
86  }

◆ sliceNumber()

uint32_t L1Topo::L1TopoFPGA::sliceNumber ( ) const

Definition at line 55 of file L1TopoFPGA.cxx.

55  {
56  return m_sliceNumber;
57  }

◆ sm()

bool L1Topo::L1TopoFPGA::sm ( ) const

Definition at line 68 of file L1TopoFPGA.cxx.

68  {
69  return m_sm;
70  }

◆ topoNumber()

uint32_t L1Topo::L1TopoFPGA::topoNumber ( ) const

Definition at line 43 of file L1TopoFPGA.cxx.

43  {
44  return m_topoNumber;
45  }

Member Data Documentation

◆ m_crc

uint32_t L1Topo::L1TopoFPGA::m_crc
private

Definition at line 48 of file L1TopoFPGA.h.

◆ m_ct

bool L1Topo::L1TopoFPGA::m_ct
private

Definition at line 50 of file L1TopoFPGA.h.

◆ m_fpgaBlockSize

size_t L1Topo::L1TopoFPGA::m_fpgaBlockSize
private

Definition at line 42 of file L1TopoFPGA.h.

◆ m_fpgaNumber

uint32_t L1Topo::L1TopoFPGA::m_fpgaNumber
private

Definition at line 45 of file L1TopoFPGA.h.

◆ m_fpgaTrailer1

uint32_t L1Topo::L1TopoFPGA::m_fpgaTrailer1
private

variables

Definition at line 39 of file L1TopoFPGA.h.

◆ m_fpgaTrailer2

uint32_t L1Topo::L1TopoFPGA::m_fpgaTrailer2
private

Definition at line 40 of file L1TopoFPGA.h.

◆ m_hm

bool L1Topo::L1TopoFPGA::m_hm
private

Definition at line 54 of file L1TopoFPGA.h.

◆ m_lm

bool L1Topo::L1TopoFPGA::m_lm
private

Definition at line 53 of file L1TopoFPGA.h.

◆ m_numSlices

uint32_t L1Topo::L1TopoFPGA::m_numSlices
private

Definition at line 46 of file L1TopoFPGA.h.

◆ m_pe

bool L1Topo::L1TopoFPGA::m_pe
private

Definition at line 52 of file L1TopoFPGA.h.

◆ m_pt

bool L1Topo::L1TopoFPGA::m_pt
private

Definition at line 55 of file L1TopoFPGA.h.

◆ m_sliceNumber

uint32_t L1Topo::L1TopoFPGA::m_sliceNumber
private

Definition at line 47 of file L1TopoFPGA.h.

◆ m_sm

bool L1Topo::L1TopoFPGA::m_sm
private

Definition at line 51 of file L1TopoFPGA.h.

◆ m_topoNumber

uint32_t L1Topo::L1TopoFPGA::m_topoNumber
private

Definition at line 44 of file L1TopoFPGA.h.


The documentation for this class was generated from the following files:
L1Topo::L1TopoFPGA::m_fpgaBlockSize
size_t m_fpgaBlockSize
Definition: L1TopoFPGA.h:42
L1Topo::L1TopoFPGA::m_ct
bool m_ct
Definition: L1TopoFPGA.h:50
L1Topo::L1TopoFPGA::m_pt
bool m_pt
Definition: L1TopoFPGA.h:55
L1Topo::L1TopoFPGA::m_lm
bool m_lm
Definition: L1TopoFPGA.h:53
L1Topo::L1TopoFPGA::m_sliceNumber
uint32_t m_sliceNumber
Definition: L1TopoFPGA.h:47
L1Topo::L1TopoFPGA::m_crc
uint32_t m_crc
Definition: L1TopoFPGA.h:48
L1Topo::L1TopoFPGA::m_sm
bool m_sm
Definition: L1TopoFPGA.h:51
L1Topo::L1TopoFPGA::m_numSlices
uint32_t m_numSlices
Definition: L1TopoFPGA.h:46
L1Topo::L1TopoFPGA::m_fpgaTrailer1
uint32_t m_fpgaTrailer1
variables
Definition: L1TopoFPGA.h:39
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::L1TopoFPGA::m_fpgaTrailer2
uint32_t m_fpgaTrailer2
Definition: L1TopoFPGA.h:40
L1Topo::L1TopoFPGA::m_topoNumber
uint32_t m_topoNumber
Definition: L1TopoFPGA.h:44
L1Topo::L1TopoFPGA::m_hm
bool m_hm
Definition: L1TopoFPGA.h:54
L1Topo::L1TopoFPGA::decode
void decode()
method used by constructor to decode word
Definition: L1TopoFPGA.cxx:16
L1Topo::L1TopoFPGA::m_pe
bool m_pe
Definition: L1TopoFPGA.h:52
L1Topo::L1TopoFPGA::m_fpgaNumber
uint32_t m_fpgaNumber
Definition: L1TopoFPGA.h:45