ATLAS Offline Software
Functions
python.ITkPersistificationConfig Namespace Reference

Functions

bool isPrimaryPass (flags)
 
ComponentAccumulator ITkTrackSeedsFinalCfg (flags)
 
ComponentAccumulator ITkSiSPSeededTracksFinalCfg (flags)
 

Function Documentation

◆ isPrimaryPass()

bool python.ITkPersistificationConfig.isPrimaryPass (   flags)

Definition at line 5 of file ITkPersistificationConfig.py.

5 def isPrimaryPass(flags) -> bool:
6  return f"{flags.Tracking.ITkPrimaryPassConfig.value}Pass" not in flags.Tracking
7 

◆ ITkSiSPSeededTracksFinalCfg()

ComponentAccumulator python.ITkPersistificationConfig.ITkSiSPSeededTracksFinalCfg (   flags)

Definition at line 38 of file ITkPersistificationConfig.py.

38 def ITkSiSPSeededTracksFinalCfg(flags) -> ComponentAccumulator:
39  acc = ComponentAccumulator()
40 
41  # Do not persistify anything if this is not a primary
42  # pass or if the appropriate flag has not been set to True
43  if not isPrimaryPass(flags) and not flags.Tracking.ActiveConfig.storeSiSPSeededTracks:
44  return acc
45 
46  extension = flags.Tracking.ActiveConfig.extension
47  AssociationMapNameKey="PRDtoTrackMapMerge_CombinedITkTracks"
48  if 'Acts' in extension:
49  AssociationMapNameKey="PRDtoTrackMapMerge_CombinedITkTracks"
50  elif not isPrimaryPass(flags):
51  AssociationMapNameKey = f"ITkPRDtoTrackMap{extension}"
52 
53  # The following is to accomodate an hack we have in one of our ACTS ART tests
54  # it will be removed
55  if extension == "" and not isPrimaryPass(flags):
56  AssociationMapNameKey="PRDtoTrackMapMerge_CombinedITkTracks"
57 
58  from xAODTrackingCnv.xAODTrackingCnvConfig import ITkTrackParticleCnvAlgCfg
59  acc.merge(ITkTrackParticleCnvAlgCfg(
60  flags,
61  name = f"SiSPSeededTracks{extension}CnvAlg",
62  TrackContainerName = f"SiSPSeeded{extension}Tracks",
63  xAODTrackParticlesFromTracksContainerName=(
64  f"SiSPSeededTracks{extension}TrackParticles"),
65  AssociationMapName=
66  "" if flags.Tracking.doITkFastTracking else
67  AssociationMapNameKey)
68  )
69 
70  return acc

◆ ITkTrackSeedsFinalCfg()

ComponentAccumulator python.ITkPersistificationConfig.ITkTrackSeedsFinalCfg (   flags)

Definition at line 8 of file ITkPersistificationConfig.py.

8 def ITkTrackSeedsFinalCfg(flags) -> ComponentAccumulator:
10 
11  # Do not persistify anything if this is not a primary
12  # pass or if the appropriate flag has not been set to True
13  if not isPrimaryPass(flags) and not flags.Tracking.ActiveConfig.storeTrackSeeds:
14  return acc
15 
16  extension = flags.Tracking.ActiveConfig.extension
17  TrackContainer = f"SiSPSeedSegments{extension}"
18 
19  if flags.Tracking.doTruth:
20  from InDetConfig.ITkTrackTruthConfig import ITkTrackTruthCfg
21  acc.merge(ITkTrackTruthCfg(
22  flags,
23  Tracks=TrackContainer,
24  DetailedTruth=f"{TrackContainer}DetailedTruth",
25  TracksTruth=f"{TrackContainer}TruthCollection"))
26 
27  from xAODTrackingCnv.xAODTrackingCnvConfig import ITkTrackParticleCnvAlgCfg
28  acc.merge(ITkTrackParticleCnvAlgCfg(
29  flags,
30  name=f"{TrackContainer}CnvAlg",
31  TrackContainerName=TrackContainer,
32  xAODTrackParticlesFromTracksContainerName=(
33  f"{TrackContainer}TrackParticles")))
34 
35  return acc
36 
37 
python.JetAnalysisCommon.ComponentAccumulator
ComponentAccumulator
Definition: JetAnalysisCommon.py:302
python.ITkTrackTruthConfig.ITkTrackTruthCfg
def ITkTrackTruthCfg(flags, Tracks="CombinedITkTracks", DetailedTruth="CombinedITkTracksDetailedTrackTruth", TracksTruth="CombinedITkTracksTrackTruthCollection")
Definition: ITkTrackTruthConfig.py:10
python.ITkPersistificationConfig.isPrimaryPass
bool isPrimaryPass(flags)
Definition: ITkPersistificationConfig.py:5
xAODTrackingCnvConfig.ITkTrackParticleCnvAlgCfg
def ITkTrackParticleCnvAlgCfg(flags, name="ITkTrackParticleCnvAlg", ClusterSplitProbabilityName="", AssociationMapName="", bool isActsAmbi=False, **kwargs)
Definition: xAODTrackingCnvConfig.py:287
python.ITkPersistificationConfig.ITkSiSPSeededTracksFinalCfg
ComponentAccumulator ITkSiSPSeededTracksFinalCfg(flags)
Definition: ITkPersistificationConfig.py:38
python.ITkPersistificationConfig.ITkTrackSeedsFinalCfg
ComponentAccumulator ITkTrackSeedsFinalCfg(flags)
Definition: ITkPersistificationConfig.py:8