Skip to content

Commit

Permalink
Add comment on the code and use approximation
Browse files Browse the repository at this point in the history
  • Loading branch information
cvarni committed Oct 15, 2024
1 parent c26f0a1 commit 32d490b
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions Core/include/Acts/Seeding/SeedFinder.ipp
Original file line number Diff line number Diff line change
Expand Up @@ -369,10 +369,13 @@ SeedFinder<external_spacepoint_t, grid_t, platform_t>::getCompatibleDoublets(
// We check the interaction point by evaluating the minimal distance
// between the origin and the straight line connecting the two points in
// the doublets. Using a geometric similarity, the Im is given by
// yNewFrame * rM / deltaR <= m_config.impactMax We use squared quantities
// to avoid square roots
if (yNewFrame * yNewFrame * rM * rM <=
m_config.impactMax * m_config.impactMax * deltaR2) {
// yNewFrame * rM / deltaR <= m_config.impactMax
// However, we make here an approximation of the impact parameter
// which is valid under the assumption xNewFrame / yNewFrame is small
// The correct computation would be:
// yNewFrame * yNewFrame * rM * rM <= m_config.impactMax *
// m_config.impactMax * deltaR2
if (std::abs(rM * yNewFrame) <= impactMax * xNewFrame) {
// check if duplet cotTheta is within the region of interest
// cotTheta is defined as (deltaZ / deltaR) but instead we multiply
// cotThetaMax by deltaR to avoid division
Expand Down

0 comments on commit 32d490b

Please sign in to comment.