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

Detailed Description

Namespaces

namespace  Acts::AxisJsonConverter
namespace  Acts::DetrayJsonHelper
namespace  Acts::GeometryIdentifierJsonConverter
namespace  Acts::GridAccessJsonConverter
namespace  Acts::GridJsonConverter
namespace  Acts::IndexedGridJsonHelper
namespace  Acts::JsonSurfacesReader
namespace  Acts::PortalJsonConverter
namespace  Acts::ProtoAxisJsonConverter
namespace  Acts::SurfaceBoundsJsonConverter
namespace  Acts::SurfaceJsonConverter
namespace  Acts::Transform3JsonConverter
namespace  Acts::VolumeBoundsJsonConverter

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 >

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::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

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)
template<class T, class decorator_t>
void Acts::decorateJson (const decorator_t *decorator, const T *src, nlohmann::json &dest)
void Acts::from_json (const nlohmann::json &j, BinningData &bd)
void Acts::from_json (const nlohmann::json &j, BinUtility &bu)
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)
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.
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.
std::shared_ptr< SurfaceActs::surfaceFromJson (const nlohmann::json &j)
 Conversion to Surface from jsonn.
template<typename surface_t, typename bounds_t>
std::shared_ptr< surface_t > Acts::surfaceFromJsonT (const nlohmann::json &j)
 Conversion to Surface from json in correct type.
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)
void Acts::to_json (nlohmann::json &j, const BinUtility &bu)
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)
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.
void Acts::toJson (nlohmann::json &j, const std::shared_ptr< const Surface > &surface, const Acts::GeometryContext &gctx)
 Contextual conversion of a surface.
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 Acts::Surface >, std::shared_ptr< const Acts::ISurfaceMaterial >, Acts::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.

◆ surfaceMaterialPointer

Pointer to a constant surface material object.

◆ 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.

◆ volumeMaterialPointer

Pointer to a constant volume material object.

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 )

◆ decorateJson() [2/2]

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

◆ 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 )

◆ from_json() [8/20]

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

◆ 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 )

◆ 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/2]

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/2]

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

◆ 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

◆ NLOHMANN_JSON_SERIALIZE_ENUM()

Acts::NLOHMANN_JSON_SERIALIZE_ENUM ( Acts::MappingType ,
{ {Acts::MappingType::PreMapping, "PreMapping"}, {Acts::MappingType::Default, "Default"}, {Acts::MappingType::PostMapping, "PostMapping"}, {Acts::MappingType::Sensor, "Sensor"}, }  )

JSON serialization mapping for MappingType enum.

◆ surfaceFromJson()

std::shared_ptr< Surface > Acts::surfaceFromJson ( const nlohmann::json & j)

Conversion to Surface from jsonn.

Parameters
jthe read-in json object
Returns
a shared_ptr to a surface object for type polymorphism

◆ surfaceFromJsonT()

template<typename surface_t, typename bounds_t>
std::shared_ptr< surface_t > Acts::surfaceFromJsonT ( const nlohmann::json & j)

Conversion to Surface from json in correct type.

The type is given as a template argument in order to be able to construct the correct fitting types for surfaces.

Parameters
jthe read-in json object
Returns
a shared_ptr to a typed surface object for type polymorphism

◆ 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 )

◆ to_json() [9/25]

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

◆ 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 )

◆ 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/3]

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/3]

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/3]

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