ATLAS Offline Software
InDetTrackPRD_AssociationConfig.py
Go to the documentation of this file.
1 # Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
2 # Configuration of InDetTrackPRD_Association package
3 from AthenaConfiguration.ComponentAccumulator import ComponentAccumulator
4 from AthenaConfiguration.ComponentFactory import CompFactory
5 
6 def InDetTrackPRD_AssociationCfg(flags, name='InDetTrackPRD_Association', **kwargs):
8 
9  if kwargs.get('TracksName', None) is None :
10  raise Exception('Not TracksName argument provided')
11 
12  if 'AssociationTool' not in kwargs:
13  from InDetConfig.InDetAssociationToolsConfig import (
14  InDetPRDtoTrackMapToolGangedPixelsCfg)
15  kwargs.setdefault("AssociationTool", acc.popToolsAndMerge(
17 
18  if "AssociationMapName" not in kwargs:
19  kwargs.setdefault("AssociationMapName",
20  "InDetPRDtoTrackMap" +
21  flags.Tracking.ActiveConfig.extension)
22 
23  acc.addEventAlgo(
24  CompFactory.InDet.InDetTrackPRD_Association(name, **kwargs))
25  return acc
26 
27 def ITkTrackPRD_AssociationCfg(flags, name='ITkTrackPRD_Association', **kwargs):
28  acc = ComponentAccumulator()
29 
30  if kwargs.get('TracksName', None) is None :
31  raise Exception('Not TracksName argument provided')
32 
33  if 'AssociationTool' not in kwargs:
34  from InDetConfig.InDetAssociationToolsConfig import (
35  ITkPRDtoTrackMapToolGangedPixelsCfg)
36  kwargs.setdefault("AssociationTool", acc.popToolsAndMerge(
38 
39  kwargs.setdefault("AssociationMapName",
40  'ITkPRDtoTrackMap' +
41  flags.Tracking.ActiveConfig.extension)
42  acc.addEventAlgo(
43  CompFactory.InDet.InDetTrackPRD_Association(name, **kwargs))
44  return acc
python.JetAnalysisCommon.ComponentAccumulator
ComponentAccumulator
Definition: JetAnalysisCommon.py:302
python.InDetTrackPRD_AssociationConfig.ITkTrackPRD_AssociationCfg
def ITkTrackPRD_AssociationCfg(flags, name='ITkTrackPRD_Association', **kwargs)
Definition: InDetTrackPRD_AssociationConfig.py:27
python.InDetTrackPRD_AssociationConfig.InDetTrackPRD_AssociationCfg
def InDetTrackPRD_AssociationCfg(flags, name='InDetTrackPRD_Association', **kwargs)
Definition: InDetTrackPRD_AssociationConfig.py:6
python.InDetAssociationToolsConfig.InDetPRDtoTrackMapToolGangedPixelsCfg
def InDetPRDtoTrackMapToolGangedPixelsCfg(flags, name='PRDtoTrackMapToolGangedPixels', **kwargs)
Definition: InDetAssociationToolsConfig.py:29
python.InDetAssociationToolsConfig.ITkPRDtoTrackMapToolGangedPixelsCfg
def ITkPRDtoTrackMapToolGangedPixelsCfg(flags, name='ITkPRDtoTrackMapToolGangedPixels', **kwargs)
Definition: InDetAssociationToolsConfig.py:43