Skip to content
Snippets Groups Projects
Commit bc79fd04 authored by Dominik Smith's avatar Dominik Smith Committed by Felix Weiglhofer
Browse files

cbm::algo::Clusterizer: Another performance improvement and minor bugfix.

parent 01d75e16
No related branches found
No related tags found
No related merge requests found
......@@ -291,6 +291,8 @@ namespace cbm::algo::tof
if (lastChanPos) { (*lastChanPos)[chan]++; }
continue;
}
if (xDigiA->GetTime() > cluster.weightedTime / cluster.weightsSum + fParams.fdMaxTimeDist) { break; }
auto i2 = i1;
while (++i2 < storDigi.end()) {
......@@ -440,7 +442,7 @@ namespace cbm::algo::tof
cluster.reset();
}
}
cluster.add(pos, time, totSum, totSum, storDigi[0].second, storDigi[1].second);
cluster.add(pos, time, totSum, totSum, digiIt->second, std::next(digiIt, 1)->second);
digiIt += 2;
lastChan = chan;
......
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