ROIB::Trailer models the LVL1 ROD Trailer.
More...
#include <Trailer.h>
|
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 More...
|
|
|
std::vector< uint32_t > | m_trailer |
| vector of unsigned ints - the only data member - hopefully 5 More...
|
|
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.
- See also
- ROIB::Header
- Author
- Thomas Schoerner-Sadenius thoma.nosp@m.s.sc.nosp@m.hoern.nosp@m.er@c.nosp@m.ern.c.nosp@m.h
- Version
- $Id: Trailer.h,v 1.10 2008-12-18 13:35:05 dquarrie Exp $
Definition at line 37 of file Trailer.h.
◆ Trailer() [1/6]
ROIB::Trailer::Trailer |
( |
| ) |
|
|
inline |
default constructor: empty object
Definition at line 46 of file Trailer.h.
◆ Trailer() [2/6]
ROIB::Trailer::Trailer |
( |
Trailer && |
| ) |
|
|
defaultnoexcept |
◆ Trailer() [3/6]
◆ Trailer() [4/6]
ROIB::Trailer::Trailer |
( |
std::vector< uint32_t > && |
v | ) |
|
|
inline |
constructor which fully specifies the initialiser values
Definition at line 55 of file Trailer.h.
◆ Trailer() [5/6]
ROIB::Trailer::Trailer |
( |
const uint32_t |
i1, |
|
|
const uint32_t |
i2 |
|
) |
| |
constructor specifying the number of data words and the error status
Definition at line 24 of file Trailer.cxx.
◆ Trailer() [6/6]
ROIB::Trailer::Trailer |
( |
const uint32_t |
i | ) |
|
constructor specifying the number of data words
Definition at line 34 of file Trailer.cxx.
◆ ~Trailer()
ROIB::Trailer::~Trailer |
( |
| ) |
|
|
default |
◆ dump()
const std::string ROIB::Trailer::dump |
( |
| ) |
const |
dump raw object content to string
Definition at line 45 of file Trailer.cxx.
◆ dumpData() [1/2]
void ROIB::Trailer::dumpData |
( |
| ) |
const |
print object content to default message stream
Definition at line 76 of file Trailer.cxx.
78 SmartIF<IMessageSvc>
msgSvc{Gaudi::svcLocator()->service(
"MessageSvc")};
◆ dumpData() [2/2]
void ROIB::Trailer::dumpData |
( |
MsgStream & |
log | ) |
const |
print object content to given message stream
Definition at line 86 of file Trailer.cxx.
◆ errorStatus()
uint32_t ROIB::Trailer::errorStatus |
( |
| ) |
const |
get error status word (LVL1 trailer assumes only on word)
◆ numDataWords()
uint32_t ROIB::Trailer::numDataWords |
( |
| ) |
const |
◆ numStatusWords()
uint32_t ROIB::Trailer::numStatusWords |
( |
| ) |
const |
get number of status words in trailer
◆ operator=() [1/2]
◆ operator=() [2/2]
◆ print()
const std::string ROIB::Trailer::print |
( |
const bool |
longFormat = false | ) |
const |
print object content in a human readable format to string
Definition at line 56 of file Trailer.cxx.
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;
◆ setNumDataWords()
void ROIB::Trailer::setNumDataWords |
( |
const unsigned int |
| ) |
|
◆ setSimulationError()
void ROIB::Trailer::setSimulationError |
( |
| ) |
|
set error status to 0xffff0000 for ROD was not found in SG
◆ size()
int ROIB::Trailer::size |
( |
| ) |
const |
get trailer/data size (should always return 5)
◆ statusInfo()
uint32_t ROIB::Trailer::statusInfo |
( |
| ) |
const |
get info status word (LVL1 trailer assumes only on word)
◆ statusPosition()
uint32_t ROIB::Trailer::statusPosition |
( |
| ) |
const |
get position of status information in ROD (LVL1 assumes 1)
◆ trailer()
const std::vector<uint32_t>& ROIB::Trailer::trailer |
( |
| ) |
const |
◆ m_trailer
std::vector< uint32_t > ROIB::Trailer::m_trailer |
|
private |
vector of unsigned ints - the only data member - hopefully 5
Definition at line 105 of file Trailer.h.
◆ wordsPerTrailer
constexpr unsigned int ROIB::Trailer::wordsPerTrailer = 5 |
|
staticconstexpr |
a ROD trailer as used in the LVL1 has 5 words, not counting the one hardware word in the end
number of words in trailer (Ref: ATL-DA-ES-0029.)
Definition at line 43 of file Trailer.h.
The documentation for this class was generated from the following files: