Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-03-30 07:46:03

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/EventData/AnyTrackStateProxy.hpp"
0012 #include "Acts/EventData/MeasurementHelpers.hpp"
0013 
0014 #include <cstddef>
0015 #include <type_traits>
0016 
0017 namespace Acts {
0018 
0019 std::tuple<double, std::error_code> GainMatrixUpdater::visitMeasurement(
0020     AnyMutableTrackStateProxy trackState, const Logger& logger) const {
0021   // default-constructed error represents success, i.e. an invalid error code
0022 
0023   return visit_measurement(
0024       trackState.calibratedSize(),
0025       [&, this]<std::size_t N>(std::integral_constant<std::size_t, N>)
0026           -> std::tuple<double, std::error_code> {
0027         return visitMeasurementImpl<N>(trackState, logger);
0028       });
0029 }
0030 
0031 }  // namespace Acts