4 from AthenaConfiguration.ComponentAccumulator
import ComponentAccumulator
5 from AthenaConfiguration.ComponentFactory
import CompFactory
6 from AthenaConfiguration.Enums
import BeamType
9 name: str =
"InDetToXAODSpacePointConversion",
10 **kwargs) -> ComponentAccumulator:
12 kwargs.setdefault(
'ProcessPixel', flags.Detector.EnableITkPixel)
13 kwargs.setdefault(
'ProcessStrip', flags.Detector.EnableITkStrip
and not flags.Tracking.doITkFastTracking)
14 acc.addEventAlgo( CompFactory.InDet.InDetToXAODSpacePointConversion(name, **kwargs) )
18 flags, name="InDetSiElementPropertiesTableCondAlg", **kwargs):
20 from SCT_GeoModel.SCT_GeoModelConfig
import SCT_ReadoutGeometryCfg
24 CompFactory.InDet.SiElementPropertiesTableCondAlg(name, **kwargs))
29 flags, name="ITkSiElementPropertiesTableCondAlg", **kwargs):
31 from StripGeoModelXml.ITkStripGeoModelConfig
import (
32 ITkStripReadoutGeometryCfg)
35 kwargs.setdefault(
"ReadKey",
"ITkStripDetectorElementCollection")
36 kwargs.setdefault(
"WriteKey",
"ITkStripElementPropertiesTable")
37 kwargs.setdefault(
"doEndcapEtaNeighbour", flags.Tracking.doEndcapEtaOverlapSpacePoint)
40 CompFactory.InDet.SiElementPropertiesTableCondAlg(name, **kwargs))
45 flags, name="InDetSiSpacePointMakerTool", **kwargs):
47 if flags.Beam.Type
is BeamType.Cosmics
or flags.Tracking.doBeamGas:
48 kwargs.setdefault(
"StripLengthTolerance", 0.05)
50 CompFactory.InDet.SiSpacePointMakerTool(name, **kwargs))
55 flags, name="ITkSiSpacePointMakerTool", **kwargs):
57 kwargs.setdefault(
"SCTGapParameter", 0.0015)
59 CompFactory.InDet.SiSpacePointMakerTool(name, **kwargs))
64 flags, name="InDetSiTrackerSpacePointFinder", **kwargs):
66 from SCT_GeoModel.SCT_GeoModelConfig
import SCT_ReadoutGeometryCfg
69 from BeamSpotConditions.BeamSpotConditionsConfig
import BeamSpotCondAlgCfg
73 kwargs.setdefault(
"SiSpacePointMakerTool", acc.popToolsAndMerge(
75 kwargs.setdefault(
"PixelsClustersName",
'PixelClusters')
76 kwargs.setdefault(
"SCT_ClustersName",
'SCT_Clusters')
77 kwargs.setdefault(
"SpacePointsPixelName",
'PixelSpacePoints')
78 kwargs.setdefault(
"SpacePointsSCTName",
'SCT_SpacePoints')
79 kwargs.setdefault(
"SpacePointsOverlapName",
'OverlapSpacePoints')
80 kwargs.setdefault(
"ProcessPixels", flags.Detector.EnablePixel)
81 kwargs.setdefault(
"ProcessSCTs", flags.Detector.EnableSCT)
82 kwargs.setdefault(
"ProcessOverlaps", flags.Detector.EnableSCT)
84 if flags.Beam.Type
is BeamType.Cosmics:
85 kwargs.setdefault(
"ProcessOverlaps",
False)
86 kwargs.setdefault(
"OverrideBeamSpot",
True)
87 kwargs.setdefault(
"VertexZ", 0)
88 kwargs.setdefault(
"VertexX", 0)
89 kwargs.setdefault(
"VertexY", 99999999)
90 kwargs.setdefault(
"OverlapLimitOpposite", 5)
93 CompFactory.InDet.SiTrackerSpacePointFinder(name, **kwargs))
98 flags, name="InDetTrigSiTrackerSpacePointFinder", **kwargs):
100 from SCT_GeoModel.SCT_GeoModelConfig
import SCT_ReadoutGeometryCfg
103 from BeamSpotConditions.BeamSpotConditionsConfig
import BeamSpotCondAlgCfg
107 kwargs.setdefault(
"SiSpacePointMakerTool", acc.popToolsAndMerge(
109 kwargs.setdefault(
"PixelsClustersName",
'PixelTrigClusters')
110 kwargs.setdefault(
"SCT_ClustersName",
'SCT_TrigClusters')
111 kwargs.setdefault(
"SpacePointsPixelName",
'PixelTrigSpacePoints')
112 kwargs.setdefault(
"SpacePointsSCTName",
'SCT_TrigSpacePoints')
113 kwargs.setdefault(
"SpacePointsOverlapName",
'OverlapSpacePoints')
114 kwargs.setdefault(
"ProcessPixels", flags.Detector.EnablePixel)
115 kwargs.setdefault(
"ProcessSCTs", flags.Detector.EnableSCT)
116 kwargs.setdefault(
"ProcessOverlaps", flags.Detector.EnableSCT)
117 kwargs.setdefault(
"SpacePointCacheSCT", flags.Trigger.InDetTracking.SpacePointCacheSCT)
118 kwargs.setdefault(
"SpacePointCachePix", flags.Trigger.InDetTracking.SpacePointCachePix)
121 CompFactory.InDet.SiTrackerSpacePointFinder(name, **kwargs))
126 flags, name="ITkSiTrackerSpacePointFinder", **kwargs):
128 from StripGeoModelXml.ITkStripGeoModelConfig
import (
129 ITkStripReadoutGeometryCfg)
132 from BeamSpotConditions.BeamSpotConditionsConfig
import BeamSpotCondAlgCfg
136 kwargs.setdefault(
"SiSpacePointMakerTool", acc.popToolsAndMerge(
138 kwargs.setdefault(
"PixelsClustersName",
'ITkPixelClusters')
139 kwargs.setdefault(
"SCT_ClustersName",
'ITkStripClusters')
140 kwargs.setdefault(
"SCTPropertiesKey",
"ITkStripElementPropertiesTable")
141 kwargs.setdefault(
"SCTDetEleCollKey",
"ITkStripDetectorElementCollection")
142 kwargs.setdefault(
"SpacePointsPixelName",
'ITkPixelSpacePoints')
143 kwargs.setdefault(
"SpacePointsSCTName",
'ITkStripSpacePoints')
144 kwargs.setdefault(
"SpacePointsOverlapName",
'ITkOverlapSpacePoints')
145 kwargs.setdefault(
"ProcessPixels", flags.Detector.EnableITkPixel)
146 kwargs.setdefault(
"ProcessSCTs", flags.Detector.EnableITkStrip)
147 kwargs.setdefault(
"ProcessOverlaps", flags.Detector.EnableITkStrip)
148 kwargs.setdefault(
"useSCTLayerDep_OverlapCuts",
False)
149 kwargs.setdefault(
"doEndcapEtaOverlapSP",flags.Tracking.doEndcapEtaOverlapSpacePoint)
151 if flags.Beam.Type
is BeamType.Cosmics:
152 kwargs.setdefault(
"ProcessOverlaps",
False)
153 kwargs.setdefault(
"OverrideBeamSpot",
True)
154 kwargs.setdefault(
"VertexZ", 0)
155 kwargs.setdefault(
"VertexX", 0)
156 kwargs.setdefault(
"VertexY", 99999999)
157 kwargs.setdefault(
"OverlapLimitOpposite", 5)
160 CompFactory.InDet.SiTrackerSpacePointFinder(name, **kwargs))
165 flags, name="ITkPixelSiTrackerSpacePointFinder", **kwargs):
166 kwargs.setdefault(
"ProcessSCTs",
False)
167 kwargs.setdefault(
"ProcessOverlaps",
False)
172 flags, name="ITkStripSiTrackerSpacePointFinder", **kwargs):
173 kwargs.setdefault(
"ProcessPixels",
False)
179 if flags.Tracking.doLargeD0:
185 flags, name="ITkTrigSiTrackerSpacePointFinder", signature="", **kwargs):
186 kwargs.setdefault(
"PixelsClustersName",
"ITkTrigPixelClusters")
187 kwargs.setdefault(
"SCT_ClustersName",
"ITkTrigStripClusters")
188 kwargs.setdefault(
"SpacePointsPixelName",
"ITkPixelTrigSpacePoints")
189 kwargs.setdefault(
"SpacePointsSCTName",
"ITkStripTrigSpacePoints")