Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 09:11:31

0001 // This file is part of the ACTS project.
0002 //
0003 // Copyright (C) 2016 CERN for the benefit of the ACTS project
0004 //
0005 // This Source Code Form is subject to the terms of the Mozilla Public
0006 // License, v. 2.0. If a copy of the MPL was not distributed with this
0007 // file, You can obtain one at https://mozilla.org/MPL/2.0/.
0008 
0009 #include "Acts/TrackFitting/GainMatrixUpdater.hpp"
0010 
0011 #include "Acts/Definitions/Algebra.hpp"
0012 #include "Acts/Definitions/TrackParametrization.hpp"
0013 #include "Acts/EventData/MeasurementHelpers.hpp"
0014 #include "Acts/TrackFitting/KalmanFitterError.hpp"
0015 
0016 #include <algorithm>
0017 #include <cstddef>
0018 #include <type_traits>
0019 #include <utility>
0020 
0021 #include <Eigen/src/Core/MatrixBase.h>
0022 
0023 namespace Acts {
0024 
0025 std::tuple<double, std::error_code> GainMatrixUpdater::visitMeasurement(
0026     InternalTrackState trackState, const Logger& logger) const {
0027   // default-constructed error represents success, i.e. an invalid error code
0028 
0029   return visit_measurement(
0030       trackState.calibratedSize,
0031       [&, this]<std::size_t N>(std::integral_constant<std::size_t, N>)
0032           -> std::tuple<double, std::error_code> {
0033         return visitMeasurementImpl<N>(trackState, logger);
0034       });
0035 }
0036 
0037 }  // namespace Acts