ACTS
Experiment-independent tracking
Loading...
Searching...
No Matches
JSON Plugin

Detailed Description

Namespaces

namespace  Acts::DetrayJsonHelper

Classes

class  Acts::GeometryHierarchyMapJsonConverter< value_t, decorator_t >
 Convert a geometry hierarchy map to/from Json. More...
class  Acts::ITrackingGeometryJsonDecorator
 helper class to add extra information to surface or volume json objects More...
class  Acts::IVolumeMaterialJsonDecorator
 helper class to add extra information to surface or volume json objects More...
class  Acts::JsonDetectorElement
 A implementation of a detector element, that is constructed from a JSON description of a surface. More...
struct  Acts::jsonKey
 store in a single place the different key used for the material mapping More...
class  Acts::JsonMaterialDecorator
 Material decorator from Json format. More...
class  Acts::MaterialMapJsonConverter
 read the material from Json More...
struct  Acts::missing_specialization< T, decorator_t >
class  Acts::SurfaceJsonConverter
 Static class performing JSON conversion of the surfaces. More...
struct  Acts::SurfaceJsonConverter::Config
 Configuration struct. More...
struct  Acts::SurfaceJsonConverter::Options
 Options for surface conversion. More...
class  Acts::TrackingGeometryJsonConverter
 Converter for tracking geometry JSON payloads. More...

Typedefs

using Acts::ConfigPair
 Type alias for a pair of detector configuration and ambiguity resolution configuration.
using Acts::DetectorConfig = ScoreBasedAmbiguityResolution::DetectorConfig
 Type alias for detector-specific ambiguity resolution configuration.
using Acts::SurfaceAndMaterialWithContext
 A tuple containing a surface, its associated material, and geometry context.
using Acts::SurfaceJsonConverter::SurfaceBoundsEncoder = TypeDispatcher<SurfaceBounds, nlohmann::json()>
 Encoder type for the surface bounds.
using Acts::SurfaceJsonConverter::SurfaceDecoder = JsonKindDispatcher<std::shared_ptr<Surface>>
 Deccoder type for the surfaces.
using Acts::SurfaceJsonConverter::SurfaceEncoder
 Encoder type for the surfaces.
using Acts::surfaceMaterialPointer = const Acts::ISurfaceMaterial*
 Pointer to a constant surface material object.
using Acts::TrackingVolumeAndMaterial
 A pair containing a tracking volume and its associated material.
using Acts::volumeMaterialPointer = const Acts::IVolumeMaterial*
 Pointer to a constant volume material object.

Functions

 Acts::SurfaceJsonConverter::SurfaceJsonConverter ()=delete
 Delete the default constructor as the class is purely static (for now).
std::size_t Acts::DetrayJsonHelper::accelerationLink (std::span< const AxisDirection > casts)
 Determine the acceleration link from a grid.
void Acts::DetrayJsonHelper::addVolumeLink (nlohmann::json &jSurface, int vLink)
 add volume link
template<class T, class decorator_t>
void Acts::decorateJson (const decorator_t *decorator, const T &src, nlohmann::json &dest)
 Decorate JSON with additional information from the decorator.
template<class T, class decorator_t>
void Acts::decorateJson (const decorator_t *decorator, const T *src, nlohmann::json &dest)
 Decorate JSON with additional information from the decorator (pointer version).
static Config Acts::SurfaceJsonConverter::Config::defaultConfig ()
 Default configuration construction.
void Acts::from_json (const nlohmann::json &j, BinningData &bd)
 Convert JSON to BinningData.
void Acts::from_json (const nlohmann::json &j, BinUtility &bu)
 Convert JSON to BinUtility.
void Acts::from_json (const nlohmann::json &j, ConfigPair &p)
 Convert JSON to ConfigPair.
void Acts::from_json (const nlohmann::json &j, Direction &direction)
 Convert JSON to Direction.
void Acts::from_json (const nlohmann::json &j, Extent &e)
 Convert JSON to Extent.
