ATLAS Offline Software
Loading...
Searching...
No Matches
CombinedAlgsConfig.py
Go to the documentation of this file.
1# Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
2
3from AthenaConfiguration.ComponentAccumulator import ComponentAccumulator
4from AthenaConfiguration.ComponentFactory import CompFactory
5
6def MuonCreatorAlgCfg(flags, name="MuonCreatorAlgR4", **kwargs):
7 result = ComponentAccumulator()
8 from MuonSelectorTools.MuonSelectorToolsConfig import MuonSelectionToolCfg
9 kwargs.setdefault("SelectionTool", result.popToolsAndMerge(MuonSelectionToolCfg(flags)))
10 from MuonTrackFindingAlgs.TrackFindingConfig import TrackSummaryToolCfg
11 kwargs.setdefault("TrackSummaryTool", result.popToolsAndMerge(TrackSummaryToolCfg(flags)))
12 the_alg = CompFactory.MuonCombinedR4.MuonCreatorAlg(name, **kwargs)
13 result.addEventAlgo(the_alg, primary = True)
14 return result
MuonCreatorAlgCfg(flags, name="MuonCreatorAlgR4", **kwargs)