ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
MuonSpectrometer
MuonPhaseII
MuonDetDescr
ActsMuonDetector
python
ActsMuonDetectorCfg.py
Go to the documentation of this file.
1
# Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
2
from
AthenaConfiguration.ComponentAccumulator
import
ComponentAccumulator
3
from
AthenaConfiguration.ComponentFactory
import
CompFactory
4
5
def
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
kwargs.setdefault(
"AssignEmptyPassiveMaterial"
, len(flags.Muon.trackGeometryMaterialMap) == 0)
14
the_tool = CompFactory.ActsTrk.MuonBlueprintNodeBuilder(name, **kwargs)
15
result.setPrivateTools(the_tool)
16
return
result
17
18
def
MuonMaterialDecoratorToolCfg
(flags, name = "MuonMaterialDecoratorTool", **kwargs):
19
result = ComponentAccumulator()
20
kwargs.setdefault(
'MuonMaterialDbFile'
, flags.Muon.trackGeometryMaterialMap)
21
the_tool = CompFactory.MuonGMR4.MuonMaterialDecoratorTool(name, **kwargs)
22
result.setPrivateTools(the_tool)
23
return
result
ActsMuonDetectorCfg.MuonBlueprintNodeBuilderCfg
MuonBlueprintNodeBuilderCfg(flags, name="MuonBlueprintNodeBuilder", **kwargs)
Definition
ActsMuonDetectorCfg.py:5
ActsMuonDetectorCfg.MuonMaterialDecoratorToolCfg
MuonMaterialDecoratorToolCfg(flags, name="MuonMaterialDecoratorTool", **kwargs)
Definition
ActsMuonDetectorCfg.py:18
Generated on
for ATLAS Offline Software by
1.17.0