ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Trigger
TriggerCommon
TriggerMenuMT
python
L1
Menu
Menu_MC_pp_run4_v1.py
Go to the documentation of this file.
1
# Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
2
3
from
TriggerMenuMT.L1.Base.L1MenuFlags
import
L1MenuFlags
4
import
TriggerMenuMT.L1.Menu.Menu_MC_pp_run3_v1
as
Run3
5
6
def
defineMenu
():
7
8
# reuse based on run3 menu
9
Run3.defineMenu()
10
11
l1items = L1MenuFlags.items()
12
13
# remove AFP and MBTS items, plus any item which are being remapped and which are in the pp menu
14
discard_list = [
"L1_AFP"
,
"L1_MBTS"
,
"L1_eTAU140"
,
"L1_eTAU35"
,
"L1_3jJ90"
,
"L1_MU14FCH_jJ90"
,
"L1_jJ90"
,
"L1_2jJ90_jXE80"
,
"L1_LATE-MU8F_jJ90"
]
15
16
def
match_any(item):
17
return
any([item.startswith(pattern)
for
pattern
in
discard_list])
18
19
l1items = [l1
for
l1
in
l1items
if
not
match_any(l1)]
20
existed =
set
(l1items)
21
22
def
try_add(item):
23
if
item
not
in
existed:
24
l1items.append(item)
25
26
def
try_recover(item):
27
if
item
in
L1MenuFlags.ItemMap():
28
l1items.append(item)
29
30
# add run4 new items
31
try_add(
"L1_eEM10L_MU8F"
)
32
try_add(
"L1_2eEM10L"
)
33
try_add(
"L1_MU5VF_cTAU30M"
)
34
try_add(
"L1_3jJ40"
)
35
try_add(
"L1_eEM20M"
)
# Remapped from eEM1 (HI menu only)
36
try_add(
"L1_eEM24M"
)
# Remapped from eEM2 (HI menu only)
37
try_add(
"L1_eEM10L_MU5VF"
)
38
try_add(
"L1_eTAU120"
)
# Remapped from eTAU140
39
try_add(
"L1_eTAU28M_2eTAU20M"
)
# Remapped from eTAU35_2eTAU20M
40
try_add(
"L1_jJ70"
)
# Remapped from jJ90
41
try_add(
"L1_3jJ70"
)
# Remapped from 3jJ90
42
try_add(
"L1_2jJ70_jXE80"
)
43
try_add(
"L1_HT150-jJ50s5pETA32"
)
44
try_add(
"L1_MU8VF_2MU8F"
)
45
46
# recover the ones removed by run3 MC
47
try_recover(
"L1_eEM22M"
)
48
try_recover(
"L1_jJ140"
)
49
50
L1MenuFlags.items = l1items
set
STL class.
python.L1.Menu.Menu_MC_pp_run4_v1.defineMenu
defineMenu()
Definition
Menu_MC_pp_run4_v1.py:6
Generated on
for ATLAS Offline Software by
1.17.0