Analysis Software
Documentation for sPHENIX simulation software
|
Functions | |
template<typename index_grid > | |
nlohmann::json | convertImpl (const index_grid &indexGrid) |
The actual conversion method. | |
template<typename instance_type > | |
void | convert (nlohmann::json &jIndexedSurfaces, const Experimental::SurfaceCandidatesUpdator &delegate,[[maybe_unused]] const instance_type &refInstance) |
Convert the single delegate if it is of the type of the reference. | |
template<typename tuple_type , std::size_t... I> | |
void | unrollConvert (nlohmann::json &jIndexedSurfaces, const Experimental::SurfaceCandidatesUpdator &delegate, const tuple_type &axesTuple, std::index_sequence< I...>) |
Unrolling function for catching the right instance. | |
static nlohmann::json | toJson (const Experimental::SurfaceCandidatesUpdator &delegate) |
Experimental::SurfaceCandidatesUpdator | fromJson (const nlohmann::json &jSurfaceNavigation) |
Convert the single delegate if it is of the type of the reference. | |
Variables | |
static auto | s_possibleAxes |
void Acts::IndexedSurfacesJsonConverter::convert | ( | nlohmann::json & | jIndexedSurfaces, |
const Experimental::SurfaceCandidatesUpdator & | delegate, | ||
[[maybe_unused] ] const instance_type & | refInstance | ||
) |
Convert the single delegate if it is of the type of the reference.
jIndexedSurfaces | the json object to be filled |
delegate | the delegate to be translated |
refInstance | is a reference instance of potential type casting |
Definition at line 86 of file IndexedSurfacesJsonConverter.hpp.
View newest version in sPHENIX GitHub at line 86 of file IndexedSurfacesJsonConverter.hpp
nlohmann::json Acts::IndexedSurfacesJsonConverter::convertImpl | ( | const index_grid & | indexGrid | ) |
The actual conversion method.
Definition at line 57 of file IndexedSurfacesJsonConverter.hpp.
View newest version in sPHENIX GitHub at line 57 of file IndexedSurfacesJsonConverter.hpp
References Acts::Transform3JsonConverter::toJson(), Acts::GridJsonConverter::toJson(), and physmon_ckf_tracking::u.
Acts::Experimental::SurfaceCandidatesUpdator Acts::IndexedSurfacesJsonConverter::fromJson | ( | const nlohmann::json & | jVolumeBounds | ) |
Convert the single delegate if it is of the type of the reference.
jSurfaceNavigation | the json file to read from |
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.
j | the read-in json object |
Convert the single delegate if it is of the type of the reference.
Conversion to volume bounds from json
The type is given as a template argument in order to be able to construct the correct fitting types for surfaces.
jVolumeBounds | the read-in json object |
Conversion to volume bounds from json
jVolumeBounds | the read-in json object |
Definition at line 59 of file IndexedSurfacesJsonConverter.cpp.
View newest version in sPHENIX GitHub at line 59 of file IndexedSurfacesJsonConverter.cpp
References bins, Acts::Transform3JsonConverter::fromJson(), grid(), std::tr1::make_tuple(), testing::internal::move(), Acts::Test::transform, Acts::Experimental::tryAllPortalsAndSurfaces(), and physmon_ckf_tracking::u.
|
inlinestatic |
Convert a surface array into needed constituents
delegate | the delegate to be translated |
Definition at line 129 of file IndexedSurfacesJsonConverter.hpp.
View newest version in sPHENIX GitHub at line 129 of file IndexedSurfacesJsonConverter.hpp
References Acts::Experimental::s_possibleAxes, Acts::Svg::IndexedSurfacesConverter::unrollConvert(), and value.
void Acts::IndexedSurfacesJsonConverter::unrollConvert | ( | nlohmann::json & | jIndexedSurfaces, |
const Experimental::SurfaceCandidatesUpdator & | delegate, | ||
const tuple_type & | axesTuple, | ||
std::index_sequence< I...> | |||
) |
Unrolling function for catching the right instance.
jIndexedSurfaces | the json object to be filled |
delegate | the delegate to be translated |
axesTuple | the tuple of axes to be unrolled |
convertImpl
method Definition at line 114 of file IndexedSurfacesJsonConverter.hpp.
View newest version in sPHENIX GitHub at line 114 of file IndexedSurfacesJsonConverter.hpp
References Acts::Svg::DetectorConverter::convert().
|
static |
Definition at line 34 of file IndexedSurfacesJsonConverter.hpp.
View newest version in sPHENIX GitHub at line 34 of file IndexedSurfacesJsonConverter.hpp