Namespace Acts::SurfaceBoundsJsonConverter

namespace SurfaceBoundsJsonConverter

Functions

template<typename bounds_t>
std::shared_ptr<const bounds_t> fromJson(const nlohmann::json &j)

Conversion to surfaceBounds from json.

The Surface converter from json.

Convert the single delegate if it is of the type of the reference.

The Transform converter from json.

The type is given as a template argument in order to be able to construct the correct fitting types for surfaces.

Parameters

j – the read-in json object

Returns

a shared_ptr to a surface object for type polymorphism

nlohmann::json toJson(const SurfaceBounds &bounds)

Interface with detray conversion option.

Parameters

bounds – is the bounds object

Returns

the json object

nlohmann::json toJsonDetray(const SurfaceBounds &bounds, bool portal = false)

Interface with detray conversion option.

Note

reading back detray json format to Acts is not supported

Parameters
  • bounds – is the bounds object

  • portal – is the flag for conversion into detray portal format

Returns

the json object