Skip to content

Commit

Permalink
Merge branch 'main' into fix-chi2-track-helpers
Browse files Browse the repository at this point in the history
  • Loading branch information
kodiakhq[bot] authored Dec 3, 2024
2 parents 468743a + d806df0 commit 3581d3a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Core/include/Acts/Utilities/GridAccessHelpers.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ class LocalSubspace : public IBoundToGridLocal {
}
};

class BoundCylinderToZPhi final : public IBoundToGridLocal {
class BoundCylinderToZPhi : public IBoundToGridLocal {
public:
double radius = 1.;
double shift = 0.;
Expand Down
5 changes: 5 additions & 0 deletions Plugins/Json/src/GridJsonConverter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -439,6 +439,11 @@ nlohmann::json Acts::GridAccessJsonConverter::toJson(
jBoundToGridLocal["shift"] = boundCylinderToZPhi->shift;
}

if (jBoundToGridLocal.empty()) {
throw std::invalid_argument(
"GridAccessJsonConverter: boundToGridLocal type not supported.");
}

return jBoundToGridLocal;
}

Expand Down

0 comments on commit 3581d3a

Please sign in to comment.