ATLAS Offline Software
SiClusterOnTrackTool_SCTStripConfig.py
Go to the documentation of this file.
1 # Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
2 # Configuration of SCT/Strip tools of SiClusterOnTrackTool package
3 from AthenaConfiguration.ComponentAccumulator import ComponentAccumulator
4 from AthenaConfiguration.ComponentFactory import CompFactory
5 
6 def InDetSCT_ClusterOnTrackToolCfg(flags, name='InDetSCT_ClusterOnTrackTool', **kwargs):
7  from TrkConfig.TrkRIO_OnTrackCreatorConfig import RIO_OnTrackErrorScalingCondAlgCfg
8  acc = RIO_OnTrackErrorScalingCondAlgCfg(flags) # To produce RIO_OnTrackErrorScaling
9 
10  if 'LorentzAngleTool' not in kwargs:
11  from SiLorentzAngleTool.SCT_LorentzAngleConfig import SCT_LorentzAngleToolCfg
12  kwargs.setdefault("LorentzAngleTool", acc.popToolsAndMerge(
14 
15  kwargs.setdefault("CorrectionStrategy", 0 ) # do correct position bias
16  kwargs.setdefault("ErrorStrategy", 2 ) # do use phi dependent errors
17 
18  acc.setPrivateTools(CompFactory.InDet.SCT_ClusterOnTrackTool(name, **kwargs))
19  return acc
20 
21 def InDetBroadSCT_ClusterOnTrackToolCfg(flags, name='InDetBroadSCT_ClusterOnTrackTool', **kwargs):
22  kwargs.setdefault("ErrorStrategy", 0)
23  return InDetSCT_ClusterOnTrackToolCfg(flags, name=name, **kwargs)
24 
25 def ITkStripClusterOnTrackToolCfg(flags, name='ITkStrip_ClusterOnTrackTool', **kwargs):
26  acc = ComponentAccumulator()
27 
28  kwargs.setdefault("ErrorStrategy", 0 ) # use width / sqrt(12)
29  kwargs.setdefault("ErrorScalingKey", "")
30 
31  acc.setPrivateTools(CompFactory.ITk.StripClusterOnTrackTool(name, **kwargs))
32  return acc
33 
34 def ITkBroadStripClusterOnTrackToolCfg(flags, name='ITkBroadStripClusterOnTrackTool', **kwargs):
35  kwargs.setdefault("ErrorStrategy", 0)
36  return ITkStripClusterOnTrackToolCfg(flags, name=name, **kwargs)
python.SiClusterOnTrackTool_SCTStripConfig.InDetBroadSCT_ClusterOnTrackToolCfg
def InDetBroadSCT_ClusterOnTrackToolCfg(flags, name='InDetBroadSCT_ClusterOnTrackTool', **kwargs)
Definition: SiClusterOnTrackTool_SCTStripConfig.py:21
python.JetAnalysisCommon.ComponentAccumulator
ComponentAccumulator
Definition: JetAnalysisCommon.py:302
python.SiClusterOnTrackTool_SCTStripConfig.ITkStripClusterOnTrackToolCfg
def ITkStripClusterOnTrackToolCfg(flags, name='ITkStrip_ClusterOnTrackTool', **kwargs)
Definition: SiClusterOnTrackTool_SCTStripConfig.py:25
python.SCT_LorentzAngleConfig.SCT_LorentzAngleToolCfg
def SCT_LorentzAngleToolCfg(flags, name="SCTLorentzAngleTool", **kwargs)
Definition: SCT_LorentzAngleConfig.py:10
python.SiClusterOnTrackTool_SCTStripConfig.InDetSCT_ClusterOnTrackToolCfg
def InDetSCT_ClusterOnTrackToolCfg(flags, name='InDetSCT_ClusterOnTrackTool', **kwargs)
Definition: SiClusterOnTrackTool_SCTStripConfig.py:6
python.SiClusterOnTrackTool_SCTStripConfig.ITkBroadStripClusterOnTrackToolCfg
def ITkBroadStripClusterOnTrackToolCfg(flags, name='ITkBroadStripClusterOnTrackTool', **kwargs)
Definition: SiClusterOnTrackTool_SCTStripConfig.py:34
python.TrkRIO_OnTrackCreatorConfig.RIO_OnTrackErrorScalingCondAlgCfg
def RIO_OnTrackErrorScalingCondAlgCfg(flags, name='RIO_OnTrackErrorScalingCondAlg', **kwargs)
Definition: TrkRIO_OnTrackCreatorConfig.py:197