File indexing completed on 2025-01-18 09:11:06
0001
0002
0003
0004
0005
0006
0007
0008
0009 #pragma once
0010
0011 #include "Acts/Definitions/Direction.hpp"
0012 #include "Acts/EventData/MultiTrajectory.hpp"
0013 #include "Acts/EventData/SourceLink.hpp"
0014 #include "Acts/Geometry/GeometryContext.hpp"
0015 #include "Acts/Utilities/CalibrationContext.hpp"
0016 #include "Acts/Utilities/Logger.hpp"
0017 #include "Acts/Utilities/Result.hpp"
0018
0019 namespace Acts::detail {
0020
0021 template <typename traj_t>
0022 void voidFitterCalibrator(const GeometryContext& ,
0023 const CalibrationContext& ,
0024 const SourceLink& ,
0025 typename traj_t::TrackStateProxy ) {
0026 throw std::runtime_error{"voidFitterCalibrator should not ever execute"};
0027 }
0028
0029 template <typename traj_t>
0030 Result<void> voidFitterUpdater(const GeometryContext& ,
0031 typename traj_t::TrackStateProxy trackState,
0032 const Logger& ) {
0033 trackState.filtered() = trackState.predicted();
0034 trackState.filteredCovariance() = trackState.predictedCovariance();
0035 return Result<void>::success();
0036 }
0037
0038 template <typename traj_t>
0039 Result<void> voidFitterSmoother(const GeometryContext& ,
0040 traj_t& trackStates, std::size_t entry,
0041 const Logger& ) {
0042 trackStates.applyBackwards(entry, [](auto trackState) {
0043 trackState.smoothed() = trackState.filtered();
0044 trackState.smoothedCovariance() = trackState.filteredCovariance();
0045 });
0046
0047 return Result<void>::success();
0048 }
0049
0050 template <typename traj_t>
0051 bool voidOutlierFinder(typename traj_t::ConstTrackStateProxy ) {
0052 return false;
0053 }
0054
0055 template <typename traj_t>
0056 bool voidReverseFilteringLogic(
0057 typename traj_t::ConstTrackStateProxy ) {
0058 return false;
0059 }
0060
0061 inline const Surface* voidSurfaceAccessor(const SourceLink& ) {
0062 throw std::runtime_error{"voidSurfaceAccessor should not ever execute"};
0063 }
0064
0065 template <typename component_t>
0066 void voidComponentReducer(std::vector<component_t>& ,
0067 std::size_t , const Surface& ) {
0068 throw std::runtime_error{"voidComponentReducer should not ever execute"};
0069 }
0070
0071 }