3 from TriggerMenuMT.L1.Base.L1MenuFlags
import L1MenuFlags
4 import TriggerMenuMT.L1.Menu.Menu_MC_pp_run3_v1
as Run3
11 l1items = L1MenuFlags.items()
14 discard_list = [
"L1_AFP",
"L1_MBTS"]
17 return any([item.startswith(pattern)
for pattern
in discard_list])
19 l1items = [l1
for l1
in l1items
if not match_any(l1)]
20 existed =
set(l1items)
23 if item
not in existed:
26 def try_recover(item):
27 if item
in L1MenuFlags.ItemMap():
31 try_add(
"L1_eEM10L_MU8F")
33 try_add(
"L1_MU5VF_cTAU30M")
37 try_recover(
"L1_eEM22M")
38 try_recover(
"L1_jJ140")
40 L1MenuFlags.items = l1items