void Acts::from_json (const nlohmann::json &j, GeometryIdentifier &geoId)
 Read from JSON.
void Acts::from_json (const nlohmann::json &j, Material &t)
 Convert JSON to Material.
void Acts::from_json (const nlohmann::json &j, MaterialSlab &t)
 Convert JSON to MaterialSlab.
void Acts::from_json (const nlohmann::json &j, MaterialSlabMatrix &t)
 Convert JSON to MaterialSlabMatrix.
template<typename Type>
void Acts::from_json (const nlohmann::json &j, Range1D< Type > &r)
 Convert JSON to Range1D.
void Acts::from_json (const nlohmann::json &j, SeedConfirmationRangeConfig &config)
 Convert JSON to SeedConfirmationRangeConfig.
void Acts::from_json (const nlohmann::json &j, surfaceMaterialPointer &material)
 Convert JSON to surfaceMaterialPointer.
void Acts::from_json (const nlohmann::json &j, Transform3 &t)
 Convert JSON to Transform3.
void Acts::from_json (const nlohmann::json &j, volumeMaterialPointer &material)
 Convert JSON to volumeMaterialPointer.
Container Acts::GeometryHierarchyMapJsonConverter< value_t, decorator_t >::fromJson (const nlohmann::json &encoded) const
 Decode a Json object into a geometry hierarchy map.
Acts::ProtoAxis Acts::ProtoAxisJsonConverter::fromJson (const nlohmann::json &j)
 Create a ProtoAxis from a json object.
static std::shared_ptr< SurfaceActs::SurfaceJsonConverter::fromJson (const nlohmann::json &jSurface)
 The Surface converter from json.
std::tuple< unsigned int, std::vector< double > > Acts::DetrayJsonHelper::maskFromBounds (const Acts::SurfaceBounds &sBounds, bool portal=false)
 Helper function to switch keys from ACTS to detray.
 Acts::NLOHMANN_JSON_SERIALIZE_ENUM (Acts::MappingType, { {Acts::MappingType::PreMapping, "PreMapping"}, {Acts::MappingType::Default, "Default"}, {Acts::MappingType::PostMapping, "PostMapping"}, {Acts::MappingType::Sensor, "Sensor"}, }) namespace MaterialJsonConverter
 JSON serialization mapping for MappingType enum.
static void Acts::SurfaceJsonConverter::setConfig (const Config &cfg)
 Set externally constructed configuration.
void Acts::to_json (nlohmann::json &j, const Acts::TrackingVolume &volume)
 Convert TrackingVolume to JSON.
void Acts::to_json (nlohmann::json &j, const BinningData &bd)
 Convert BinningData to JSON.
void Acts::to_json (nlohmann::json &j, const BinUtility &bu)
 Convert BinUtility to JSON.
void Acts::to_json (nlohmann::json &j, const Direction &direction)
 Convert Direction to JSON.
void Acts::to_json (nlohmann::json &j, const Extent &e)
 Convert Extent to JSON.
void Acts::to_json (nlohmann::json &j, const GeometryIdentifier &geoId)
 Write to JSON.
void Acts::to_json (nlohmann::json &j, const Material &t)
 Convert Material to JSON.
void Acts::to_json (nlohmann::json &j, const MaterialSlab &t)
 Convert MaterialSlab to JSON.
template<typename Type>
void Acts::to_json (nlohmann::json &j, const Range1D< Type > &r)
 Convert Range1D to JSON.
void Acts::to_json (nlohmann::json &j, const SeedConfirmationRangeConfig &config)
 Convert SeedConfirmationRangeConfig to JSON.
void Acts::to_json (nlohmann::json &j, const std::pair< const Acts::TrackingVolume *, std::shared_ptr< const Acts::IVolumeMaterial > > &volume)
 Convert tracking volume and material pair to JSON.
void Acts::to_json (nlohmann::json &j, const std::shared_ptr< const Surface > &surface)
 Convert shared_ptr<Surface> to JSON.
