Skip to content
Snippets Groups Projects
Commit e3d7986b authored by Adam Edward Barton's avatar Adam Edward Barton
Browse files

Merge branch 'master-ATR-20931' into 'master'

Generate json L1 menu for all menu types (ATR-20931)

Closes ATR-20931

See merge request atlas/athena!30558
parents a953dddd b5995dea
No related branches found
No related tags found
No related merge requests found
......@@ -234,11 +234,15 @@ class L1MenuConfig(object):
return None
def menuToLoad(self,silent=False):
menuToLoad = self.menuName
if menuToLoad == "LS2_v1" or menuToLoad == "pp_run3_v1" in menuToLoad:
menuToLoad = "MC_pp_v8"
""" resolve the menu name to the menu files to load"""
menuToLoadReq = self.menuName
from .Menu.MenuMapping import menuMap
if menuToLoadReq in menuMap:
menuToLoad = menuMap[menuToLoadReq]
if not silent:
log.info("Menu LS2_v1/*_pp_run3_v1 was requested but is not available yet. Will load MC_pp_v8 instead. This is a TEMPORARY meassure")
log.info("Menu %s was requested, but will load %s as specified in TriggerMenuMT.L1.Menu.menuMap", menuToLoadReq, menuToLoad)
else:
menuToLoad = menuToLoadReq
return menuToLoad
def _checkMenuExistence(self):
......
menuMap = {
"LS2_v1" : "MC_pp_v8",
"Physics_pp_run3_v1" : "MC_pp_v8",
"MC_pp_run3_v1" : "MC_pp_v8",
"Physics_pp_v8" : "MC_pp_v8",
"Cosmic_pp_run3_v1" : "MC_pp_v8",
"Physics_HI_v4" : "MC_pp_v8",
"MC_HI_v4" : "MC_pp_v8",
"PhysicsP1_pp_run3_v1" : "MC_pp_v8"
}
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