diff --git a/src/simulation/scattering_angle_distribution.cpp b/src/simulation/scattering_angle_distribution.cpp index edbaffe..0da0809 100755 --- a/src/simulation/scattering_angle_distribution.cpp +++ b/src/simulation/scattering_angle_distribution.cpp @@ -58,7 +58,7 @@ CompositeAngleDistribution::CompositeAngleDistribution( double CompositeAngleDistribution::roll(std::mt19937* engine, double energy_eV) { - if (energy_eV <= decider_energy_) { + if (!(energy_eV > decider_energy_)) { return lower_distribution_->roll(engine, energy_eV); } else { return higher_distribution_->roll(engine, energy_eV);