Skip to content

Commit

Permalink
High pT Tracks Solved: Backporting to CMSSW_13_0_X
Browse files Browse the repository at this point in the history
  • Loading branch information
ykumar05 committed Apr 24, 2024
1 parent 7fc8c4d commit 0c366c0
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions FastSimulation/SimplifiedGeometryPropagator/src/Trajectory.cc
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,6 @@ std::unique_ptr<fastsim::Trajectory> fastsim::Trajectory::createTrajectory(const
if (particle.charge() == 0. || magneticFieldZ == 0.) {
LogDebug("FastSim") << "create straight trajectory";
return std::unique_ptr<fastsim::Trajectory>(new fastsim::StraightTrajectory(particle));
} else if (std::abs(particle.momentum().Pt() /
(fastsim::Constants::speedOfLight * 1e-4 * particle.charge() * magneticFieldZ)) > 1e5) {
LogDebug("FastSim") << "create straight trajectory (huge radius)";
return std::unique_ptr<fastsim::Trajectory>(new fastsim::StraightTrajectory(particle));
} else {
LogDebug("FastSim") << "create helix trajectory";
return std::unique_ptr<fastsim::Trajectory>(new fastsim::HelixTrajectory(particle, magneticFieldZ));
Expand Down

0 comments on commit 0c366c0

Please sign in to comment.