|
ACTS
Experiment-independent tracking
|
Material decorator from Json format. More...
#include <ActsPlugins/Json/JsonMaterialDecorator.hpp>
Public Member Functions | |
| JsonMaterialDecorator (const MaterialMapJsonConverter::Config &rConfig, const std::string &jFileName, Acts::Logging::Level level, bool clearSurfaceMaterial=true, bool clearVolumeMaterial=true) | |
| Constructor with configuration. | |
| void | decorate (Surface &surface) const final |
| Decorate a surface. | |
| void | decorate (TrackingVolume &volume) const final |
| Decorate a TrackingVolume. | |
| Public Member Functions inherited from Acts::IMaterialDecorator | |
| virtual | ~IMaterialDecorator ()=default |
| Virtual Destructor. | |
Material decorator from Json format.
This reads in material maps for surfaces and volumes from a json file
| Acts::JsonMaterialDecorator::JsonMaterialDecorator | ( | const MaterialMapJsonConverter::Config & | rConfig, |
| const std::string & | jFileName, | ||
| Acts::Logging::Level | level, | ||
| bool | clearSurfaceMaterial = true, | ||
| bool | clearVolumeMaterial = true ) |
Constructor with configuration.
| rConfig | the configuration for the material map reader |
| jFileName | the json file name to read |
| level | the logging level |
| clearSurfaceMaterial | if true, clear the surface material before decorating, this means if there is no material for a certain surface within the json file, the surface WILL NOT have any material, eventually assigned (proto-/)material will be cleared |
| clearVolumeMaterial | if true, clear the volume material before decorating, same as above, but for volumes |
|
finalvirtual |
Decorate a surface.
| surface | the non-cost surface that is decorated |
Implements Acts::IMaterialDecorator.
|
finalvirtual |
Decorate a TrackingVolume.
| volume | the non-cost volume that is decorated |
Implements Acts::IMaterialDecorator.