ATLAS Offline Software
Loading...
Searching...
No Matches
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.
uint32_t fpgaTrailer1 () const
 access methods
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

Private Attributes

uint32_t m_fpgaTrailer1
 variables
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 }
uint32_t m_fpgaTrailer2
Definition L1TopoFPGA.h:40
void decode()
method used by constructor to decode word
uint32_t m_fpgaTrailer1
variables
Definition L1TopoFPGA.h:39

Member Function Documentation

◆ crc()

uint32_t L1Topo::L1TopoFPGA::crc ( ) const

Definition at line 60 of file L1TopoFPGA.cxx.

60 {
61 return m_crc;
62 }

◆ ct()

bool L1Topo::L1TopoFPGA::ct ( ) const

Definition at line 65 of file L1TopoFPGA.cxx.

65 {
66 return m_ct;
67 }

◆ decode()

void L1Topo::L1TopoFPGA::decode ( )
protected

method used by constructor to decode word

Definition at line 16 of file L1TopoFPGA.cxx.

16 {
17 // See https://twiki.cern.ch/twiki/bin/view/Atlas/L1CaloBytestreamDecoders#jFEX_System
24 m_ct = (L1Topo::decode(m_fpgaTrailer2,5,1) & 0x1) != 0;
25 m_sm = (L1Topo::decode(m_fpgaTrailer2,4,1) & 0x1) != 0;
26 m_pe = (L1Topo::decode(m_fpgaTrailer2,3,1) & 0x1) != 0;
27 m_lm = (L1Topo::decode(m_fpgaTrailer2,2,1) & 0x1) != 0;
28 m_hm = (L1Topo::decode(m_fpgaTrailer2,1,1) & 0x1) != 0;
29 m_pt = (L1Topo::decode(m_fpgaTrailer2,0,1) & 0x1) != 0;
30 }
uint32_t m_fpgaNumber
Definition L1TopoFPGA.h:45
uint32_t m_sliceNumber
Definition L1TopoFPGA.h:47
uint32_t m_topoNumber
Definition L1TopoFPGA.h:44
uint32_t m_numSlices
Definition L1TopoFPGA.h:46
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.

◆ fpgaBlockSize()

size_t L1Topo::L1TopoFPGA::fpgaBlockSize ( ) const

Definition at line 40 of file L1TopoFPGA.cxx.

40 {
41 return m_fpgaBlockSize;
42 }

◆ fpgaNumber()

uint32_t L1Topo::L1TopoFPGA::fpgaNumber ( ) const

Definition at line 48 of file L1TopoFPGA.cxx.

48 {
49 return m_fpgaNumber;
50 }

◆ fpgaTrailer1()

uint32_t L1Topo::L1TopoFPGA::fpgaTrailer1 ( ) const

access methods

Definition at line 32 of file L1TopoFPGA.cxx.

32 {
33 return m_fpgaTrailer1;
34 }

◆ fpgaTrailer2()

uint32_t L1Topo::L1TopoFPGA::fpgaTrailer2 ( ) const

Definition at line 36 of file L1TopoFPGA.cxx.

36 {
37 return m_fpgaTrailer2;
38 }

◆ hm()

bool L1Topo::L1TopoFPGA::hm ( ) const

Definition at line 81 of file L1TopoFPGA.cxx.

81 {
82 return m_hm;
83 }

◆ lm()

bool L1Topo::L1TopoFPGA::lm ( ) const

Definition at line 77 of file L1TopoFPGA.cxx.

77 {
78 return m_lm;
79 }

◆ numSlices()

uint32_t L1Topo::L1TopoFPGA::numSlices ( ) const

Definition at line 52 of file L1TopoFPGA.cxx.

52 {
53 return m_numSlices;
54 }

◆ pe()

bool L1Topo::L1TopoFPGA::pe ( ) const

Definition at line 73 of file L1TopoFPGA.cxx.

73 {
74 return m_pe;
75 }

◆ pt()

bool L1Topo::L1TopoFPGA::pt ( ) const

Definition at line 85 of file L1TopoFPGA.cxx.

85 {
86 return m_pt;
87 }

◆ sliceNumber()

uint32_t L1Topo::L1TopoFPGA::sliceNumber ( ) const

Definition at line 56 of file L1TopoFPGA.cxx.

56 {
57 return m_sliceNumber;
58 }

◆ sm()

bool L1Topo::L1TopoFPGA::sm ( ) const

Definition at line 69 of file L1TopoFPGA.cxx.

69 {
70 return m_sm;
71 }

◆ topoNumber()

uint32_t L1Topo::L1TopoFPGA::topoNumber ( ) const

Definition at line 44 of file L1TopoFPGA.cxx.

44 {
45 return m_topoNumber;
46 }

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: