37 std::vector<L1Topo::Error> errors;
50 return (
m_error>>
static_cast<unsigned int>(e) & 1);
54 m_error |= (1 <<
static_cast<unsigned int>(e));
82 s << std::hex << std::showbase << std::setfill(
'0') << std::setw(8)
83 << word <<
" " << std::dec << std::noshowbase;
void setError(L1Topo::Error)
set a flag to record an error
bool checkError(L1Topo::Error) const
check if a certain error flag has been set
void setStatusWords(std::vector< uint32_t > &&) noexcept
set the status words
std::vector< L1Topo::Error > getErrors() const
get a vector of Errors found during RAW to RDO conversion; see enum and
bool isDAQModule() const
check the module type, derived from the source ID and the L1Topo module
uint32_t getSourceID() const
get the source identifier, i.e. the word representing the subdet type and
const std::string dump() const
terse printout method used by RoIBResult
void setDataWords(std::vector< uint32_t > &&) noexcept
set the data words
const std::vector< uint32_t > & getStatusWords() const
get the status words
void setSourceID(const uint32_t)
set the source identifier
std::vector< uint32_t > m_dataWords
bool isROIModule() const
check the module type, derived from the source ID and the L1Topo module
const std::vector< uint32_t > & getDataWords() const
get the data words
std::vector< uint32_t > m_statusWords
Represents the L1Topo module ID, with decoder and encoder.
bool isROI() const
True if this is a ROI module.
bool isDAQ() const
True if this is a DAQ module.
static const std::map< Error, std::string > errorText
Define the text to print for each error type above - bad design to put it in the header file?
Error
The different types of error that can be flagged in the L1TopoRDO.