ATLAS Offline Software
Loading...
Searching...
No Matches
python.ActsPatternRecognitionConfig Namespace Reference

Functions

ComponentAccumulator ActsTrackReconstructionCfg (flags, *, str previousExtension=None)

Function Documentation

◆ ActsTrackReconstructionCfg()

ComponentAccumulator python.ActsPatternRecognitionConfig.ActsTrackReconstructionCfg ( flags,
* ,
str previousExtension = None )

Definition at line 4 of file ActsPatternRecognitionConfig.py.

6 previousExtension: str = None) -> ComponentAccumulator:
7 acc = ComponentAccumulator()
8
9 # Seeding
10 from ActsConfig.ActsSeedingInDetConfig import ActsInDetSeedingCfg
11 acc.merge(ActsInDetSeedingCfg(flags))
12
13 # CKF
14 from ActsConfig.ActsTrackFindingInDetConfig import ActsInDetTrackFindingCfg
15 acc.merge(ActsInDetTrackFindingCfg(flags))
16
17 # Ambiguity Resolution
18 # !!! NOT VALIDAtED FOR INNER DETECTOR ACTS TRACKING !!!
19 if flags.Acts.doAmbiguityResolution:
20 from ActsConfig.ActsTrackFindingInDetConfig import ActsInDetAmbiguityResolutionCfg
21 acc.merge(ActsInDetAmbiguityResolutionCfg(flags))
22
23 # PRD association
24 from ActsConfig.ActsPrdAssociationConfig import ActsPrdAssociationAlgCfg
25 acc.merge(ActsPrdAssociationAlgCfg(flags,
26 name = f'{flags.Tracking.ActiveConfig.extension}PrdAssociationAlg',
27 InputTrackCollection = f'{flags.Tracking.ActiveConfig.extension}Tracks',
28 previousActsExtension = previousExtension))
29
30 # Truth
31 if flags.Tracking.doTruth:
32 # Run truth on CKF tracks
33 # This is only necessary if we are asking for these tracks to be persistified with the
34 # - flag: Tracking.ActiveConfig.storeSiSPSeededTracks set to True OR
35 # - flag: flags.Acts.doAmbiguityResolution set to False
36 if flags.Tracking.ActiveConfig.storeSiSPSeededTracks or not flags.Acts.doAmbiguityResolution:
37 from ActsConfig.ActsTruthConfig import ActsInDetTrackToTruthAssociationAlgCfg, ActsTrackFindingValidationAlgCfg
38 acts_tracks = f"{flags.Tracking.ActiveConfig.extension}Tracks"
39 acc.merge(ActsInDetTrackToTruthAssociationAlgCfg(flags,
40 name = f"{acts_tracks}TrackToTruthAssociationAlg",
41 ACTSTracksLocation = acts_tracks,
42 AssociationMapOut = f"{acts_tracks}ToTruthParticleAssociation"))
43
44 acc.merge(ActsTrackFindingValidationAlgCfg(flags,
45 name = f"{acts_tracks}TrackFindingValidationAlg",
46 TrackToTruthAssociationMap = f"{acts_tracks}ToTruthParticleAssociation"))
47
48 # Run truth on the tracks from ambiguity resolution. This is only necessary if
49 # - flag: flags.Acts.doAmbiguityResolution set to True
50 if flags.Acts.doAmbiguityResolution:
51 # !!! NOT VALIDATED YET FOR INNER DETECTOR ACTS TRACKING !!!
52 acts_tracks = f"{flags.Tracking.ActiveConfig.extension}ResolvedTracks"
53 from ActsConfig.ActsTruthConfig import ActsInDetTrackToTruthAssociationAlgCfg, ActsTrackFindingValidationAlgCfg
54 acc.merge(ActsInDetTrackToTruthAssociationAlgCfg(flags,
55 name = f"{acts_tracks}TrackToTruthAssociationAlg",
56 ACTSTracksLocation = acts_tracks,
57 AssociationMapOut = f"{acts_tracks}ToTruthParticleAssociation"))
58
59 acc.merge(ActsTrackFindingValidationAlgCfg(flags,
60 name = f"{acts_tracks}TrackFindingValidationAlg",
61 TrackToTruthAssociationMap = f"{acts_tracks}ToTruthParticleAssociation"))
62
63 return acc
64