Skip to content
Snippets Groups Projects
Commit 57278d12 authored by brusale's avatar brusale
Browse files

prevent double counting hits

parent ba854432
Branches
No related tags found
No related merge requests found
......@@ -44,6 +44,8 @@ public:
hits_.resize(nHits);
fractions_.resize(nHits);
for (unsigned int i = 0; i < nHits; ++i) {
if (std::find(hits_.begin(), hits_.end(), hits[i]) != hits_.end())
continue;
hits_[i] = hits[i];
fractions_[i] = fractions[i];
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment