ATLAS Offline Software
TrkResidualPullCalculatorConfig.py
Go to the documentation of this file.
1 # Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
2 # Configuration of TrkResidualPullCalculator package
3 from AthenaConfiguration.ComponentAccumulator import ComponentAccumulator
4 from AthenaConfiguration.ComponentFactory import CompFactory
5 
6 def ResidualPullCalculatorCfg(flags, name='ResidualPullCalculator', **kwargs):
8 
9  if not flags.Detector.EnableSCT and not flags.Detector.EnableITkStrip:
10  kwargs.setdefault("ResidualPullCalculatorForSCT", "")
11  if not flags.Detector.EnableRPC:
12  kwargs.setdefault("ResidualPullCalculatorForRPC", "")
13  if not flags.Detector.EnableTGC:
14  kwargs.setdefault("ResidualPullCalculatorForTGC", "")
15 
16  acc.setPrivateTools(CompFactory.Trk.ResidualPullCalculator(name, **kwargs))
17  return acc
python.JetAnalysisCommon.ComponentAccumulator
ComponentAccumulator
Definition: JetAnalysisCommon.py:302
python.TrkResidualPullCalculatorConfig.ResidualPullCalculatorCfg
def ResidualPullCalculatorCfg(flags, name='ResidualPullCalculator', **kwargs)
Definition: TrkResidualPullCalculatorConfig.py:6