ACTS
Experiment-independent tracking
Loading...
Searching...
No Matches
Acts::VolumeBoundsJsonConverter Namespace Reference

Functions

std::unique_ptr< VolumeBoundsfromJson (const nlohmann::json &jVolumeBounds)
 Conversion to volume bounds from json.
template<typename bounds_t>
std::unique_ptr< bounds_t > fromJson (const nlohmann::json &jVolumeBounds)
 Conversion to volume bounds from json.
nlohmann::json toJson (const VolumeBounds &bounds)
 Conversion to Json from volume bounds.

Function Documentation

◆ fromJson() [1/2]

std::unique_ptr< VolumeBounds > Acts::VolumeBoundsJsonConverter::fromJson ( const nlohmann::json & jVolumeBounds)

Conversion to volume bounds from json.

Parameters
jVolumeBoundsthe read-in json object
Returns
a unique_ptr to a volume bounds object for type polymorphism

◆ fromJson() [2/2]

template<typename bounds_t>
std::unique_ptr< bounds_t > Acts::VolumeBoundsJsonConverter::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
jVolumeBoundsthe read-in json object
Returns
a unique_ptr to a volume bounds object for type polymorphism

◆ toJson()

nlohmann::json Acts::VolumeBoundsJsonConverter::toJson ( const VolumeBounds & bounds)

Conversion to Json from volume bounds.

Parameters
boundsis the bounds object
Returns
the json object