ATLAS Offline Software
Loading...
Searching...
No Matches
TrigJetConfigFlags.py
Go to the documentation of this file.
1# Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
2
3from AthenaConfiguration.AthConfigFlags import AthConfigFlags
4from AthenaCommon.SystemOfUnits import GeV
5
7 flags = AthConfigFlags()
8
9 flags.addFlag('Trigger.Jet.doJetSuperPrecisionTracking', False,
10 help='enable precision tracking in jet super-ROI before fast b-tagging (EMTopo jets)')
11
12 flags.addFlag("Trigger.Jet.fastbtagPFlow", True,
13 help='enable fast b-tagging for all fully calibrated HLT PFlow jets')
14
15 flags.addFlag("Trigger.Jet.fastbtagVertex", True,
16 help='enable the addition of the super ROI PV to the b-tagging')
17
18 flags.addFlag("Trigger.Jet.doVRJets", False,
19 help='enable the addition of the VR track jet reconstruction sequence')
20
21 flags.addFlag("Trigger.Jet.hitZNetwork",
22 "BTagging/20261007trig/HitZV01/antikt4emtopo/network.onnx",
23 help='ONNX file for the hit-based per-jet z regression, resolved by PathResolver')
24
25 flags.addFlag("Trigger.Jet.hitZSlimConverters", True,
26 help='let the Si cluster converters skip everything HitZ does not read; '
27 'unset to compare against the full converter output')
28
29 flags.addFlag("Trigger.Jet.hitZExecutionProvider", "CPU",
30 help='onnx execution provider for the HitZ regression, CPU or CUDA')
31
32 flags.addFlag("Trigger.Jet.hitZDeviceId", 0,
33 help='device the HitZ CUDA execution provider runs on')
34
35 flags.addFlag("Trigger.Jet.hitZUseTF32", False,
36 help='let tensor cores evaluate the HitZ fp32 matmuls in TF32')
37
38 # chooses calibration config file for HLT small-R jets
39 # mapping in: Reconstruction/Jet/JetCalibTools/python/JetCalibToolsConfig.py
40 # All calib keys for HLT jets have to start with "Trig" otherwise the JetCalibTool config fails!
41 flags.addFlag("Trigger.Jet.pflowCalibKey", lambda prevFlags: "TrigHIUPC" if 'HI' in prevFlags.Trigger.triggerMenuSetup else "TrigR22Prerec",
42 help='calibration config file for HLT small-R jets')
43
44 flags.addFlag("Trigger.Jet.emtopoCalibKey", "TrigLS2",
45 help='calibration config file for HLT small-R jets')
46
47 flags.addFlag("Trigger.Jet.pflowLJCalibKey", "TrigSoftDrop",
48 help='calibration config file for HLT large-R PFlow jets')
49
50 # chooses config directory for jet vertex tagger with neural network
51 flags.addFlag("Trigger.Jet.nnJVTConfigDir", lambda prevFlags: "JetPileupTag/NNJvt/HLT-2025-05-21",
52 help='config directory containing cut files and neural network for HLT nnjvt')
53
54 flags.addFlag("Trigger.Jet.PFlowTolerance", 1e-2,
55 help='tolerance in STEP Propagator')
56
57 flags.addFlag("Trigger.Jet.PFlowUnifiedChain", False,
58 help='use unified PF tool chain in eflowRec')
59
60 flags.addFlag("Trigger.Jet.TrackVtxAssocWP", "Custom", # offline default is "Nonprompt_All_MaxWeight"
61 help='working point for the TVA algorithm')
62
63 flags.addFlag("Trigger.Jet.LowPtFilter", lambda prevFlags: 'HI' in prevFlags.Trigger.triggerMenuSetup,
64 help='apply low pT filter on antiKt4 jets (used for HI UPC jet reco)')
65
66 return flags
67
68
70 flags = AthConfigFlags()
71
72 # PFO-muon removal option for the full-scan hadronic signatures.
73 # Options are:
74 # "None": Do no PFO-muon removal
75 # "Calo": Use the calo-tagging tools from the muon slice
76 # "Iso" : Use the mainly isolation-based selections based on the MET associator package
77 flags.addFlag("Trigger.FSHad.PFOMuonRemoval", "Calo",
78 help='PFO-muon removal option: None, Calo, Iso)')
79
80 flags.addFlag("Trigger.FSHad.PFOMuonRemovalMinPt", 10 * GeV,
81 help='minimum pT threshold to use for the muon removal')
82
83 flags.addFlag("Trigger.FSHad.doJetRestrictedVertexSort", False,
84 help='use tracks in jets for computing sumpt2 for vertex sorting')
85
86 return flags
87
88if __name__ == "__main__":
89 from AthenaConfiguration.AllConfigFlags import initConfigFlags
90 from AthenaConfiguration.TestDefaults import defaultTestFiles
91 flags = initConfigFlags()
92 flags.Input.Files = defaultTestFiles.RAW_RUN2
93 flags.lock()
94 flags.loadAllDynamicFlags()
95 flags.dump("Trigger.(Jet|FSHad)",evaluate=True)