10#include "GaudiKernel/Bootstrap.h"
11#include "GaudiKernel/ISvcLocator.h"
12#include "GaudiKernel/IMessageSvc.h"
13#include "GaudiKernel/MsgStream.h"
49 for (
size_t i(0); i <
m_trailer.size(); ++i) {
61 s <<
"Size: " <<
size() << std::endl;
62 s << std::setw(2) << 0 <<
"ErrorStatus:" <<
errorStatus() << std::endl;
63 s << std::setw(2) << 1 <<
"SatusInfo:" <<
statusInfo() << std::endl;
64 s << std::setw(2) << 2 <<
"nStatusWords:" <<
numStatusWords() << std::endl;
65 s << std::setw(2) << 3 <<
"nDataWords:" <<
numDataWords() << std::endl;
68 for (
size_t i(0); i <
m_trailer.size(); ++i) {
78 SmartIF<IMessageSvc> msgSvc{Gaudi::svcLocator()->service(
"MessageSvc")};
82 MsgStream log(msgSvc,
"ROIB::Header");
88 log << MSG::DEBUG <<
"*BEGIN* ROIB::Trailer" <<
endmsg;
89 log << MSG::DEBUG <<
"Trailer size : " <<
size() <<
endmsg;
93 log << MSG::DEBUG <<
"*END* ROIB::Trailer" <<
endmsg;
uint32_t statusPosition() const
get position of status information in ROD (LVL1 assumes 1)
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)
uint32_t statusInfo() const
get info status word (LVL1 trailer assumes only on word)
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
const std::string convertToHex(const uint32_t word)
helper function to dump a number in hex format
Namespace of the LVL1 RoIB simulation.