ATLAS Offline Software
Menu_MC_pp_run3_v1.py
Go to the documentation of this file.
1 # Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
2 
3 from TriggerMenuMT.L1.Base.L1MenuFlags import L1MenuFlags
4 import TriggerMenuMT.L1.Menu.Menu_Physics_pp_run3_v1 as physics_menu
5 
6 def defineMenu():
7  physics_menu.defineMenu()
8 
9  # Add new items to the item list in the Physics menu
10  l1items = L1MenuFlags.items()
11  l1items += [
12 
13  # ATR-28612 - legacy EM
14  'L1_EM3',
15  'L1_EM18VHI',
16  'L1_EM10VH',
17  'L1_EM15',
18  'L1_EM7_EMPTY',
19  'L1_EM3_EMPTY',
20  'L1_EM7_FIRSTEMPTY',
21 
22  # ATR-28761 - Phase 1 Muon + jet
23  'L1_MU14FCH_jJ80',
24  'L1_MU14FCH_jXE70',
25  'L1_MU14FCH_J50',
26  'L1_MU14FCH_XE40',
27 
28  # ATR-19376
29  'L1_MU14FCH_XE30',
30  'L1_MU14FCH_J40',
31 
32  # Legacy TAU items (ATR-28677)
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',
36  'L1_TAU60',
37  'L1_TAU60_2TAU40',
38  'L1_TAU100',
39  'L1_DR-TAU20ITAU12I',
40  'L1_DR-TAU20ITAU12I-J25',
41  'L1_TAU60_DR-TAU20ITAU12I',
42  'L1_TAU20IM_2TAU12IM',
43  # combined tau - jet
44  'L1_TAU20IM_2TAU12IM_4J12p0ETA25',
45 
46  # ATR-24037
47  'L1_jXEPerf100',
48  # ATR-22696
49  'L1_eTAU60HL',
50  'L1_eTAU80HL',
51 
52  # ATR-27782 - test eEM M/DR Topo
53  'L1_2DR15-M70-2eEM9L',
54  'L1_2DR15-M70-2eEM12L',
55  'L1_2DR15-0M30-eEM12LeEM9L',
56  'L1_13DR25-25M70-eEM12LeEM9L',
57 
58  # jLJ, Production thresholds, not used in commissioning
59  'L1_jLJ60', 'L1_jLJ100', 'L1_jLJ160', 'L1_jLJ200',
60  #ATR28783
61  'L1_6J15',
62  # TOPO
63  'L1_BTAG-MU5VFjJ90',
64  'L1_BTAG-MU8FjJ40_2jJ40p0ETA25' ,
65  'L1_BTAG-MU8FjJ30_2jJ30p0ETA25_jJ50p0ETA25',
66  'L1_BTAG-MU5VFjJ40_2jJ40p0ETA25' ,
67  'L1_BTAG-MU5VFjJ30_2jJ30p0ETA25_jJ50p0ETA25',
68  'L1_BPH-0M9-EM7-EM5',
69  'L1_BPH-0DR3-EM7J15',
70 
71  #ATR-26902
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',
78  #ATR-27132
79  'L1_cTAU20M_cTAU12M_4jJ30p0ETA24_0DETA24_4DPHI99-eTAU30eTAU20',
80  'L1_cTAU20M_cTAU12M_4jJ30p0ETA24_0DETA24_4DPHI99-eTAU30eTAU12',
81  'L1_cTAU20M_cTAU12M_4jJ30p0ETA24_0DETA24_10DPHI99-eTAU30eTAU12',
82  #ATR-29439
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',
87  #ATRBoosteddiTau
88  'L1_eTAU20_DR-eTAU20eTAU12-jJ40',
89  'L1_eTAU20_DR-eTAU20eTAU12-jJ30',
90  #ATR-29523
91  'L1_3jJ40p0ETA25',
92 
93  # ATR-29651 - Tau+X chains using eTAU20M seeds
94  'L1_eEM18M_2eTAU20M_4jJ30', 'L1_eTAU60_2eTAU20M_jXE80', 'L1_eEM18M_2eTAU20M_jXE70',
95 
96  # ART-28443 test eEMX{} + {{3,4jJY{}}} L1 seeds
97  'L1_eEM22M_3jJ40p0ETA25',
98  'L1_eEM22M_4jJ30p0ETA25',
99 
100  # ATR-28692
101  'L1_EM15VHI_2TAU12IM',
102  'L1_MU8F_TAU12IM',
103  'L1_MU8F_TAU12IM_J25_2J12',
104  'L1_MU8F_TAU12IM_3J12',
105  'L1_EM15VHI_2TAU12IM_J25_3J12',
106  'L1_MU8F_TAU20IM',
107  #ATR-30179
108  'L1_cTAU30M_3DR99-MU8F-eTAU30',
109  'L1_cTAU30M_3DR35-MU8F-eTAU30',
110  'L1_cTAU30M_3DR30-MU8F-eTAU30',
111  'L1_cTAU30M_3DR28-MU8F-eTAU30',
112  #
113  'L1_TAU20IM_2TAU12IM_J25_2J20_3J12',
114  'L1_TAU25IM_2TAU20IM',
115  #
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',
123 
124  #ATR-28679 - legacy XE
125  'L1_XE35', 'L1_XE40', 'L1_XE45', 'L1_XE50','L1_XE55', 'L1_XE60',
126  # ATR-29609
127  'L1_XE30', 'L1_XE300',
128 
129  # Legacy combined em - jet moved by ATR-28761
130  'L1_EM18VHI_3J20',
131  'L1_EM20VH_3J20',
132 
133  # Legacy combined mu - jet moved by ATR-28761
134  'L1_MU3V_J12',
135  # Legacy ATR-13743 J,XE thershold change for ATR-19376 moved by ATR-28761
136  'L1_MU8F_2J20','L1_MU8F_3J20', 'L1_MU8F_2J15_J20',
137  'L1_3J15p0ETA25_XE40',
138  'L1_2J15_XE55',
139  'L1_J40_XE50',
140  'L1_2J50_XE40',
141  'L1_J40_XE60',
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',
144 
145  # ATR-28678
146  "L1_J12",
147  "L1_J25",
148  "L1_J30",
149  "L1_J40",
150  "L1_J75",
151  "L1_J85",
152  "L1_J100",
153  "L1_J120",
154  "L1_J400_LAR",
155  "L1_J12_EMPTY",
156  "L1_J30_EMPTY",
157  "L1_J30_FIRSTEMPTY",
158  "L1_J45p0ETA21_3J15p0ETA25",
159  "L1_4J20",
160  "L1_J85_3J30",
161  "L1_J25p0ETA23_2J15p31ETA49",
162  "L1_J40p0ETA25_2J25_J20p31ETA49",
163  "L1_3J35p0ETA23",
164  "L1_4J15p0ETA25",
165  "L1_5J15p0ETA25",
166  'L1_J30p31ETA49_EMPTY',
167 
168 
169  # ATR-29303
170  'L1_J15',
171  'L1_J20',
172  'L1_J50',
173  'L1_J400',
174  'L1_J75p31ETA49',
175  'L1_J20p31ETA49',
176  'L1_J30p31ETA49',
177  'L1_J50p31ETA49',
178  'L1_J15p31ETA49',
179  'L1_MU3V_J15',
180  'L1_MU5VF_J40',
181  'L1_J50_2J40p0ETA25_3J15p0ETA25',
182  'L1_3J50',
183  'L1_J40p0ETA25_2J15p31ETA49',
184  'L1_3J25p0ETA23',
185 
186  # legacy L1Topo
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',
192  'L1_JPSI-1M5-EM7',
193  'L1_JPSI-1M5-EM12',
194  'L1_MJJ-500-NFF',
195  'L1_MJJ-700',
196  'L1_EM18VHI_MJJ-300',
197  'L1_HT150-J20s5pETA31_MJJ-400-CF',
198  'L1_LLP-RO',
199  'L1_LLP-NOMATCH',
200  #'L1_DPHI-2EM3',
201  'L1_SC111-CJ15',
202  'L1_J50_DETA20-J50J',
203  #'L1_BPH-0M9-EM7-EM5',
204  #'L1_BPH-0DR3-EM7J15',
205  'L1_LAR-ZEE',
206 
207  #ATR-29330
208  'L1_4J15',
209 
210  ]
211 
212  # To replace thresholds in the physics menu
213  # Do not use for L1Topo decision threshold!
214  L1MenuFlags.ThresholdMap = {
215  #example: 'jXE100' :'',
216  }
217 
218  # To replace items in the physics menu
219  L1MenuFlags.ItemMap = {
220 
221 
222  # non-primary eEM
223  'L1_eEM7':'',
224  'L1_eEM10L':'',
225  'L1_eEM15':'',
226  #'L1_eEM18':'',
227  'L1_eEM22M':'',
228  #'L1_eEM24VM':'',
229  'L1_3eEM12L':'',
230 
231  # non-primary TAU
232  'L1_eTAU20L':'',
233  'L1_eTAU35':'',
234  'L1_eTAU40HM':'',
235  'L1_2TAU8':'',
236  'L1_eEM18M_2eTAU20M':'',
237  #'L1_MU8F_eTAU20M':'',
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':'',
243 
244  # non-primary MU
245  #'L1_MU8VF':'',
246  'L1_MU14FCHR':'',
247  'L1_MU8FC':'',
248  'L1_MU15VFCH':'',
249  'L1_2MU8VF':'',
250  'L1_2MU14FCH_OVERLAY':'',
251  'L1_MU3VC':'',
252  'L1_MU4BO':'',
253  'L1_MU3EOF':'',
254  'L1_MU8FH':'',
255  'L1_MU8EOF':'',
256  'L1_MU9VF':'',
257  'L1_MU9VFC':'',
258  #'L1_MU12FCH':'',
259  'L1_MU14EOF':'',
260  'L1_MU15VFCHR':'',
261  #'L1_MU18VFCH':'',
262  'L1_MU20VFC':'',
263 
264  # non-primary J
265  'L1_J12':'',
266  # 'L1_J25':'',
267  # 'L1_J85':'',
268  'L1_J12_BGRP12':'',
269  'L1_jJ30p0ETA25':'',
270  'L1_jJ40p0ETA25':'',
271  'L1_jJ55':'',
272  'L1_jJ55p0ETA23':'',
273  'L1_jJ70p0ETA23':'',
274  #'L1_jJ80':'',
275  'L1_jJ80p0ETA25':'',
276  'L1_jJ85p0ETA21':'',
277  'L1_jJ140':'',
278  'L1_jLJ180':'',
279 
280  # other non-primary
281  'L1_jEM20':'',
282  'L1_jEM20M':'',
283 
284  # combined non-primary
285  'L1_MU8F_2J20':'',
286  'L1_MU8F_3J20':'',
287 
288  # MU non-FILLED
289  'L1_MU3V_FIRSTEMPTY':'',
290  'L1_MU8VF_EMPTY':'',
291 
292  # EM non-FILLED
293 
294  # J non-FILLED
295  # 'L1_J12_EMPTY':'',
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':'',
308 
309  # Others
310  'L1_J400_LAR':'',
311  'L1_jJ500_LAR':'',
312 
313  'L1_TRT_EMPTY':'',
314  'L1_TRT_FILLED':'',
315 
316  'L1_RD0_UNPAIRED_ISO':'',
317  'L1_RD0_FIRSTINTRAIN':'',
318  'L1_RD0_FIRSTEMPTY':'',
319  'L1_RD0_BGRP11':'',
320  'L1_RD0_BGRP7':'',
321  'L1_RD1_EMPTY':'',
322  'L1_RD2_EMPTY':'',
323  'L1_RD2_FILLED':'',
324  'L1_RD3_EMPTY':'',
325  'L1_RD3_FILLED':'',
326 
327  'L1_TGC_BURST':'',
328 
329  'L1_LUCID_A':'',
330  'L1_LUCID_C':'',
331 
332  'L1_BPTX0_BGRP12':'',
333  'L1_BPTX1_BGRP12':'',
334 
335  'L1_CALREQ0':'',
336  'L1_CALREQ1':'',
337  'L1_CALREQ2':'',
338 
339  'L1_MBTS_A':'',
340  'L1_MBTS_C':'',
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':'',
347  'L1_MBTS_1':'',
348  'L1_MBTS_1_1':'',
349  'L1_MBTS_2':'',
350  'L1_MBTS_4_A':'',
351  'L1_MBTS_4_C':'',
352  'L1_MBTS_1_A':'',
353  'L1_MBTS_1_C':'',
354  'L1_MBTS_1_A_EMPTY':'',
355  'L1_MBTS_1_C_EMPTY':'',
356 
357  'L1_MBTSA0':'',
358  'L1_MBTSA1':'',
359  'L1_MBTSA2':'',
360  'L1_MBTSA3':'',
361  'L1_MBTSA4':'',
362  'L1_MBTSA5':'',
363  'L1_MBTSA6':'',
364  'L1_MBTSA7':'',
365  'L1_MBTSA8':'',
366  'L1_MBTSA9':'',
367  'L1_MBTSA10':'',
368  'L1_MBTSA11':'',
369  'L1_MBTSA12':'',
370  'L1_MBTSA13':'',
371  'L1_MBTSA14':'',
372  'L1_MBTSA15':'',
373  'L1_MBTSC0':'',
374  'L1_MBTSC1':'',
375  'L1_MBTSC2':'',
376  'L1_MBTSC3':'',
377  'L1_MBTSC4':'',
378  'L1_MBTSC5':'',
379  'L1_MBTSC6':'',
380  'L1_MBTSC7':'',
381  'L1_MBTSC8':'',
382  'L1_MBTSC9':'',
383  'L1_MBTSC10':'',
384  'L1_MBTSC11':'',
385  'L1_MBTSC12':'',
386  'L1_MBTSC13':'',
387  'L1_MBTSC14':'',
388  'L1_MBTSC15':'',
389 
390  'L1_BCM_Wide_BGRP12':'',
391  'L1_BCM_2A_2C_UNPAIRED_ISO':'',
392  'L1_BCM_2A_2C_BGRP12':'',
393  'L1_BCM_Wide_EMPTY':'',
394  'L1_BCM_Wide':'',
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':'',
410 
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':'',
419  'L1_AFP_A':'',
420  'L1_AFP_C':'',
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':'',
432  }
433 
434  #----------------------------------------------
435  def remapItems():
436  itemsToRemove = []
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]
441  else:
442  itemsToRemove.append(itemIndex)
443 
444  for i in reversed(itemsToRemove):
445  del L1MenuFlags.items()[i]
446  #----------------------------------------------
447 
448  remapItems()
449 
python.L1.Menu.Menu_MC_pp_run3_v1.defineMenu
def defineMenu()
Definition: Menu_MC_pp_run3_v1.py:6