ATLAS Offline Software
Loading...
Searching...
No Matches
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
3from AthenaConfiguration.ComponentAccumulator import ComponentAccumulator
4from AthenaConfiguration.ComponentFactory import CompFactory
5
6def InDetTrackPRD_AssociationCfg(flags, name='InDetTrackPRD_Association', **kwargs):
7 acc = ComponentAccumulator()
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(
16 InDetPRDtoTrackMapToolGangedPixelsCfg(flags)))
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
27def 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(
37 ITkPRDtoTrackMapToolGangedPixelsCfg(flags)))
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
ITkTrackPRD_AssociationCfg(flags, name='ITkTrackPRD_Association', **kwargs)
InDetTrackPRD_AssociationCfg(flags, name='InDetTrackPRD_Association', **kwargs)