Skip to content

Commit

Permalink
fix: SEGFAULT in NuclearInteractionParametrisation (#931)
Browse files Browse the repository at this point in the history
  • Loading branch information
andriish committed Aug 10, 2021
1 parent 373afa9 commit 0321083
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -244,6 +244,8 @@ cumulativePDGprobability(const EventCollection& events) {

// Count how many and which particles were created by which particle
for (const EventFraction& event : events) {
if (event.finalParticles.empty())
continue;
if (!event.soft) {
counter[event.initialParticle.pdg()][event.finalParticles[0].pdg()]++;
}
Expand Down Expand Up @@ -354,4 +356,4 @@ CumulativeDistribution cumulativeNuclearInteractionProbability(
}
} // namespace NuclearInteractionParametrisation
} // namespace detail
} // namespace ActsExamples
} // namespace ActsExamples

0 comments on commit 0321083

Please sign in to comment.