ATLAS Offline Software
TRT_TrackExtensionAlgConfig.py
Go to the documentation of this file.
1 # Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
2 # Configuration of TRT_TrackExtensionAlg package
3 from AthenaConfiguration.ComponentAccumulator import ComponentAccumulator
4 from AthenaConfiguration.ComponentFactory import CompFactory
5 
6 def TRT_TrackExtensionAlgCfg(flags, name = 'InDetTRT_Extension', **kwargs):
8 
9  if "TrackExtensionTool" not in kwargs:
10  from InDetConfig.TRT_TrackExtensionToolConfig import TRT_TrackExtensionToolCfg
11  kwargs.setdefault("TrackExtensionTool", acc.popToolsAndMerge(
13 
14  acc.addEventAlgo(CompFactory.InDet.TRT_TrackExtensionAlg(
15  name + flags.Tracking.ActiveConfig.extension, **kwargs))
16  return acc
17 
18 def TRT_Phase_TrackExtensionAlgCfg(flags, name = 'InDetTRT_Phase_Extension', **kwargs):
19  acc = ComponentAccumulator()
20 
21  if "TrackExtensionTool" not in kwargs:
22  from InDetConfig.TRT_TrackExtensionToolConfig import TRT_TrackExtensionToolPhaseCfg
23  kwargs.setdefault("TrackExtensionTool", acc.popToolsAndMerge(
25 
26  acc.addEventAlgo(CompFactory.InDet.TRT_TrackExtensionAlg(name, **kwargs))
27  return acc
28 
29 def Trig_TRT_TrackExtensionAlgCfg(flags, inputTracks, name = 'TrigTrackExtensionAlg', **kwargs):
30  acc = ComponentAccumulator()
31 
32  if "TrackExtensionTool" not in kwargs:
33  from InDetConfig.TRT_TrackExtensionToolConfig import Trig_TRT_TrackExtensionToolCfg
34  kwargs.setdefault("TrackExtensionTool", acc.popToolsAndMerge(
36 
37  kwargs["InputTracksLocation"] = inputTracks
38  kwargs.setdefault("ExtendedTracksLocation", "ExtendedTrackMap")
39 
40  acc.addEventAlgo(CompFactory.InDet.TRT_TrackExtensionAlg(f"{name}_{flags.Tracking.ActiveConfig.input_name}", **kwargs))
41  return acc
python.TRT_TrackExtensionToolConfig.TRT_TrackExtensionToolPhaseCfg
def TRT_TrackExtensionToolPhaseCfg(flags, name='TRT_TrackExtensionToolPhase', **kwargs)
Definition: TRT_TrackExtensionToolConfig.py:31
python.JetAnalysisCommon.ComponentAccumulator
ComponentAccumulator
Definition: JetAnalysisCommon.py:302
python.TRT_TrackExtensionAlgConfig.Trig_TRT_TrackExtensionAlgCfg
def Trig_TRT_TrackExtensionAlgCfg(flags, inputTracks, name='TrigTrackExtensionAlg', **kwargs)
Definition: TRT_TrackExtensionAlgConfig.py:29
python.TRT_TrackExtensionAlgConfig.TRT_Phase_TrackExtensionAlgCfg
def TRT_Phase_TrackExtensionAlgCfg(flags, name='InDetTRT_Phase_Extension', **kwargs)
Definition: TRT_TrackExtensionAlgConfig.py:18
python.TRT_TrackExtensionToolConfig.Trig_TRT_TrackExtensionToolCfg
def Trig_TRT_TrackExtensionToolCfg(flags, name='Trig_TRT_TrackExtensionTool', **kwargs)
Definition: TRT_TrackExtensionToolConfig.py:117
python.TRT_TrackExtensionToolConfig.TRT_TrackExtensionToolCfg
def TRT_TrackExtensionToolCfg(flags, name='TRT_TrackExtensionTool', **kwargs)
Definition: TRT_TrackExtensionToolConfig.py:142
python.TRT_TrackExtensionAlgConfig.TRT_TrackExtensionAlgCfg
def TRT_TrackExtensionAlgCfg(flags, name='InDetTRT_Extension', **kwargs)
Definition: TRT_TrackExtensionAlgConfig.py:6