Skip to content

Commit

Permalink
refactor: Removed maxHits condition from ScoreBasedAmbiguitySolver (#…
Browse files Browse the repository at this point in the history
…3676)

The `maxHits` setting was used in cuts and `ambiscore`. For the `ambiscore` this was essential 

But `maxHits`  often set low for the `ambiscore` to work well. This would mean there will be removal of tracks in high eta region due to cuts. Now the `maxHits`  is removed from cuts hence solving the issue. Since we have optional cuts users can add it back with independent value if needed. 

Ragansu Chakkappai
  • Loading branch information
Ragansu authored Oct 1, 2024
1 parent 64dadde commit da1d846
Showing 1 changed file with 0 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,6 @@ std::vector<double> Acts::ScoreBasedAmbiguityResolution::simpleScore(
ACTS_DEBUG("---> Number of outliers: " << trackFeatures.nOutliers);

if ((trackFeatures.nHits < detector.minHits) ||
(trackFeatures.nHits > detector.maxHits) ||
(trackFeatures.nHoles > detector.maxHoles) ||
(trackFeatures.nOutliers > detector.maxOutliers)) {
score = 0;
Expand Down Expand Up @@ -333,7 +332,6 @@ std::vector<double> Acts::ScoreBasedAmbiguityResolution::ambiguityScore(
ACTS_DEBUG("---> Number of outliers: " << trackFeatures.nOutliers);

if ((trackFeatures.nHits < detector.minHits) ||
(trackFeatures.nHits > detector.maxHits) ||
(trackFeatures.nHoles > detector.maxHoles) ||
(trackFeatures.nOutliers > detector.maxOutliers)) {
score = 0;
Expand Down

0 comments on commit da1d846

Please sign in to comment.