diff --git a/Core/include/Acts/AmbiguityResolution/ScoreBasedAmbiguityResolution.ipp b/Core/include/Acts/AmbiguityResolution/ScoreBasedAmbiguityResolution.ipp index 247b767dd3d..0ce0941c0fe 100644 --- a/Core/include/Acts/AmbiguityResolution/ScoreBasedAmbiguityResolution.ipp +++ b/Core/include/Acts/AmbiguityResolution/ScoreBasedAmbiguityResolution.ipp @@ -336,7 +336,7 @@ std::vector Acts::ScoreBasedAmbiguityResolution::ambiguityScore( // detector. std::size_t nHits = trackFeatures.nHits; if (nHits > detector.maxHits) { - score = score * (detector.maxHits - nHits + 1); // hits are good ! + score = score * (nHits - detector.maxHits + 1); // hits are good ! nHits = detector.maxHits; } score = score * detector.factorHits[nHits];