File JsonMaterialDecorator.hpp¶
-
namespace Acts
Set the Geometry Context PLUGIN.
Set the Calibration Context PLUGIN.
Convenience functions to ease creation of and Acts::InterpolatedMaterialMap and to avoid code duplication.
Set the Mangetic Field Context PLUGIN.
Convenience functions to ease creation of and Acts::InterpolatedBFieldMap and to avoid code duplication.
Currently implemented for the two most common formats: rz and xyz.
-
class JsonMaterialDecorator : public Acts::IMaterialDecorator
- #include <Acts/Plugins/Json/JsonMaterialDecorator.hpp>
Material decorator from Json format.
This reads in material maps for surfaces and volumes from a json file
Public Types
-
using SurfaceMaterialMap = std::map<GeometryIdentifier, std::shared_ptr<const ISurfaceMaterial>>
-
using VolumeMaterialMap = std::map<GeometryIdentifier, std::shared_ptr<const IVolumeMaterial>>
Public Functions
-
inline JsonMaterialDecorator(const MaterialMapJsonConverter::Config &rConfig, const std::string &jFileName, Acts::Logging::Level level, bool clearSurfaceMaterial = true, bool clearVolumeMaterial = true)
-
inline virtual void decorate(Surface &surface) const final
Decorate a surface.
- Parameters
surface – the non-cost surface that is decorated
-
inline virtual void decorate(TrackingVolume &volume) const final
Decorate a TrackingVolume.
- Parameters
volume – the non-cost volume that is decorated
Private Members
-
bool m_clearSurfaceMaterial = {true}¶
-
bool m_clearVolumeMaterial = {true}¶
-
MaterialMapJsonConverter::Config m_readerConfig¶
-
SurfaceMaterialMap m_surfaceMaterialMap¶
-
VolumeMaterialMap m_volumeMaterialMap¶
-
using SurfaceMaterialMap = std::map<GeometryIdentifier, std::shared_ptr<const ISurfaceMaterial>>
-
class JsonMaterialDecorator : public Acts::IMaterialDecorator