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

Functions

template<typename index_grid>
nlohmann::json convertImpl (const index_grid &indexGrid, bool detray=false, bool checkSwap=false)
 The actual conversion method.
template<typename updator_type, typename generator_type>
updator_type generateFromJson (const nlohmann::json &jUpdater, const std::string &jIndicator)
 Helper method to be used for the creation of surface updators and volume updates.

Function Documentation

◆ convertImpl()

template<typename index_grid>
nlohmann::json Acts::IndexedGridJsonHelper::convertImpl ( const index_grid & indexGrid,
bool detray = false,
bool checkSwap = false )

The actual conversion method.

Parameters
indexGridis the index grid to be written
detrayis a flag indicating detray writeout
checkSwapis a flag indicating if the axes should be swapped

◆ generateFromJson()

template<typename updator_type, typename generator_type>
updator_type Acts::IndexedGridJsonHelper::generateFromJson ( const nlohmann::json & jUpdater,
const std::string & jIndicator )

Helper method to be used for the creation of surface updators and volume updates.

Template Parameters
updator_type
generator_type
Parameters
jUpdaterThe corresponding json object
jIndicatorthe string indicator which one it is
Returns
the updator type