3 from TriggerMenuMT.L1.Base.L1MenuFlags
import L1MenuFlags
4 import TriggerMenuMT.L1.Menu.Menu_Physics_pp_run3_v1
as physics_menu
7 physics_menu.defineMenu()
10 l1items = L1MenuFlags.items()
33 'L1_TAU8_EMPTY',
'L1_TAU8_FIRSTEMPTY',
'L1_TAU8_UNPAIRED_ISO',
34 'L1_TAU40_EMPTY',
'L1_TAU40_UNPAIRED_ISO',
35 'L1_TAU8',
'L1_TAU12IM',
'L1_TAU20IM',
'L1_TAU40',
40 'L1_DR-TAU20ITAU12I-J25',
41 'L1_TAU60_DR-TAU20ITAU12I',
42 'L1_TAU20IM_2TAU12IM',
44 'L1_TAU20IM_2TAU12IM_4J12p0ETA25',
53 'L1_2DR15-M70-2eEM9L',
54 'L1_2DR15-M70-2eEM12L',
55 'L1_2DR15-0M30-eEM12LeEM9L',
56 'L1_13DR25-25M70-eEM12LeEM9L',
59 'L1_jLJ60',
'L1_jLJ100',
'L1_jLJ160',
'L1_jLJ200',
64 'L1_BTAG-MU8FjJ40_2jJ40p0ETA25' ,
65 'L1_BTAG-MU8FjJ30_2jJ30p0ETA25_jJ50p0ETA25',
66 'L1_BTAG-MU5VFjJ40_2jJ40p0ETA25' ,
67 'L1_BTAG-MU5VFjJ30_2jJ30p0ETA25_jJ50p0ETA25',
72 'L1_2cTAU20M_4DR28-eTAU30eTAU20-jJ55',
73 'L1_2cTAU20M_4DR32-eTAU30eTAU20-jJ55',
74 'L1_2cTAU20M_10DR32-eTAU30eTAU20-jJ55',
75 'L1_4jJ30p0ETA24_0DETA24_4DPHI99-eTAU30eTAU20',
76 'L1_4jJ30p0ETA24_0DETA24_10DPHI99-eTAU30eTAU12',
77 'L1_jJ85p0ETA21_3jJ40p0ETA25_cTAU20M_2cTAU12M',
79 'L1_cTAU20M_cTAU12M_4jJ30p0ETA24_0DETA24_4DPHI99-eTAU30eTAU20',
80 'L1_cTAU20M_cTAU12M_4jJ30p0ETA24_0DETA24_4DPHI99-eTAU30eTAU12',
81 'L1_cTAU20M_cTAU12M_4jJ30p0ETA24_0DETA24_10DPHI99-eTAU30eTAU12',
83 'L1_cTAU30M_2cTAU20M_DR-eTAU30eTAU20-jJ50',
84 'L1_cTAU30M_2cTAU20M_DR-eTAU30eTAU20-jJ40',
85 'L1_cTAU30M_2cTAU20M_DR-eTAU30eTAU20-jJ30',
86 'L1_cTAU30M_2cTAU20M_3jJ30p0ETA25',
88 'L1_eTAU20_DR-eTAU20eTAU12-jJ40',
89 'L1_eTAU20_DR-eTAU20eTAU12-jJ30',
94 'L1_eEM18M_2eTAU20M_4jJ30',
'L1_eTAU60_2eTAU20M_jXE80',
'L1_eEM18M_2eTAU20M_jXE70',
97 'L1_eEM22M_3jJ40p0ETA25',
98 'L1_eEM22M_4jJ30p0ETA25',
101 'L1_EM15VHI_2TAU12IM',
103 'L1_MU8F_TAU12IM_J25_2J12',
104 'L1_MU8F_TAU12IM_3J12',
105 'L1_EM15VHI_2TAU12IM_J25_3J12',
108 'L1_cTAU30M_3DR99-MU8F-eTAU30',
109 'L1_cTAU30M_3DR35-MU8F-eTAU30',
110 'L1_cTAU30M_3DR30-MU8F-eTAU30',
111 'L1_cTAU30M_3DR28-MU8F-eTAU30',
113 'L1_TAU20IM_2TAU12IM_J25_2J20_3J12',
114 'L1_TAU25IM_2TAU20IM',
116 'L1_TAU20IM_2J20_XE45',
117 'L1_EM15VHI_2TAU12IM_XE35',
118 'L1_EM15VHI_2TAU12IM_4J12',
119 'L1_MU8F_TAU12IM_XE35',
120 'L1_TAU20IM_2TAU12IM_XE35',
121 'L1_TAU40_2TAU12IM_XE40',
122 'L1_TAU25IM_2TAU20IM_2J25_3J20',
125 'L1_XE35',
'L1_XE40',
'L1_XE45',
'L1_XE50',
'L1_XE55',
'L1_XE60',
127 'L1_XE30',
'L1_XE300',
136 'L1_MU8F_2J20',
'L1_MU8F_3J20',
'L1_MU8F_2J15_J20',
137 'L1_3J15p0ETA25_XE40',
142 'L1_AFP_A_AND_C_TOF_J20',
'L1_AFP_A_AND_C_TOF_T0T1_J20',
'L1_AFP_A_AND_C_TOF_J30',
'L1_AFP_A_AND_C_TOF_T0T1_J30',
'L1_AFP_A_AND_C_TOF_J50',
'L1_AFP_A_AND_C_TOF_T0T1_J50',
'L1_AFP_A_AND_C_TOF_J75',
'L1_AFP_A_AND_C_TOF_T0T1_J75',
143 'L1_AFP_A_OR_C_J12',
'L1_AFP_A_AND_C_J12',
158 "L1_J45p0ETA21_3J15p0ETA25",
161 "L1_J25p0ETA23_2J15p31ETA49",
162 "L1_J40p0ETA25_2J25_J20p31ETA49",
166 'L1_J30p31ETA49_EMPTY',
181 'L1_J50_2J40p0ETA25_3J15p0ETA25',
183 'L1_J40p0ETA25_2J15p31ETA49',
187 'L1_HT190-J15s5pETA21',
188 'L1_BPH-0M9-EM7-EM5_2MU3V',
189 'L1_BPH-0M9-EM7-EM5_MU5VF',
190 'L1_BPH-0DR3-EM7J15_2MU3V',
191 'L1_BPH-0DR3-EM7J15_MU5VF',
196 'L1_EM18VHI_MJJ-300',
197 'L1_HT150-J20s5pETA31_MJJ-400-CF',
202 'L1_J50_DETA20-J50J',
214 L1MenuFlags.ThresholdMap = {
219 L1MenuFlags.ItemMap = {
236 'L1_eEM18M_2eTAU20M':
'',
238 'L1_MU8F_eTAU20M_jJ55_2jJ30':
'',
239 'L1_eEM18M_2eTAU20M_jJ55_3jJ30':
'',
240 'L1_eTAU30M_2eTAU20M_jJ55_2jJ50_3jJ3':
'',
241 'L1_eTAU30M_2jJ50_jXE90':
'',
242 'L1_eTAU30M_2eTAU20M_jXE70':
'',
250 'L1_2MU14FCH_OVERLAY':
'',
289 'L1_MU3V_FIRSTEMPTY':
'',
296 'L1_J12_FIRSTEMPTY':
'',
297 'L1_J12_UNPAIRED_ISO':
'',
298 'L1_J12_UNPAIRED_NONISO':
'',
299 'L1_J12_UNPAIREDB1':
'',
300 'L1_J12_UNPAIREDB2':
'',
301 'L1_J15p31ETA49_UNPAIRED_ISO':
'',
302 'L1_J30p31ETA49_EMPTY':
'',
303 'L1_J30p31ETA49_UNPAIRED_ISO':
'',
304 'L1_J30p31ETA49_UNPAIRED_NONISO':
'',
305 'L1_J50_UNPAIRED_ISO':
'',
306 'L1_J50_UNPAIRED_NONISO':
'',
307 'L1_J100_FIRSTEMPTY':
'',
316 'L1_RD0_UNPAIRED_ISO':
'',
317 'L1_RD0_FIRSTINTRAIN':
'',
318 'L1_RD0_FIRSTEMPTY':
'',
332 'L1_BPTX0_BGRP12':
'',
333 'L1_BPTX1_BGRP12':
'',
341 'L1_MBTS_1_EMPTY':
'',
342 'L1_MBTS_1_1_EMPTY':
'',
343 'L1_MBTS_2_EMPTY':
'',
344 'L1_MBTS_1_UNPAIRED_ISO':
'',
345 'L1_MBTS_1_1_UNPAIRED_ISO':
'',
346 'L1_MBTS_2_UNPAIRED_ISO':
'',
354 'L1_MBTS_1_A_EMPTY':
'',
355 'L1_MBTS_1_C_EMPTY':
'',
390 'L1_BCM_Wide_BGRP12':
'',
391 'L1_BCM_2A_2C_UNPAIRED_ISO':
'',
392 'L1_BCM_2A_2C_BGRP12':
'',
393 'L1_BCM_Wide_EMPTY':
'',
395 'L1_BCM_Wide_CALIB':
'',
396 'L1_BCM_Wide_UNPAIREDB1':
'',
397 'L1_BCM_Wide_UNPAIREDB2':
'',
398 'L1_J12_UNPAIREDB1':
'',
399 'L1_J12_UNPAIREDB2':
'',
400 'L1_BCM_2A_EMPTY':
'',
401 'L1_BCM_2C_EMPTY':
'',
402 'L1_BCM_2A_UNPAIREDB1':
'',
403 'L1_BCM_2C_UNPAIREDB1':
'',
404 'L1_BCM_2A_UNPAIREDB2':
'',
405 'L1_BCM_2C_UNPAIREDB2':
'',
406 'L1_BCM_2A_FIRSTINTRAIN':
'',
407 'L1_BCM_2C_FIRSTINTRAIN':
'',
408 'L1_BCM_2A_CALIB':
'',
409 'L1_BCM_2C_CALIB':
'',
411 'L1_AFP_A_OR_C_UNPAIRED_ISO':
'',
412 'L1_AFP_A_OR_C_UNPAIRED_NONISO':
'',
413 'L1_AFP_A_OR_C_EMPTY':
'',
414 'L1_AFP_A_OR_C_FIRSTEMPTY':
'',
415 'L1_AFP_FSA_BGRP12':
'',
416 'L1_AFP_FSC_BGRP12':
'',
417 'L1_AFP_NSA_BGRP12':
'',
418 'L1_AFP_NSC_BGRP12':
'',
421 'L1_AFP_A_OR_C_MBTS_2':
'',
422 'L1_AFP_A_AND_C_MBTS_2':
'',
423 'L1_AFP_A_AND_C_TOF_T0T1':
'',
424 'L1_AFP_FSA_TOF_T0_BGRP12':
'',
425 'L1_AFP_FSA_TOF_T1_BGRP12':
'',
426 'L1_AFP_FSC_TOF_T0_BGRP12':
'',
427 'L1_AFP_FSC_TOF_T1_BGRP12':
'',
428 'L1_AFP_FSA_TOF_T2_BGRP12':
'',
429 'L1_AFP_FSA_TOF_T3_BGRP12':
'',
430 'L1_AFP_FSC_TOF_T2_BGRP12':
'',
431 'L1_AFP_FSC_TOF_T3_BGRP12':
'',
437 for itemIndex, itemName
in enumerate(L1MenuFlags.items()):
438 if itemName
in L1MenuFlags.ItemMap():
439 if L1MenuFlags.ItemMap()[itemName] !=
'':
440 L1MenuFlags.items()[itemIndex] = L1MenuFlags.ItemMap()[itemName]
442 itemsToRemove.append(itemIndex)
444 for i
in reversed(itemsToRemove):
445 del L1MenuFlags.items()[i]