Skip to content

Commit

Permalink
code format
Browse files Browse the repository at this point in the history
  • Loading branch information
jo100sun committed Aug 24, 2023
1 parent 18f8835 commit e38de0a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -689,7 +689,7 @@ void TrackDetectorAssociator::getTAMuonChamberMatches(std::vector<TAMuonChamberM
float narrowWidth = 2.f * bounds->widthAtHalfLength() - wideWidth;
float length = bounds->length();
float tangent = (wideWidth - narrowWidth) / (2.f * length);
float halfWidthAtY = tangent * localPoint.y() + 0.25f * (narrowWidth+wideWidth);
float halfWidthAtY = tangent * localPoint.y() + 0.25f * (narrowWidth + wideWidth);

distanceX = std::abs(localPoint.x()) - halfWidthAtY;
distanceY = std::abs(localPoint.y()) - 0.5f * length;
Expand Down

0 comments on commit e38de0a

Please sign in to comment.