File AlgebraJsonConverter.hpp

namespace Acts

Note

This file is foreseen for the Geometry module to replace Extent

Functions

void from_json(const nlohmann::json &j, Transform3 &t)
void to_json(nlohmann::json &j, const Transform3 &t)
namespace Transform3JsonConverter

Functions

Transform3 fromJson(const nlohmann::json &jTransform)

The Transform converter from json.

Parameters

jTransform – the transform json transformation

Returns

a transform object

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.