File indexing completed on 2025-10-13 08:16:38
0001
0002
0003
0004
0005
0006
0007
0008
0009 #include "Acts/SpacePointFormation2/SpacePointFormationError.hpp"
0010
0011 #include <string>
0012
0013 namespace {
0014
0015 class SpacePointFormationErrorCategory : public std::error_category {
0016 public:
0017
0018 const char* name() const noexcept final { return "SpacePointFormationError"; }
0019
0020
0021 std::string message(int c) const final {
0022 using Acts::SpacePointFormationError;
0023
0024 switch (static_cast<SpacePointFormationError>(c)) {
0025 case SpacePointFormationError::ClusterPairDistanceExceeded:
0026 return "Cluster pair distance exceeded";
0027 case SpacePointFormationError::ClusterPairThetaDistanceExceeded:
0028 return "Cluster pair theta distance exceeded";
0029 case SpacePointFormationError::ClusterPairPhiDistanceExceeded:
0030 return "Cluster pair phi distance exceeded";
0031 case SpacePointFormationError::CosmicToleranceNotMet:
0032 return "Cosmic tolerance not met";
0033 case SpacePointFormationError::OutsideLimits:
0034 return "Outside limits";
0035 case SpacePointFormationError::OutsideRelaxedLimits:
0036 return "Outside relaxed limits";
0037 case SpacePointFormationError::NoSolutionFound:
0038 return "No solution found";
0039 default:
0040 return "unknown";
0041 }
0042 }
0043 };
0044
0045 }
0046
0047 std::error_code Acts::make_error_code(Acts::SpacePointFormationError e) {
0048 static SpacePointFormationErrorCategory c;
0049 return {static_cast<int>(e), c};
0050 }