void Acts::to_json (nlohmann::json &j, const Surface &surface)
 Convert Surface to JSON.
void Acts::to_json (nlohmann::json &j, const SurfaceAndMaterialWithContext &surface)
 Convert SurfaceAndMaterialWithContext to JSON.
void Acts::to_json (nlohmann::json &j, const SurfaceBounds &bounds)
 Convert SurfaceBounds to JSON.
void Acts::to_json (nlohmann::json &j, const surfaceMaterialPointer &material)
 Convert surfaceMaterialPointer to JSON.
void Acts::to_json (nlohmann::json &j, const Transform3 &t)
 Convert Transform3 to JSON.
void Acts::to_json (nlohmann::json &j, const VolumeBounds &bounds)
 Convert VolumeBounds to JSON.
void Acts::to_json (nlohmann::json &j, const volumeMaterialPointer &material)
 Convert volumeMaterialPointer to JSON.
nlohmann::json Acts::GeometryHierarchyMapJsonConverter< value_t, decorator_t >::toJson (const Container &container, const decorator_t *decorator) const
 Encode the geometry hierarchy map into a Json object.
nlohmann::json Acts::ProtoAxisJsonConverter::toJson (const ProtoAxis &pa)
 Write the ProtoAxis to a json object.
static nlohmann::json Acts::SurfaceJsonConverter::toJson (const GeometryContext &gctx, const Surface &surface, const Options &options=Options{ .transformOptions=Transform3JsonConverter::Options{},.writeMaterial=true,.portal=false})
 Contextual conversion of a surface.
void Acts::toJson (nlohmann::json &j, const std::shared_ptr< const Surface > &surface, const Acts::GeometryContext &gctx)
 Contextual conversion of a surface.
static nlohmann::json Acts::SurfaceJsonConverter::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.

Variables

bool Acts::SurfaceJsonConverter::Options::portal = false
 Write surface as portal.
SurfaceBoundsEncoder Acts::SurfaceJsonConverter::Config::surfaceBoundsEncoder {}
 Encoder for the surface bounds.
SurfaceDecoder Acts::SurfaceJsonConverter::Config::surfaceDecoder {}
 Decoder for the surfaces.
SurfaceEncoder Acts::SurfaceJsonConverter::Config::surfaceEncoder {}
 Encoder for the surfaces.
Transform3JsonConverter::Options Acts::SurfaceJsonConverter::Options::transformOptions
 Transform serialization options.
bool Acts::SurfaceJsonConverter::Options::writeMaterial = true
 Write material information.
void Acts::Experimental::to_json (nlohmann::json &j, const DoubletSeedFinder::Config &config)
 Convert DoubletSeedFinder::Config to JSON.
void Acts::Experimental::to_json (nlohmann::json &j, const DoubletSeedFinder::DerivedConfig &config)
 Convert DoubletSeedFinder::DerivedConfig to JSON.
void Acts::Experimental::to_json (nlohmann::json &j, const TripletSeedFinder::Config &config)
 Convert TripletSeedFinder::Config to JSON.
void Acts::Experimental::to_json (nlohmann::json &j, const TripletSeedFinder::DerivedConfig &config)
 Convert TripletSeedFinder::DerivedConfig to JSON.
void Acts::Experimental::to_json (nlohmann::json &j, const BroadTripletSeedFilter::Config &config)
 Convert BroadTripletSeedFilter::Config to JSON.
void Acts::Experimental::to_json (nlohmann::json &j, const CylindricalSpacePointGrid2::Config &config)
 Convert CylindricalSpacePointGrid2::Config to JSON.
void Acts::Experimental::from_json (const nlohmann::json &j, DoubletSeedFinder::Config &config)
 Convert JSON to DoubletSeedFinder::Config.
void Acts::Experimental::from_json (const nlohmann::json &j, DoubletSeedFinder::DerivedConfig &config)
 Convert JSON to DoubletSeedFinder::DerivedConfig.
