8 processPixels = flags.Detector.EnableITkPixel
9 processStrips = flags.Detector.EnableITkStrip
12 kwargs.setdefault(
'processPixels', processPixels)
13 kwargs.setdefault(
'processStrips', processStrips)
33 kwargs.setdefault(
'runCacheCreation', flags.Acts.useCache)
34 kwargs.setdefault(
'runReconstruction',
True)
35 kwargs.setdefault(
'runPreparation', flags.Acts.useCache)
38 processOverlapSpacePoints = processStrips
40 kwargs.setdefault(
'processOverlapSpacePoints', processOverlapSpacePoints)
43 roisName = f
'{flags.Tracking.ActiveConfig.extension}RegionOfInterest'
47 pixelClustersName =
'ITkPixelClusters'
48 stripClustersName =
'ITkStripClusters'
49 pixelSpacePointsName =
'FPGAITkPixelSpacePoints'
50 stripSpacePointsName =
'FPGAITkStripSpacePoints'
51 stripOverlapSpacePointsName =
'ITkStripOverlapSpacePoints'
53 if flags.Acts.useCache:
54 pixelClustersName +=
"_Cached"
55 stripClustersName +=
"_Cached"
58 primaryPixelSpacePointsName =
'FPGAITkPixelSpacePoints'
59 primaryStripSpacePointsName =
'FPGAITkStripSpacePoints'
60 primaryStripOverlapSpacePointsName =
'ITkStripOverlapSpacePoints'
63 if kwargs[
'runCacheCreation']:
64 kwargs.setdefault(
'SpacePointCacheCreatorAlg.name', f
'{flags.Tracking.ActiveConfig.extension}SpacePointCacheCreatorAlg')
67 if kwargs[
'runReconstruction']:
68 if kwargs[
'processPixels']:
69 kwargs.setdefault(
'PixelSpacePointFormationAlg.name', f
'{flags.Tracking.ActiveConfig.extension}PixelSpacePointFormationAlg')
70 kwargs.setdefault(
'PixelSpacePointFormationAlg.useCache', flags.Acts.useCache)
71 kwargs.setdefault(
'PixelSpacePointFormationAlg.SPCache', f
'{flags.Tracking.ActiveConfig.extension}PixelSpacePointCache')
72 kwargs.setdefault(
'PixelSpacePointFormationAlg.PixelClusters', pixelClustersName)
73 kwargs.setdefault(
'PixelSpacePointFormationAlg.PixelSpacePoints', pixelSpacePointsName)
75 if kwargs[
'processStrips']:
76 kwargs.setdefault(
'StripSpacePointFormationAlg.name', f
'{flags.Tracking.ActiveConfig.extension}StripSpacePointFormationAlg')
77 kwargs.setdefault(
'StripSpacePointFormationAlg.useCache', flags.Acts.useCache)
78 kwargs.setdefault(
'StripSpacePointFormationAlg.SPCache', f
'{flags.Tracking.ActiveConfig.extension}StripSpacePointCache')
79 kwargs.setdefault(
'StripSpacePointFormationAlg.StripClusters', stripClustersName)
80 kwargs.setdefault(
'StripSpacePointFormationAlg.StripSpacePoints', stripSpacePointsName)
83 kwargs.setdefault(
'StripSpacePointFormationAlg.ProcessOverlapForStrip', kwargs[
'processOverlapSpacePoints'])
84 kwargs.setdefault(
'StripSpacePointFormationAlg.OSPCache', f
'{flags.Tracking.ActiveConfig.extension}StripOverlapSpacePointCache')
85 if kwargs[
'processOverlapSpacePoints']:
86 kwargs.setdefault(
'StripSpacePointFormationAlg.StripOverlapSpacePoints', stripOverlapSpacePointsName)
89 kwargs.setdefault(
'StripSpacePointFormationAlg.StripOverlapSpacePoints',
'')
92 if kwargs[
'runPreparation']:
93 if kwargs[
'processPixels']:
94 kwargs.setdefault(
'PixelSpacePointPreparationAlg.name', f
'{flags.Tracking.ActiveConfig.extension}PixelSpacePointPreparationAlg')
95 kwargs.setdefault(
'PixelSpacePointPreparationAlg.useCache', flags.Acts.useCache)
96 kwargs.setdefault(
'PixelSpacePointPreparationAlg.OutputCollection', f
'{pixelSpacePointsName}_Cached' if kwargs[
'runReconstruction']
else pixelSpacePointsName)
98 if not flags.Acts.useCache:
100 kwargs.setdefault(
'PixelSpacePointPreparationAlg.InputCollection', pixelSpacePointsName
if kwargs[
'runReconstruction']
else primaryPixelSpacePointsName)
101 kwargs.setdefault(
'PixelSpacePointPreparationAlg.InputIDC',
'')
103 kwargs.setdefault(
'PixelSpacePointPreparationAlg.InputCollection',
'')
104 kwargs.setdefault(
'PixelSpacePointPreparationAlg.InputIDC', f
'{flags.Tracking.ActiveConfig.extension}PixelSpacePointCache')
107 if kwargs[
'processStrips']:
108 kwargs.setdefault(
'StripSpacePointPreparationAlg.name', f
'{flags.Tracking.ActiveConfig.extension}StripSpacePointPreparationAlg')
109 kwargs.setdefault(
'StripSpacePointPreparationAlg.useCache', flags.Acts.useCache)
110 kwargs.setdefault(
'StripSpacePointPreparationAlg.OutputCollection', f
'{stripSpacePointsName}_Cached' if kwargs[
'runReconstruction']
else stripSpacePointsName)
112 if not flags.Acts.useCache:
114 kwargs.setdefault(
'StripSpacePointPreparationAlg.InputCollection', stripSpacePointsName
if kwargs[
'runReconstruction']
else primaryStripSpacePointsName)
115 kwargs.setdefault(
'StripSpacePointPreparationAlg.InputIDC',
'')
117 kwargs.setdefault(
'StripSpacePointPreparationAlg.InputCollection',
'')
118 kwargs.setdefault(
'StripSpacePointPreparationAlg.InputIDC', f
'{flags.Tracking.ActiveConfig.extension}StripSpacePointCache')
120 if kwargs[
'processOverlapSpacePoints']:
121 kwargs.setdefault(
'StripOverlapSpacePointPreparationAlg.name', f
'{flags.Tracking.ActiveConfig.extension}StripOverlapSpacePointPreparationAlg')
122 kwargs.setdefault(
'StripOverlapSpacePointPreparationAlg.useCache', flags.Acts.useCache)
123 kwargs.setdefault(
'StripOverlapSpacePointPreparationAlg.OutputCollection', f
'{stripOverlapSpacePointsName}_Cached' if kwargs[
'runReconstruction']
else stripOverlapSpacePointsName)
125 if not flags.Acts.useCache:
127 kwargs.setdefault(
'StripOverlapSpacePointPreparationAlg.InputCollection', stripOverlapSpacePointsName
if kwargs[
'runReconstruction']
else primaryStripOverlapSpacePointsName)
128 kwargs.setdefault(
'StripOverlapSpacePointPreparationAlg.InputIDC',
'')
130 kwargs.setdefault(
'StripOverlapSpacePointPreparationAlg.InputCollection',
'')
131 kwargs.setdefault(
'StripOverlapSpacePointPreparationAlg.InputIDC', f
'{flags.Tracking.ActiveConfig.extension}StripOverlapSpacePointCache')
134 if flags.Acts.doAnalysis:
137 if kwargs[
'processPixels']:
138 kwargs.setdefault(
'PixelSpacePointAnalysisAlg.name', f
'{flags.Tracking.ActiveConfig.extension}PixelSpacePointAnalysisAlg')
139 kwargs.setdefault(
'PixelSpacePointAnalysisAlg.extension', flags.Tracking.ActiveConfig.extension)
140 kwargs.setdefault(
'PixelSpacePointAnalysisAlg.SpacePointContainerKey', kwargs[
'PixelSpacePointPreparationAlg.OutputCollection']
if kwargs[
'runPreparation']
else kwargs[
'PixelSpacePointFormationAlg.PixelSpacePoints'])
142 if kwargs[
'processStrips']:
143 kwargs.setdefault(
'StripSpacePointAnalysisAlg.name', f
'{flags.Tracking.ActiveConfig.extension}StripSpacePointAnalysisAlg')
144 kwargs.setdefault(
'StripSpacePointAnalysisAlg.extension', flags.Tracking.ActiveConfig.extension)
145 kwargs.setdefault(
'StripSpacePointAnalysisAlg.SpacePointContainerKey', kwargs[
'StripSpacePointPreparationAlg.OutputCollection']
if kwargs[
'runPreparation']
else kwargs[
'StripSpacePointFormationAlg.StripSpacePoints'])
147 if kwargs[
'processOverlapSpacePoints']:
148 kwargs.setdefault(
'StripOverlapSpacePointAnalysisAlg.name', f
'{flags.Tracking.ActiveConfig.extension}StripOverlapSpacePointAnalysisAlg')
149 kwargs.setdefault(
'StripOverlapSpacePointAnalysisAlg.extension', flags.Tracking.ActiveConfig.extension)
150 kwargs.setdefault(
'StripOverlapSpacePointAnalysisAlg.SpacePointContainerKey', kwargs[
'StripOverlapSpacePointPreparationAlg.OutputCollection']
if kwargs[
'runPreparation']
else kwargs[
'StripSpacePointFormationAlg.StripOverlapSpacePoints'])
152 from ActsConfig.ActsSpacePointFormationConfig
import ActsMainSpacePointFormationCfg