6 previousExtension: str =
None) -> ComponentAccumulator:
7 acc = ComponentAccumulator()
10 if flags.Tracking.ActiveConfig.useHoughVertexFilter:
11 from HIGlobal.HIHoughVtxFinderConfig
import HIHoughVtxRecoCfg
12 acc.merge(HIHoughVtxRecoCfg(flags,
13 inputPixelSpacePoints =
"PixelSpacePoints"))
16 from ActsConfig.ActsSeedingInDetConfig
import ActsInDetSeedingCfg
17 acc.merge(ActsInDetSeedingCfg(flags))
20 from ActsConfig.ActsTrackFindingInDetConfig
import ActsInDetTrackFindingCfg
21 acc.merge(ActsInDetTrackFindingCfg(flags))
25 if flags.Acts.doAmbiguityResolution:
26 from ActsConfig.ActsTrackFindingInDetConfig
import ActsInDetAmbiguityResolutionCfg
27 acc.merge(ActsInDetAmbiguityResolutionCfg(flags))
30 from ActsConfig.ActsPrdAssociationConfig
import ActsPrdAssociationAlgCfg
31 acc.merge(ActsPrdAssociationAlgCfg(flags,
32 name = f
'{flags.Tracking.ActiveConfig.extension}PrdAssociationAlg',
33 InputTrackCollection = f
'{flags.Tracking.ActiveConfig.extension}Tracks',
34 previousActsExtension = previousExtension))
37 if flags.Tracking.doTruth:
42 if flags.Tracking.ActiveConfig.storeSiSPSeededTracks
or not flags.Acts.doAmbiguityResolution:
43 from ActsConfig.ActsTruthConfig
import ActsInDetTrackToTruthAssociationAlgCfg, ActsTrackFindingValidationAlgCfg
44 acts_tracks = f
"{flags.Tracking.ActiveConfig.extension}Tracks"
45 acc.merge(ActsInDetTrackToTruthAssociationAlgCfg(flags,
46 name = f
"{acts_tracks}TrackToTruthAssociationAlg",
47 ACTSTracksLocation = acts_tracks,
48 AssociationMapOut = f
"{acts_tracks}ToTruthParticleAssociation"))
50 acc.merge(ActsTrackFindingValidationAlgCfg(flags,
51 name = f
"{acts_tracks}TrackFindingValidationAlg",
52 TrackToTruthAssociationMap = f
"{acts_tracks}ToTruthParticleAssociation"))
56 if flags.Acts.doAmbiguityResolution:
58 acts_tracks = f
"{flags.Tracking.ActiveConfig.extension}ResolvedTracks"
59 from ActsConfig.ActsTruthConfig
import ActsInDetTrackToTruthAssociationAlgCfg, ActsTrackFindingValidationAlgCfg
60 acc.merge(ActsInDetTrackToTruthAssociationAlgCfg(flags,
61 name = f
"{acts_tracks}TrackToTruthAssociationAlg",
62 ACTSTracksLocation = acts_tracks,
63 AssociationMapOut = f
"{acts_tracks}ToTruthParticleAssociation"))
65 acc.merge(ActsTrackFindingValidationAlgCfg(flags,
66 name = f
"{acts_tracks}TrackFindingValidationAlg",
67 TrackToTruthAssociationMap = f
"{acts_tracks}ToTruthParticleAssociation"))