62 def FPGATruthDecorationCfg(flags, FinalProtoTrackChainxAODTracksKey="xAODFPGAPrototracks", stage = '', **kwargs):
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))