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

Represents the L1Topo TOB word of the L1Topo ROI data, with decode and encoder. More...

#include <L1TopoTOB.h>

Collaboration diagram for L1Topo::L1TopoTOB:

Public Member Functions

 L1TopoTOB (const uint32_t ctp_signal, uint32_t overflow_bits, uint32_t trigger_bits, uint32_t error_bits)
 Construct from contents and encode word. More...
 
 L1TopoTOB (const uint32_t ctp_signal, uint32_t overflow_bits, uint32_t trigger_bits)
 Construct from contents and encode word, without CRC error bits (they will be 0 by default) More...
 
 L1TopoTOB (const uint32_t word)
 Construct with word and decode contents. More...
 
uint32_t ctp_signal () const
 access method for ctp signal bits More...
 
uint32_t overflow_bits () const
 accessor method for overflow bits More...
 
uint32_t trigger_bits () const
 accessor method for trigger bits More...
 
uint32_t word () const
 accessor method for data word More...
 
uint32_t index () const
 index bit, 0 or 1, part ofthe ctp_signal More...
 
uint32_t clock () const
 clock cycle bit, 0 or 1, part ofthe ctp_signal More...
 
uint32_t fpga () const
 fpga number bit , 0 or 1, part ofthe ctp_signal More...
 
uint32_t error_bits () const
 access to five bits which flag CRC errors on the input links. They are available as individual flags below. More...
 
bool crc_EM () const
 flag true if EM TOB input links have errors (bit 16) More...
 
bool crc_Tau () const
 flag true if Tau TOB input links have errors (bit 17) More...
 
bool crc_Muon () const
 flag true if Muon TOB input links have errors (bit 18) More...
 
bool crc_Jet () const
 flag true if Jet TOB input links have errors (bit 19) More...
 
bool crc_Energy () const
 flag true if Energy TOB input links have errors (bit 20) More...
 

Protected Member Functions

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

Private Attributes

uint32_t m_ctp_signal
 
uint32_t m_overflow_bits
 
uint32_t m_trigger_bits
 
uint32_t m_error_bits
 
uint32_t m_word
 

Detailed Description

Represents the L1Topo TOB word of the L1Topo ROI data, with decode and encoder.

Used to decode/encode the 32-bit word that contains the trigger bits and overflow bits sent to the CTP by L1Topo.

Definition at line 17 of file L1TopoTOB.h.

Constructor & Destructor Documentation

◆ L1TopoTOB() [1/3]

L1Topo::L1TopoTOB::L1TopoTOB ( const uint32_t  ctp_signal,
uint32_t  overflow_bits,
uint32_t  trigger_bits,
uint32_t  error_bits 
)

Construct from contents and encode word.

Definition at line 14 of file L1TopoTOB.cxx.

◆ L1TopoTOB() [2/3]

L1Topo::L1TopoTOB::L1TopoTOB ( const uint32_t  ctp_signal,
uint32_t  overflow_bits,
uint32_t  trigger_bits 
)

Construct from contents and encode word, without CRC error bits (they will be 0 by default)

Definition at line 18 of file L1TopoTOB.cxx.

◆ L1TopoTOB() [3/3]

L1Topo::L1TopoTOB::L1TopoTOB ( const uint32_t  word)

Construct with word and decode contents.

Definition at line 22 of file L1TopoTOB.cxx.

23  : m_word(word){
24  this->decode();
25  }

Member Function Documentation

◆ clock()

uint32_t L1Topo::L1TopoTOB::clock ( ) const

clock cycle bit, 0 or 1, part ofthe ctp_signal

Definition at line 96 of file L1TopoTOB.cxx.

96  {
97  return (m_ctp_signal >> 1) & 0x1;
98  }

◆ crc_EM()

bool L1Topo::L1TopoTOB::crc_EM ( ) const

flag true if EM TOB input links have errors (bit 16)

Definition at line 66 of file L1TopoTOB.cxx.

66  {
67  return (m_error_bits & 0x01);
68  }

◆ crc_Energy()

bool L1Topo::L1TopoTOB::crc_Energy ( ) const

flag true if Energy TOB input links have errors (bit 20)

Definition at line 78 of file L1TopoTOB.cxx.

78  {
79  return (m_error_bits & 0x10);
80  }

◆ crc_Jet()

bool L1Topo::L1TopoTOB::crc_Jet ( ) const

flag true if Jet TOB input links have errors (bit 19)

Definition at line 75 of file L1TopoTOB.cxx.

75  {
76  return (m_error_bits & 0x08);
77  }

◆ crc_Muon()

bool L1Topo::L1TopoTOB::crc_Muon ( ) const

flag true if Muon TOB input links have errors (bit 18)

Definition at line 72 of file L1TopoTOB.cxx.

72  {
73  return (m_error_bits & 0x04);
74  }

◆ crc_Tau()

bool L1Topo::L1TopoTOB::crc_Tau ( ) const

flag true if Tau TOB input links have errors (bit 17)

Definition at line 69 of file L1TopoTOB.cxx.

69  {
70  return (m_error_bits & 0x02);
71  }

◆ ctp_signal()

uint32_t L1Topo::L1TopoTOB::ctp_signal ( ) const

access method for ctp signal bits

Definition at line 60 of file L1TopoTOB.cxx.

60  {
61  return m_ctp_signal;
62  }

◆ decode()

void L1Topo::L1TopoTOB::decode ( )
protected

