Loading [MathJax]/jax/output/SVG/config.js
ATLAS Offline Software
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
SiSpacePointFormationConfig.py
Go to the documentation of this file.
1 # Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
2 # Configuration of SiSpacePointFormation and SiSpacePointTool packages
3 
4 from AthenaConfiguration.ComponentAccumulator import ComponentAccumulator
5 from AthenaConfiguration.ComponentFactory import CompFactory
6 from AthenaConfiguration.Enums import BeamType
7 
9  name: str = "InDetToXAODSpacePointConversion",
10  **kwargs) -> ComponentAccumulator:
11  acc = 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) )
15  return acc
16 
18  flags, name="InDetSiElementPropertiesTableCondAlg", **kwargs):
19  # For SCT DetectorElementCollection used
20  from SCT_GeoModel.SCT_GeoModelConfig import SCT_ReadoutGeometryCfg
21  acc = SCT_ReadoutGeometryCfg(flags)
22 
23  acc.addCondAlgo(
24  CompFactory.InDet.SiElementPropertiesTableCondAlg(name, **kwargs))
25  return acc
26 
27 
29  flags, name="ITkSiElementPropertiesTableCondAlg", **kwargs):
30  # For strip DetectorElementCollection used
31  from StripGeoModelXml.ITkStripGeoModelConfig import (
32  ITkStripReadoutGeometryCfg)
33  acc = ITkStripReadoutGeometryCfg(flags)
34 
35  kwargs.setdefault("ReadKey", "ITkStripDetectorElementCollection")
36  kwargs.setdefault("WriteKey", "ITkStripElementPropertiesTable")
37  kwargs.setdefault("doEndcapEtaNeighbour", flags.Tracking.doEndcapEtaOverlapSpacePoint)
38 
39  acc.addCondAlgo(
40  CompFactory.InDet.SiElementPropertiesTableCondAlg(name, **kwargs))
41  return acc
42 
43 
45  flags, name="InDetSiSpacePointMakerTool", **kwargs):
46  acc = ComponentAccumulator()
47  if flags.Beam.Type is BeamType.Cosmics or flags.Tracking.doBeamGas:
48  kwargs.setdefault("StripLengthTolerance", 0.05)
49  acc.setPrivateTools(
50  CompFactory.InDet.SiSpacePointMakerTool(name, **kwargs))
51  return acc
52 
53 
55  flags, name="ITkSiSpacePointMakerTool", **kwargs):
56  acc = ComponentAccumulator()
57  kwargs.setdefault("SCTGapParameter", 0.0015)
58  acc.setPrivateTools(
59  CompFactory.InDet.SiSpacePointMakerTool(name, **kwargs))
60  return acc
61 
62 
64  flags, name="InDetSiTrackerSpacePointFinder", **kwargs):
65  # For SCT DetectorElementCollection used
66  from SCT_GeoModel.SCT_GeoModelConfig import SCT_ReadoutGeometryCfg
67  acc = SCT_ReadoutGeometryCfg(flags)
68 
69  from BeamSpotConditions.BeamSpotConditionsConfig import BeamSpotCondAlgCfg
70  acc.merge(BeamSpotCondAlgCfg(flags))
72 
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)
83 
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)
91 
92  acc.addEventAlgo(
93  CompFactory.InDet.SiTrackerSpacePointFinder(name, **kwargs))
94  return acc
95 
96 
98  flags, name="InDetTrigSiTrackerSpacePointFinder", **kwargs):
99  # For SCT DetectorElementCollection used
100  from SCT_GeoModel.SCT_GeoModelConfig import SCT_ReadoutGeometryCfg
101  acc = SCT_ReadoutGeometryCfg(flags)
102 
103  from BeamSpotConditions.BeamSpotConditionsConfig import BeamSpotCondAlgCfg
104  acc.merge(BeamSpotCondAlgCfg(flags))
106 
107  kwargs.setdefault("SiSpacePointMakerTool", acc.popToolsAndMerge(
108  SiSpacePointMakerToolCfg(flags)))
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)
119 
120  acc.addEventAlgo(
121  CompFactory.InDet.SiTrackerSpacePointFinder(name, **kwargs))
122  return acc
123 
124 
126  flags, name="ITkSiTrackerSpacePointFinder", **kwargs):
127  # For strip DetectorElementCollection used
128  from StripGeoModelXml.ITkStripGeoModelConfig import (
129  ITkStripReadoutGeometryCfg)
130  acc = ITkStripReadoutGeometryCfg(flags)
131 
132  from BeamSpotConditions.BeamSpotConditionsConfig import BeamSpotCondAlgCfg
133  acc.merge(BeamSpotCondAlgCfg(flags))
134  acc.merge(ITkSiElementPropertiesTableCondAlgCfg(flags))
135 
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)
150 
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)
158 
159  acc.addEventAlgo(
160  CompFactory.InDet.SiTrackerSpacePointFinder(name, **kwargs))
161  return acc
162 
163 
165  flags, name="ITkPixelSiTrackerSpacePointFinder", **kwargs):
166  kwargs.setdefault("ProcessSCTs", False)
167  kwargs.setdefault("ProcessOverlaps", False)
168  return ITkSiTrackerSpacePointFinderCfg(flags, name, **kwargs)
169 
170 
172  flags, name="ITkStripSiTrackerSpacePointFinder", **kwargs):
173  kwargs.setdefault("ProcessPixels", False)
174  return ITkSiTrackerSpacePointFinderCfg(flags, name, **kwargs)
175 
176 
179  if flags.Tracking.doLargeD0:
180  acc.merge(ITkStripSiTrackerSpacePointFinderCfg(flags))
181  return acc
182 
183 
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")
190  return ITkSiTrackerSpacePointFinderCfg(flags, name+signature, **kwargs)
python.JetAnalysisCommon.ComponentAccumulator
ComponentAccumulator
Definition: JetAnalysisCommon.py:302
python.SiSpacePointFormationConfig.InDetSiTrackerSpacePointFinderCfg
def InDetSiTrackerSpacePointFinderCfg(flags, name="InDetSiTrackerSpacePointFinder", **kwargs)
Definition: SiSpacePointFormationConfig.py:63
python.BeamSpotConditionsConfig.BeamSpotCondAlgCfg
def BeamSpotCondAlgCfg(flags, name="BeamSpotCondAlg", **kwargs)
Definition: BeamSpotConditionsConfig.py:7
ITkStripGeoModelConfig.ITkStripReadoutGeometryCfg
def ITkStripReadoutGeometryCfg(flags)
Definition: ITkStripGeoModelConfig.py:43
python.SiSpacePointFormationConfig.ITkFastSiTrackerSpacePointFinderCfg
def ITkFastSiTrackerSpacePointFinderCfg(flags)
Definition: SiSpacePointFormationConfig.py:177
python.SiSpacePointFormationConfig.ITkStripSiTrackerSpacePointFinderCfg
def ITkStripSiTrackerSpacePointFinderCfg(flags, name="ITkStripSiTrackerSpacePointFinder", **kwargs)
Definition: SiSpacePointFormationConfig.py:171
python.SiSpacePointFormationConfig.InDetToXAODSpacePointConversionCfg
ComponentAccumulator InDetToXAODSpacePointConversionCfg(flags, str name="InDetToXAODSpacePointConversion", **kwargs)
Definition: SiSpacePointFormationConfig.py:8
SCT_GeoModelConfig.SCT_ReadoutGeometryCfg
def SCT_ReadoutGeometryCfg(flags)
Definition: SCT_GeoModelConfig.py:50
python.SiSpacePointFormationConfig.ITkPixelSiTrackerSpacePointFinderCfg
def ITkPixelSiTrackerSpacePointFinderCfg(flags, name="ITkPixelSiTrackerSpacePointFinder", **kwargs)
Definition: SiSpacePointFormationConfig.py:164
python.SiSpacePointFormationConfig.TrigSiTrackerSpacePointFinderCfg
def TrigSiTrackerSpacePointFinderCfg(flags, name="InDetTrigSiTrackerSpacePointFinder", **kwargs)
Definition: SiSpacePointFormationConfig.py:97
python.SiSpacePointFormationConfig.InDetSiElementPropertiesTableCondAlgCfg
def InDetSiElementPropertiesTableCondAlgCfg(flags, name="InDetSiElementPropertiesTableCondAlg", **kwargs)
Definition: SiSpacePointFormationConfig.py:17
python.SiSpacePointFormationConfig.ITkSiSpacePointMakerToolCfg
def ITkSiSpacePointMakerToolCfg(flags, name="ITkSiSpacePointMakerTool", **kwargs)
Definition: SiSpacePointFormationConfig.py:54
python.SiSpacePointFormationConfig.SiSpacePointMakerToolCfg
def SiSpacePointMakerToolCfg(flags, name="InDetSiSpacePointMakerTool", **kwargs)
Definition: SiSpacePointFormationConfig.py:44
python.SiSpacePointFormationConfig.ITkSiTrackerSpacePointFinderCfg
def ITkSiTrackerSpacePointFinderCfg(flags, name="ITkSiTrackerSpacePointFinder", **kwargs)
Definition: SiSpacePointFormationConfig.py:125
python.SiSpacePointFormationConfig.ITkSiElementPropertiesTableCondAlgCfg
def ITkSiElementPropertiesTableCondAlgCfg(flags, name="ITkSiElementPropertiesTableCondAlg", **kwargs)
Definition: SiSpacePointFormationConfig.py:28
python.SiSpacePointFormationConfig.ITkTrigSiTrackerSpacePointFinderCfg
def ITkTrigSiTrackerSpacePointFinderCfg(flags, name="ITkTrigSiTrackerSpacePointFinder", signature="", **kwargs)
Definition: SiSpacePointFormationConfig.py:184