Skip to content

Commit

Permalink
throw
Browse files Browse the repository at this point in the history
  • Loading branch information
AJPfleger committed Oct 3, 2024
1 parent e7dceab commit dd38434
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,9 @@ ActsExamples::ProcessCode ActsExamples::ParticleSmearing::execute(
phi + sigmaPhi * stdNormal(rng), theta + sigmaTheta * stdNormal(rng));
params[Acts::eBoundPhi] = newPhi;
params[Acts::eBoundTheta] = newTheta;
if (std::abs(newTheta) < 1e-6) {
throw std::runtime_error("Theta is too close to zero.");
}
// compute smeared q/p
params[Acts::eBoundQOverP] = qOverP + sigmaQOverP * stdNormal(rng);

Expand Down

0 comments on commit dd38434

Please sign in to comment.