Namespace Acts::DetectorJsonConverter

namespace DetectorJsonConverter

Functions

std::shared_ptr<Experimental::Detector> fromJson(const GeometryContext &gctx, const nlohmann::json &jDetector)

convert from json format

Parameters
  • gctx – the geometry context

  • jDetector – the json object

Returns

a newly created shared Detector object

nlohmann::json toJson(const GeometryContext &gctx, const Experimental::Detector &detector, const Options &options = Options{})

Convert to json format.

Parameters
  • gctx – the geometry context

  • detector – the detector instance

  • options – the writing options that propagate to the downstream converters

Returns

a json object

nlohmann::json toJsonDetray(const GeometryContext &gctx, const Experimental::Detector &detector, const Options &options = Options{})

Convert to detray json format.

Parameters
  • gctx – the geometry context

  • detector – the detector instance

  • options – the writing options that propagate to the downstream converters

Returns

a json object in detray format

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