12 InputCollections=None,
13 ResolvedTrackCollectionKey=None,
14 SiSPSeededTrackCollectionKey=None,
15 ClusterSplitProbContainer='',
16 previousActsExtension=None):
21 if flags.Tracking.ActiveConfig.usePrdAssociationTool:
22 from InDetConfig.InDetTrackPRD_AssociationConfig
import (
23 ITkTrackPRD_AssociationCfg)
26 name=(
'ITkTrackPRD_Association' +
27 flags.Tracking.ActiveConfig.extension),
28 TracksName=
list(InputCollections)))
31 runActsTrackTruth =
False
34 if flags.Tracking.useITkFTF:
42 from TrigFastTrackFinder.ITkFastTrackFinderStandaloneConfig
import (
43 ITkFastTrackFinderStandaloneCfg)
45 flags, SiSPSeededTrackCollectionKey))
55 runTruth = flags.Tracking.ActiveConfig.doAthenaTrack
or flags.Tracking.ActiveConfig.doActsToAthenaTrack
or flags.Tracking.ActiveConfig.doGNNTrack
59 if flags.Tracking.ActiveConfig.doAthenaTrack:
60 if flags.Tracking.ActiveConfig.extension
in [
"Conversion",
"ActsValidateConversionSeeds"]:
61 from InDetConfig.SiSPSeededTrackFinderConfig
import ITkSiSPSeededTrackFinderROIConvCfg
63 TracksLocation=SiSPSeededTrackCollectionKey))
65 from InDetConfig.SiSPSeededTrackFinderConfig
import ITkSiSPSeededTrackFinderCfg
69 if flags.Tracking.ActiveConfig.doGNNTrack:
70 from InDetGNNTracking.InDetGNNTrackingConfig
import GNNTrackMakerCfg
73 TracksLocation=SiSPSeededTrackCollectionKey))
76 if flags.Tracking.ActiveConfig.doActsSeed:
78 from ActsConfig.ActsSeedingConfig
import (
83 if flags.Tracking.ActiveConfig.doActsTrack:
84 from ActsConfig.ActsTrackFindingConfig
import ActsTrackFindingCfg
86 runActsTrackTruth = flags.Tracking.doTruth
89 if flags.Tracking.ActiveConfig.doActsToAthenaTrack:
90 from ActsConfig.ActsEventCnvConfig
import ActsToTrkConvertorAlgCfg
92 ACTSTracksLocation=f
"{flags.Tracking.ActiveConfig.extension}Tracks",
93 TracksLocation=SiSPSeededTrackCollectionKey))
96 if flags.Tracking.ActiveConfig.doAthenaToActsTrack:
97 from ActsConfig.ActsEventCnvConfig
import TrkToActsConvertorAlgCfg
99 TrackContainerLocation=f
"{flags.Tracking.ActiveConfig.extension}Tracks",
100 TrackCollectionKeys=[SiSPSeededTrackCollectionKey]))
103 from InDetConfig.ITkTrackTruthConfig
import ITkTrackTruthCfg
104 if flags.Tracking.doTruth
and runTruth:
107 Tracks=SiSPSeededTrackCollectionKey,
108 DetailedTruth=SiSPSeededTrackCollectionKey+
"DetailedTruth",
109 TracksTruth=SiSPSeededTrackCollectionKey+
"TruthCollection"))
119 doGNNWithoutAmbiReso = flags.Tracking.ActiveConfig.doGNNTrack
and (
not flags.Tracking.GNN.doAmbiResolution)
121 if (flags.Tracking.doITkFastTracking
and flags.Tracking.ActiveConfig.doAthenaTrack
or doGNNWithoutAmbiReso):
123 from TrkConfig.TrkCollectionAliasAlgConfig
import CopyAlgForAmbiCfg
126 "ITkCopyAlgForAmbi"+flags.Tracking.ActiveConfig.extension,
127 CollectionName=SiSPSeededTrackCollectionKey,
128 AliasName=ResolvedTrackCollectionKey))
132 if flags.Tracking.ActiveConfig.doAthenaAmbiguityResolution:
135 from TrkConfig.TrkAmbiguitySolverConfig
import (
136 ITkTrkAmbiguityScoreCfg, ITkTrkAmbiguitySolverCfg)
139 SiSPSeededTrackCollectionKey=SiSPSeededTrackCollectionKey,
140 ClusterSplitProbContainer=ClusterSplitProbContainer))
144 ResolvedTrackCollectionKey=ResolvedTrackCollectionKey))
149 if flags.Tracking.ActiveConfig.doActsAmbiguityResolution:
151 from ActsConfig.ActsTrackFindingConfig
import ActsAmbiguityResolutionCfg
155 from ActsConfig.ActsPrdAssociationConfig
import ActsPrdAssociationAlgCfg
157 name = f
'{flags.Tracking.ActiveConfig.extension}PrdAssociationAlg',
158 previousActsExtension=previousActsExtension))
160 if flags.Tracking.ActiveConfig.doActsToAthenaResolvedTrack:
161 from ActsConfig.ActsEventCnvConfig
import ActsToTrkConvertorAlgCfg
163 ACTSTracksLocation=f
"{flags.Tracking.ActiveConfig.extension}ResolvedTracks",
164 TracksLocation=ResolvedTrackCollectionKey))
168 if flags.Tracking.doTruth
and runTruth:
171 Tracks=ResolvedTrackCollectionKey,
172 DetailedTruth=ResolvedTrackCollectionKey+
"DetailedTruth",
173 TracksTruth=ResolvedTrackCollectionKey+
"TruthCollection"))
175 if runActsTrackTruth :
176 from ActsConfig.ActsTruthConfig
import ActsTrackToTruthAssociationAlgCfg, ActsTrackFindingValidationAlgCfg
177 acts_tracks=f
"{flags.Tracking.ActiveConfig.extension}Tracks" if not flags.Acts.doAmbiguityResolution
else f
"{flags.Tracking.ActiveConfig.extension}ResolvedTracks"
179 name=f
"{acts_tracks}TrackToTruthAssociationAlg",
180 ACTSTracksLocation=acts_tracks,
181 AssociationMapOut=acts_tracks+
"ToTruthParticleAssociation"))
184 name=f
"{acts_tracks}TrackFindingValidationAlg",
185 TrackToTruthAssociationMap=acts_tracks+
"ToTruthParticleAssociation"