ATLAS Offline Software
Loading...
Searching...
No Matches
MuonGMR4::MuonMaterialDecoratorTool Class Reference

Mutable tracking geometry visitor to load the material on the tracking surfaces inside the Muon System by visiting the tracking volumes of the active chambers and assign material to the portals and by visiting the surfaces to assign the passive material on. More...

#include <MuonMaterialDecoratorTool.h>

Inheritance diagram for MuonGMR4::MuonMaterialDecoratorTool:
Collaboration diagram for MuonGMR4::MuonMaterialDecoratorTool:

Public Member Functions

virtual ~MuonMaterialDecoratorTool ()
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, "MuonMaterialDbFile", "", ""}
std::unique_ptr< ActsPlugins::RootMaterialDecorator > m_matDecorator {}

Detailed Description

Mutable tracking geometry visitor to load the material on the tracking surfaces inside the Muon System by visiting the tracking volumes of the active chambers and assign material to the portals and by visiting the surfaces to assign the passive material on.

Definition at line 21 of file MuonMaterialDecoratorTool.h.

Constructor & Destructor Documentation

◆ ~MuonMaterialDecoratorTool()

MuonGMR4::MuonMaterialDecoratorTool::~MuonMaterialDecoratorTool ( )
virtualdefault

Member Function Documentation

◆ finalize()

StatusCode MuonGMR4::MuonMaterialDecoratorTool::finalize ( )
finaloverridevirtual

Definition at line 34 of file MuonMaterialDecoratorTool.cxx.

34 {
35 m_matDecorator.reset();
36 return StatusCode::SUCCESS;
37 }
std::unique_ptr< ActsPlugins::RootMaterialDecorator > m_matDecorator

◆ initialize()

StatusCode MuonGMR4::MuonMaterialDecoratorTool::initialize ( )
finaloverridevirtual

Definition at line 26 of file MuonMaterialDecoratorTool.cxx.

26 {
27 ActsPlugins::RootMaterialDecorator::Config decoratorConfig{};
28 decoratorConfig.fileName = m_materialMapFile;
29 m_matDecorator = std::make_unique<ActsPlugins::RootMaterialDecorator>(decoratorConfig,
31 return StatusCode::SUCCESS;
32 }
Gaudi::Property< std::string > m_materialMapFile
Acts::Logging::Level actsLevelVector(MSG::Level lvl)
MsgStream & msg
Definition testRead.cxx:32

◆ visitSurface()

void MuonGMR4::MuonMaterialDecoratorTool::visitSurface ( Acts::Surface & surface)
finaloverridevirtual

Definition at line 22 of file MuonMaterialDecoratorTool.cxx.

22 {
23 m_matDecorator->decorate(surface);
24 }

Member Data Documentation

◆ m_matDecorator

std::unique_ptr<ActsPlugins::RootMaterialDecorator> MuonGMR4::MuonMaterialDecoratorTool::m_matDecorator {}
private

Definition at line 31 of file MuonMaterialDecoratorTool.h.

31{};

◆ m_materialMapFile

Gaudi::Property<std::string> MuonGMR4::MuonMaterialDecoratorTool::m_materialMapFile {this, "MuonMaterialDbFile", "", ""}
private

Definition at line 30 of file MuonMaterialDecoratorTool.h.

30{this, "MuonMaterialDbFile", "", ""};

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