3 from AthenaConfiguration.ComponentAccumulator
import ComponentAccumulator
4 from AthenaConfiguration.ComponentFactory
import CompFactory
7 name: str =
"ActsProtoTrackCreationAndFitAlg",
8 **kwargs) -> ComponentAccumulator:
11 from ActsConfig.ActsGeometryConfig
import ActsDetectorElementToActsGeometryIdMappingAlgCfg
13 kwargs.setdefault(
'DetectorElementToActsGeometryIdMapKey',
'DetectorElementToActsGeometryIdMap')
15 from PixelGeoModelXml.ITkPixelGeoModelConfig
import ITkPixelReadoutGeometryCfg
18 from StripGeoModelXml.ITkStripGeoModelConfig
import ITkStripReadoutGeometryCfg
22 if "TrackingGeometryTool" not in kwargs:
23 from ActsConfig.ActsGeometryConfig
import ActsTrackingGeometryToolCfg
25 "TrackingGeometryTool",
29 if 'ExtrapolationTool' not in kwargs:
30 from ActsConfig.ActsGeometryConfig
import ActsExtrapolationToolCfg
36 if 'ActsFitter' not in kwargs:
37 from ActsConfig.ActsTrackFittingConfig
import ActsFitterCfg
38 kwargs.setdefault(
"ActsFitter", acc.popToolsAndMerge(
ActsFitterCfg(flags,
42 acc.addEventAlgo(CompFactory.FPGATrackSim.FPGATrackSimPrototrackFitterAlg(name,**kwargs),
48 ACTSProtoTrackChainTrackKey =
"ACTSProtoTrackChainTestTracks"
51 from InDetConfig.ITkTrackRecoConfig
import ITkTrackRecoCfg
57 ACTSTracksLocation=ACTSProtoTrackChainTrackKey,
58 FPGATrackSimActsProtoTracks=f
"ActsProtoTracks{stage}FromFPGATrack",
65 from ActsConfig.ActsTruthConfig
import ActsTruthParticleHitCountAlgCfg, ActsPixelClusterToTruthAssociationAlgCfg,ActsStripClusterToTruthAssociationAlgCfg
67 ACTSProtoTrackChainTrackKey =
"ACTSProtoTrackChainTestTracks"
68 FinalProtoTrackChainxAODTracksKey=FinalProtoTrackChainxAODTracksKey
73 name=
"ActsFPGAPixelClusterToTruthAssociationAlg",
74 InputTruthParticleLinks=
"xAODFPGATruthLinks",
75 AssociationMapOut=
"ITkFPGAPixelClustersToTruthParticles",
76 Measurements=f
"xAODPixelClusters{stage}FromFPGACluster"))
79 name=
"ActsFPGAStripClusterToTruthAssociationAlg",
80 InputTruthParticleLinks=
"xAODFPGATruthLinks",
81 AssociationMapOut=
"ITkFPGAStripClustersToTruthParticles",
82 Measurements=f
"xAODStripClusters{stage}FromFPGACluster"))
86 name=
"ActsFPGATruthParticleHitCountAlg",
87 PixelClustersToTruthAssociationMap=
"ITkFPGAPixelClustersToTruthParticles",
88 StripClustersToTruthAssociationMap=
"ITkFPGAStripClustersToTruthParticles",
89 TruthParticleHitCountsOut=
"FPGATruthParticleHitCounts"))
92 from ActsConfig.ActsTruthConfig
import ActsTrackToTruthAssociationAlgCfg, ActsTrackFindingValidationAlgCfg
93 acts_tracks=f
"{flags.Tracking.ActiveConfig.extension}Tracks" if not flags.Acts.doAmbiguityResolution
else f
"{flags.Tracking.ActiveConfig.extension}ResolvedTracks"
95 name=f
"{acts_tracks}FPGATrackToTruthAssociationAlg",
96 PixelClustersToTruthAssociationMap=
"ITkFPGAPixelClustersToTruthParticles",
97 StripClustersToTruthAssociationMap=
"ITkFPGAStripClustersToTruthParticles",
98 ACTSTracksLocation=ACTSProtoTrackChainTrackKey,
99 AssociationMapOut=acts_tracks+
"FPGAToTruthParticleAssociation"))
103 name=f
"{acts_tracks}FPGATrackFindingValidationAlg",
104 TrackToTruthAssociationMap=acts_tracks+
"FPGAToTruthParticleAssociation",
105 TruthParticleHitCounts=
"FPGATruthParticleHitCounts"
110 prefix = flags.Tracking.ActiveConfig.extension
111 from ActsConfig.ActsTrackFindingConfig
import ActsTrackToTrackParticleCnvAlgCfg
113 ACTSTracksLocation=[ACTSProtoTrackChainTrackKey,],
114 TrackParticlesOutKey=f
"{FinalProtoTrackChainxAODTracksKey}TrackParticles"))
116 from ActsConfig.ActsTruthConfig
import ActsTrackParticleTruthDecorationAlgCfg
118 f
"{prefix}ActsFPGATrackParticleTruthDecorationAlg",
119 TrackToTruthAssociationMaps=[acts_tracks+
"FPGAToTruthParticleAssociation"],
120 TrackParticleContainerName=f
"{FinalProtoTrackChainxAODTracksKey}TrackParticles",
121 TruthParticleHitCounts=
"FPGATruthParticleHitCounts",
122 ComputeTrackRecoEfficiency=
True))