Analysis Software
Documentation for sPHENIX simulation 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 &config, Acts::Logging::Level level)
 
 ~RootMaterialDecorator () override
 Destructor.
 
void decorate (Acts::Surface &surface) const final
 
void decorate (Acts::TrackingVolume &volume) const final
 
const Configconfig () 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::Loggerlogger () 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}
 

Detailed Description

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

Constructor & Destructor Documentation

ActsExamples::RootMaterialDecorator::RootMaterialDecorator ( const Config config,
Acts::Logging::Level  level 
)

Constructor

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

+ Here is the call graph for this function:

ActsExamples::RootMaterialDecorator::~RootMaterialDecorator ( )
override

Destructor.

Definition at line 368 of file RootMaterialDecorator.cpp.

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

Member Function Documentation

const Config& ActsExamples::RootMaterialDecorator::config ( ) const
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.

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 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.

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 116 of file RootMaterialDecorator.hpp.

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

References m_clearSurfaceMaterial, and m_volumeMaterialMap.

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

Member Data Documentation

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

bool ActsExamples::RootMaterialDecorator::m_clearSurfaceMaterial {true}
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().

TFile* ActsExamples::RootMaterialDecorator::m_inputFile {nullptr}
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

std::unique_ptr<const Acts::Logger> ActsExamples::RootMaterialDecorator::m_logger {nullptr}
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().

Acts::SurfaceMaterialMap ActsExamples::RootMaterialDecorator::m_surfaceMaterialMap
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().

Acts::VolumeMaterialMap ActsExamples::RootMaterialDecorator::m_volumeMaterialMap
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().


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