Skip to content
Snippets Groups Projects
Commit cbb0544e authored by Frank Winklmeier's avatar Frank Winklmeier
Browse files

TriggerMenuMT: use (cached) getL1MenuAccess for L1Menu access

parent f39df0ae
No related branches found
No related tags found
2 merge requests!716942024-05-24: merge of 24.0 into main,!71627TriggerMenuMT+L1TopoOnlineMonitoring: use (cached) getL1MenuAccess
......@@ -31,8 +31,7 @@ def getOverallL1item(flags, chainName):
assert '_L1' in chainName, 'ERROR IN CHAIN {}, missing L1 seed at the end i.e. _L1...' .format(chainName)
from TriggerMenuMT.HLT.Menu.L1Seeds import valid_multiseeds, getSpecificL1Seeds
from TrigConfIO.L1TriggerConfigAccess import L1MenuAccess
from TrigConfigSvc.TrigConfigSvcCfg import getL1MenuFileName
from TrigConfigSvc.TriggerConfigAccess import getL1MenuAccess
# this assumes that the last string of a chain name is the overall L1 item
cNameParts = chainName.rsplit("_L1",1)
......@@ -45,8 +44,7 @@ def getOverallL1item(flags, chainName):
return 'L1_EM24VHI,L1_MU20'
if l1seed in valid_multiseeds:
# For these item seed specifications we need to derive the precise list of item names from the L1Menu.
lvl1name = getL1MenuFileName(flags)
lvl1access = L1MenuAccess(lvl1name)
lvl1access = getL1MenuAccess(flags)
itemsDict = lvl1access.items(includeKeys = ['name','ctpid','triggerType'])
l1seedlist = getSpecificL1Seeds(l1seed, itemsDict, flags.Trigger.triggerMenuSetup)
return l1seedlist
......
#!/usr/bin/env python3
# Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
# Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
"""
Dumps the trigger menu, optionally running some checks for name
......@@ -79,6 +79,7 @@ def run():
if args.check_l1 or args.dump_dicts:
args.parse_names = True
flags.Trigger.triggerConfig='FILE'
flags.Input.Files=[]
flags.Trigger.triggerMenuSetup=menu_name
flags.lock()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment