|
ACTS
Experiment-independent tracking
|
Simple payload class that can be wrapped for reading and writing. More...
#include <ActsPlugins/Root/RootMaterialMapIo.hpp>
Classes | |
| struct | Config |
| Configuration for the accessor Contains the tags used for writing and reading, tag names are configuration, as they are not very likely to change. More... | |
| struct | MaterialTreePayload |
| struct | Options |
| Options for writing the material maps Folder names are optional as it allows to write more maps into one file, e.g. More... | |
Public Member Functions | |
| RootMaterialMapIo (const Config &cfg, std::unique_ptr< const Acts::Logger > mLogger=Acts::getDefaultLogger("RootMaterialMapIo", Acts::Logging::INFO)) | |
| Constructor from config struct. | |
| ~RootMaterialMapIo ()=default | |
| Destructor. | |
| Acts::TrackingGeometryMaterial | read (TFile &rFile, const Options &options) |
| Read the detector maps. | |
| void | write (TFile &rFile, const Acts::GeometryIdentifier &geoID, const Acts::ISurfaceMaterial &surfaceMaterial, const Options &options) |
| Write the material to file. | |
| void | write (TFile &rFile, const Acts::TrackingGeometryMaterial &detectorMaterial, const Options &options) |
| Write the detector maps. | |
Simple payload class that can be wrapped for reading and writing.
|
explicit |
Constructor from config struct.
| cfg | the configuration for the accessor |
| mLogger | the logger to use, default is INFO level |
|
default |
Destructor.
| Acts::TrackingGeometryMaterial ActsPlugins::RootMaterialMapIo::read | ( | TFile & | rFile, |
| const Options & | options ) |
Read the detector maps.
| rFile | the file to read from |
| options | the options for reading |
| void ActsPlugins::RootMaterialMapIo::write | ( | TFile & | rFile, |
| const Acts::GeometryIdentifier & | geoID, | ||
| const Acts::ISurfaceMaterial & | surfaceMaterial, | ||
| const Options & | options ) |
Write the material to file.
| rFile | the file to write to |
| geoID | the geometry identifier for the surface |
| surfaceMaterial | is the surface associated with the material |
| options | the options for writing |
| void ActsPlugins::RootMaterialMapIo::write | ( | TFile & | rFile, |
| const Acts::TrackingGeometryMaterial & | detectorMaterial, | ||
| const Options & | options ) |
Write the detector maps.
| rFile | the file to write to |
| detectorMaterial | the detector material maps |
| options | the options for writing |