6#ifndef TRIGT1RESULT_TRAILER_H
7#define TRIGT1RESULT_TRAILER_H
59 Trailer(
const uint32_t,
const uint32_t );
68 const std::vector<uint32_t>&
trailer()
const;
94 const std::string
dump()
const;
96 const std::string
print(
const bool longFormat =
false)
const;
static constexpr unsigned int wordsPerTrailer
a ROD trailer as used in the LVL1 has 5 words, not counting the one hardware word in the end
uint32_t statusPosition() const
get position of status information in ROD (LVL1 assumes 1)
~Trailer()=default
empty default destructor
const std::string dump() const
dump raw object content to string
Trailer()
default constructor: empty object
const std::string print(const bool longFormat=false) const
print object content in a human readable format to string
uint32_t numDataWords() const
get number of data words
int size() const
get trailer/data size (should always return 5)
uint32_t numStatusWords() const
get number of status words in trailer
uint32_t errorStatus() const
get error status word (LVL1 trailer assumes only on word)
const std::vector< uint32_t > & trailer() const
get full trailer
uint32_t statusInfo() const
get info status word (LVL1 trailer assumes only on word)
void setSimulationError()
set error status to 0xffff0000 for ROD was not found in SG
std::vector< uint32_t > m_trailer
vector of unsigned ints - the only data member - hopefully 5
void dumpData() const
print object content to default message stream
Trailer(Trailer &&) noexcept=default
void setNumDataWords(const unsigned int)
set number of data words
Namespace of the LVL1 RoIB simulation.