ATLAS Offline Software
Loading...
Searching...
No Matches
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
3from AthenaConfiguration.ComponentAccumulator import ComponentAccumulator
4from AthenaConfiguration.ComponentFactory import CompFactory
5
6def ResidualPullCalculatorCfg(flags, name='ResidualPullCalculator', **kwargs):
7 acc = ComponentAccumulator()
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
ResidualPullCalculatorCfg(flags, name='ResidualPullCalculator', **kwargs)