ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Tracking
TrkConfig
python
TrkTruthCreatorToolsConfig.py
Go to the documentation of this file.
1
# Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
2
# Configuration of TrkTruthCreatorTools package
3
from
AthenaConfiguration.ComponentAccumulator
import
ComponentAccumulator
4
from
AthenaConfiguration.ComponentFactory
import
CompFactory
5
6
def
InDetTruthMatchToolCfg
(flags, name='InDetTruthMatchTool', **kwargs) :
7
acc = ComponentAccumulator()
8
9
kwargs.setdefault(
"WeightPixel"
, 10.)
10
kwargs.setdefault(
"WeightSCT"
, 5.)
11
kwargs.setdefault(
"WeightTRT"
, 1.)
12
13
acc.setPrivateTools(CompFactory.Trk.TruthMatchRatio(name, **kwargs))
14
return
acc
15
16
def
ITkTruthMatchToolCfg
(flags, name='ITkTruthMatchTool', **kwargs) :
17
acc = ComponentAccumulator()
18
19
kwargs.setdefault(
"WeightPixel"
, 10.)
20
kwargs.setdefault(
"WeightSCT"
, 5.)
21
22
acc.setPrivateTools(CompFactory.Trk.TruthMatchRatio(name, **kwargs))
23
return
acc
24
25
def
TruthToTrackToolCfg
(flags, name="TruthToTrack", **kwargs):
26
acc = ComponentAccumulator()
27
28
from
TrkConfig.AtlasExtrapolatorConfig
import
AtlasExtrapolatorCfg
29
Extrapolator = acc.popToolsAndMerge(AtlasExtrapolatorCfg(flags))
30
acc.addPublicTool(Extrapolator)
31
kwargs.setdefault(
"Extrapolator"
, Extrapolator)
32
33
acc.setPrivateTools(CompFactory.Trk.TruthToTrack(name, **kwargs))
34
return
acc
35
python.TrkTruthCreatorToolsConfig.TruthToTrackToolCfg
TruthToTrackToolCfg(flags, name="TruthToTrack", **kwargs)
Definition
TrkTruthCreatorToolsConfig.py:25
python.TrkTruthCreatorToolsConfig.InDetTruthMatchToolCfg
InDetTruthMatchToolCfg(flags, name='InDetTruthMatchTool', **kwargs)
Definition
TrkTruthCreatorToolsConfig.py:6
python.TrkTruthCreatorToolsConfig.ITkTruthMatchToolCfg
ITkTruthMatchToolCfg(flags, name='ITkTruthMatchTool', **kwargs)
Definition
TrkTruthCreatorToolsConfig.py:16
Generated on
for ATLAS Offline Software by
1.17.0