ATLAS Offline Software
Calorimeter/CaloTrackingGeometry/python/CaloTrackingGeometryConfig.py
Go to the documentation of this file.
1 # Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
2 # Configuration of CaloTrackingGeometry package
3 from AthenaConfiguration.ComponentFactory import CompFactory
4 from AthenaConfiguration.ComponentAccumulator import ComponentAccumulator
5 
6 def CaloDepthEntranceCfg(flags, name="CaloDepthTool", **kwargs):
8  acc.setPrivateTools(CompFactory.CaloDepthTool(name, **kwargs))
9  return acc
10 
11 def CaloSurfaceBuilderEntranceCfg(flags, name="CaloSurfaceBuilderEntrance", **kwargs):
12  acc = ComponentAccumulator()
13  kwargs.setdefault("CaloDepthTool", acc.popToolsAndMerge(
14  CaloDepthEntranceCfg(flags, name = "CaloDepthToolEntrance",
15  DepthChoice = "entrance")))
16  acc.setPrivateTools( CompFactory.CaloSurfaceBuilder(name, **kwargs) )
17  return acc
18 
19 def CaloSurfaceBuilderMiddleCfg(flags, name="CaloSurfaceBuilderMiddle", **kwargs):
20  acc = ComponentAccumulator()
21  kwargs.setdefault("CaloDepthTool", acc.popToolsAndMerge(
22  CaloDepthEntranceCfg(flags, name = "CaloDepthToolMiddle",
23  DepthChoice = "middle")))
24  acc.setPrivateTools( CompFactory.CaloSurfaceBuilder(name, **kwargs) )
25  return acc
python.JetAnalysisCommon.ComponentAccumulator
ComponentAccumulator
Definition: JetAnalysisCommon.py:302
CaloTrackingGeometryConfig.CaloDepthEntranceCfg
def CaloDepthEntranceCfg(flags, name="CaloDepthTool", **kwargs)
Definition: Calorimeter/CaloTrackingGeometry/python/CaloTrackingGeometryConfig.py:6
CaloTrackingGeometryConfig.CaloSurfaceBuilderMiddleCfg
def CaloSurfaceBuilderMiddleCfg(flags, name="CaloSurfaceBuilderMiddle", **kwargs)
Definition: Calorimeter/CaloTrackingGeometry/python/CaloTrackingGeometryConfig.py:19
CaloTrackingGeometryConfig.CaloSurfaceBuilderEntranceCfg
def CaloSurfaceBuilderEntranceCfg(flags, name="CaloSurfaceBuilderEntrance", **kwargs)
Definition: Calorimeter/CaloTrackingGeometry/python/CaloTrackingGeometryConfig.py:11