ATLAS Offline Software
Loading...
Searching...
No Matches
InnerDetector
InDetGNNTracking
python
InDetGNNTrackingConfigFlags.py
Go to the documentation of this file.
1
#
2
# Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3
#
4
from
AthenaConfiguration.AthConfigFlags
import
AthConfigFlags
5
from
AthOnnxComps.OnnxRuntimeFlags
import
OnnxRuntimeType
6
from
AthenaConfiguration.Enums
import
FlagEnum
7
8
9
class
GNNTrackFinderToolType
(FlagEnum):
10
TrackReader =
"TrackReader"
11
TrackFinder =
"TrackFinder"
12
Triton =
"Triton"
13
14
15
def
createGNNTrackingConfigFlags
():
16
"""Create flags for configuring the GNN tracking."""
17
icf = AthConfigFlags()
18
icf.addFlag(
"Tracking.GNN.ToolType"
, GNNTrackFinderToolType.TrackReader, type=GNNTrackFinderToolType)
19
icf.addFlag(
"Tracking.GNN.usePixelHitsOnly"
,
False
)
20
21
# Dump objects
22
icf.addFlag(
"Tracking.GNN.DumpObjects.NtupleFileName"
,
"/DumpObjects/"
)
23
icf.addFlag(
"Tracking.GNN.DumpObjects.NtupleTreeName"
,
"GNN4ITk"
)
24
25
# GNN Track finder tool
26
icf.addFlag(
"Tracking.GNN.TrackFinder.inputMLModelDir"
,
"TrainedMLModels4ITk"
)
27
icf.addFlag(
"Tracking.GNN.TrackFinder.ORTExeProvider"
, OnnxRuntimeType.CPU)
28
29
# GNN Track Reader Tool
30
icf.addFlag(
"Tracking.GNN.TrackReader.inputTracksDir"
,
"gnntracks"
)
31
icf.addFlag(
"Tracking.GNN.TrackReader.csvPrefix"
,
"track"
)
32
33
icf.addFlag(
"Tracking.GNN.useClusterTracks"
,
False
)
34
35
# the following cuts are applied to the tracks before the track fitting
36
icf.addFlag(
"Tracking.GNN.minPixelClusters"
, 1)
37
icf.addFlag(
"Tracking.GNN.minStripClusters"
, 0)
38
icf.addFlag(
"Tracking.GNN.minClusters"
, 6)
39
40
# the following cuts are applied to the tracks after the track fitting
41
icf.addFlag(
"Tracking.GNN.etamax"
, 4.0)
42
import
AthenaCommon.SystemOfUnits
as
Units
43
icf.addFlag(
"Tracking.GNN.pTmin"
, 400. * Units.MeV)
44
45
# this option applies eta dependent track selection to the output tracks
46
icf.addFlag(
"Tracking.GNN.doRecoTrackCuts"
,
True
)
47
48
# this option turns on the recovery attempts for failed track fits
49
icf.addFlag(
"Tracking.GNN.doRecoverFailedFits"
,
True
)
50
51
# this option turns on the ambiguity resolution, False by default
52
icf.addFlag(
"Tracking.GNN.doAmbiResolution"
,
False
)
53
54
# Triton Tool
55
icf.addFlag(
"Tracking.GNN.Triton.url"
,
"localhost"
)
56
icf.addFlag(
"Tracking.GNN.Triton.model"
,
"MetricLearning"
)
57
icf.addFlag(
"Tracking.GNN.Triton.port"
, 8001)
58
59
return
icf
60
python.InDetGNNTrackingConfigFlags.GNNTrackFinderToolType
Definition
InDetGNNTrackingConfigFlags.py:9
SystemOfUnits
python.InDetGNNTrackingConfigFlags.createGNNTrackingConfigFlags
createGNNTrackingConfigFlags()
Definition
InDetGNNTrackingConfigFlags.py:15
Generated on
for ATLAS Offline Software by
1.14.0