File VolumeBoundsJsonConverter.hpp

namespace Acts

Note

This file is foreseen for the Geometry module to replace Extent

Functions

void to_json(nlohmann::json &j, const VolumeBounds &bounds)
namespace VolumeBoundsJsonConverter

Functions

template<typename bounds_t>
std::unique_ptr<bounds_t> fromJson(const nlohmann::json &jVolumeBounds)

Conversion to volume bounds from json.

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

Parameters
  • jVolumeBounds – the read-in json object

  • jVolumeBounds – the read-in json object

Returns

a unique_ptr to a volume bounds object for type polymorphism

Returns

a unique_ptr to a volume bounds object for type polymorphism

nlohmann::json toJson(const VolumeBounds &bounds)

Conversion to Json from volume bounds.

Parameters

bounds – is the bounds object

Returns

the json object