|
ATLAS Offline Software
|
|
def | CombinedTrackingPassFlagSets (flags) |
|
def | ClusterSplitProbabilityContainerName (flags) |
|
def | InDetCosmicsTrackRecoPreProcessingCfg (flags) |
|
def | InDetPreProcessingCfg (flags) |
|
def | SiSubDetTrackRecoCfg (flags, detector="", extensions_list=None, ClusterSplitProbContainer="") |
|
def | TRTTrackRecoCfg (flags, extensions_list=None) |
|
def | TRTStandalonePassRecoCfg (flags, InputCombinedInDetTracks=None, InputExtendedInDetTracks=None, StatTrackCollections=None, StatTrackTruthCollections=None) |
|
def | StoreTrackSeparateContainerCfg (flags, TrackContainer="", ClusterSplitProbContainer="") |
|
def | BackTrackingRecoCfg (flags, InputCombinedInDetTracks=None, InputExtendedInDetTracks=None, StatTrackCollections=None, StatTrackTruthCollections=None, ClusterSplitProbContainer="") |
|
def | TrackRecoPassCfg (flags, extension="", doTrackingSiPattern=True, InputCombinedInDetTracks=None, InputExtendedInDetTracks=None, StatTrackCollections=None, StatTrackTruthCollections=None, ClusterSplitProbContainer="") |
|
def | TrackFinalCfg (flags, InputCombinedInDetTracks=None, StatTrackCollections=None, StatTrackTruthCollections=None) |
|
def | PseudoTrackFinalCfg (flags) |
|
def | ObserverTrackFinalCfg (flags) |
|
def | TrackSeedsFinalCfg (flags) |
|
def | SiSPSeededTracksFinalCfg (flags) |
|
def | InDetStatsCfg (flags, StatTrackCollections=None, StatTrackTruthCollections=None) |
|
def | ExtendedPRDInfoCfg (flags) |
|
def | InDetTrackRecoCfg (flags) |
| Main ID tracking config #####################. More...
|
|
def | TrackRecoConfigTest (flags=None) |
|
◆ BackTrackingRecoCfg()
def python.TrackRecoConfig.BackTrackingRecoCfg |
( |
|
flags, |
|
|
|
InputCombinedInDetTracks = None , |
|
|
|
InputExtendedInDetTracks = None , |
|
|
|
StatTrackCollections = None , |
|
|
|
StatTrackTruthCollections = None , |
|
|
|
ClusterSplitProbContainer = "" |
|
) |
| |
Definition at line 366 of file TrackRecoConfig.py.
367 InputCombinedInDetTracks=None,
368 InputExtendedInDetTracks=None,
369 StatTrackCollections=None,
370 StatTrackTruthCollections=None,
371 ClusterSplitProbContainer=""):
374 if InputCombinedInDetTracks
is None:
375 InputCombinedInDetTracks = []
376 if InputExtendedInDetTracks
is None:
377 InputExtendedInDetTracks = []
378 if StatTrackCollections
is None:
379 StatTrackCollections = []
380 if StatTrackTruthCollections
is None:
381 StatTrackTruthCollections = []
383 from InDetConfig.BackTrackingConfig
import BackTrackingCfg
386 InputCollections=InputCombinedInDetTracks,
387 ClusterSplitProbContainer=ClusterSplitProbContainer))
389 ClusterSplitProbContainer = (
390 "InDetTRT_SeededAmbiguityProcessorSplitProb" +
391 flags.Tracking.ActiveConfig.extension)
392 TRTSeededTracks =
"TRTSeededTracks"
393 ResolvedTRTSeededTracks =
"ResolvedTRTSeededTracks"
394 InputCombinedInDetTracks += [ResolvedTRTSeededTracks]
395 InputExtendedInDetTracks += [ResolvedTRTSeededTracks]
396 StatTrackCollections += [TRTSeededTracks,
397 ResolvedTRTSeededTracks]
398 StatTrackTruthCollections += [TRTSeededTracks+
"TruthCollection",
399 ResolvedTRTSeededTracks+
"TruthCollection"]
401 return result, ClusterSplitProbContainer
◆ ClusterSplitProbabilityContainerName()
def python.TrackRecoConfig.ClusterSplitProbabilityContainerName |
( |
|
flags | ) |
|
Definition at line 86 of file TrackRecoConfig.py.
87 if flags.Detector.GeometryITk:
88 from InDetConfig.ITkTrackRecoConfig
import (
89 ITkClusterSplitProbabilityContainerName)
93 extension = flags_set[-1].Tracking.ActiveConfig.extension
96 if extension ==
"TRTStandalone":
97 extension = flags_set[-2].Tracking.ActiveConfig.extension
99 ClusterSplitProbContainer =
"InDetAmbiguityProcessorSplitProb" + extension
102 if len(flags_set) == 1
and flags.Tracking.doBackTracking:
103 ClusterSplitProbContainer = (
104 "InDetTRT_SeededAmbiguityProcessorSplitProb" + extension)
105 return ClusterSplitProbContainer
◆ CombinedTrackingPassFlagSets()
def python.TrackRecoConfig.CombinedTrackingPassFlagSets |
( |
|
flags | ) |
|
Definition at line 10 of file TrackRecoConfig.py.
19 flags = flags.cloneAndReplace(
20 "Tracking.ActiveConfig",
21 f
"Tracking.{flags.Tracking.PrimaryPassConfig.value}Pass",
28 if flags.Tracking.doLargeD0
or flags.Tracking.doLowPtLargeD0:
30 if flags.Tracking.doLowPtLargeD0:
31 flagsLRT = flags.cloneAndReplace(
"Tracking.ActiveConfig",
32 "Tracking.LowPtLargeD0Pass")
33 elif flags.Tracking.doLargeD0:
34 flagsLRT = flags.cloneAndReplace(
"Tracking.ActiveConfig",
35 "Tracking.R3LargeD0Pass")
37 flags_set += [flagsLRT]
40 if flags.Tracking.doLowPtRoI:
41 flagsLowPtRoI = flags.cloneAndReplace(
"Tracking.ActiveConfig",
42 "Tracking.LowPtRoIPass")
43 flags_set += [flagsLowPtRoI]
46 if flags.Tracking.doLowPt:
47 flagsLowPt = flags.cloneAndReplace(
"Tracking.ActiveConfig",
49 flags_set += [flagsLowPt]
52 if flags.Tracking.doVeryLowPt:
53 flagsVeryLowPt = flags.cloneAndReplace(
"Tracking.ActiveConfig",
54 "Tracking.VeryLowPtPass")
55 flags_set += [flagsVeryLowPt]
58 if flags.Tracking.doTRTStandalone:
59 flagsTRTStandalone = flags.cloneAndReplace(
"Tracking.ActiveConfig",
60 "Tracking.TRTStandalonePass")
61 flags_set += [flagsTRTStandalone]
64 if flags.Tracking.doForwardTracks:
65 flagsForward = flags.cloneAndReplace(
"Tracking.ActiveConfig",
66 "Tracking.ForwardPass")
67 flags_set += [flagsForward]
70 if flags.Tracking.doTrackSegmentsDisappearing:
71 flagsDisappearing = flags.cloneAndReplace(
"Tracking.ActiveConfig",
72 "Tracking.DisappearingPass")
73 flags_set += [flagsDisappearing]
76 if flags.Tracking.doBeamGas:
77 flagsBeamGas = flags.cloneAndReplace(
"Tracking.ActiveConfig",
78 "Tracking.BeamGasPass")
79 flags_set += [flagsBeamGas]
81 _flags_set = flags_set
◆ ExtendedPRDInfoCfg()
def python.TrackRecoConfig.ExtendedPRDInfoCfg |
( |
|
flags | ) |
|
Definition at line 702 of file TrackRecoConfig.py.
705 if (flags.Tracking.doTIDE_AmbiTrackMonitoring
or
706 flags.Tracking.doPseudoTracking):
707 from InDetConfig.InDetPrepRawDataToxAODConfig
import (
708 InDetPixelPrepDataToxAOD_ExtraTruthCfg
as PixelPrepDataToxAODCfg,
709 InDetSCT_PrepDataToxAOD_ExtraTruthCfg
as SCT_PrepDataToxAODCfg,
710 InDetTRT_PrepDataToxAOD_ExtraTruthCfg
as TRT_PrepDataToxAODCfg)
712 from InDetConfig.InDetPrepRawDataToxAODConfig
import (
713 InDetPixelPrepDataToxAODCfg
as PixelPrepDataToxAODCfg,
714 InDetSCT_PrepDataToxAODCfg
as SCT_PrepDataToxAODCfg,
715 InDetTRT_PrepDataToxAODCfg
as TRT_PrepDataToxAODCfg)
717 if flags.Tracking.writeExtendedSi_PRDInfo:
718 result.merge(PixelPrepDataToxAODCfg(
720 ClusterSplitProbabilityName=(
722 result.merge(SCT_PrepDataToxAODCfg(flags))
724 if flags.Tracking.writeExtendedTRT_PRDInfo:
725 result.merge(TRT_PrepDataToxAODCfg(flags))
727 from DerivationFrameworkInDet.InDetToolsConfig
import TSOS_CommonKernelCfg
732 listOfExtensionsRequesting = [
733 e
for e
in _extensions_list
if (e ==
'')
734 or (flags.Tracking[f
"{e}Pass"].storeTrackSeeds)
735 or (flags.Tracking[f
"{e}Pass"].storeSiSPSeededTracks)
736 or (flags.Tracking[f
"{e}Pass"].storeSeparateContainer) ]
738 flags, listOfExtensions = listOfExtensionsRequesting))
740 if flags.Tracking.doTIDE_AmbiTrackMonitoring:
741 from DerivationFrameworkInDet.InDetToolsConfig
import (
742 ObserverTSOS_CommonKernelCfg)
745 if flags.Tracking.doPseudoTracking:
746 from DerivationFrameworkInDet.InDetToolsConfig
import (
747 PseudoTSOS_CommonKernelCfg)
750 if flags.Tracking.doStoreTrackSeeds:
751 from DerivationFrameworkInDet.InDetToolsConfig
import (
752 SiSPSeedsTSOS_CommonKernelCfg)
754 listOfExtensionsRequesting = [
755 e
for e
in _extensions_list
if (e ==
'')
or
756 flags.Tracking[f
"{e}Pass"].storeTrackSeeds ]
758 flags, listOfExtensions = listOfExtensionsRequesting))
760 if flags.Tracking.doStoreSiSPSeededTracks:
761 from DerivationFrameworkInDet.InDetToolsConfig
import (
762 SiSPTSOS_CommonKernelCfg)
764 listOfExtensionsRequesting = [
765 e
for e
in _extensions_list
if (e ==
'')
or
766 flags.Tracking[f
"{e}Pass"].storeSiSPSeededTracks ]
768 flags, listOfExtensions = listOfExtensionsRequesting))
772 listOfExtensionsRequesting = [
773 e
for e
in _extensions_list
if (e ==
'')
or
774 (flags.Tracking[f
"{e}Pass"].storeSiSPSeededTracks
and
775 flags.Tracking[f
"{e}Pass"].storeSeparateContainer) ]
776 from InDetPhysValMonitoring.InDetPhysValDecorationConfig
import (
777 InDetPhysHitDecoratorAlgCfg)
778 for extension
in listOfExtensionsRequesting:
781 name=f
"InDetPhysHit{extension}DecoratorAlg",
782 TrackParticleContainerName=f
"InDet{extension}TrackParticles"))
◆ InDetCosmicsTrackRecoPreProcessingCfg()
def python.TrackRecoConfig.InDetCosmicsTrackRecoPreProcessingCfg |
( |
|
flags | ) |
|
Definition at line 110 of file TrackRecoConfig.py.
113 from InDetConfig.TrackingSiPatternConfig
import TrackingSiPatternCfg
117 ResolvedTrackCollectionKey=
"ResolvedTracks",
118 SiSPSeededTrackCollectionKey=
"SiSPSeededTracks"))
120 if flags.Detector.EnableTRT:
121 from InDetConfig.TRTExtensionConfig
import NewTrackingTRTExtensionPhaseCfg
124 SiTrackCollection=
"ResolvedTracks",
125 ExtendedTrackCollection=
"ExtendedTracksPhase",
126 ExtendedTracksMap=
"ExtendedTracksMapPhase"))
128 from InDetConfig.TRTSegmentFindingConfig
import TRTSegmentFinding_Phase_Cfg
131 from InDetConfig.InDetTrackPRD_AssociationConfig
import (
132 InDetTrackPRD_AssociationCfg)
134 flags, name=
'InDetTRTonly_TrackPRD_AssociationPhase',
135 AssociationMapName=
'InDetTRTonly_PRDtoTrackMapPhase',
138 from InDetConfig.TRT_SegmentsToTrackConfig
import (
139 TRT_Cosmics_SegmentsToTrackCfg)
141 flags, name=
'InDetTRT_Cosmics_SegmentsToTrack_Phase',
142 InputSegmentsCollection=
"TRTSegments_Phase",
143 OutputTrackCollection=
"TRT_Tracks_Phase"))
145 from InDetConfig.InDetCosmicsEventPhaseConfig
import (
146 InDetCosmicsEventPhaseCfg)
149 InputTracksNames=[
"TRT_Tracks_Phase"]))
151 from InDetConfig.InDetPrepRawDataFormationConfig
import (
152 InDetTRT_Phase_RIO_MakerCfg)
◆ InDetPreProcessingCfg()
def python.TrackRecoConfig.InDetPreProcessingCfg |
( |
|
flags | ) |
|
Definition at line 158 of file TrackRecoConfig.py.
162 if flags.Input.Format
is Format.BS:
163 if flags.Detector.EnablePixel:
164 from PixelRawDataByteStreamCnv.PixelRawDataByteStreamCnvConfig
import (
165 PixelRawDataProviderAlgCfg)
168 if flags.Detector.EnableSCT:
169 from SCT_RawDataByteStreamCnv.SCT_RawDataByteStreamCnvConfig
import (
170 SCTRawDataProviderCfg, SCTEventFlagWriterCfg)
174 if flags.Detector.EnableTRT:
175 from TRT_RawDataByteStreamCnv.TRT_RawDataByteStreamCnvConfig
import (
176 TRTRawDataProviderCfg)
179 if flags.Detector.EnablePixel
or flags.Detector.EnableSCT:
180 from InDetConfig.SiliconPreProcessing
import InDetRecPreProcessingSiliconCfg
182 if flags.Detector.EnableTRT:
183 from InDetConfig.TRTPreProcessing
import TRTPreProcessingCfg
◆ InDetStatsCfg()
def python.TrackRecoConfig.InDetStatsCfg |
( |
|
flags, |
|
|
|
StatTrackCollections = None , |
|
|
|
StatTrackTruthCollections = None |
|
) |
| |
Definition at line 680 of file TrackRecoConfig.py.
681 StatTrackTruthCollections=None):
684 from InDetConfig.InDetRecStatisticsConfig
import (
685 InDetRecStatisticsAlgCfg)
688 TrackCollectionKeys=StatTrackCollections,
689 TrackTruthCollectionKeys=(
690 StatTrackTruthCollections
if flags.Tracking.doTruth
else [])))
692 if flags.Tracking.doTruth:
693 from InDetConfig.InDetTrackClusterAssValidationConfig
import (
694 InDetTrackClusterAssValidationCfg)
697 TracksLocation=StatTrackCollections))
◆ InDetTrackRecoCfg()
def python.TrackRecoConfig.InDetTrackRecoCfg |
( |
|
flags | ) |
|
Main ID tracking config #####################.
Definition at line 791 of file TrackRecoConfig.py.
794 if flags.Detector.GeometryITk:
795 from InDetConfig.ITkTrackRecoConfig
import ITkTrackRecoCfg
798 """Configures complete ID tracking """
802 ClusterSplitProbContainer =
''
811 if flags.Tracking.doTrackSegmentsPixel:
812 acc, ClusterSplitProbContainer = (
814 extensions_list=_extensions_list,
815 ClusterSplitProbContainer=ClusterSplitProbContainer))
819 if flags.Tracking.doTrackSegmentsSCT:
820 acc, ClusterSplitProbContainer = (
822 extensions_list=_extensions_list,
823 ClusterSplitProbContainer=ClusterSplitProbContainer))
827 if flags.Tracking.doTrackSegmentsTRT:
833 if flags.Beam.Type
is BeamType.Cosmics:
834 flagsCosmics = flags_set[0]
844 InputCombinedInDetTracks = []
846 InputExtendedInDetTracks = []
847 ClusterSplitProbContainer =
""
848 StatTrackCollections = []
849 StatTrackTruthCollections = []
854 for current_flags
in flags_set:
858 "" if isPrimaryPass
else
859 current_flags.Tracking.ActiveConfig.extension)
860 _extensions_list.append(extension)
866 if flags.Tracking.doTRTStandalone
and extension ==
"TRTStandalone":
869 InputCombinedInDetTracks=InputCombinedInDetTracks,
870 InputExtendedInDetTracks=InputExtendedInDetTracks,
871 StatTrackCollections=StatTrackCollections,
872 StatTrackTruthCollections=StatTrackTruthCollections))
881 current_flags, extension=extension,
882 doTrackingSiPattern=not(isPrimaryPass
and
883 flags.Beam.Type
is BeamType.Cosmics),
884 InputCombinedInDetTracks=InputCombinedInDetTracks,
885 InputExtendedInDetTracks=InputExtendedInDetTracks,
886 StatTrackCollections=StatTrackCollections,
887 StatTrackTruthCollections=StatTrackTruthCollections,
888 ClusterSplitProbContainer=ClusterSplitProbContainer)
901 if flags.Tracking.doTRTSegments:
902 from InDetConfig.TRTSegmentFindingConfig
import (
903 TRTSegmentFindingCfg)
906 InputCollections=InputCombinedInDetTracks))
912 if flags.Tracking.doBackTracking:
915 InputCombinedInDetTracks=InputCombinedInDetTracks,
916 InputExtendedInDetTracks=InputExtendedInDetTracks,
917 StatTrackCollections=StatTrackCollections,
918 StatTrackTruthCollections=StatTrackTruthCollections,
919 ClusterSplitProbContainer=ClusterSplitProbContainer)
926 if (flags.Tracking.doTruth
and
927 (flags.Tracking.doPseudoTracking
or
928 flags.Tracking.doIdealPseudoTracking)):
930 from TrkConfig.TrkTruthTrackAlgsConfig
import TruthTrackingCfg
933 isPrimaryPass =
False
941 InputCombinedInDetTracks=InputCombinedInDetTracks,
942 StatTrackCollections=StatTrackCollections,
943 StatTrackTruthCollections=StatTrackTruthCollections))
945 if (flags.Tracking.doPseudoTracking
or
946 flags.Tracking.doIdealPseudoTracking):
949 if flags.Tracking.doTIDE_AmbiTrackMonitoring:
952 if flags.Tracking.doStoreTrackSeeds:
955 if flags.Tracking.doStoreSiSPSeededTracks:
962 if flags.Tracking.doVertexFinding:
963 from InDetConfig.InDetPriVxFinderConfig
import primaryVertexFindingCfg
966 if flags.Tracking.doStats:
969 StatTrackCollections=StatTrackCollections,
970 StatTrackTruthCollections=StatTrackTruthCollections))
976 if flags.Tracking.doV0Finder:
977 from InDetConfig.InDetV0FinderConfig
import InDetV0FinderCfg
980 if (flags.Tracking.writeExtendedSi_PRDInfo
or
981 flags.Tracking.writeExtendedTRT_PRDInfo):
985 from InDetConfig.InDetTrackOutputConfig
import InDetTrackRecoOutputCfg
◆ ObserverTrackFinalCfg()
def python.TrackRecoConfig.ObserverTrackFinalCfg |
( |
|
flags | ) |
|
Definition at line 595 of file TrackRecoConfig.py.
598 TrackContainer =
"ObservedTracksCollection"
599 if flags.Tracking.doTruth:
600 from InDetConfig.TrackTruthConfig
import InDetTrackTruthCfg
603 Tracks=TrackContainer,
604 DetailedTruth=TrackContainer +
"DetailedTruth",
605 TracksTruth=TrackContainer +
"TruthCollection"))
607 from xAODTrackingCnv.xAODTrackingCnvConfig
import (
608 ObserverTrackParticleCnvAlgCfg)
611 AssociationMapName = (
612 "PRDtoTrackMapMerge_CombinedInDetTracks")))
◆ PseudoTrackFinalCfg()
def python.TrackRecoConfig.PseudoTrackFinalCfg |
( |
|
flags | ) |
|
Definition at line 570 of file TrackRecoConfig.py.
573 TrackContainer =
"InDetPseudoTracks"
574 if flags.Tracking.doTruth:
575 from InDetConfig.TrackTruthConfig
import InDetTrackTruthCfg
578 Tracks=TrackContainer,
579 DetailedTruth=TrackContainer +
"DetailedTruth",
580 TracksTruth=TrackContainer +
"TruthCollection"))
582 from xAODTrackingCnv.xAODTrackingCnvConfig
import TrackParticleCnvAlgCfg
585 name=
"PseudoTrackParticleCnvAlg",
586 TrackContainerName=TrackContainer,
587 xAODTrackParticlesFromTracksContainerName=(
588 "InDetPseudoTrackParticles"),
590 "PRDtoTrackMapMerge_CombinedInDetTracks")))
◆ SiSPSeededTracksFinalCfg()
def python.TrackRecoConfig.SiSPSeededTracksFinalCfg |
( |
|
flags | ) |
|
Definition at line 649 of file TrackRecoConfig.py.
652 primaryPassExtension = flags.Tracking[f
"{flags.Tracking.PrimaryPassConfig.value}Pass"].extension
656 listOfExtensionsRequesting = [
657 e
for e
in _extensions_list
658 if (e==
'' or flags.Tracking[f
"{e}Pass"].storeSiSPSeededTracks) ]
660 for extension
in listOfExtensionsRequesting:
661 AssociationMapNameKey=
"PRDtoTrackMapMerge_CombinedInDetTracks"
662 if extension==
'Disappearing':
663 AssociationMapNameKey =
"PRDtoTrackMapMerge_DisappearingTracks"
664 elif not (extension == primaryPassExtension):
665 AssociationMapNameKey = f
"InDetPRDtoTrackMap{extension}"
667 from xAODTrackingCnv.xAODTrackingCnvConfig
import (
668 TrackParticleCnvAlgNoPIDCfg)
671 name = f
"SiSPSeededTracks{extension}CnvAlg",
672 TrackContainerName = f
"SiSPSeeded{extension}Tracks",
673 xAODTrackParticlesFromTracksContainerName=(
674 f
"SiSPSeededTracks{extension}TrackParticles"),
675 AssociationMapName=AssociationMapNameKey))
◆ SiSubDetTrackRecoCfg()
def python.TrackRecoConfig.SiSubDetTrackRecoCfg |
( |
|
flags, |
|
|
|
detector = "" , |
|
|
|
extensions_list = None , |
|
|
|
ClusterSplitProbContainer = "" |
|
) |
| |
Definition at line 190 of file TrackRecoConfig.py.
191 extensions_list=None,
192 ClusterSplitProbContainer=""):
195 if extensions_list
is None:
198 flagsDet = flags.cloneAndReplace(
"Tracking.ActiveConfig",
199 f
"Tracking.{detector}Pass")
200 TrackContainer = f
"Resolved{detector}Tracks"
201 extensions_list.append(flagsDet.Tracking.ActiveConfig.extension)
204 from InDetConfig.TrackingSiPatternConfig
import TrackingSiPatternCfg
208 ResolvedTrackCollectionKey=TrackContainer,
209 SiSPSeededTrackCollectionKey=f
"SiSPSeeded{detector}Tracks",
210 ClusterSplitProbContainer=ClusterSplitProbContainer))
212 ClusterSplitProbContainer = (
213 "InDetAmbiguityProcessorSplitProb" +
214 flagsDet.Tracking.ActiveConfig.extension)
216 if flags.Tracking.doTruth:
217 from InDetConfig.TrackTruthConfig
import InDetTrackTruthCfg
220 Tracks=TrackContainer,
221 DetailedTruth=TrackContainer+
"DetailedTruth",
222 TracksTruth=TrackContainer+
"TruthCollection"))
224 from xAODTrackingCnv.xAODTrackingCnvConfig
import (
225 TrackParticleCnvAlgPIDCheckCfg)
228 name=TrackContainer+
"CnvAlg",
229 TrackContainerName=TrackContainer,
230 xAODTrackParticlesFromTracksContainerName=(
231 f
"InDet{detector}TrackParticles")))
233 return result, ClusterSplitProbContainer
◆ StoreTrackSeparateContainerCfg()
def python.TrackRecoConfig.StoreTrackSeparateContainerCfg |
( |
|
flags, |
|
|
|
TrackContainer = "" , |
|
|
|
ClusterSplitProbContainer = "" |
|
) |
| |
Definition at line 296 of file TrackRecoConfig.py.
297 ClusterSplitProbContainer=""):
299 if hasattr(flags.TrackOverlay,
"ActiveConfig"):
300 doTrackOverlay = getattr(flags.TrackOverlay.ActiveConfig,
"doTrackOverlay",
None)
302 doTrackOverlay = flags.Overlay.doTrackOverlay
309 AssociationMapName =
""
310 extension = flags.Tracking.ActiveConfig.extension
312 if extension ==
"Disappearing" or doTrackOverlay:
313 if extension ==
"Disappearing":
314 InputTracks = [TrackContainer]
316 InputTracks += [flags.Overlay.BkgPrefix +
317 extension +
"Tracks"]
318 TrackContainer = extension+
"Tracks"
319 AssociationMapName =
"PRDtoTrackMapMerge_" + TrackContainer
320 MergerOutputTracks = TrackContainer
323 InputTracks = [flags.Overlay.SigPrefix+TrackContainer,
324 flags.Overlay.BkgPrefix+TrackContainer]
325 AssociationMapName = (
"PRDtoTrackMapMerge_Resolved" +
326 extension +
"Tracks")
327 MergerOutputTracks = TrackContainer
329 from TrkConfig.TrkTrackCollectionMergerConfig
import (
330 TrackCollectionMergerAlgCfg)
333 name =
"TrackCollectionMergerAlgCfg"+extension,
334 InputCombinedTracks=InputTracks,
335 OutputCombinedTracks=MergerOutputTracks,
336 AssociationMapName=AssociationMapName))
338 if flags.Tracking.doTruth:
339 from InDetConfig.TrackTruthConfig
import InDetTrackTruthCfg
342 Tracks=TrackContainer,
343 DetailedTruth=TrackContainer+
"DetailedTruth",
344 TracksTruth=TrackContainer+
"TruthCollection"))
348 xAODTrackParticlesName = (
349 "InDetLargeD0TrackParticles" if "LargeD0" in extension
else
350 "InDet" + extension +
"TrackParticles")
352 from xAODTrackingCnv.xAODTrackingCnvConfig
import (
353 TrackParticleCnvAlgPIDCheckCfg)
356 name = extension +
"TrackParticleCnvAlg",
357 TrackContainerName=TrackContainer,
358 xAODTrackParticlesFromTracksContainerName=xAODTrackParticlesName,
359 ClusterSplitProbabilityName=ClusterSplitProbContainer,
360 AssociationMapName=AssociationMapName))
362 return result, TrackContainer
◆ TrackFinalCfg()
def python.TrackRecoConfig.TrackFinalCfg |
( |
|
flags, |
|
|
|
InputCombinedInDetTracks = None , |
|
|
|
StatTrackCollections = None , |
|
|
|
StatTrackTruthCollections = None |
|
) |
| |
Definition at line 511 of file TrackRecoConfig.py.
512 InputCombinedInDetTracks=None,
513 StatTrackCollections=None,
514 StatTrackTruthCollections=None):
516 if hasattr(flags.TrackOverlay,
"ActiveConfig"):
517 doTrackOverlay = getattr(flags.TrackOverlay.ActiveConfig,
"doTrackOverlay",
None)
519 doTrackOverlay = flags.Overlay.doTrackOverlay
521 if InputCombinedInDetTracks
is None:
522 InputCombinedInDetTracks = []
523 if StatTrackCollections
is None:
524 StatTrackCollections = []
525 if StatTrackTruthCollections
is None:
526 StatTrackTruthCollections = []
529 InputCombinedInDetTracks += [flags.Overlay.BkgPrefix +
530 "CombinedInDetTracks"]
532 TrackContainer =
"CombinedInDetTracks"
534 from TrkConfig.TrkTrackCollectionMergerConfig
import (
535 TrackCollectionMergerAlgCfg)
538 InputCombinedTracks=InputCombinedInDetTracks,
539 OutputCombinedTracks=TrackContainer,
540 AssociationMapName=f
"PRDtoTrackMapMerge_{TrackContainer}"))
542 if flags.Tracking.doTruth:
543 from InDetConfig.TrackTruthConfig
import InDetTrackTruthCfg
546 Tracks=TrackContainer,
547 DetailedTruth=f
"{TrackContainer}DetailedTruth",
548 TracksTruth=f
"{TrackContainer}TruthCollection"))
550 StatTrackCollections += [TrackContainer]
551 StatTrackTruthCollections += [f
"{TrackContainer}TruthCollection"]
553 if flags.Tracking.doSlimming:
554 from TrkConfig.TrkTrackSlimmerConfig
import TrackSlimmerCfg
557 TrackLocation=[TrackContainer]))
559 if flags.Tracking.perigeeExpression ==
"BeamLine":
560 from xAODTrackingCnv.xAODTrackingCnvConfig
import TrackParticleCnvAlgCfg
565 AssociationMapName=f
"PRDtoTrackMapMerge_{TrackContainer}"))
◆ TrackRecoConfigTest()
def python.TrackRecoConfig.TrackRecoConfigTest |
( |
|
flags = None | ) |
|
Definition at line 992 of file TrackRecoConfig.py.
997 from AthenaConfiguration.AllConfigFlags
import initConfigFlags
1001 from InDetConfig.ConfigurationHelpers
import OnlyTrackingPreInclude
1004 from AthenaConfiguration.TestDefaults
import defaultTestFiles, defaultConditionsTags
1005 flags.Input.Files = defaultTestFiles.RDO_RUN3
1006 flags.IOVDb.GlobalTag = defaultConditionsTags.RUN3_MC
1007 flags.Exec.MaxEvents = 1
1011 from AthenaConfiguration.MainServicesConfig
import MainServicesCfg
1014 if flags.Input.Format
is not Format.BS:
1015 from AthenaPoolCnvSvc.PoolReadConfig
import PoolReadCfg
1018 if flags.Detector.EnableCalo:
1019 if flags.Input.Format
is Format.BS:
1020 from CaloRec.CaloRecoConfig
import CaloRecoCfg
1023 from CaloRec.CaloTopoClusterConfig
import CaloTopoClusterCfg
1026 if flags.Input.Format
is not Format.BS:
1028 if "PixelRDOs" in flags.Input.Collections:
1029 if "EventInfo" not in flags.Input.Collections:
1030 from xAODEventInfoCnv.xAODEventInfoCnvConfig
import EventInfoCnvAlgCfg
1033 if flags.Input.isMC:
1034 from xAODTruthCnv.xAODTruthCnvConfig
import GEN_AOD2xAODCfg
1037 if flags.Tracking.doTruth :
1038 from xAODTruthCnv.RedoTruthLinksConfig
import RedoTruthLinksAlgCfg
1045 top_acc.foreach_component(
"AthEventSeq/*").OutputLevel = DEBUG
1046 top_acc.printConfig(withDetails=
True, summariseProps=
True)
1047 top_acc.store(
open(
"TrackRecoConfig.pkl",
"wb"))
1050 if "--norun" not in sys.argv:
◆ TrackRecoPassCfg()
def python.TrackRecoConfig.TrackRecoPassCfg |
( |
|
flags, |
|
|
|
extension = "" , |
|
|
|
doTrackingSiPattern = True , |
|
|
|
InputCombinedInDetTracks = None , |
|
|
|
InputExtendedInDetTracks = None , |
|
|
|
StatTrackCollections = None , |
|
|
|
StatTrackTruthCollections = None , |
|
|
|
ClusterSplitProbContainer = "" |
|
) |
| |
Definition at line 405 of file TrackRecoConfig.py.
406 doTrackingSiPattern=True,
407 InputCombinedInDetTracks=None,
408 InputExtendedInDetTracks=None,
409 StatTrackCollections=None,
410 StatTrackTruthCollections=None,
411 ClusterSplitProbContainer=""):
413 if hasattr(flags.TrackOverlay,
"ActiveConfig"):
414 doTrackOverlay = getattr(flags.TrackOverlay.ActiveConfig,
"doTrackOverlay",
None)
416 doTrackOverlay = flags.Overlay.doTrackOverlay
417 if InputCombinedInDetTracks
is None:
418 InputCombinedInDetTracks = []
419 if InputExtendedInDetTracks
is None:
420 InputExtendedInDetTracks = []
421 if StatTrackCollections
is None:
422 StatTrackCollections = []
423 if StatTrackTruthCollections
is None:
424 StatTrackTruthCollections = []
426 ResolvedTracks =
"Resolved" + extension +
"Tracks"
430 if (doTrackOverlay
and
431 flags.Tracking.ActiveConfig.storeSeparateContainer
and
432 not flags.Tracking.ActiveConfig.useTRTExtension):
433 ResolvedTracks = flags.Overlay.SigPrefix + ResolvedTracks
436 if "LargeD0" in extension:
437 ResolvedTracks =
"ResolvedLargeD0Tracks"
443 if doTrackingSiPattern:
444 SiSPSeededTracks =
"SiSPSeeded" + extension +
"Tracks"
445 from InDetConfig.TrackingSiPatternConfig
import TrackingSiPatternCfg
448 InputCollections=InputExtendedInDetTracks,
449 ResolvedTrackCollectionKey=ResolvedTracks,
450 SiSPSeededTrackCollectionKey=SiSPSeededTracks,
451 ClusterSplitProbContainer=ClusterSplitProbContainer))
452 StatTrackCollections += [SiSPSeededTracks, ResolvedTracks]
453 StatTrackTruthCollections += [SiSPSeededTracks+
"TruthCollection",
454 ResolvedTracks+
"TruthCollection"]
456 TrackContainer = ResolvedTracks
457 if (doTrackOverlay
and
458 flags.Tracking.ActiveConfig.storeSeparateContainer):
459 TrackContainer =
"Resolved" + extension +
"Tracks"
465 if flags.Tracking.ActiveConfig.useTRTExtension:
466 ExtendedTracks =
"Extended" + extension +
"Tracks"
468 if extension ==
"Disappearing":
469 ExtendedTracks =
"ExtendedTracksDisappearing"
470 elif "LargeD0" in extension:
471 ExtendedTracks =
"ExtendedLargeD0Tracks"
473 ExtendedTracks = flags.Overlay.SigPrefix+
"ExtendedLargeD0Tracks"
474 ExtendedTracksMap =
"ExtendedTracksMap" + extension
476 from InDetConfig.TRTExtensionConfig
import NewTrackingTRTExtensionCfg
479 SiTrackCollection=ResolvedTracks,
480 ExtendedTrackCollection=ExtendedTracks,
481 ExtendedTracksMap=ExtendedTracksMap))
483 TrackContainer = ExtendedTracks
484 if doTrackOverlay
and "LargeD0" in extension:
485 TrackContainer =
"ExtendedLargeD0Tracks"
486 StatTrackCollections += [ExtendedTracks]
487 StatTrackTruthCollections += [ExtendedTracks+
"TruthCollection"]
493 if flags.Tracking.ActiveConfig.storeSeparateContainer:
496 TrackContainer=TrackContainer,
497 ClusterSplitProbContainer=ClusterSplitProbContainer)
501 ClusterSplitProbContainer = (
502 "InDetAmbiguityProcessorSplitProb" +
503 flags.Tracking.ActiveConfig.extension)
504 InputCombinedInDetTracks += [TrackContainer]
506 InputExtendedInDetTracks += [TrackContainer]
508 return result, ClusterSplitProbContainer
◆ TrackSeedsFinalCfg()
def python.TrackRecoConfig.TrackSeedsFinalCfg |
( |
|
flags | ) |
|
Definition at line 617 of file TrackRecoConfig.py.
622 listOfExtensionsRequesting = [
623 e
for e
in _extensions_list
624 if (e ==
'' or flags.Tracking[f
"{e}Pass"].storeTrackSeeds) ]
626 for extension
in listOfExtensionsRequesting:
627 TrackContainer =
"SiSPSeedSegments"+extension
629 if flags.Tracking.doTruth:
630 from InDetConfig.TrackTruthConfig
import InDetTrackTruthCfg
633 Tracks=TrackContainer,
634 DetailedTruth=f
"{TrackContainer}DetailedTruth",
635 TracksTruth=f
"{TrackContainer}TruthCollection"))
637 from xAODTrackingCnv.xAODTrackingCnvConfig
import (
638 TrackParticleCnvAlgNoPIDCfg)
641 name=f
"{TrackContainer}CnvAlg",
642 TrackContainerName=TrackContainer,
643 xAODTrackParticlesFromTracksContainerName=(
644 f
"{TrackContainer}TrackParticles")))
◆ TRTStandalonePassRecoCfg()
def python.TrackRecoConfig.TRTStandalonePassRecoCfg |
( |
|
flags, |
|
|
|
InputCombinedInDetTracks = None , |
|
|
|
InputExtendedInDetTracks = None , |
|
|
|
StatTrackCollections = None , |
|
|
|
StatTrackTruthCollections = None |
|
) |
| |
Definition at line 257 of file TrackRecoConfig.py.
258 InputCombinedInDetTracks=None,
259 InputExtendedInDetTracks=None,
260 StatTrackCollections=None,
261 StatTrackTruthCollections=None):
264 if InputCombinedInDetTracks
is None:
265 InputCombinedInDetTracks = []
266 if InputExtendedInDetTracks
is None:
267 InputExtendedInDetTracks = []
268 if StatTrackCollections
is None:
269 StatTrackCollections = []
270 if StatTrackTruthCollections
is None:
271 StatTrackTruthCollections = []
273 from InDetConfig.TRTStandaloneConfig
import TRTStandaloneCfg
275 InputCollections=InputCombinedInDetTracks))
277 TRTTrackContainer =
"TRTStandaloneTracks"
278 InputCombinedInDetTracks += [TRTTrackContainer]
279 InputExtendedInDetTracks += [TRTTrackContainer]
280 StatTrackCollections += [TRTTrackContainer]
281 StatTrackTruthCollections += [TRTTrackContainer+
"TruthCollection"]
283 if flags.Tracking.doTrackSegmentsTRT:
284 from xAODTrackingCnv.xAODTrackingCnvConfig
import (
285 TrackParticleCnvAlgNoPIDCfg)
287 flags, TRTTrackContainer+
"CnvAlg",
288 TrackContainerName=TRTTrackContainer,
289 xAODTrackParticlesFromTracksContainerName=(
290 "InDetTRTTrackParticles")))
◆ TRTTrackRecoCfg()
def python.TrackRecoConfig.TRTTrackRecoCfg |
( |
|
flags, |
|
|
|
extensions_list = None |
|
) |
| |
Definition at line 236 of file TrackRecoConfig.py.
239 if extensions_list
is None:
242 flagsTRT = flags.cloneAndReplace(
"Tracking.ActiveConfig",
244 extensions_list.append(flagsTRT.Tracking.ActiveConfig.extension)
247 from InDetConfig.TRTSegmentFindingConfig
import (
248 TRTSegmentFinding_TrackSegments_Cfg)
251 from InDetConfig.TRTStandaloneConfig
import TRT_TrackSegment_Cfg
◆ _extensions_list
list python.TrackRecoConfig._extensions_list = [] |
|
private |
◆ _flags_set
list python.TrackRecoConfig._flags_set = [] |
|
private |
def PixelRawDataProviderAlgCfg(flags, RDOKey="PixelRDOs", **kwargs)
def TRTRawDataProviderCfg(flags, name="TRTRawDataProvider", **kwargs)
def TRTPreProcessingCfg(flags)
def SCTRawDataProviderCfg(flags, prefix="InDet", suffix="", **kwargs)
ComponentAccumulator ITkTrackRecoCfg(flags)
Main ITk tracking config #####################.
def CaloRecoCfg(flags, clustersname=None)
def TrackRecoPassCfg(flags, extension="", doTrackingSiPattern=True, InputCombinedInDetTracks=None, InputExtendedInDetTracks=None, StatTrackCollections=None, StatTrackTruthCollections=None, ClusterSplitProbContainer="")
def ObserverTrackParticleCnvAlgCfg(flags, name="ObserverTrackParticleCnvAlg", ClusterSplitProbabilityName="", AssociationMapName="", **kwargs)
def PseudoTrackFinalCfg(flags)
def InDetRecStatisticsAlgCfg(flags, name='InDetRecStatistics', **kwargs)
def TrackParticleCnvAlgNoPIDCfg(flags, name, ClusterSplitProbabilityName="", AssociationMapName="", **kwargs)
def InDetRecPreProcessingSiliconCfg(flags)
def printPrimaryConfig(flags)
def GEN_AOD2xAODCfg(flags, name="GEN_AOD2xAOD", **kwargs)
def TrackSeedsFinalCfg(flags)
def TrackParticleCnvAlgPIDCheckCfg(flags, name, ClusterSplitProbabilityName="", AssociationMapName="", **kwargs)
def TruthTrackingCfg(flags, name='InDetTruthTrackCreation', **kwargs)
def SiSPSeededTracksFinalCfg(flags)
def TRTTrackRecoCfg(flags, extensions_list=None)
def ClusterSplitProbabilityContainerName(flags)
def SiSubDetTrackRecoCfg(flags, detector="", extensions_list=None, ClusterSplitProbContainer="")
def RedoTruthLinksAlgCfg(flags)
def printActiveConfig(flags)
def CombinedTrackingPassFlagSets(flags)
def StoreTrackSeparateContainerCfg(flags, TrackContainer="", ClusterSplitProbContainer="")
def InDetTrackTruthCfg(flags, Tracks="CombinedInDetTracks", DetailedTruth="CombinedInDetTracksDetailedTruth", TracksTruth="CombinedInDetTracksTruthCollection")
def InDetTrackPRD_AssociationCfg(flags, name='InDetTrackPRD_Association', **kwargs)
def OnlyTrackingPreInclude(flags)
def InDetV0FinderCfg(flags, name="InDetV0Finder", V0ContainerName="V0UnconstrVertices", KshortContainerName="V0KshortVertices", LambdaContainerName="V0LambdaVertices", LambdabarContainerName="V0LambdabarVertices", **kwargs)
def NewTrackingTRTExtensionPhaseCfg(flags, SiTrackCollection=None, ExtendedTrackCollection=None, ExtendedTracksMap=None)
def ExtendedPRDInfoCfg(flags)
def TRTSegmentFinding_Phase_Cfg(flags)
def InDetCosmicsEventPhaseCfg(flags, name='InDetCosmicsEventPhase', **kwargs)
def TRTSegmentFinding_TrackSegments_Cfg(flags)
def TrackSlimmerCfg(flags, name="TrackSlimmer", **kwargs)
def TrackFinalCfg(flags, InputCombinedInDetTracks=None, StatTrackCollections=None, StatTrackTruthCollections=None)
def TRT_Cosmics_SegmentsToTrackCfg(flags, name='InDetTRT_Cosmics_SegmentsToTrack', **kwargs)
def InDetPreProcessingCfg(flags)
def MainServicesCfg(flags, LoopMgr='AthenaEventLoopMgr')
some useful constants -------------------------------------------------—
def NewTrackingTRTExtensionCfg(flags, SiTrackCollection=None, ExtendedTrackCollection=None, ExtendedTracksMap=None)
def ITkClusterSplitProbabilityContainerName(flags)
def InDetTrackRecoOutputCfg(flags, extensions_list=None)
def CaloTopoClusterCfg(flags, cellsname="AllCalo", clustersname=None, clustersnapname="CaloTopoClusters")
ComponentAccumulator primaryVertexFindingCfg(flags, str name="InDetPriVxFinder", str vxCandidatesOutputName="PrimaryVertices", **kwargs)
def InDetTrackClusterAssValidationCfg(flags, name='InDetTrackClusterAssValidation', **kwargs)
def TrackingSiPatternCfg(flags, InputCollections=None, ResolvedTrackCollectionKey=None, SiSPSeededTrackCollectionKey=None, ClusterSplitProbContainer='')
def TRT_TrackSegment_Cfg(flags)
def InDetTrackRecoCfg(flags)
Main ID tracking config #####################.
def TRTStandalonePassRecoCfg(flags, InputCombinedInDetTracks=None, InputExtendedInDetTracks=None, StatTrackCollections=None, StatTrackTruthCollections=None)
def InDetCosmicsTrackRecoPreProcessingCfg(flags)
def TRTStandaloneCfg(flags, InputCollections=None)
def BackTrackingRecoCfg(flags, InputCombinedInDetTracks=None, InputExtendedInDetTracks=None, StatTrackCollections=None, StatTrackTruthCollections=None, ClusterSplitProbContainer="")
def InDetPhysHitDecoratorAlgCfg(flags, name="InDetPhysHitDecoratorAlg", **kwargs)
def SCTEventFlagWriterCfg(flags, prefix="InDet", suffix="", **kwargs)
def TRTSegmentFindingCfg(flags, InputCollections=None)
def TrackRecoConfigTest(flags=None)
def EventInfoCnvAlgCfg(flags, name="EventInfoCnvAlg", inputKey="McEventInfo", outputKey="EventInfo", disableBeamSpot=False, **kwargs)
def TrackCollectionMergerAlgCfg(flags, name="InDetTrackCollectionMerger", InputCombinedTracks=None, OutputCombinedTracks="", **kwargs)
def InDetStatsCfg(flags, StatTrackCollections=None, StatTrackTruthCollections=None)
def TrackParticleCnvAlgCfg(flags, name="TrackParticleCnvAlg", ClusterSplitProbabilityName="", AssociationMapName="", **kwargs)
TrackParticleCnvAlg.
def BackTrackingCfg(flags, InputCollections=None, ClusterSplitProbContainer='')
def ObserverTrackFinalCfg(flags)