ATLAS Offline Software
|
Represents the L1Topo fibre word of the L1Topo DAQ header, with decoder and encoder. More...
#include <Fibre.h>
Public Member Functions | |
Fibre (std::vector< uint32_t > &&status, std::vector< uint32_t > &&count) | |
Construct from contents and encode word: vectors of up to 5 status flags and sizes. They will be inserted left to right in the order the are given. The correct ordering is left to the user. Note that status is encoded as a single bit as specified in the data format, copied from the least significant bit of the given integer. Similarly, the size is truncated to the least significant 4 bits of the given integer. More... | |
Fibre (const uint32_t word) | |
Construct from word and encode contents. More... | |
const std::vector< uint32_t > & | status () const |
access method More... | |
const std::vector< uint32_t > & | count () const |
access method More... | |
uint32_t | word () const |
access method 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 | |
std::vector< uint32_t > | m_status |
fibre status More... | |
std::vector< uint32_t > | m_count |
fibre counts More... | |
uint32_t | m_word |
The raw data representation. More... | |
Represents the L1Topo fibre word of the L1Topo DAQ header, with decoder and encoder.
Used to decode/encode the 32-bit word whch contains up to 5 x 5-bit fibres, each comprising a 1-bit status flag and 4-bit size/count This word is repeated until the number of fibres in the L1Topo::Header block have been given. If any fibres asserted their status flag, then a separate fibre status word will follow.
L1Topo::Fibre::Fibre | ( | std::vector< uint32_t > && | status, |
std::vector< uint32_t > && | count | ||
) |
Construct from contents and encode word: vectors of up to 5 status flags and sizes. They will be inserted left to right in the order the are given. The correct ordering is left to the user. Note that status is encoded as a single bit as specified in the data format, copied from the least significant bit of the given integer. Similarly, the size is truncated to the least significant 4 bits of the given integer.
L1Topo::Fibre::Fibre | ( | const uint32_t | word | ) |
const std::vector< uint32_t > & L1Topo::Fibre::count | ( | ) | const |
|
protected |
|
protected |
const std::vector< uint32_t > & L1Topo::Fibre::status | ( | ) | const |
uint32_t L1Topo::Fibre::word | ( | ) | const |
|
private |
|
private |
|
private |