ATLAS Offline Software
DetectorVolumeSvcCfg.py
Go to the documentation of this file.
1 # Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
2 from AthenaConfiguration.ComponentAccumulator import ComponentAccumulator
3 from AthenaConfiguration.ComponentFactory import CompFactory
4 
5 def DetectorVolumeSvcCfg(flags, name="DetectorVolumeSvc", **kwargs):
6  result = ComponentAccumulator()
7  detBuilders = []
8  if flags.Detector.GeometryMuon:
9  from ActsMuonDetector.ActsMuonDetectorCfg import MuonDetectorBuilderToolCfg
10  detBuilders += [result.getPrimaryAndMerge(ActsSimpleCylinderDetBuilderToolCfg(flags))]
11  detBuilders += [result.getPrimaryAndMerge(MuonDetectorBuilderToolCfg(flags))]
12  kwargs.setdefault("DetectorBuilders", detBuilders)
13  theSvc = CompFactory.ActsTrk.DetectorVolumeSvc(name, **kwargs)
14  result.addService(theSvc, primary=True)
15  return result
16 
17 def ActsSimpleCylinderDetBuilderToolCfg(flags, name="SimpleCylinderDetBuilderTool", **kwargs):
18  result = ComponentAccumulator()
19  theSvc = CompFactory.ActsTrk.SimpleCylinderDetBuilderTool(name, **kwargs)
20  result.setPrivateTools(theSvc)
21  return result
python.JetAnalysisCommon.ComponentAccumulator
ComponentAccumulator
Definition: JetAnalysisCommon.py:302
ActsMuonDetectorCfg.MuonDetectorBuilderToolCfg
def MuonDetectorBuilderToolCfg(flags, name="MuonDetectorBuilderTool", **kwargs)
Definition: ActsMuonDetectorCfg.py:5
DetectorVolumeSvcCfg.ActsSimpleCylinderDetBuilderToolCfg
def ActsSimpleCylinderDetBuilderToolCfg(flags, name="SimpleCylinderDetBuilderTool", **kwargs)
Definition: DetectorVolumeSvcCfg.py:17
DetectorVolumeSvcCfg.DetectorVolumeSvcCfg
def DetectorVolumeSvcCfg(flags, name="DetectorVolumeSvc", **kwargs)
Definition: DetectorVolumeSvcCfg.py:5