Namespace Acts::Transform3JsonConverter

namespace Transform3JsonConverter

Functions

Transform3 fromJson(const nlohmann::json &jTransform)

The Transform converter from json.

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.

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
  • jTransform – the transform json transformation

  • j – the read-in json object

  • jVolumeBounds – the read-in json object

  • jVolumeBounds – the read-in json object

Returns

a transform object

Returns

a shared_ptr to a surface object for type polymorphism

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 Transform3 &t, const Options &options = {})

The Transform converter to json.

Parameters
  • t – the transform to be converted

  • options – transformation options

Returns

a json object representing the transform

struct Options
#include <Acts/Plugins/Json/AlgebraJsonConverter.hpp>

The options for the transform converter.

Public Members

bool transpose = true

Apply a transpose to flip column/row order.

bool writeIdentity = false

Write the identity transform explicitly.