Loading [MathJax]/extensions/tex2jax.js
ATLAS Offline Software
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
MenuPrescaleConfig.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.HLT.Config.Utility.MenuPrescaleSet import AutoPrescaleSetGen
4 
5 '''
6 For simple use-cases, automatic prescale sets can be generated according to the following rules.
7 
8 To apply them, add the "_{prescale_set}_prescale" prefix to the provided menu name.
9 E.g. `flags.Trigger.triggerMenuSetup='MC_pp_run3_v1_NoBulkMCProd_prescale'`.
10 
11 This is NOT meant to be used in data-taking, only for development tests and standard reprocessings/MC productions.
12 
13 For any more complex prescale sets, refer to the `TrigMenuRulebook` (used to create PS sets for data-taking),
14 located at: https://gitlab.cern.ch/atlas-trigger-menu/TrigMenuRulebook/
15 '''
16 
17 primary_groups = [
18  'Primary:PhaseI', 'Primary:Legacy', 'Primary:L1Muon', 'Primary:CostAndRate',
19  'Support:TagAndProbe', 'Support:PhaseITagAndProbe', 'Support:LegacyTagAndProbe',
20 ]
21 
22 # The following predefined filters get progressibly looser
23 menu_prescale_set_gens = {
24  # Primary (always unprescaled) triggers only, disabling unused L1 triggers.
25  'PrimaryL1PS': AutoPrescaleSetGen(enable_groups=primary_groups, disable_unused_l1_triggers=True),
26 
27  # Primary (always unprescaled) triggers only.
28  'Primary': AutoPrescaleSetGen(enable_groups=primary_groups),
29 
30  # Excludes a handful of triggers not to be used in reprocessing jobs, mostly due to CPU cost.
31  # Additionally, PS some high-rate low-mu triggers that are always prescaled in standard pp data-taking.
32  'HLTReprocessing': AutoPrescaleSetGen(
33  disable_groups=['PS:NoHLTRepro'],
34  chain_prescales={
35  'HLT_cosmic_id_L1MU3V_EMPTY': 10,
36  'HLT_cosmic_id_L1MU8VF_EMPTY': 10,
37  }
38  ),
39 
40  # Adds more specialized triggers for trigger performance and/or CP studies, possibly run heavily PSed in data.
41  'TriggerValidation': AutoPrescaleSetGen(disable_groups=['PS:NoHLTRepro', 'PS:NoTrigVal']),
42 
43  # Triggers for generic CP and physics analysis work.
44  'BulkMCProd': AutoPrescaleSetGen(disable_groups=['PS:NoHLTRepro', 'PS:NoTrigVal', 'PS:NoBulkMCProd']),
45 }