EIC Software
Reference for
EIC
simulation and reconstruction software on GitHub
|
Material decorator from Root format. More...
#include <acts/blob/sPHENIX/Examples/Io/Root/include/ActsExamples/Io/Root/RootMaterialWriter.hpp>
Classes | |
class | Config |
Public Member Functions | |
RootMaterialWriter (const Config &cfg) | |
~RootMaterialWriter ()=default | |
Virtual destructor. | |
void | write (const Acts::DetectorMaterialMaps &detMaterial) |
void | write (const Acts::TrackingGeometry &tGeometry) |
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. | |
Material decorator from Root format.
This reads in material maps for surfaces and volumes from a root file
Definition at line 43 of file RootMaterialWriter.hpp.
View newest version in sPHENIX GitHub at line 43 of file RootMaterialWriter.hpp
ActsExamples::RootMaterialWriter::RootMaterialWriter | ( | const Config & | cfg | ) |
Constructor
cfg | The configuration struct |
Definition at line 21 of file RootMaterialWriter.cpp.
View newest version in sPHENIX GitHub at line 21 of file RootMaterialWriter.cpp
References ActsExamples::RootMaterialWriter::Config::fileName, ActsExamples::RootMaterialWriter::Config::folderNameBase, ActsExamples::RootMaterialWriter::Config::logger, m_cfg, and ActsExamples::RootMaterialWriter::Config::name.
|
default |
Virtual destructor.
|
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 176 of file RootMaterialWriter.cpp.
View newest version in sPHENIX GitHub at line 176 of file RootMaterialWriter.cpp
References Acts::BinnedArray< T >::arrayObjects(), Acts::TrackingVolume::boundarySurfaces(), Acts::TrackingVolume::confinedLayers(), Acts::TrackingVolume::confinedVolumes(), Acts::GeometryObject::geometryId(), and Acts::TrackingVolume::volumeMaterialSharedPtr().
|
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 210 of file RootMaterialWriter.cpp.
View newest version in sPHENIX GitHub at line 210 of file RootMaterialWriter.cpp
References Acts::Layer::approachDescriptor(), Acts::ApproachDescriptor::containedSurfaces(), Acts::Layer::surfaceArray(), Acts::Surface::surfaceMaterialSharedPtr(), Acts::Layer::surfaceRepresentation(), and Acts::SurfaceArray::surfaces().
|
inlineprivate |
Private access to the logging instance.
Definition at line 151 of file RootMaterialWriter.hpp.
View newest version in sPHENIX GitHub at line 151 of file RootMaterialWriter.hpp
References ActsExamples::RootMaterialWriter::Config::logger, and m_cfg.
void ActsExamples::RootMaterialWriter::write | ( | const Acts::DetectorMaterialMaps & | detMaterial | ) |
Write out the material map
detMaterial | is the SurfaceMaterial and VolumeMaterial maps |
Definition at line 36 of file RootMaterialWriter.cpp.
View newest version in sPHENIX GitHub at line 36 of file RootMaterialWriter.cpp
References ACTS_VERBOSE, Acts::GeometryIdentifier::approach(), Acts::BinUtility::binningData(), Acts::BinUtility::bins(), charm_jet_strange_helicity::bins, Acts::BinnedSurfaceMaterial::binUtility(), Acts::GeometryIdentifier::boundary(), Acts::GeometryIdentifier::layer(), Acts::ISurfaceMaterial::materialSlab(), max, min, n, Acts::GeometryIdentifier::sensitive(), t, nlohmann::to_string(), v, value, and Acts::GeometryIdentifier::volume().
Referenced by processGeometry().
void ActsExamples::RootMaterialWriter::write | ( | const Acts::TrackingGeometry & | tGeometry | ) |
Write out the material map from Geometry
tGeometry | is the TrackingGeometry |
Definition at line 164 of file RootMaterialWriter.cpp.
View newest version in sPHENIX GitHub at line 164 of file RootMaterialWriter.cpp
References Acts::TrackingGeometry::highestTrackingVolume(), Acts::Test::hVolume, and tree::write().
|
private |
The config class.
Definition at line 148 of file RootMaterialWriter.hpp.
View newest version in sPHENIX GitHub at line 148 of file RootMaterialWriter.hpp
Referenced by logger(), and RootMaterialWriter().