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

Read the collection of SurfaceMaterial & VolumeMaterial. More...

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

+ Inheritance diagram for ActsExamples::RootMaterialDecorator:
+ Collaboration diagram for ActsExamples::RootMaterialDecorator:

Classes

class  Config
 

Public Member Functions

 RootMaterialDecorator (const Config &cfg)
 
 ~RootMaterialDecorator ()
 Destructor.
 
void decorate (Acts::Surface &surface) const final
 
void decorate (Acts::TrackingVolume &volume) const final
 
- Public Member Functions inherited from Acts::IMaterialDecorator
virtual ~IMaterialDecorator ()=default
 Virtual Destructor.
 

Private Member Functions

const Acts::Loggerlogger () const
 Private access to the logging instance.
 

Private Attributes

Config m_cfg
 The config class.
 
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}
 

Detailed Description

Read the collection of SurfaceMaterial & VolumeMaterial.

Definition at line 38 of file RootMaterialDecorator.hpp.

View newest version in sPHENIX GitHub at line 38 of file RootMaterialDecorator.hpp

Constructor & Destructor Documentation

ActsExamples::RootMaterialDecorator::RootMaterialDecorator ( const Config cfg)

Constructor

Parameters
cfgconfiguration struct for the reader

Definition at line 32 of file RootMaterialDecorator.cpp.

View newest version in sPHENIX GitHub at line 32 of file RootMaterialDecorator.cpp

References ACTS_VERBOSE, ActsExamples::RootMaterialDecorator::Config::apptag, ActsExamples::RootMaterialDecorator::Config::atag, ActsExamples::RootMaterialDecorator::Config::boutag, dz, ActsExamples::RootMaterialDecorator::Config::fileName, ActsExamples::RootMaterialDecorator::Config::folderNameBase, Acts::Material::fromMassDensity(), ActsExamples::RootMaterialDecorator::Config::l0tag, ActsExamples::RootMaterialDecorator::Config::laytag, ActsExamples::RootMaterialDecorator::Config::logger, m_cfg, m_inputFile, m_surfaceMaterialMap, material(), max, ActsExamples::RootMaterialDecorator::Config::maxtag, min, ActsExamples::RootMaterialDecorator::Config::mintag, n, ActsExamples::RootMaterialDecorator::Config::name, ActsExamples::RootMaterialDecorator::Config::ntag, ActsExamples::RootMaterialDecorator::Config::otag, ActsExamples::RootMaterialDecorator::Config::rhotag, rmax(), ActsExamples::RootMaterialDecorator::Config::sentag, Acts::GeometryIdentifier::setApproach(), Acts::GeometryIdentifier::setBoundary(), Acts::GeometryIdentifier::setLayer(), Acts::GeometryIdentifier::setSensitive(), Acts::GeometryIdentifier::setVolume(), t, ActsExamples::RootMaterialDecorator::Config::ttag, v, ActsExamples::RootMaterialDecorator::Config::voltag, ActsExamples::RootMaterialDecorator::Config::vtag, ActsExamples::RootMaterialDecorator::Config::x0tag, and ActsExamples::RootMaterialDecorator::Config::ztag.

+ Here is the call graph for this function:

ActsExamples::RootMaterialDecorator::~RootMaterialDecorator ( )

Destructor.

Definition at line 197 of file RootMaterialDecorator.cpp.

View newest version in sPHENIX GitHub at line 197 of file RootMaterialDecorator.cpp

Member Function Documentation

void ActsExamples::RootMaterialDecorator::decorate ( Acts::Surface surface) const
inlinefinalvirtual

Decorate a surface

Parameters
surfacethe non-cost surface that is decorated

Implements Acts::IMaterialDecorator.

Definition at line 105 of file RootMaterialDecorator.hpp.

View newest version in sPHENIX GitHub at line 105 of file RootMaterialDecorator.hpp

References m_clearSurfaceMaterial, m_surfaceMaterialMap, and surface().

+ Here is the call graph for this function:

void ActsExamples::RootMaterialDecorator::decorate ( Acts::TrackingVolume volume) const
inlinefinalvirtual

Decorate a TrackingVolume

Parameters
volumethe non-cost volume that is decorated

Implements Acts::IMaterialDecorator.

Definition at line 120 of file RootMaterialDecorator.hpp.

View newest version in sPHENIX GitHub at line 120 of file RootMaterialDecorator.hpp

References m_clearSurfaceMaterial, m_volumeMaterialMap, and Acts::Test::volume.

const Acts::Logger& ActsExamples::RootMaterialDecorator::logger ( ) const
inlineprivate

Private access to the logging instance.

Definition at line 148 of file RootMaterialDecorator.hpp.

View newest version in sPHENIX GitHub at line 148 of file RootMaterialDecorator.hpp

References ActsExamples::RootMaterialDecorator::Config::logger, and m_cfg.

Member Data Documentation

Config ActsExamples::RootMaterialDecorator::m_cfg
private

The config class.

Definition at line 134 of file RootMaterialDecorator.hpp.

View newest version in sPHENIX GitHub at line 134 of file RootMaterialDecorator.hpp

Referenced by logger(), and RootMaterialDecorator().

bool ActsExamples::RootMaterialDecorator::m_clearSurfaceMaterial {true}
private

Definition at line 145 of file RootMaterialDecorator.hpp.

View newest version in sPHENIX GitHub at line 145 of file RootMaterialDecorator.hpp

Referenced by decorate().

TFile* ActsExamples::RootMaterialDecorator::m_inputFile {nullptr}
private

The input file.

Definition at line 137 of file RootMaterialDecorator.hpp.

View newest version in sPHENIX GitHub at line 137 of file RootMaterialDecorator.hpp

Referenced by RootMaterialDecorator().

Acts::SurfaceMaterialMap ActsExamples::RootMaterialDecorator::m_surfaceMaterialMap
private

Surface based material.

Definition at line 140 of file RootMaterialDecorator.hpp.

View newest version in sPHENIX GitHub at line 140 of file RootMaterialDecorator.hpp

Referenced by decorate(), and RootMaterialDecorator().

Acts::VolumeMaterialMap ActsExamples::RootMaterialDecorator::m_volumeMaterialMap
private

Volume based material.

Definition at line 143 of file RootMaterialDecorator.hpp.

View newest version in sPHENIX GitHub at line 143 of file RootMaterialDecorator.hpp

Referenced by decorate().


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