ATLAS Offline Software
Loading...
Searching...
No Matches
ActsMuonDetectorCfg.py
Go to the documentation of this file.
1# Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
2from AthenaConfiguration.ComponentAccumulator import ComponentAccumulator
3from AthenaConfiguration.ComponentFactory import CompFactory
4
5def MuonBlueprintNodeBuilderCfg(flags, name = "MuonBlueprintNodeBuilder", **kwargs):
6 result = ComponentAccumulator()
7 from MuonGeoModelR4.MuonGeoModelConfig import MuonGeoModelCfg
8 result.merge(MuonGeoModelCfg(flags))
9
10 kwargs.setdefault("AssignActiveMaterial", flags.Muon.trackGeometryActiveMaterial)
11 kwargs.setdefault("BuildPassiveVolumes", flags.Muon.trackGeometryPassiveMaterial)
12 the_tool = CompFactory.ActsTrk.MuonBlueprintNodeBuilder(name, **kwargs)
13 result.setPrivateTools(the_tool)
14 return result
15
16def MuonMaterialDecoratorToolCfg(flags, name = "MuonMaterialDecoratorTool", **kwargs):
17 kwargs.setdefault('MuonMaterialDbFile', flags.Acts.TrackingGeometry.MuonMaterialMapFile)
18 result = ComponentAccumulator()
19 the_tool = CompFactory.MuonGMR4.MuonMaterialDecoratorTool(name, **kwargs)
20 result.setPrivateTools(the_tool)
21 return result
MuonBlueprintNodeBuilderCfg(flags, name="MuonBlueprintNodeBuilder", **kwargs)
MuonMaterialDecoratorToolCfg(flags, name="MuonMaterialDecoratorTool", **kwargs)