58 os <<
"ModuleID: " <<
" " <<
formatHex4(m.id()) <<
" 0b" << std::bitset<8>(m.id()) <<
" link " << m.link() <<
" " <<
" module " << m.module();
Represents the L1Topo module ID, with decoder and encoder.
bool isROI() const
True if this is a ROI module.
void decode()
method used by constructor to decode word
bool isDAQ() const
True if this is a DAQ module.
ModuleID(unsigned int link, unsigned int module, unsigned int roiDaq)
Construct from constituent parts and encode word.
uint16_t link() const
access method
void encode()
method used by constructor to encode word
uint16_t roiDaq() const
access method
uint16_t module() const
access method
uint16_t id() const
access method
std::string formatHex4(uint32_t word)
Helper function to format a 32-bit integer as a 4-digit hex number for printing.
std::ostream & operator<<(std::ostream &, const Error)
Helper to print errors as text rather than numbers.