ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
InnerDetector
InDetConfig
python
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):
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
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(
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
python.InDetTrackPRD_AssociationConfig.ITkTrackPRD_AssociationCfg
ITkTrackPRD_AssociationCfg(flags, name='ITkTrackPRD_Association', **kwargs)
Definition
InDetTrackPRD_AssociationConfig.py:27
python.InDetTrackPRD_AssociationConfig.InDetTrackPRD_AssociationCfg
InDetTrackPRD_AssociationCfg(flags, name='InDetTrackPRD_Association', **kwargs)
Definition
InDetTrackPRD_AssociationConfig.py:6
Generated on
for ATLAS Offline Software by
1.17.0