ACTS
Experiment-independent tracking
Loading...
Searching...
No Matches
Acts::SurfaceJsonConverter Class Reference

Static class performing JSON conversion of the surfaces. More...

#include <ActsPlugins/Json/SurfaceJsonConverter.hpp>

Classes

struct  Config
 Configuration struct. More...
struct  Options
 Options for surface conversion. More...

Public Types

using SurfaceBoundsEncoder = TypeDispatcher<SurfaceBounds, nlohmann::json()>
 Encoder type for the surface bounds.
using SurfaceDecoder = JsonKindDispatcher<std::shared_ptr<Surface>>
 Deccoder type for the surfaces.
using SurfaceEncoder
 Encoder type for the surfaces.

Public Member Functions

 SurfaceJsonConverter ()=delete
 Delete the default constructor as the class is purely static (for now).

Static Public Member Functions

static std::shared_ptr< SurfacefromJson (const nlohmann::json &jSurface)
 The Surface converter from json.
static void setConfig (const Config &cfg)
 Set externally constructed configuration.
static nlohmann::json toJson (const GeometryContext &gctx, const Surface &surface, const Options &options=Options{ .transformOptions=Transform3JsonConverter::Options{},.writeMaterial=true,.portal=false})
 Contextual conversion of a surface.
static nlohmann::json toJsonDetray (const GeometryContext &gctx, const Surface &surface, const Options &options=Options{ .transformOptions=Transform3JsonConverter::Options{},.writeMaterial=true,.portal=false})
 Contextual conversion of a surface - Detray export.

Detailed Description

Static class performing JSON conversion of the surfaces.