Skip to content
Snippets Groups Projects
Commit 2381b9eb authored by Felix Weiglhofer's avatar Felix Weiglhofer Committed by Volker Friese
Browse files

algo::Unpack: Replace assert with error counter for invalid equipment ids.

parent cc158d61
No related branches found
No related tags found
1 merge request!1201cbmreco: Integrate algo::Unpack
......@@ -96,7 +96,10 @@ namespace cbm::algo
// Get Unpacker
const auto algoIt = algoMap.find(eqId);
assert(algoIt != algoMap.end());
if (algoIt == algoMap.end()) {
monitor.fNumErrInvalidEqId++;
return;
}
UnpackAlgo& algo = algoIt->second;
assert(timeslice->descriptor(comp, 0).sys_ver == sys_ver);
......
......@@ -48,6 +48,7 @@ namespace cbm::algo
size_t fNumBytes = 0;
size_t fNumDigis = 0;
size_t fNumCompUsed = 0;
size_t fNumErrInvalidEqId = 0;
std::string print()
{
std::stringstream ss;
......
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