ATLAS Offline Software
Loading...
Searching...
No Matches
MuonMaterialDecoratorTool.cxx
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
3*/
4
6
7#include "Acts/Material/HomogeneousSurfaceMaterial.hpp"
8#include "Acts/Geometry/TrapezoidVolumeBounds.hpp"
9#include "Acts/Geometry/CuboidVolumeBounds.hpp"
10#include "Acts/Geometry/DiamondVolumeBounds.hpp"
14#include <ActsPlugins/GeoModel/GeoModelMaterialConverter.hpp>
15#include "GeoModelValidation/GeoMaterialHelper.h"
16
17
18
19namespace MuonGMR4 {
21
22 void MuonMaterialDecoratorTool::visitSurface(Acts::Surface& surface){
23 m_matDecorator->decorate(surface);
24 }
25
27 ActsPlugins::RootMaterialDecorator::Config decoratorConfig{};
28 decoratorConfig.fileName = m_materialMapFile;
29 m_matDecorator = std::make_unique<ActsPlugins::RootMaterialDecorator>(decoratorConfig,
30 ActsTrk::actsLevelVector(msg().level()));
31 return StatusCode::SUCCESS;
32 }
33
35 m_matDecorator.reset();
36 return StatusCode::SUCCESS;
37 }
38
39
40}
virtual void visitSurface(Acts::Surface &surface) override final
virtual StatusCode initialize() override final
std::unique_ptr< ActsPlugins::RootMaterialDecorator > m_matDecorator
virtual StatusCode finalize() override final
Gaudi::Property< std::string > m_materialMapFile
Acts::Logging::Level actsLevelVector(MSG::Level lvl)
The ReadoutGeomCnvAlg converts the Run4 Readout geometry build from the GeoModelXML into the legacy M...
MsgStream & msg
Definition testRead.cxx:32