ACTS
Experiment-independent tracking
Loading...
Searching...
No Matches
Acts::GeometryIdentifierJsonConverter Namespace Reference

Functions

GeometryIdentifier decodeIdentifier (const nlohmann::json &encoded)
 Decode a geometry identifier from a json object.
nlohmann::json encodeIdentifier (const GeometryIdentifier &geoId, bool compact=false)
 Encode the geometry identifier.

Function Documentation

◆ decodeIdentifier()

GeometryIdentifier Acts::GeometryIdentifierJsonConverter::decodeIdentifier ( const nlohmann::json & encoded)

Decode a geometry identifier from a json object.

Parameters
encodedis the json object that carries the encoded identifier
Returns
a valid geometry Identifier

◆ encodeIdentifier()

nlohmann::json Acts::GeometryIdentifierJsonConverter::encodeIdentifier ( const GeometryIdentifier & geoId,
bool compact = false )

Encode the geometry identifier.

Parameters
geoIdis the geometry identifier that will be encoded
compactif true, the raw value is stored