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

Functions

nlohmann::json toJson (const SurfaceBounds &bounds)
 
nlohmann::json toJsonDetray (const SurfaceBounds &bounds, bool portal=false)
 
template<typename bounds_t >
std::shared_ptr< const bounds_t > fromJson (const nlohmann::json &j)
 The Transform converter from json.
 

Function Documentation

template<typename bounds_t >
std::shared_ptr<const bounds_t> Acts::SurfaceBoundsJsonConverter::fromJson ( const nlohmann::json &  j)

The Transform converter from json.

The Surface converter from json.

Convert the single delegate if it is of the type of the reference.

Conversion to surfaceBounds from json

The type is given as a template argument in order to be able to construct the correct fitting types for surfaces.

Parameters
jthe read-in json object
Returns
a shared_ptr to a surface object for type polymorphism

Unroll the types

Definition at line 54 of file SurfaceBoundsJsonConverter.hpp.

View newest version in sPHENIX GitHub at line 54 of file SurfaceBoundsJsonConverter.hpp

nlohmann::json Acts::SurfaceBoundsJsonConverter::toJson ( const SurfaceBounds &  bounds)

Interface with detray conversion option

Parameters
boundsis the bounds object
Returns
the json object

Definition at line 19 of file SurfaceBoundsJsonConverter.cpp.

View newest version in sPHENIX GitHub at line 19 of file SurfaceBoundsJsonConverter.cpp

Referenced by BOOST_AUTO_TEST_CASE().

+ Here is the caller graph for this function:

nlohmann::json Acts::SurfaceBoundsJsonConverter::toJsonDetray ( const SurfaceBounds &  bounds,
bool  portal = false 
)

Interface with detray conversion option

Parameters
boundsis the bounds object
portalis the flag for conversion into detray portal format
Note
reading back detray json format to Acts is not supported
Returns
the json object

Definition at line 24 of file SurfaceBoundsJsonConverter.cpp.

View newest version in sPHENIX GitHub at line 24 of file SurfaceBoundsJsonConverter.cpp

References Acts::DetrayJsonHelper::maskFromBounds(), and shape().

Referenced by BOOST_AUTO_TEST_CASE().

+ Here is the call graph for this function:

+ Here is the caller graph for this function: