Skip to content

Commit

Permalink
pi is also bad
Browse files Browse the repository at this point in the history
  • Loading branch information
AJPfleger committed Oct 3, 2024
1 parent 7641648 commit a1f5102
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@

#include <algorithm>
#include <cmath>
#include <numbers>
#include <ostream>
#include <random>
#include <stdexcept>
Expand Down Expand Up @@ -108,7 +109,8 @@ ActsExamples::ProcessCode ActsExamples::ParticleSmearing::execute(
theta + sigmaTheta * stdNormal(rng));

// We don't want to have theta-values parallel to the beam axis.
if (std::abs(newTheta) > 1e-6) {
if (std::abs(newTheta) > 1e-6 &&
std::abs(newTheta - std::numbers::pi) > 1e-6) {
params[Acts::eBoundPhi] = newPhi;
params[Acts::eBoundTheta] = newTheta;
break;
Expand Down

0 comments on commit a1f5102

Please sign in to comment.