ATLAS Offline Software
Loading...
Searching...
No Matches
TrkTrackSlimmerConfig.py
Go to the documentation of this file.
1# Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
2# Configuration of TrkTrackSlimmer package
3from AthenaConfiguration.ComponentAccumulator import ComponentAccumulator
4from AthenaConfiguration.ComponentFactory import CompFactory
5
6def TrackSlimmerCfg(flags, name="TrackSlimmer", **kwargs):
7 acc = ComponentAccumulator()
8
9 if "TrackSlimmingTool" not in kwargs:
10 from TrkConfig.TrkTrackSlimmingToolConfig import TrackSlimmingToolCfg
11 kwargs.setdefault("TrackSlimmingTool", acc.popToolsAndMerge(
12 TrackSlimmingToolCfg(flags)))
13
14 acc.addEventAlgo(CompFactory.Trk.TrackSlimmer(name, **kwargs))
15 return acc
TrackSlimmerCfg(flags, name="TrackSlimmer", **kwargs)