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

Per-document encoding state, also available to application encoders. More...

#include <ActsPlugins/Json/TrackingGeometryMaterialJsonConverter.hpp>

Public Member Functions

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.
std::string storeId (const SlabStore &store)
 Register a store, preserving sharing by allocation identity.

Detailed Description

Per-document encoding state, also available to application encoders.

Member Function Documentation

◆ angleUnit()

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

Conversion factor from document angle to Acts units.

Returns
Unit scale

◆ densityUnit()

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

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

Returns
Unit scale

◆ energyUnit()

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

Conversion factor from document energy to Acts units.

Returns
Unit scale

◆ lengthUnit()

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

Conversion factor from document length to Acts units.

Returns
Unit scale

◆ materialAmountUnit()

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

Conversion factor from document amount of material to Acts units.

Returns
Unit scale

◆ storeId()

std::string Acts::TrackingGeometryMaterialJsonConverter::EncodeContext::storeId ( const SlabStore & store)

Register a store, preserving sharing by allocation identity.

Parameters
storeNon-null allocation
Returns
Stable name within this document