EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
ActsExamples::RootMaterialWriter Class Reference

Material decorator from Root format. More...

#include <acts/blob/sPHENIX/Examples/Io/Root/include/ActsExamples/Io/Root/RootMaterialWriter.hpp>

+ Collaboration diagram for ActsExamples::RootMaterialWriter:

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::Loggerlogger () const
 Private access to the logging instance.
 

Private Attributes

Config m_cfg
 The config class.
 

Detailed Description

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

Constructor & Destructor Documentation

ActsExamples::RootMaterialWriter::RootMaterialWriter ( const Config cfg)
ActsExamples::RootMaterialWriter::~RootMaterialWriter ( )
default

Virtual destructor.

Member Function Documentation

void ActsExamples::RootMaterialWriter::collectMaterial ( const Acts::TrackingVolume tVolume,
Acts::DetectorMaterialMaps detMatMap 
)
private

Collect the material from the tracking geometry

Parameters
tVolumeThe TrackingVolume for the material to be collected
[in,out]detMatMapthe 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().

+ Here is the call graph for this function:

void ActsExamples::RootMaterialWriter::collectMaterial ( const Acts::Layer tLayer,
Acts::DetectorMaterialMaps detMatMap 
)
private

Collect the material from the tracking geometry

Parameters
tLayerThe TrackingVolume for the material to be collected
[in,out]detMatMapthe 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().

+ Here is the call graph for this function:

const Acts::Logger& ActsExamples::RootMaterialWriter::logger ( ) const
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

Parameters
detMaterialis 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().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void ActsExamples::RootMaterialWriter::write ( const Acts::TrackingGeometry tGeometry)

Write out the material map from Geometry

Parameters
tGeometryis 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().

+ Here is the call graph for this function:

Member Data Documentation

Config ActsExamples::RootMaterialWriter::m_cfg
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().


The documentation for this class was generated from the following files: