ECCE @ EIC Software
Reference for
ECCE @ EIC
simulation and reconstruction software on GitHub
|
Material decorator from Root format. More...
#include <acts/blob/master/Examples/Io/Root/include/ACTFW/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
FW::RootMaterialWriter::RootMaterialWriter | ( | const Config & | cfg | ) |
Constructor
cfg | The configuration struct |
Definition at line 19 of file RootMaterialWriter.cpp.
View newest version in sPHENIX GitHub at line 19 of file RootMaterialWriter.cpp
References FW::RootMaterialWriter::Config::fileName, FW::RootMaterialWriter::Config::folderNameBase, FW::RootMaterialWriter::Config::logger, m_cfg, and FW::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 173 of file RootMaterialWriter.cpp.
View newest version in sPHENIX GitHub at line 173 of file RootMaterialWriter.cpp
References Acts::BinnedArray< T >::arrayObjects(), Acts::TrackingVolume::boundarySurfaces(), Acts::TrackingVolume::confinedLayers(), Acts::TrackingVolume::confinedVolumes(), Acts::GeometryObject::geoID(), 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 206 of file RootMaterialWriter.cpp.
View newest version in sPHENIX GitHub at line 206 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 FW::RootMaterialWriter::Config::logger, and m_cfg.
void FW::RootMaterialWriter::write | ( | const Acts::DetectorMaterialMaps & | detMaterial | ) |
Write out the material map
detMaterial | is the SurfaceMaterial and VolumeMaterial maps |
Definition at line 34 of file RootMaterialWriter.cpp.
View newest version in sPHENIX GitHub at line 34 of file RootMaterialWriter.cpp
References A(), ACTS_VERBOSE, Acts::GeometryID::approach(), b, Acts::BinUtility::binningData(), Acts::BinUtility::bins(), Acts::BinnedSurfaceMaterial::binUtility(), Acts::GeometryID::boundary(), Acts::GeometryID::layer(), mat, Acts::ISurfaceMaterial::materialProperties(), max, min, n, Acts::GeometryID::sensitive(), t, nlohmann::to_string(), v, Acts::GeometryID::volume(), and Z.
Referenced by processGeometry().
void FW::RootMaterialWriter::write | ( | const Acts::TrackingGeometry & | tGeometry | ) |
Write out the material map from Geometry
tGeometry | is the TrackingGeometry |
Definition at line 162 of file RootMaterialWriter.cpp.
View newest version in sPHENIX GitHub at line 162 of file RootMaterialWriter.cpp
References Acts::TrackingGeometry::highestTrackingVolume(), and Acts::Test::hVolume.
|
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().