Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
beomki-yeo committed Feb 22, 2024
1 parent 0e70645 commit 38e4514
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Core/include/Acts/Seeding/EstimateTrackParamsFromSeed.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ std::optional<BoundVector> estimateTrackParamsFromSeed(
// Radius is a signed distance between circleCenter and first sp, which is at
// (0, 0) in the new frame. Sign depends on the slope a (positive vs negative)
int sign = a > 0 ? -1 : 1;
const ActsScalar R = sign * circleCenter.norm();
const ActsScalar R = circleCenter.norm();
ActsScalar invTanTheta =
local2.z() /
(2.f * R * std::asin(std::hypot(local2.x(), local2.y()) / 2.f * R));
Expand Down Expand Up @@ -273,7 +273,7 @@ std::optional<BoundVector> estimateTrackParamsFromSeed(

// The estimated q/pt in [GeV/c]^-1 (note that the pt is the projection of
// momentum on the transverse plane of the new frame)
ActsScalar qOverPt = (UnitConstants::m) / (0.3 * bFieldInTesla * R);
ActsScalar qOverPt = sign * (UnitConstants::m) / (0.3 * bFieldInTesla * R);
// The estimated q/p in [GeV/c]^-1
params[eBoundQOverP] = qOverPt / std::hypot(1., invTanTheta);

Expand Down

0 comments on commit 38e4514

Please sign in to comment.