Skip to content
Snippets Groups Projects
Commit 34e7f0e6 authored by Christopher Rob Jones's avatar Christopher Rob Jones
Browse files

RichDAQDefinitions - Minor changes to rawDump print format

parent e61ce6ee
No related branches found
No related tags found
1 merge request!3061Update RICH decoding for realistic cable maps from the pit
......@@ -165,15 +165,17 @@ namespace Rich::DAQ {
/// Bits dump
inline std::ostream& bitsDump( std::ostream& os, //
const unsigned int nBits = 8 * sizeof( TYPE ), //
const std::string& spacer = " " ) const {
const std::string spacer = " " ) const {
for ( int iCol = nBits - 1; iCol >= 0; --iCol ) { os << spacer << isBitOn( iCol ); }
return os;
}
/// Raw dump of the word
inline std::ostream& rawDump( std::ostream& os ) const {
inline std::ostream& rawDump( std::ostream& os, //
const unsigned int nBits = 8 * sizeof( TYPE ), //
const std::string spacer = "" ) const {
hexDump( os );
os << " :";
return bitsDump( os );
os << ":";
return bitsDump( os, nBits, spacer );
}
protected:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment