ATLAS Offline Software
Loading...
Searching...
No Matches
ActsMuonDetectorCfg.py
Go to the documentation of this file.
1# Copyright (C) 2002-2026 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 from AthenaConfiguration.Enums import LHCPeriod
9 result.merge(MuonGeoModelCfg(flags))
10 kwargs.setdefault("run4Layout", flags.GeoModel.Run >= LHCPeriod.Run4)
11 kwargs.setdefault("AssignActiveMaterial", flags.Muon.trackGeometryActiveMaterial)
12 kwargs.setdefault("BuildPassiveVolumes", flags.Muon.trackGeometryPassiveMaterial)
13 the_tool = CompFactory.ActsTrk.MuonBlueprintNodeBuilder(name, **kwargs)
14 result.setPrivateTools(the_tool)
15 return result
16
17def MuonMaterialDecoratorToolCfg(flags, name = "MuonMaterialDecoratorTool", **kwargs):
18 result = ComponentAccumulator()
19 kwargs.setdefault('MuonMaterialDbFile', flags.Muon.trackGeometryMaterialMap)
20 the_tool = CompFactory.MuonGMR4.MuonMaterialDecoratorTool(name, **kwargs)
21 result.setPrivateTools(the_tool)
22 return result
MuonBlueprintNodeBuilderCfg(flags, name="MuonBlueprintNodeBuilder", **kwargs)
MuonMaterialDecoratorToolCfg(flags, name="MuonMaterialDecoratorTool", **kwargs)