Commit bc4d00b9 authored by Mauro Dinardo's avatar Mauro Dinardo
Browse files

Minor

parent 01e938b3
......@@ -42,7 +42,7 @@
#define SETBATCH 0 // Set batch mode when running supervisor
#define FILERUNNUMBER "./RunNumber.txt"
#define BASEDIR "PH2ACF_BASE_DIR"
#define ARBITRARYDELAY 120e6 // [us]
#define ARBITRARYDELAY 2e6 // [us]
INITIALIZE_EASYLOGGINGPP
......@@ -86,7 +86,7 @@ void readBinaryData(const std::string& binaryFile, SystemController& mySysCntr,
RD53FWInterface::PrintEvents({decodedEvents[i]});
}
LOG(INFO) << GREEN << "Percentage of corrupted events: " << BOLDYELLOW << std::setprecision(3) << BOLDYELLOW << 1. * errors / decodedEvents.size() * 100. << "%" << std::setprecision(-1) << RESET;
LOG(INFO) << GREEN << "Corrupted events: " << BOLDYELLOW << std::setprecision(3) << errors << " (" << 1. * errors / decodedEvents.size() * 100. << "%)" << std::setprecision(-1) << RESET;
int avgEventSize = data.size() / decodedEvents.size();
LOG(INFO) << GREEN << "Average event size is " << BOLDYELLOW << avgEventSize * wordDataSize << RESET << GREEN << " bits over " << BOLDYELLOW << decodedEvents.size() << RESET << GREEN << " events" << RESET;
mySysCntr.closeFileHandler();
......
......@@ -66,7 +66,7 @@ void readBinaryData(const std::string& binaryFile, SystemController& mySysCntr,
RD53FWInterface::PrintEvents({decodedEvents[i]});
}
LOG(INFO) << GREEN << "Percentage of corrupted events: " << BOLDYELLOW << std::setprecision(3) << BOLDYELLOW << 1. * errors / decodedEvents.size() * 100. << "%" << std::setprecision(-1) << RESET;
LOG(INFO) << GREEN << "Corrupted events: " << BOLDYELLOW << std::setprecision(3) << errors << " (" << 1. * errors / decodedEvents.size() * 100. << "%)" << std::setprecision(-1) << RESET;
int avgEventSize = data.size() / decodedEvents.size();
LOG(INFO) << GREEN << "Average event size is " << BOLDYELLOW << avgEventSize * wordDataSize << RESET << GREEN << " bits over " << BOLDYELLOW << decodedEvents.size() << RESET << GREEN << " events" << RESET;
mySysCntr.closeFileHandler();
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment