ATLAS Offline Software
Loading...
Searching...
No Matches
ActsTrk::ITkMaterialDecoratorTool Class Reference

Mutable tracking geometry visitor to load the material on the tracking surfaces inside the ITk. More...

#include <ITkMaterialDecoratorTool.h>

Inheritance diagram for ActsTrk::ITkMaterialDecoratorTool:
Collaboration diagram for ActsTrk::ITkMaterialDecoratorTool:

Public Member Functions

virtual ~ITkMaterialDecoratorTool ()
virtual void visitSurface (Acts::Surface &surface) override final
virtual StatusCode initialize () override final
virtual StatusCode finalize () override final

Private Attributes

Gaudi::Property< std::string > m_materialMapFile {this, "MaterialDbFile", "", ""}
std::unique_ptr< ActsPlugins::RootMaterialDecorator > m_matDecorator {}

Detailed Description

Mutable tracking geometry visitor to load the material on the tracking surfaces inside the ITk.

Definition at line 16 of file ITkMaterialDecoratorTool.h.

Constructor & Destructor Documentation

◆ ~ITkMaterialDecoratorTool()

ActsTrk::ITkMaterialDecoratorTool::~ITkMaterialDecoratorTool ( )
virtualdefault

Member Function Documentation

◆ finalize()

StatusCode ActsTrk::ITkMaterialDecoratorTool::finalize ( )
finaloverridevirtual

Definition at line 20 of file ITkMaterialDecoratorTool.cxx.

20 {
21 m_matDecorator.reset();
22 return StatusCode::SUCCESS;
23 }
std::unique_ptr< ActsPlugins::RootMaterialDecorator > m_matDecorator

◆ initialize()

StatusCode ActsTrk::ITkMaterialDecoratorTool::initialize ( )
finaloverridevirtual

Definition at line 13 of file ITkMaterialDecoratorTool.cxx.

13 {
14 ActsPlugins::RootMaterialDecorator::Config decoratorConfig{};
15 decoratorConfig.fileName = m_materialMapFile;
16 m_matDecorator = std::make_unique<ActsPlugins::RootMaterialDecorator>(decoratorConfig,
18 return StatusCode::SUCCESS;
19 }
Gaudi::Property< std::string > m_materialMapFile
Acts::Logging::Level actsLevelVector(MSG::Level lvl)
MsgStream & msg
Definition testRead.cxx:32

◆ visitSurface()

void ActsTrk::ITkMaterialDecoratorTool::visitSurface ( Acts::Surface & surface)
finaloverridevirtual

Definition at line 10 of file ITkMaterialDecoratorTool.cxx.

10 {
11 m_matDecorator->decorate(surface);
12 }

Member Data Documentation

◆ m_matDecorator

std::unique_ptr<ActsPlugins::RootMaterialDecorator> ActsTrk::ITkMaterialDecoratorTool::m_matDecorator {}
private

Definition at line 25 of file ITkMaterialDecoratorTool.h.

25{};

◆ m_materialMapFile

Gaudi::Property<std::string> ActsTrk::ITkMaterialDecoratorTool::m_materialMapFile {this, "MaterialDbFile", "", ""}
private

Definition at line 24 of file ITkMaterialDecoratorTool.h.

24{this, "MaterialDbFile", "", ""};

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