method used by constructor to decode word

Definition at line 42 of file L1TopoTOB.cxx.

42  {
43  // assert (L1Topo::blockType(m_word)==L1Topo::BlockTypes::L1TOPO_TOB);
44  m_trigger_bits = m_word & 0xff;
45  m_overflow_bits = (m_word>>8) & 0xff;
46  m_error_bits = (m_word>>16) & 0x1f;
47  m_ctp_signal = (m_word>>24) & 0xf;
48  return;
49  }

◆ encode()

void L1Topo::L1TopoTOB::encode ( )
protected

method used by constructor to encode word

Definition at line 51 of file L1TopoTOB.cxx.

51  {
52  m_word = static_cast<uint32_t>(L1Topo::BlockTypes::L1TOPO_TOB) << 28;
53  m_word |= (m_trigger_bits & 0xff);
54  m_word |= (m_overflow_bits & 0xff) << 8;
55  m_word |= (m_error_bits & 0x1f) << 16;
56  m_word |= (m_ctp_signal &= 0xf) << 24;
57  return;
58  }

◆ error_bits()

uint32_t L1Topo::L1TopoTOB::error_bits ( ) const

access to five bits which flag CRC errors on the input links. They are available as individual flags below.

Definition at line 63 of file L1TopoTOB.cxx.

63  {
64  return m_error_bits;
65  }

◆ fpga()

uint32_t L1Topo::L1TopoTOB::fpga ( ) const

fpga number bit , 0 or 1, part ofthe ctp_signal

Definition at line 99 of file L1TopoTOB.cxx.

99  {
100  return (m_ctp_signal >> 3) & 0x1;
101  }

◆ index()

uint32_t L1Topo::L1TopoTOB::index ( ) const

index bit, 0 or 1, part ofthe ctp_signal

Definition at line 93 of file L1TopoTOB.cxx.

93  {
94  return m_ctp_signal & 0x1;
95  }

◆ overflow_bits()

uint32_t L1Topo::L1TopoTOB::overflow_bits ( ) const

accessor method for overflow bits

Definition at line 81 of file L1TopoTOB.cxx.

81  {
82  return m_overflow_bits;
83  }

◆ trigger_bits()

uint32_t L1Topo::L1TopoTOB::trigger_bits ( ) const

accessor method for trigger bits

Definition at line 84 of file L1TopoTOB.cxx.

84  {
85  return m_trigger_bits;
86  }

◆ word()

uint32_t L1Topo::L1TopoTOB::word ( ) const

accessor method for data word

Definition at line 87 of file L1TopoTOB.cxx.

87  {
88  return m_word;
89  }

Member Data Documentation

◆ m_ctp_signal

uint32_t L1Topo::L1TopoTOB::m_ctp_signal
private

Definition at line 57 of file L1TopoTOB.h.

◆ m_error_bits

uint32_t L1Topo::L1TopoTOB::m_error_bits
private

Definition at line 60 of file L1TopoTOB.h.

◆ m_overflow_bits

uint32_t L1Topo::L1TopoTOB::m_overflow_bits
private

Definition at line 58 of file L1TopoTOB.h.

◆ m_trigger_bits

uint32_t L1Topo::L1TopoTOB::m_trigger_bits
private

Definition at line 59 of file L1TopoTOB.h.

◆ m_word

uint32_t L1Topo::L1TopoTOB::m_word
private

Definition at line 61 of file L1TopoTOB.h.


The documentation for this class was generated from the following files:
L1Topo::L1TopoTOB::m_overflow_bits
uint32_t m_overflow_bits
Definition: L1TopoTOB.h:58
L1Topo::L1TopoTOB::error_bits
uint32_t error_bits() const
access to five bits which flag CRC errors on the input links. They are available as individual flags ...
Definition: L1TopoTOB.cxx:63
L1Topo::L1TopoTOB::m_word
uint32_t m_word
Definition: L1TopoTOB.h:61
xAOD::uint32_t
setEventNumber uint32_t
Definition: EventInfo_v1.cxx:127
L1Topo::BlockTypes::L1TOPO_TOB
@ L1TOPO_TOB
L1Topo::L1TopoTOB::decode
void decode()
method used by constructor to decode word
Definition: L1TopoTOB.cxx:42
L1Topo::L1TopoTOB::encode
void encode()
method used by constructor to encode word
Definition: L1TopoTOB.cxx:51
L1Topo::L1TopoTOB::m_error_bits
uint32_t m_error_bits
Definition: L1TopoTOB.h:60
L1Topo::L1TopoTOB::m_trigger_bits
uint32_t m_trigger_bits
Definition: L1TopoTOB.h:59
L1Topo::L1TopoTOB::m_ctp_signal
uint32_t m_ctp_signal
Definition: L1TopoTOB.h:57
L1Topo::L1TopoTOB::trigger_bits
uint32_t trigger_bits() const
accessor method for trigger bits
Definition: L1TopoTOB.cxx:84
L1Topo::L1TopoTOB::overflow_bits
uint32_t overflow_bits() const
accessor method for overflow bits
Definition: L1TopoTOB.cxx:81
L1Topo::L1TopoTOB::ctp_signal
uint32_t ctp_signal() const
access method for ctp signal bits
Definition: L1TopoTOB.cxx:60
L1Topo::L1TopoTOB::word
uint32_t word() const
accessor method for data word
Definition: L1TopoTOB.cxx:87