File indexing completed on 2025-01-18 09:11:31
0001
0002
0003
0004
0005
0006
0007
0008
0009 #include "Acts/Utilities/TrackHelpers.hpp"
0010
0011 #include <string>
0012
0013 namespace {
0014
0015 class TrackExtrapolationErrorCategory : public std::error_category {
0016 public:
0017
0018 const char* name() const noexcept final { return "TrackExtrapolationError"; }
0019
0020
0021 std::string message(int c) const final {
0022 using Acts::TrackExtrapolationError;
0023
0024 switch (static_cast<TrackExtrapolationError>(c)) {
0025 case TrackExtrapolationError::CompatibleTrackStateNotFound:
0026 return "Did not find a compatible track state";
0027 case TrackExtrapolationError::ReferenceSurfaceUnreachable:
0028 return "Provided reference surface is unreachable";
0029 default:
0030 return "unknown";
0031 }
0032 }
0033 };
0034
0035 }
0036
0037 std::error_code Acts::make_error_code(Acts::TrackExtrapolationError e) {
0038 static const TrackExtrapolationErrorCategory c;
0039 return {static_cast<int>(e), c};
0040 }