ATLAS Offline Software
Loading...
Searching...
No Matches
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
3from AthenaConfiguration.ComponentAccumulator import ComponentAccumulator
4from AthenaConfiguration.ComponentFactory import CompFactory
5
6def 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(
13 SCT_LorentzAngleToolCfg(flags)))
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
21def InDetBroadSCT_ClusterOnTrackToolCfg(flags, name='InDetBroadSCT_ClusterOnTrackTool', **kwargs):
22 kwargs.setdefault("ErrorStrategy", 0)
23 return InDetSCT_ClusterOnTrackToolCfg(flags, name=name, **kwargs)
24
25def 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
34def ITkBroadStripClusterOnTrackToolCfg(flags, name='ITkBroadStripClusterOnTrackTool', **kwargs):
35 kwargs.setdefault("ErrorStrategy", 0)
36 return ITkStripClusterOnTrackToolCfg(flags, name=name, **kwargs)
InDetBroadSCT_ClusterOnTrackToolCfg(flags, name='InDetBroadSCT_ClusterOnTrackTool', **kwargs)
ITkBroadStripClusterOnTrackToolCfg(flags, name='ITkBroadStripClusterOnTrackTool', **kwargs)
InDetSCT_ClusterOnTrackToolCfg(flags, name='InDetSCT_ClusterOnTrackTool', **kwargs)
ITkStripClusterOnTrackToolCfg(flags, name='ITkStrip_ClusterOnTrackTool', **kwargs)