diff --git a/CI/physmon/reference/performance_gx2f.root b/CI/physmon/reference/performance_gx2f.root index e8a96b0ab00..d49ca45dda0 100644 Binary files a/CI/physmon/reference/performance_gx2f.root and b/CI/physmon/reference/performance_gx2f.root differ diff --git a/Core/include/Acts/TrackFitting/GlobalChiSquareFitter.hpp b/Core/include/Acts/TrackFitting/GlobalChiSquareFitter.hpp index 88aeba5ab9e..01053f90c07 100644 --- a/Core/include/Acts/TrackFitting/GlobalChiSquareFitter.hpp +++ b/Core/include/Acts/TrackFitting/GlobalChiSquareFitter.hpp @@ -822,10 +822,24 @@ class Gx2Fitter { } else if (measDim == 2) { addToGx2fSums<2>(aMatrix, bVector, chi2sum, jacobianFromStart, trackState, *m_addToSumLogger); + } else if (measDim == 3) { + addToGx2fSums<3>(aMatrix, bVector, chi2sum, jacobianFromStart, + trackState, *m_addToSumLogger); + } else if (measDim == 4) { + addToGx2fSums<4>(aMatrix, bVector, chi2sum, jacobianFromStart, + trackState, *m_addToSumLogger); + } else if (measDim == 5) { + addToGx2fSums<5>(aMatrix, bVector, chi2sum, jacobianFromStart, + trackState, *m_addToSumLogger); + } else if (measDim == 6) { + addToGx2fSums<6>(aMatrix, bVector, chi2sum, jacobianFromStart, + trackState, *m_addToSumLogger); } else { ACTS_ERROR("Can not process state with measurement with " << measDim << " dimensions.") - countNdf -= measDim; + throw std::domain_error( + "Found measurement with less than 1 or more than 6 " + "dimension(s)."); } } else if (typeFlags.test(TrackStateFlag::HoleFlag)) { // Handle hole