File indexing completed on 2026-09-05 08:18:04
0001
0002
0003
0004
0005
0006
0007
0008
0009 #include "Acts/Seeding/TrackParamsEstimationError.hpp"
0010
0011 #include <string>
0012
0013 namespace {
0014
0015 class TrackParamsEstimationErrorCategory : public std::error_category {
0016 public:
0017
0018 const char* name() const noexcept final {
0019 return "TrackParamsEstimationError";
0020 }
0021
0022
0023 std::string message(int c) const final {
0024 using Acts::TrackParamsEstimationError;
0025
0026 switch (static_cast<TrackParamsEstimationError>(c)) {
0027 case TrackParamsEstimationError::NotEnoughSpacePoints:
0028 return "At least three space points are required";
0029 case TrackParamsEstimationError::DegenerateFit:
0030 return "The space point configuration leads to a degenerate fit";
0031 default:
0032 return "unknown";
0033 }
0034 }
0035 };
0036
0037 }
0038
0039 std::error_code Acts::make_error_code(Acts::TrackParamsEstimationError e) {
0040 static TrackParamsEstimationErrorCategory c;
0041 return {static_cast<int>(e), c};
0042 }