![]() |
ATLAS Offline Software
|
ROIB::Trailer models the LVL1 ROD Trailer. More...
#include <Trailer.h>
Public Member Functions | |
| Trailer () | |
| default constructor: empty object | |
| Trailer (Trailer &&) noexcept=default | |
| Trailer (const Trailer &)=default | |
| Trailer & | operator= (Trailer &&) noexcept=default |
| Trailer & | operator= (const Trailer &)=default |
| Trailer (std::vector< uint32_t > &&v) | |
| constructor which fully specifies the initialiser values | |
| Trailer (const uint32_t, const uint32_t) | |
| constructor specifying the number of data words and the error status | |
| Trailer (const uint32_t) | |
| constructor specifying the number of data words | |
| ~Trailer ()=default | |
| empty default destructor | |
| const std::vector< uint32_t > & | trailer () const |
| get full trailer | |
| int | size () const |
| get trailer/data size (should always return 5) | |
| uint32_t | errorStatus () const |
| get error status word (LVL1 trailer assumes only on word) | |
| uint32_t | statusInfo () const |
| get info status word (LVL1 trailer assumes only on word) | |
| uint32_t | numStatusWords () const |
| get number of status words in trailer | |
| uint32_t | numDataWords () const |
| get number of data words | |
| uint32_t | statusPosition () const |
| get position of status information in ROD (LVL1 assumes 1) | |
| void | setSimulationError () |
| set error status to 0xffff0000 for ROD was not found in SG | |
| void | setNumDataWords (const unsigned int) |
| set number of data words | |
| const std::string | dump () const |
| dump raw object content to string | |
| const std::string | print (const bool longFormat=false) const |
| print object content in a human readable format to string | |
| void | dumpData () const |
| print object content to default message stream | |
| void | dumpData (MsgStream &) const |
| print object content to given message stream | |
Static Public Attributes | |
| static constexpr unsigned int | wordsPerTrailer = 5 |
| a ROD trailer as used in the LVL1 has 5 words, not counting the one hardware word in the end | |
Private Attributes | |
| std::vector< uint32_t > | m_trailer |
| vector of unsigned ints - the only data member - hopefully 5 | |
ROIB::Trailer models the LVL1 ROD Trailer.
Trailer is a class equivalent to the ROD trailer from the eformat lib, just much simpler and adapted to the LVL1 needs.
|
inline |
default constructor: empty object
Definition at line 46 of file Trailer.h.
|
defaultnoexcept |
|
default |
|
inline |
constructor specifying the number of data words and the error status
Definition at line 24 of file Trailer.cxx.
| ROIB::Trailer::Trailer | ( | const uint32_t | i | ) |
constructor specifying the number of data words
Definition at line 34 of file Trailer.cxx.
|
default |
empty default destructor
| const std::string ROIB::Trailer::dump | ( | ) | const |
dump raw object content to string
Definition at line 45 of file Trailer.cxx.
| void ROIB::Trailer::dumpData | ( | ) | const |
print object content to default message stream
Definition at line 76 of file Trailer.cxx.
| void ROIB::Trailer::dumpData | ( | MsgStream & | log | ) | const |
print object content to given message stream
Definition at line 86 of file Trailer.cxx.
| uint32_t ROIB::Trailer::errorStatus | ( | ) | const |
get error status word (LVL1 trailer assumes only on word)
| uint32_t ROIB::Trailer::numDataWords | ( | ) | const |
get number of data words
| uint32_t ROIB::Trailer::numStatusWords | ( | ) | const |
get number of status words in trailer
print object content in a human readable format to string
Definition at line 56 of file Trailer.cxx.
| void ROIB::Trailer::setNumDataWords | ( | const unsigned int | ) |
set number of data words
| void ROIB::Trailer::setSimulationError | ( | ) |
set error status to 0xffff0000 for ROD was not found in SG
| int ROIB::Trailer::size | ( | ) | const |
get trailer/data size (should always return 5)
| uint32_t ROIB::Trailer::statusInfo | ( | ) | const |
get info status word (LVL1 trailer assumes only on word)
| uint32_t ROIB::Trailer::statusPosition | ( | ) | const |
get position of status information in ROD (LVL1 assumes 1)
| const std::vector< uint32_t > & ROIB::Trailer::trailer | ( | ) | const |
get full trailer
|
private |
|
staticconstexpr |