Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Acts::GridJsonConverter Namespace Reference

Functions

template<typename grid_type >
nlohmann::json toJson (const grid_type &grid)
 Templated grid conversion to json.
 
template<typename axis_generator_type >
auto fromJson (const nlohmann::json &jGrid, const axis_generator_type &aGenerator)
 Templated grid conversion from json.
 

Function Documentation

template<typename axis_generator_type >
auto Acts::GridJsonConverter::fromJson ( const nlohmann::json &  jGrid,
const axis_generator_type &  aGenerator 
)

Templated grid conversion from json.

Template Parameters
axis_generator_typethe type of the axis generator which determines the grid type
Parameters
jGridthe json object to represent the grid
aGeneratorthe axis generator
Note
the axis generator also defines the grid dimension
Returns
a grid object

Definition at line 87 of file GridJsonConverter.hpp.

View newest version in sPHENIX GitHub at line 87 of file GridJsonConverter.hpp

References grid(), physmon_ckf_tracking::u, and Acts::Test::values.

+ Here is the call graph for this function:

template<typename grid_type >
nlohmann::json Acts::GridJsonConverter::toJson ( const grid_type &  grid)

Templated grid conversion to json.

Template Parameters
grid_typethe type of the grid
Parameters
gridthe grid object
Returns
a json object to represent the grid

Definition at line 40 of file GridJsonConverter.hpp.

View newest version in sPHENIX GitHub at line 40 of file GridJsonConverter.hpp

References Acts::AxisJsonConverter::toJson(), and physmon_ckf_tracking::u.

Referenced by Acts::IndexedSurfacesJsonConverter::convertImpl().

+ Here is the call graph for this function:

+ Here is the caller graph for this function: