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

Per-document decoding state, also available to application decoders. More...

#include <ActsPlugins/Json/TrackingGeometryMaterialJsonConverter.hpp>

Public Member Functions

 DecodeContext ()
 Construct with canonical output units.
double angleUnit () const
 Conversion factor from document angle to Acts units.
double densityUnit () const
 Conversion factor from document molar density (amount / length cubed) to Acts units.
double energyUnit () const
 Conversion factor from document energy to Acts units.
double lengthUnit () const
 Conversion factor from document length to Acts units.
double materialAmountUnit () const
 Conversion factor from document amount of material to Acts units.
SlabStore store (const std::string &name) const
 Resolve a shared slab store by its document name.

Detailed Description

Per-document decoding state, also available to application decoders.

Member Function Documentation

◆ angleUnit()

double Acts::TrackingGeometryMaterialJsonConverter::DecodeContext::angleUnit ( ) const

Conversion factor from document angle to Acts units.

Returns
Unit scale

◆ densityUnit()

double Acts::TrackingGeometryMaterialJsonConverter::DecodeContext::densityUnit ( ) const

Conversion factor from document molar density (amount / length cubed) to Acts units.

Returns
Unit scale

◆ energyUnit()

double Acts::TrackingGeometryMaterialJsonConverter::DecodeContext::energyUnit ( ) const

Conversion factor from document energy to Acts units.

Returns
Unit scale

◆ lengthUnit()

double Acts::TrackingGeometryMaterialJsonConverter::DecodeContext::lengthUnit ( ) const

Conversion factor from document length to Acts units.

Returns
Unit scale

◆ materialAmountUnit()

double Acts::TrackingGeometryMaterialJsonConverter::DecodeContext::materialAmountUnit ( ) const

Conversion factor from document amount of material to Acts units.

Returns
Unit scale

◆ store()

SlabStore Acts::TrackingGeometryMaterialJsonConverter::DecodeContext::store ( const std::string & name) const

Resolve a shared slab store by its document name.

Parameters
nameStore name in the material payload
Returns
Shared allocation, preserving identity across payloads
Exceptions
std::invalid_argumentif the store is unknown