ATLAS Offline Software
TRT_DriftCircleOnTrackToolConfig.py
Go to the documentation of this file.
1 # Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
2 # Configuration of TrkNeuralNetworkUtils package
3 from AthenaConfiguration.ComponentAccumulator import ComponentAccumulator
4 from AthenaConfiguration.ComponentFactory import CompFactory
5 from AthenaConfiguration.Enums import BeamType
6 
7 def TRT_DriftCircleOnTrackNoDriftTimeToolCfg(flags, name='TRT_DriftCircleOnTrackNoDriftTimeTool', **kwargs):
9  acc.setPrivateTools(CompFactory.InDet.TRT_DriftCircleOnTrackNoDriftTimeTool(name, **kwargs))
10  return acc
11 
12 def TRT_DriftCircleOnTrackToolCfg(flags, name='TRT_DriftCircleOnTrackTool', **kwargs):
13  acc = ComponentAccumulator()
14  from TrkConfig.TrkRIO_OnTrackCreatorConfig import RIO_OnTrackErrorScalingCondAlgCfg
15  acc.merge(RIO_OnTrackErrorScalingCondAlgCfg(flags))
16  kwargs.setdefault("TRTErrorScalingKey", '/Indet/TrkErrorScalingTRT')
17 
18  LuminosityOutputKey = ''
19  if flags.Beam.Type is not BeamType.Cosmics:
20  from LumiBlockComps.LuminosityCondAlgConfig import LuminosityCondAlgCfg
21  LuminosityCondAlg = LuminosityCondAlgCfg(flags)
22  acc.merge(LuminosityCondAlg)
23  LuminosityOutputKey = LuminosityCondAlg.getCondAlgo('LuminosityCondAlg').LuminosityOutputKey
24 
25  kwargs.setdefault("LumiDataKey", LuminosityOutputKey)
26  acc.setPrivateTools(CompFactory.InDet.TRT_DriftCircleOnTrackTool(name, **kwargs))
27  return acc
28 
29 def TRT_DriftCircleOnTrackUniversalToolCfg(flags, name='InDetTRT_RefitRotCreator', **kwargs):
30  acc = ComponentAccumulator()
31 
32  if 'RIOonTrackToolDrift' not in kwargs:
33  kwargs.setdefault("RIOonTrackToolDrift", acc.popToolsAndMerge(TRT_DriftCircleOnTrackNoDriftTimeToolCfg(flags)))
34  if 'RIOonTrackToolTube' not in kwargs:
35  kwargs.setdefault("RIOonTrackToolTube", acc.popToolsAndMerge(TRT_DriftCircleOnTrackNoDriftTimeToolCfg(flags)))
36  kwargs.setdefault("ScaleHitUncertainty", 2.5)
37 
38  acc.setPrivateTools(CompFactory.InDet.TRT_DriftCircleOnTrackUniversalTool(name, **kwargs))
39  return acc
40 
41 def TRT_DriftCircleOnTrackUniversalToolCosmicsCfg(flags, name='TRT_DriftCircleOnTrackUniversalTool', **kwargs):
42  kwargs.setdefault("ScaleHitUncertainty", 2.)
43  return TRT_DriftCircleOnTrackUniversalToolCfg(flags, name, **kwargs)
python.TRT_DriftCircleOnTrackToolConfig.TRT_DriftCircleOnTrackToolCfg
def TRT_DriftCircleOnTrackToolCfg(flags, name='TRT_DriftCircleOnTrackTool', **kwargs)
Definition: TRT_DriftCircleOnTrackToolConfig.py:12
python.LuminosityCondAlgConfig.LuminosityCondAlgCfg
def LuminosityCondAlgCfg(flags, useOnlineLumi=None, suffix=None)
Definition: LuminosityCondAlgConfig.py:17
python.JetAnalysisCommon.ComponentAccumulator
ComponentAccumulator
Definition: JetAnalysisCommon.py:302
python.TRT_DriftCircleOnTrackToolConfig.TRT_DriftCircleOnTrackUniversalToolCfg
def TRT_DriftCircleOnTrackUniversalToolCfg(flags, name='InDetTRT_RefitRotCreator', **kwargs)
Definition: TRT_DriftCircleOnTrackToolConfig.py:29
python.TRT_DriftCircleOnTrackToolConfig.TRT_DriftCircleOnTrackNoDriftTimeToolCfg
def TRT_DriftCircleOnTrackNoDriftTimeToolCfg(flags, name='TRT_DriftCircleOnTrackNoDriftTimeTool', **kwargs)
Definition: TRT_DriftCircleOnTrackToolConfig.py:7
python.TRT_DriftCircleOnTrackToolConfig.TRT_DriftCircleOnTrackUniversalToolCosmicsCfg
def TRT_DriftCircleOnTrackUniversalToolCosmicsCfg(flags, name='TRT_DriftCircleOnTrackUniversalTool', **kwargs)
Definition: TRT_DriftCircleOnTrackToolConfig.py:41
python.TrkRIO_OnTrackCreatorConfig.RIO_OnTrackErrorScalingCondAlgCfg
def RIO_OnTrackErrorScalingCondAlgCfg(flags, name='RIO_OnTrackErrorScalingCondAlg', **kwargs)
Definition: TrkRIO_OnTrackCreatorConfig.py:197