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 bool hasMat = surface.hasMaterial();
24 m_matDecorator->decorate(surface);
25 if (hasMat != surface.hasMaterial()) {
26 ATH_MSG_DEBUG(__func__<<"() "<<__LINE__<<" Decorated "<<surface.geometryId()<<" with material");
27 }
28 }
29
31 ActsPlugins::RootMaterialDecorator::Config decoratorConfig;
32 decoratorConfig.fileName = m_materialMapFile;
33 m_matDecorator = std::make_unique<ActsPlugins::RootMaterialDecorator>(decoratorConfig,
34 ActsTrk::actsLevelVector(msg().level()));
35 return StatusCode::SUCCESS;
36 }
37
39 m_matDecorator.reset();
40 return StatusCode::SUCCESS;
41 }
42}
#define ATH_MSG_DEBUG(x)
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