ATLAS Offline Software
TrigJetConfigFlags.py
Go to the documentation of this file.
1 # Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
2 
3 from AthenaConfiguration.AthConfigFlags import AthConfigFlags
4 from 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  # chooses calibration config file for HLT small-R jets
22  # mapping in: Reconstruction/Jet/JetCalibTools/python/JetCalibToolsConfig.py
23  # All calib keys for HLT jets have to start with "Trig" otherwise the JetCalibTool config fails!
24  flags.addFlag("Trigger.Jet.pflowCalibKey", lambda prevFlags: "TrigHIUPC" if 'HI' in prevFlags.Trigger.triggerMenuSetup else "TrigR22Prerec",
25  help='calibration config file for HLT small-R jets')
26 
27  flags.addFlag("Trigger.Jet.emtopoCalibKey", "TrigLS2",
28  help='calibration config file for HLT small-R jets')
29 
30  flags.addFlag("Trigger.Jet.pflowLJCalibKey", "TrigSoftDrop",
31  help='calibration config file for HLT large-R PFlow jets')
32 
33  # chooses config directory for jet vertex tagger with neural network
34  flags.addFlag("Trigger.Jet.nnJVTConfigDir", lambda prevFlags: "JetPileupTag/NNJvt/HLT-2025-05-21",
35  help='config directory containing cut files and neural network for HLT nnjvt')
36 
37  flags.addFlag("Trigger.Jet.PFlowTolerance", 1e-2,
38  help='tolerance in STEP Propagator')
39 
40  flags.addFlag("Trigger.Jet.TrackVtxAssocWP", "Custom", # offline default is "Nonprompt_All_MaxWeight"
41  help='working point for the TVA algorithm')
42 
43  flags.addFlag("Trigger.Jet.LowPtFilter", lambda prevFlags: 'HI' in prevFlags.Trigger.triggerMenuSetup,
44  help='apply low pT filter on antiKt4 jets (used for HI UPC jet reco)')
45 
46  return flags
47 
48 
50  flags = AthConfigFlags()
51 
52  # PFO-muon removal option for the full-scan hadronic signatures.
53  # Options are:
54  # "None": Do no PFO-muon removal
55  # "Calo": Use the calo-tagging tools from the muon slice
56  # "Iso" : Use the mainly isolation-based selections based on the MET associator package
57  flags.addFlag("Trigger.FSHad.PFOMuonRemoval", "Calo",
58  help='PFO-muon removal option: None, Calo, Iso)')
59 
60  flags.addFlag("Trigger.FSHad.PFOMuonRemovalMinPt", 10 * GeV,
61  help='minimum pT threshold to use for the muon removal')
62 
63  flags.addFlag("Trigger.FSHad.doJetRestrictedVertexSort", False,
64  help='use tracks in jets for computing sumpt2 for vertex sorting')
65 
66  return flags
67 
68 if __name__ == "__main__":
69  from AthenaConfiguration.AllConfigFlags import initConfigFlags
70  from AthenaConfiguration.TestDefaults import defaultTestFiles
71  flags = initConfigFlags()
72  flags.Input.Files = defaultTestFiles.RAW_RUN2
73  flags.lock()
74  flags.loadAllDynamicFlags()
75  flags.dump("Trigger.(Jet|FSHad)",evaluate=True)
SystemOfUnits
python.HLT.Jet.TrigJetConfigFlags.createTrigFSHadConfigFlags
def createTrigFSHadConfigFlags()
Definition: TrigJetConfigFlags.py:49
python.HLT.Jet.TrigJetConfigFlags.createTrigJetConfigFlags
def createTrigJetConfigFlags()
Definition: TrigJetConfigFlags.py:6
python.AllConfigFlags.initConfigFlags
def initConfigFlags()
Definition: AllConfigFlags.py:19