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

Functions

GridAccess::BoundToGridLocal1DimDelegate boundToGridLocal1DimDelegateFromJson (const nlohmann::json &jBoundToGridLocal)
 Create the delegate directly.
GridAccess::BoundToGridLocal2DimDelegate boundToGridLocal2DimDelegateFromJson (const nlohmann::json &jBoundToGridLocal)
 Create the delegate directly.
std::unique_ptr< GridAccess::IBoundToGridLocalboundToGridLocalFromJson (const nlohmann::json &jBoundToGridLocal)
 Create a local grid to local instance.
GridAccess::GlobalToGridLocal1DimDelegate globalToGridLocal1DimDelegateFromJson (const nlohmann::json &jGlobalToGridLocal)
 Create the delegate directly.
GridAccess::GlobalToGridLocal2DimDelegate globalToGridLocal2DimDelegateFromJson (const nlohmann::json &jGlobalToGridLocal)
 Create the delegate directly.
std::unique_ptr< const GridAccess::IGlobalToGridLocalglobalToGridLocalFromJson (const nlohmann::json &jGlobalToGridLocal)
 Create a global grid to local instance.
nlohmann::json toJson (const GridAccess::IBoundToGridLocal &boundToGridLocal)
 Convert a local to local access to json.
nlohmann::json toJson (const GridAccess::IGlobalToGridLocal &globalToGridLocal)
 Convert a global to local access to json.

Function Documentation

◆ boundToGridLocal1DimDelegateFromJson()

GridAccess::BoundToGridLocal1DimDelegate Acts::GridAccessJsonConverter::boundToGridLocal1DimDelegateFromJson ( const nlohmann::json & jBoundToGridLocal)

Create the delegate directly.

Parameters
jBoundToGridLocalthe json snippe

This is the usual workflow, as the connect method can be called on the concreate type

Note
the dimension of the delegate has to be known by peeking into the json object

◆ boundToGridLocal2DimDelegateFromJson()

GridAccess::BoundToGridLocal2DimDelegate Acts::GridAccessJsonConverter::boundToGridLocal2DimDelegateFromJson ( const nlohmann::json & jBoundToGridLocal)

Create the delegate directly.

Parameters
jBoundToGridLocalthe json snippe

This is the usual workflow, as the connect method can be called on the concreate type

Note
the dimension of the delegate has to be known by peeking into the json object

◆ boundToGridLocalFromJson()

std::unique_ptr< GridAccess::IBoundToGridLocal > Acts::GridAccessJsonConverter::boundToGridLocalFromJson ( const nlohmann::json & jBoundToGridLocal)

Create a local grid to local instance.

Parameters
jBoundToGridLocalthe json snippet
Returns
a newly created object

◆ globalToGridLocal1DimDelegateFromJson()

GridAccess::GlobalToGridLocal1DimDelegate Acts::GridAccessJsonConverter::globalToGridLocal1DimDelegateFromJson ( const nlohmann::json & jGlobalToGridLocal)

Create the delegate directly.

Parameters
jGlobalToGridLocalthe json snippet

This is the usual workflow, as the connect method can be called on the concreate type

Note
the dimension of the delegate has to be known by peeking into the json object

◆ globalToGridLocal2DimDelegateFromJson()

GridAccess::GlobalToGridLocal2DimDelegate Acts::GridAccessJsonConverter::globalToGridLocal2DimDelegateFromJson ( const nlohmann::json & jGlobalToGridLocal)

Create the delegate directly.

Parameters
jGlobalToGridLocalthe json snippet

This is the usual workflow, as the connect method can be called on the concreate type

Note
the dimension of the delegate has to be known by peeking into the json object

◆ globalToGridLocalFromJson()

std::unique_ptr< const GridAccess::IGlobalToGridLocal > Acts::GridAccessJsonConverter::globalToGridLocalFromJson ( const nlohmann::json & jGlobalToGridLocal)

Create a global grid to local instance.

Parameters
jGlobalToGridLocalthe json snippet
Returns
a newly created object

◆ toJson() [1/2]

nlohmann::json Acts::GridAccessJsonConverter::toJson ( const GridAccess::IBoundToGridLocal & boundToGridLocal)

Convert a local to local access to json.

Parameters
boundToGridLocalthe local to local access
Returns
a json object to represent local class

◆ toJson() [2/2]

nlohmann::json Acts::GridAccessJsonConverter::toJson ( const GridAccess::IGlobalToGridLocal & globalToGridLocal)

Convert a global to local access to json.

Parameters
globalToGridLocalthe global to grid local access
Returns
a json object to represent global class