|
ACTS
Experiment-independent tracking
|
read the material from Json More...
#include <ActsPlugins/Json/MaterialMapJsonConverter.hpp>
Classes | |
| class | Config |
| Configuration of the Converter. More... | |
Public Member Functions | |
| MaterialMapJsonConverter (const Config &config, Acts::Logging::Level level) | |
| Constructor. | |
| ~MaterialMapJsonConverter ()=default | |
| Destructor. | |
| void | convertToHierarchy (std::vector< std::pair< GeometryIdentifier, Acts::TrackingVolumeAndMaterial > > &volumeHierarchy, std::vector< std::pair< GeometryIdentifier, Acts::SurfaceAndMaterialWithContext > > &surfaceHierarchy, const Acts::TrackingVolume *tVolume) |
| Go through a volume to find subvolume, layers and surfaces. | |
| TrackingGeometryMaterial | jsonToMaterialMaps (const nlohmann::json &materialmaps) |
| Convert a json material map to a TrackingGeometryMaterial. | |
| nlohmann::json | materialMapsToJson (const TrackingGeometryMaterial &maps, const IVolumeMaterialJsonDecorator *decorator=nullptr) |
| Convert a TrackingGeometryMaterial to json. | |
| nlohmann::json | trackingGeometryToJson (const TrackingGeometry &tGeometry, const ITrackingGeometryJsonDecorator *decorator=nullptr) |
| Convert a tracking geometry to json. | |
read the material from Json
| Acts::MaterialMapJsonConverter::MaterialMapJsonConverter | ( | const Config & | config, |
| Acts::Logging::Level | level ) |
Constructor.
| config | configuration struct for the reader |
| level | The log level |
|
default |
Destructor.
| void Acts::MaterialMapJsonConverter::convertToHierarchy | ( | std::vector< std::pair< GeometryIdentifier, Acts::TrackingVolumeAndMaterial > > & | volumeHierarchy, |
| std::vector< std::pair< GeometryIdentifier, Acts::SurfaceAndMaterialWithContext > > & | surfaceHierarchy, | ||
| const Acts::TrackingVolume * | tVolume ) |
Go through a volume to find subvolume, layers and surfaces.
Store volumes and surfaces in two vector used to initialised the geometry hierarchy.
| volumeHierarchy | is a vector of volume to be filled |
| surfaceHierarchy | is a vector of surfaces to be filled |
| tVolume | is a volume |
| TrackingGeometryMaterial Acts::MaterialMapJsonConverter::jsonToMaterialMaps | ( | const nlohmann::json & | materialmaps | ) |
Convert a json material map to a TrackingGeometryMaterial.
| materialmaps | The json material |
| nlohmann::json Acts::MaterialMapJsonConverter::materialMapsToJson | ( | const TrackingGeometryMaterial & | maps, |
| const IVolumeMaterialJsonDecorator * | decorator = nullptr ) |
Convert a TrackingGeometryMaterial to json.
| maps | The material map collection |
| decorator | nullptr or a decorator to add extra attributes |
| nlohmann::json Acts::MaterialMapJsonConverter::trackingGeometryToJson | ( | const TrackingGeometry & | tGeometry, |
| const ITrackingGeometryJsonDecorator * | decorator = nullptr ) |
Convert a tracking geometry to json.
Can be used to initialise the material mapping process.
| tGeometry | is the tracking geometry |
| decorator | nullptr or a decorator to add extra attributes |