![]() |
Analysis Software
Documentation for sPHENIX simulation software
|
Material decorator from Root format. More...
#include <acts/blob/sPHENIX/Examples/Io/Root/include/ActsExamples/Io/Root/RootMaterialWriter.hpp>
Inheritance diagram for ActsExamples::RootMaterialWriter:
Collaboration diagram for ActsExamples::RootMaterialWriter:Classes | |
| class | Config |
Public Member Functions | |
| RootMaterialWriter (const Config &config, Acts::Logging::Level level) | |
| ~RootMaterialWriter () override | |
| Virtual destructor. | |
| void | writeMaterial (const Acts::DetectorMaterialMaps &detMaterial) override |
| void | write (const Acts::TrackingGeometry &tGeometry) |
| const Config & | config () const |
| Get readonly access to the config parameters. | |
Public Member Functions inherited from ActsExamples::IMaterialWriter | |
| virtual | ~IMaterialWriter ()=default |
| Virtual Destructor. | |
Private Member Functions | |
| void | collectMaterial (const Acts::TrackingVolume &tVolume, Acts::DetectorMaterialMaps &detMatMap) |
| void | collectMaterial (const Acts::Layer &tLayer, Acts::DetectorMaterialMaps &detMatMap) |
| const Acts::Logger & | logger () const |
| Private access to the logging instance. | |
Private Attributes | |
| Config | m_cfg |
| The config class. | |
| std::unique_ptr< const Acts::Logger > | m_logger |
| The logger instance. | |
| TFile * | m_outputFile {nullptr} |
Material decorator from Root format.
This reads in material maps for surfaces and volumes from a root file
Definition at line 51 of file RootMaterialWriter.hpp.
View newest version in sPHENIX GitHub at line 51 of file RootMaterialWriter.hpp
| ActsExamples::RootMaterialWriter::RootMaterialWriter | ( | const Config & | config, |
| Acts::Logging::Level | level | ||
| ) |
Constructor
| config | The configuration struct |
| level | The log level |
Definition at line 41 of file RootMaterialWriter.cpp.
View newest version in sPHENIX GitHub at line 41 of file RootMaterialWriter.cpp
References Acts::getDefaultLogger().
Here is the call graph for this function:
|
override |
Virtual destructor.
Definition at line 318 of file RootMaterialWriter.cpp.
View newest version in sPHENIX GitHub at line 318 of file RootMaterialWriter.cpp
|
private |
Collect the material from the tracking geometry
| tVolume | The TrackingVolume for the material to be collected | |
| [in,out] | detMatMap | the map to be filled |
Definition at line 336 of file RootMaterialWriter.cpp.
View newest version in sPHENIX GitHub at line 336 of file RootMaterialWriter.cpp
References Acts::BinnedArray< T >::arrayObjects(), Acts::TrackingVolume::boundarySurfaces(), Acts::TrackingVolume::confinedLayers(), Acts::TrackingVolume::confinedVolumes(), Acts::GeometryObject::geometryId(), m_cfg(), and Acts::TrackingVolume::volumeMaterialSharedPtr().
Here is the call graph for this function:
|
private |
Collect the material from the tracking geometry
| tLayer | The TrackingVolume for the material to be collected | |
| [in,out] | detMatMap | the map to be filled |
Definition at line 370 of file RootMaterialWriter.cpp.
View newest version in sPHENIX GitHub at line 370 of file RootMaterialWriter.cpp
References Acts::Layer::approachDescriptor(), Acts::ApproachDescriptor::containedSurfaces(), m_cfg(), Acts::Layer::surfaceArray(), Acts::Surface::surfaceMaterialSharedPtr(), Acts::Layer::surfaceRepresentation(), and Acts::SurfaceArray::surfaces().
Here is the call graph for this function:
|
inline |
Get readonly access to the config parameters.
Definition at line 134 of file RootMaterialWriter.hpp.
View newest version in sPHENIX GitHub at line 134 of file RootMaterialWriter.hpp
References m_cfg.
|
inlineprivate |
Private access to the logging instance.
Definition at line 158 of file RootMaterialWriter.hpp.
View newest version in sPHENIX GitHub at line 158 of file RootMaterialWriter.hpp
References m_logger.
| void ActsExamples::RootMaterialWriter::write | ( | const Acts::TrackingGeometry & | tGeometry | ) |
Write out the material map from Geometry
| tGeometry | is the TrackingGeometry |
Definition at line 324 of file RootMaterialWriter.cpp.
View newest version in sPHENIX GitHub at line 324 of file RootMaterialWriter.cpp
References Acts::TrackingGeometry::highestTrackingVolume(), and Acts::Test::hVolume.
Referenced by processGeometry().
Here is the call graph for this function:
Here is the caller graph for this function:
|
overridevirtual |
Write out the material map
| detMaterial | is the SurfaceMaterial and VolumeMaterial maps |
Implements ActsExamples::IMaterialWriter.
Definition at line 62 of file RootMaterialWriter.cpp.
View newest version in sPHENIX GitHub at line 62 of file RootMaterialWriter.cpp
References A, ACTS_VERBOSE, Acts::GeometryIdentifier::approach(), Acts::detail::Grid< T, Axes >::at(), KFPMath::b, b1, Acts::BinUtility::binningData(), bins, Acts::BinUtility::bins(), Acts::BinnedSurfaceMaterial::binUtility(), Acts::GeometryIdentifier::boundary(), Acts::MaterialMapper< G >::getGrid(), grid(), Acts::GeometryIdentifier::layer(), m_cfg(), Acts::IVolumeMaterial::material(), Acts::ISurfaceMaterial::materialSlab(), Acts::UnitConstants::min, n, rho, Acts::GeometryIdentifier::sensitive(), Acts::detail::Grid< T, Axes >::size(), t, to_string(), testSigmaEff::v, value, Acts::GeometryIdentifier::volume(), x0, and SVM_v1::Z.
Here is the call graph for this function:
|
private |
The config class.
Definition at line 152 of file RootMaterialWriter.hpp.
View newest version in sPHENIX GitHub at line 152 of file RootMaterialWriter.hpp
Referenced by config().
|
private |
The logger instance.
Definition at line 155 of file RootMaterialWriter.hpp.
View newest version in sPHENIX GitHub at line 155 of file RootMaterialWriter.hpp
Referenced by logger().
|
private |
Definition at line 160 of file RootMaterialWriter.hpp.
View newest version in sPHENIX GitHub at line 160 of file RootMaterialWriter.hpp