ATLAS Offline Software
Loading...
Searching...
No Matches
MuonMatchingToolConfig.py
Go to the documentation of this file.
1# Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
2
3def MuonMatchingToolConfig(flags):
4 from AthenaConfiguration.ComponentFactory import CompFactory
5
6 from AthenaConfiguration.ComponentAccumulator import ComponentAccumulator
7 acc = ComponentAccumulator()
8
9 from TrigT1MuctpiPhase1.TrigT1MuctpiPhase1Config import TrigThresholdDecisionToolCfg
10
11 matchTool = CompFactory.MuonMatchingTool("MuonMatchingTool")
12 matchTool.TrigThresholdDecisionTool = acc.popToolsAndMerge(TrigThresholdDecisionToolCfg(flags,
13 name="TrigThresholdDecisionTool",
14 AODinput = flags.Trigger.triggerConfig == 'INFILE'))
15
16 # Check wheter we are running the phase-2 menu
17 from TrigConfigSvc.TriggerConfigAccess import getHLTMenuAccess
18 isRun4Menu = (getHLTMenuAccess(flags).name()).find("run4") != -1
19 if not isRun4Menu:
20 matchTool.EFFastRecoSAContainerName = ""
21
22 acc.setPrivateTools(matchTool)
23
24 return acc
std::string find(const std::string &s)
return a remapped string
Definition hcg.cxx:140