Analysis Software
Documentation for sPHENIX simulation software
|
Classes | |
struct | Options |
Functions | |
nlohmann::json | toJson (const GeometryContext &gctx, const Surface &surface, const Options &options=Options{}) |
nlohmann::json | toJsonDetray (const GeometryContext &gctx, const Surface &surface, const Options &options=Options{}) |
std::shared_ptr< Surface > | fromJson (const nlohmann::json &jSurface) |
The Surface converter from json. | |
std::shared_ptr< Acts::Surface > Acts::SurfaceJsonConverter::fromJson | ( | const nlohmann::json & | jVolumeBounds | ) |
The Surface converter from json.
jSurface | the surface json object |
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.
j | the read-in json object |
The Surface converter from json.
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 |
Unroll the types
Definition at line 57 of file SurfaceJsonConverter.cpp.
View newest version in sPHENIX GitHub at line 57 of file SurfaceJsonConverter.cpp
References Acts::from_json(), Acts::Transform3JsonConverter::fromJson(), j, throw_assert, and to_string().
Referenced by BOOST_AUTO_TEST_CASE(), and ActsExamples::JsonSurfacesReader::read().
nlohmann::json Acts::SurfaceJsonConverter::toJson | ( | const GeometryContext & | gctx, |
const Surface & | surface, | ||
const Options & | options = Options{} |
||
) |
Contextual conversion of a surface
gctx | the geometry context for this |
surface | the surface to be converted |
options | the writing options for the surfaces |
Definition at line 145 of file SurfaceJsonConverter.cpp.
View newest version in sPHENIX GitHub at line 145 of file SurfaceJsonConverter.cpp
References Acts::Surface::bounds(), Acts::GeometryObject::geometryId(), sTransform, Acts::Surface::surfaceMaterial(), Acts::Transform3JsonConverter::toJson(), Acts::Surface::transform(), Acts::SurfaceJsonConverter::Options::transformOptions, Acts::Surface::type(), Acts::GeometryIdentifier::value(), and Acts::SurfaceJsonConverter::Options::writeMaterial.
Referenced by BOOST_AUTO_TEST_CASE().
nlohmann::json Acts::SurfaceJsonConverter::toJsonDetray | ( | const GeometryContext & | gctx, |
const Surface & | surface, | ||
const Options & | options = Options{} |
||
) |
Contextual conversion of a surface - Detray export
gctx | the geometry context for this |
surface | the surface to be converted |
options | the writing options for the surfaces |
Definition at line 164 of file SurfaceJsonConverter.cpp.
View newest version in sPHENIX GitHub at line 164 of file SurfaceJsonConverter.cpp
References Acts::Surface::bounds(), Acts::GeometryObject::geometryId(), Acts::SurfaceJsonConverter::Options::portal, Acts::GeometryIdentifier::sensitive(), sTransform, Acts::Transform3JsonConverter::toJson(), Acts::DetectorJsonConverter::toJsonDetray(), Acts::Surface::transform(), Acts::SurfaceJsonConverter::Options::transformOptions, physmon_ckf_tracking::u, and Acts::GeometryIdentifier::value().
Referenced by BOOST_AUTO_TEST_CASE().