Analysis Software
Documentation for sPHENIX simulation software
|
Read the collection of SurfaceMaterial & VolumeMaterial. More...
#include <acts/blob/sPHENIX/Examples/Io/Root/include/ActsExamples/Io/Root/RootMaterialDecorator.hpp>
Classes | |
class | Config |
Public Member Functions | |
RootMaterialDecorator (const Config &config, Acts::Logging::Level level) | |
~RootMaterialDecorator () override | |
Destructor. | |
void | decorate (Acts::Surface &surface) const final |
void | decorate (Acts::TrackingVolume &volume) const final |
const Config & | config () const |
Get readonly access to the config parameters. | |
Public Member Functions inherited from Acts::IMaterialDecorator | |
virtual | ~IMaterialDecorator ()=default |
Virtual Destructor. | |
Private Member Functions | |
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 {nullptr} |
TFile * | m_inputFile {nullptr} |
The input file. | |
Acts::SurfaceMaterialMap | m_surfaceMaterialMap |
Surface based material. | |
Acts::VolumeMaterialMap | m_volumeMaterialMap |
Volume based material. | |
bool | m_clearSurfaceMaterial {true} |
Read the collection of SurfaceMaterial & VolumeMaterial.
Definition at line 44 of file RootMaterialDecorator.hpp.
View newest version in sPHENIX GitHub at line 44 of file RootMaterialDecorator.hpp
ActsExamples::RootMaterialDecorator::RootMaterialDecorator | ( | const Config & | config, |
Acts::Logging::Level | level | ||
) |
Constructor
cfg | configuration struct for the reader |
Definition at line 50 of file RootMaterialDecorator.cpp.
View newest version in sPHENIX GitHub at line 50 of file RootMaterialDecorator.cpp
References Acts::getDefaultLogger().
|
override |
Destructor.
Definition at line 368 of file RootMaterialDecorator.cpp.
View newest version in sPHENIX GitHub at line 368 of file RootMaterialDecorator.cpp
|
inline |
Get readonly access to the config parameters.
Definition at line 129 of file RootMaterialDecorator.hpp.
View newest version in sPHENIX GitHub at line 129 of file RootMaterialDecorator.hpp
References m_cfg.
|
inlinefinalvirtual |
Decorate a surface
surface | the non-cost surface that is decorated |
Implements Acts::IMaterialDecorator.
Definition at line 101 of file RootMaterialDecorator.hpp.
View newest version in sPHENIX GitHub at line 101 of file RootMaterialDecorator.hpp
References m_clearSurfaceMaterial, m_surfaceMaterialMap, and writeMapConfig::surface.
|
inlinefinalvirtual |
Decorate a TrackingVolume
volume | the non-cost volume that is decorated |
Implements Acts::IMaterialDecorator.
Definition at line 116 of file RootMaterialDecorator.hpp.
View newest version in sPHENIX GitHub at line 116 of file RootMaterialDecorator.hpp
References m_clearSurfaceMaterial, and m_volumeMaterialMap.
|
inlineprivate |
Private access to the logging instance.
Definition at line 149 of file RootMaterialDecorator.hpp.
View newest version in sPHENIX GitHub at line 149 of file RootMaterialDecorator.hpp
References m_logger.
|
private |
The config class.
Definition at line 133 of file RootMaterialDecorator.hpp.
View newest version in sPHENIX GitHub at line 133 of file RootMaterialDecorator.hpp
Referenced by config().
|
private |
Definition at line 146 of file RootMaterialDecorator.hpp.
View newest version in sPHENIX GitHub at line 146 of file RootMaterialDecorator.hpp
Referenced by decorate().
|
private |
The input file.
Definition at line 138 of file RootMaterialDecorator.hpp.
View newest version in sPHENIX GitHub at line 138 of file RootMaterialDecorator.hpp
|
private |
Definition at line 135 of file RootMaterialDecorator.hpp.
View newest version in sPHENIX GitHub at line 135 of file RootMaterialDecorator.hpp
Referenced by logger().
|
private |
Surface based material.
Definition at line 141 of file RootMaterialDecorator.hpp.
View newest version in sPHENIX GitHub at line 141 of file RootMaterialDecorator.hpp
Referenced by decorate().
|
private |
Volume based material.
Definition at line 144 of file RootMaterialDecorator.hpp.
View newest version in sPHENIX GitHub at line 144 of file RootMaterialDecorator.hpp
Referenced by decorate().