Analysis Software
Documentation for sPHENIX simulation software
|
Classes | |
struct | Options |
Functions | |
nlohmann::json | toJson (const GeometryContext &gctx, const Experimental::Portal &portal, const std::vector< const Experimental::DetectorVolume * > &detectorVolumes, const Options &options=Options{}) |
Convert to json format. | |
std::vector< nlohmann::json > | toJsonDetray (const GeometryContext &gctx, const Experimental::Portal &portal, std::size_t ip, const Experimental::DetectorVolume &volume, const OrientedSurfaces &orientedSurfaces, const std::vector< const Experimental::DetectorVolume * > &detectorVolumes, const Options &options=Options{}) |
Convert to json format - dedicated Detray function. | |
nlohmann::json | toJson (const Experimental::DetectorVolumeUpdator &updator, const std::vector< const Experimental::DetectorVolume * > &detectorVolumes) |
convert to json format | |
std::shared_ptr < Experimental::Portal > | fromJson (const GeometryContext &gctx, const nlohmann::json &jPortal, const std::vector< std::shared_ptr< Experimental::DetectorVolume >> &detectorVolumes) |
convert from json format | |
std::shared_ptr< Acts::Experimental::Portal > Acts::PortalJsonConverter::fromJson | ( | const GeometryContext & | gctx, |
const nlohmann::json & | jPortal, | ||
const std::vector< std::shared_ptr< Experimental::DetectorVolume >> & | detectorVolumes | ||
) |
convert from json format
gctx | the geometry context |
jPortal | is the json portal description |
detectorVolumes | is the list of already created detector volumes |
Definition at line 295 of file PortalJsonConverter.cpp.
View newest version in sPHENIX GitHub at line 295 of file PortalJsonConverter.cpp
References Acts::Experimental::detail::PortalHelper::attachDetectorVolumesUpdator(), Acts::Experimental::detail::PortalHelper::attachDetectorVolumeUpdator(), acts.examples.mockupbuilder::detectorVolumes, Acts::enumerate(), Acts::Transform3JsonConverter::fromJson(), writeMapConfig::surface, and t.
Referenced by BOOST_AUTO_TEST_CASE().
nlohmann::json Acts::PortalJsonConverter::toJson | ( | const GeometryContext & | gctx, |
const Experimental::Portal & | portal, | ||
const std::vector< const Experimental::DetectorVolume * > & | detectorVolumes, | ||
const Options & | options = Options{} |
||
) |
Convert to json format.
gctx | the geometry context |
portal | the portal instance |
detectorVolumes | is the list of all detector voluems for portal pointing |
options | how to write this thing out |
Definition at line 48 of file PortalJsonConverter.cpp.
View newest version in sPHENIX GitHub at line 48 of file PortalJsonConverter.cpp
References Acts::Experimental::Portal::detectorVolumeUpdators(), Acts::Experimental::Portal::surface(), Acts::PortalJsonConverter::Options::surfaceOptions, and Acts::Transform3JsonConverter::toJson().
Referenced by BOOST_AUTO_TEST_CASE().
nlohmann::json Acts::PortalJsonConverter::toJson | ( | const Experimental::DetectorVolumeUpdator & | updator, |
const std::vector< const Experimental::DetectorVolume * > & | detectorVolumes | ||
) |
convert to json format
updator | the detector volume updator |
detectorVolumes | the list of all detector volumes |
Definition at line 253 of file PortalJsonConverter.cpp.
View newest version in sPHENIX GitHub at line 253 of file PortalJsonConverter.cpp
References Acts::Transform3JsonConverter::toJson(), physmon_ckf_tracking::u, and testSigmaEff::v.
std::vector< nlohmann::json > Acts::PortalJsonConverter::toJsonDetray | ( | const GeometryContext & | gctx, |
const Experimental::Portal & | portal, | ||
std::size_t | ip, | ||
const Experimental::DetectorVolume & | volume, | ||
const OrientedSurfaces & | orientedSurfaces, | ||
const std::vector< const Experimental::DetectorVolume * > & | detectorVolumes, | ||
const Options & | options = Options{} |
||
) |
Convert to json format - dedicated Detray function.
gctx | the geometry context |
portal | the portal instance |
ip | is the portal index that could be used to pick the oriented surface |
volume | is the detector volume to which these surfaces belong to |
orientedSurfaces | are the bounding surfaces (may still need to be split) |
detectorVolumes | is the list of all detector voluems for portal pointing |
options | how to write this thing out |
Definition at line 69 of file PortalJsonConverter.cpp.
View newest version in sPHENIX GitHub at line 69 of file PortalJsonConverter.cpp
References Acts::DetrayJsonHelper::addVolumeLink(), Acts::detail::Grid< T, Axes >::axes(), KFPMath::b, Acts::binR, Acts::binZ, Acts::VectorHelpers::cast(), Acts::Surface::center(), Acts::Experimental::Portal::detectorVolumeUpdators(), Acts::enumerate(), Acts::Experimental::IndexedUpdatorImpl< grid_t, extractor_type, filler_type >::grid, add_histos_bX::ib, Acts::Experimental::BoundVolumesGrid1Impl::indexedUpdator, Acts::Surface::normal(), Acts::SurfaceJsonConverter::Options::portal, writeMapConfig::surface, Acts::Experimental::Portal::surface(), Acts::PortalJsonConverter::Options::surfaceOptions, Acts::DetectorJsonConverter::toJsonDetray(), Acts::Test::transform, Acts::Surface::transform(), Acts::Experimental::DetectorVolume::transform(), Acts::Surface::type(), physmon_ckf_tracking::u, and testSigmaEff::v.