Skip to content

Commit

Permalink
feat(gx2f): support n-dimensional measurements (acts-project#3264)
Browse files Browse the repository at this point in the history
Finally also supporting measurements with more than 2 dimensions.

Blocked by:
- acts-project#3240
  • Loading branch information
AJPfleger authored Jun 12, 2024
1 parent dace7be commit e18283b
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
Binary file modified CI/physmon/reference/performance_gx2f.root
Binary file not shown.
16 changes: 15 additions & 1 deletion Core/include/Acts/TrackFitting/GlobalChiSquareFitter.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e18283b

Please sign in to comment.