void Acts::Experimental::from_json (const nlohmann::json &j, TripletSeedFinder::Config &config)
 Convert JSON to TripletSeedFinder::Config.
void Acts::Experimental::from_json (const nlohmann::json &j, TripletSeedFinder::DerivedConfig &config)
 Convert JSON to TripletSeedFinder::DerivedConfig.
void Acts::Experimental::from_json (const nlohmann::json &j, BroadTripletSeedFilter::Config &config)
 Convert JSON to BroadTripletSeedFilter::Config.
void Acts::Experimental::from_json (const nlohmann::json &j, CylindricalSpacePointGrid2::Config &config)
 Convert JSON to CylindricalSpacePointGrid2::Config.

Typedef Documentation

◆ ConfigPair

Initial value:
std::pair<std::map<std::size_t, std::size_t>, std::vector<DetectorConfig>>

Type alias for a pair of detector configuration and ambiguity resolution configuration.

Maps detector IDs to their configurations and stores a vector of detector-specific settings

◆ DetectorConfig

Type alias for detector-specific ambiguity resolution configuration.

Configuration parameters for ambiguity resolution in a specific detector component

◆ SurfaceAndMaterialWithContext

typedef std::tuple< std::shared_ptr< const Surface >, std::shared_ptr< const ISurfaceMaterial >, GeometryContext > Acts::SurfaceAndMaterialWithContext
Initial value:
std::tuple<std::shared_ptr<const Acts::Surface>,
std::shared_ptr<const Acts::ISurfaceMaterial>,
This is the central definition of the Acts payload object regarding detector geometry status (e....
Definition GeometryContext.hpp:46

A tuple containing a surface, its associated material, and geometry context.

Note
Used for material mapping and JSON conversion.

◆ SurfaceEncoder

Initial value:
nlohmann::json(const GeometryContext&, const Options&)>
Abstract Base Class for tracking surfaces.
Definition Surface.hpp:53
Template class for type-based function dispatch.
Definition TypeDispatcher.hpp:32
Options for surface conversion.
Definition SurfaceJsonConverter.hpp:59

Encoder type for the surfaces.

◆ TrackingVolumeAndMaterial

Initial value:
std::pair<const Acts::TrackingVolume*,
std::shared_ptr<const Acts::IVolumeMaterial>>
Full Volume description used in Tracking, it inherits from Volume to get the geometrical structure.
Definition TrackingVolume.hpp:100

A pair containing a tracking volume and its associated material.

Note
Used for material mapping and JSON conversion.

Function Documentation

◆ accelerationLink()

std::size_t Acts::DetrayJsonHelper::accelerationLink ( std::span< const AxisDirection > casts)

Determine the acceleration link from a grid.

brute_force = 0u, // try all cartesian2_grid = 1u, // rectangle, trapezoid, (triangle) grids cuboid3_grid = 2u, // cuboid grid polar2_grid = 3u, // ring/disc, annulus grids cylinder2_grid = 4u, // 2D cylinder grid cylinder3_grid = 5u, // 3D cylinder grid

Parameters
castsare the grid axes cast types
Returns
the acceleration link idnetifier

◆ addVolumeLink()

void Acts::DetrayJsonHelper::addVolumeLink ( nlohmann::json & jSurface,
int vLink )

add volume link

Parameters
jSurface[in,out] is the json object to be patched
vLinkis the volume link to be added

◆ decorateJson() [1/2]

template<class T, class decorator_t>
void Acts::decorateJson ( const decorator_t * decorator,
const T & src,
nlohmann::json & dest )

Decorate JSON with additional information from the decorator.

Parameters
decoratorThe decorator providing additional information
srcThe source object to decorate
destThe destination JSON object

◆ decorateJson() [2/2]

template<class T, class decorator_t>
void Acts::decorateJson ( const decorator_t * decorator,
const T * src,
nlohmann::json & dest )

Decorate JSON with additional information from the decorator (pointer version).

Parameters
decoratorThe decorator providing additional information
srcPointer to the source object to decorate
destThe destination JSON object

◆ defaultConfig()

Config Acts::SurfaceJsonConverter::Config::defaultConfig ( )
static

Default configuration construction.

Returns
default configuration

◆ from_json() [1/20]

void Acts::Experimental::from_json ( const nlohmann::json & j,
BroadTripletSeedFilter::Config & config )

Convert JSON to BroadTripletSeedFilter::Config.

Parameters
jSource JSON object
configDestination BroadTripletSeedFilter::Config to populate

◆ from_json() [2/20]

void Acts::Experimental::from_json ( const nlohmann::json & j,
CylindricalSpacePointGrid2::Config & config )

Convert JSON to CylindricalSpacePointGrid2::Config.

Parameters
jSource JSON object
configDestination CylindricalSpacePointGrid2::Config to populate

◆ from_json() [3/20]

void Acts::Experimental::from_json ( const nlohmann::json & j,
DoubletSeedFinder::Config & config )

Convert JSON to DoubletSeedFinder::Config.

Parameters
jSource JSON object
configDestination DoubletSeedFinder::Config to populate

◆ from_json() [4/20]

void Acts::Experimental::from_json ( const nlohmann::json & j,
DoubletSeedFinder::DerivedConfig & config )

Convert JSON to DoubletSeedFinder::DerivedConfig.

Parameters
jSource JSON object
configDestination DoubletSeedFinder::DerivedConfig to populate

◆ from_json() [5/20]

void Acts::Experimental::from_json ( const nlohmann::json & j,
TripletSeedFinder::Config & config )

Convert JSON to TripletSeedFinder::Config.

Parameters
jSource JSON object
configDestination TripletSeedFinder::Config to populate

◆ from_json() [6/20]

void Acts::Experimental::from_json ( const nlohmann::json & j,
TripletSeedFinder::DerivedConfig & config )

Convert JSON to TripletSeedFinder::DerivedConfig.

Parameters
jSource JSON object
configDestination TripletSeedFinder::DerivedConfig to populate

◆ from_json() [7/20]

void Acts::from_json ( const nlohmann::json & j,
BinningData & bd )

Convert JSON to BinningData.

Parameters
jThe JSON object to convert from
bdThe BinningData object to populate

◆ from_json() [8/20]

void Acts::from_json ( const nlohmann::json & j,
BinUtility & bu )

Convert JSON to BinUtility.

Parameters
jJSON object to convert from
buBinUtility to populate

◆ from_json() [9/20]

void Acts::from_json ( const nlohmann::json & j,
ConfigPair & p )

Convert JSON to ConfigPair.

Parameters
jSource JSON object
pDestination ConfigPair to populate

◆ from_json() [10/20]

void Acts::from_json ( const nlohmann::json & j,
Direction & direction )

Convert JSON to Direction.

Parameters
jSource JSON object
directionDestination Direction to populate

◆ from_json() [11/20]

void Acts::from_json ( const nlohmann::json & j,
Extent & e )

Convert JSON to Extent.

Parameters
jSource JSON object
eDestination Extent to populate

◆ from_json() [12/20]

void Acts::from_json ( const nlohmann::json & j,
GeometryIdentifier & geoId )

Read from JSON.

Parameters
jJSON object to read from
geoIdGeometryIdentifier to fill

◆ from_json() [13/20]

void Acts::from_json ( const nlohmann::json & j,
Material & t )

Convert JSON to Material.

Parameters
jSource JSON object
tDestination Material to populate

◆ from_json() [14/20]

void Acts::from_json ( const nlohmann::json & j,
MaterialSlab & t )

Convert JSON to MaterialSlab.

Parameters
jSource JSON object
tDestination MaterialSlab to populate

◆ from_json() [15/20]

void Acts::from_json ( const nlohmann::json & j,
MaterialSlabMatrix & t )

Convert JSON to MaterialSlabMatrix.

Parameters
jSource JSON object
tDestination MaterialSlabMatrix to populate

◆ from_json() [16/20]

template<typename Type>
void Acts::from_json ( const nlohmann::json & j,
Range1D< Type > & r )

Convert JSON to Range1D.

Parameters
jJSON object to convert from
rRange1D to populate

◆ from_json() [17/20]

void Acts::from_json ( const nlohmann::json & j,
SeedConfirmationRangeConfig & config )

Convert JSON to SeedConfirmationRangeConfig.

Parameters
jSource JSON object
configDestination SeedConfirmationRangeConfig to populate

◆ from_json() [18/20]

void Acts::from_json ( const nlohmann::json & j,
surfaceMaterialPointer & material )

Convert JSON to surfaceMaterialPointer.

Parameters
jSource JSON object
materialDestination surfaceMaterialPointer to populate

◆ from_json() [19/20]

void Acts::from_json ( const nlohmann::json & j,
Transform3 & t )

Convert JSON to Transform3.

Parameters
jSource JSON object
tDestination Transform3 to populate

◆ from_json() [20/20]

void Acts::from_json ( const nlohmann::json & j,
volumeMaterialPointer & material )

Convert JSON to volumeMaterialPointer.

Parameters
jSource JSON object
materialDestination volumeMaterialPointer to populate

◆ fromJson() [1/3]

template<typename value_t, class decorator_t = void>
auto Acts::GeometryHierarchyMapJsonConverter< value_t, decorator_t >::fromJson ( const nlohmann::json & encoded) const

Decode a Json object into a geometry hierarchy map.

Parameters
encodedJson object that should be decoded
Returns
Decoded geometry hierarchy map
Exceptions
std::invalid_argumentin case of format errors

◆ fromJson() [2/3]

Acts::ProtoAxis Acts::ProtoAxisJsonConverter::fromJson ( const nlohmann::json & j)

Create a ProtoAxis from a json object.

Parameters
jthe json object to be read from
Returns
ProtoAxis created from the JSON object

◆ fromJson() [3/3]

std::shared_ptr< Surface > Acts::SurfaceJsonConverter::fromJson ( const nlohmann::json & jSurface)
static

The Surface converter from json.

Parameters
jSurfacethe surface json object
Returns
a shared object created from json input

◆ maskFromBounds()

std::tuple< unsigned int, std::vector< double > > Acts::DetrayJsonHelper::maskFromBounds ( const Acts::SurfaceBounds & sBounds,
bool portal = false )

Helper function to switch keys from ACTS to detray.

DETRAY types

Todo
change to detray imports when available annulus2 = 0u, cuboid3 = 1u, cylinder2 = 2u, cylinder3 = 3u, portal_cylinder2 = 4u, rectangle2 = 5u, ring2 = 6u, trapezoid2 = 7u, cell_wire = 8u, straw_wire = 9u, single1 = 10u, single2 = 11u, single3 = 12u, unknown = 13u
Parameters
sBoundsis the surface bounds type
portalis the flag for conversion into detray portal format
Returns
type and value array in detray format

◆ setConfig()

void Acts::SurfaceJsonConverter::setConfig ( const Config & cfg)
static

Set externally constructed configuration.

Note
May be removed when the dispatcher migration is finished
Parameters
cfgconfiguration to use

◆ to_json() [1/25]

void Acts::Experimental::to_json ( nlohmann::json & j,
const BroadTripletSeedFilter::Config & config )

Convert BroadTripletSeedFilter::Config to JSON.

Parameters
jDestination JSON object
configSource BroadTripletSeedFilter::Config to convert

◆ to_json() [2/25]

void Acts::Experimental::to_json ( nlohmann::json & j,
const CylindricalSpacePointGrid2::Config & config )

Convert CylindricalSpacePointGrid2::Config to JSON.

Parameters
jDestination JSON object
configSource CylindricalSpacePointGrid2::Config to convert

◆ to_json() [3/25]

void Acts::Experimental::to_json ( nlohmann::json & j,
const DoubletSeedFinder::Config & config )

Convert DoubletSeedFinder::Config to JSON.

Parameters
jDestination JSON object
configSource DoubletSeedFinder::Config to convert

◆ to_json() [4/25]

void Acts::Experimental::to_json ( nlohmann::json & j,
const DoubletSeedFinder::DerivedConfig & config )

Convert DoubletSeedFinder::DerivedConfig to JSON.

Parameters
jDestination JSON object
configSource DoubletSeedFinder::DerivedConfig to convert

◆ to_json() [5/25]

void Acts::Experimental::to_json ( nlohmann::json & j,
const TripletSeedFinder::Config & config )

Convert TripletSeedFinder::Config to JSON.

Parameters
jDestination JSON object
configSource TripletSeedFinder::Config to convert

◆ to_json() [6/25]

void Acts::Experimental::to_json ( nlohmann::json & j,
const TripletSeedFinder::DerivedConfig & config )

Convert TripletSeedFinder::DerivedConfig to JSON.

Parameters
jDestination JSON object
configSource TripletSeedFinder::DerivedConfig to convert

◆ to_json() [7/25]

void Acts::to_json ( nlohmann::json & j,
const Acts::TrackingVolume & volume )

Convert TrackingVolume to JSON.

Parameters
jDestination JSON object
volumeSource TrackingVolume to convert

◆ to_json() [8/25]

void Acts::to_json ( nlohmann::json & j,
const BinningData & bd )

Convert BinningData to JSON.

Parameters
jJSON object to write to
bdBinningData to convert

◆ to_json() [9/25]

void Acts::to_json ( nlohmann::json & j,
const BinUtility & bu )

Convert BinUtility to JSON.

Parameters
jJSON object to write to
buBinUtility to convert

◆ to_json() [10/25]

void Acts::to_json ( nlohmann::json & j,
const Direction & direction )

Convert Direction to JSON.

Parameters
jDestination JSON object
directionSource Direction to convert

◆ to_json() [11/25]

void Acts::to_json ( nlohmann::json & j,
const Extent & e )

Convert Extent to JSON.

Parameters
jDestination JSON object
eSource Extent to convert

◆ to_json() [12/25]

void Acts::to_json ( nlohmann::json & j,
const GeometryIdentifier & geoId )

Write to JSON.

Parameters
jJSON object to write to
geoIdGeometryIdentifier to write

◆ to_json() [13/25]

void Acts::to_json ( nlohmann::json & j,
const Material & t )

Convert Material to JSON.

Parameters
jDestination JSON object
tSource Material to convert

◆ to_json() [14/25]

void Acts::to_json ( nlohmann::json & j,
const MaterialSlab & t )

Convert MaterialSlab to JSON.

Parameters
jDestination JSON object
tSource MaterialSlab to convert

◆ to_json() [15/25]

template<typename Type>
void Acts::to_json ( nlohmann::json & j,
const Range1D< Type > & r )

Convert Range1D to JSON.

Parameters
jJSON object to write to
rRange1D to convert

◆ to_json() [16/25]

void Acts::to_json ( nlohmann::json & j,
const SeedConfirmationRangeConfig & config )

Convert SeedConfirmationRangeConfig to JSON.

Parameters
jDestination JSON object
configSource SeedConfirmationRangeConfig to convert

◆ to_json() [17/25]

void Acts::to_json ( nlohmann::json & j,
const std::pair< const Acts::TrackingVolume *, std::shared_ptr< const Acts::IVolumeMaterial > > & volume )

Convert tracking volume and material pair to JSON.

Parameters
jDestination JSON object
volumeSource tracking volume and material pair to convert

◆ to_json() [18/25]

void Acts::to_json ( nlohmann::json & j,
const std::shared_ptr< const Surface > & surface )

Convert shared_ptr<Surface> to JSON.

Parameters
jDestination JSON object
surfaceSource shared_ptr<Surface> to convert
Note
it will take the default context

◆ to_json() [19/25]

void Acts::to_json ( nlohmann::json & j,
const Surface & surface )

Convert Surface to JSON.

Parameters
jDestination JSON object
surfaceSource Surface to convert
Note
it will take the default context

◆ to_json() [20/25]

void Acts::to_json ( nlohmann::json & j,
const SurfaceAndMaterialWithContext & surface )

Convert SurfaceAndMaterialWithContext to JSON.

Parameters
jDestination JSON object
surfaceSource SurfaceAndMaterialWithContext to convert

◆ to_json() [21/25]

void Acts::to_json ( nlohmann::json & j,
const SurfaceBounds & bounds )

Convert SurfaceBounds to JSON.

Parameters
jDestination JSON object
boundsSource SurfaceBounds to convert

◆ to_json() [22/25]

void Acts::to_json ( nlohmann::json & j,
const surfaceMaterialPointer & material )

Convert surfaceMaterialPointer to JSON.

Parameters
jDestination JSON object
materialSource surfaceMaterialPointer to convert

◆ to_json() [23/25]

void Acts::to_json ( nlohmann::json & j,
const Transform3 & t )

Convert Transform3 to JSON.

Parameters
jDestination JSON object
tSource Transform3 to convert

◆ to_json() [24/25]

void Acts::to_json ( nlohmann::json & j,
const VolumeBounds & bounds )

Convert VolumeBounds to JSON.

Parameters
jDestination JSON object
boundsSource VolumeBounds to convert

◆ to_json() [25/25]

void Acts::to_json ( nlohmann::json & j,
const volumeMaterialPointer & material )

Convert volumeMaterialPointer to JSON.

Parameters
jDestination JSON object
materialSource volumeMaterialPointer to convert

◆ toJson() [1/4]

template<typename value_t, class decorator_t>
nlohmann::json Acts::GeometryHierarchyMapJsonConverter< value_t, decorator_t >::toJson ( const Container & container,
const decorator_t * decorator ) const

Encode the geometry hierarchy map into a Json object.

Parameters
containerGeometry hierarchy map that should be encoded
decoratornullptr or a decorator to add extra values to the json output
Returns
Encoded Json object

◆ toJson() [2/4]

nlohmann::json Acts::ProtoAxisJsonConverter::toJson ( const ProtoAxis & pa)

Write the ProtoAxis to a json object.

Parameters
pathe proto axis to be written out
Returns
JSON object representing the proto axis

◆ toJson() [3/4]

nlohmann::json Acts::SurfaceJsonConverter::toJson ( const GeometryContext & gctx,
const Surface & surface,
const Options & options = Options{ .transformOptions=Transform3JsonConverter::Options{},.writeMaterial=true,.portal=false} )
static

Contextual conversion of a surface.

Parameters
gctxthe geometry context for this
surfacethe surface to be converted
optionsthe writing options for the surfaces
Returns
a json object representing the surface

◆ toJson() [4/4]

void Acts::toJson ( nlohmann::json & j,
const std::shared_ptr< const Surface > & surface,
const Acts::GeometryContext & gctx )

Contextual conversion of a surface.

Parameters
jthe json to be filled
surfacethe surface to be converted
gctxthe geometry context for this

◆ toJsonDetray()

nlohmann::json Acts::SurfaceJsonConverter::toJsonDetray ( const GeometryContext & gctx,
const Surface & surface,
const Options & options = Options{ .transformOptions=Transform3JsonConverter::Options{},.writeMaterial=true,.portal=false} )
static

Contextual conversion of a surface - Detray export.

Parameters
gctxthe geometry context for this
surfacethe surface to be converted
optionsthe writing options for the surfaces
Note
reading back detray json is not supported and will fail
Returns
a json object representing the surface

Variable Documentation

◆ transformOptions

Transform3JsonConverter::Options Acts::SurfaceJsonConverter::Options::transformOptions
Initial value:
=
The options for the transform converter.
Definition AlgebraJsonConverter.hpp:34

Transform serialization options.