Skip to content

Commit

Permalink
try non-float counter
Browse files Browse the repository at this point in the history
  • Loading branch information
AJPfleger committed Apr 27, 2024
1 parent b8c5fb5 commit 814a661
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -342,16 +342,16 @@ cumulativeMultiplicityProbability(const EventCollection& events,
}

TVectorF softProbability(const EventCollection& events) {
float counter = 0.;
std::size_t countSoft = 0;
// Count the soft events
for (const EventFraction& event : events) {
if (event.soft) {
counter++;
countSoft++;
}
}

TVectorF result(1);
result[0] = counter / events.size();
result[0] = static_cast<float>(countSoft) / events.size();
return result;
}

Expand Down

0 comments on commit 814a661

Please sign in to comment.