ATLAS Offline Software
TrigTauConfigFlags.py
Go to the documentation of this file.
1 # Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
2 
3 from AthenaConfiguration.AthConfigFlags import AthConfigFlags
4 from tauRec.TauConfigFlags import createTauConfigFlags
5 
7  flags = AthConfigFlags()
8  flags.join(createTauConfigFlags(), prefix='Trigger.Offline')
9 
10  flags.Trigger.Offline.Tau.tauRecToolsCVMFSPath = 'TrigTauRec/00-11-02'
11 
12  flags.Trigger.Offline.Tau.MvaTESConfig = 'OnlineMvaTES_BRT_MC23a_v2.weights.root'
13 
14  flags.Trigger.Offline.Tau.TauJetRNNConfig = ['DeepSetID_MC23_v2_0p.json',
15  'DeepSetID_MC23_v2_1p.json',
16  'DeepSetID_MC23_v2_mp.json']
17 
18  flags.Trigger.Offline.Tau.TauJetRNNWPConfig = ['DeepSetID_MC23_v2_newPerf_flat_0p.root',
19  'DeepSetID_MC23_v2_newPerf_flat_1p.root',
20  'DeepSetID_MC23_v2_newPerf_flat_mp.root']
21 
22  # these flags only exists in the trigger, but 'cloneAndReplace' in 'addFlagsCategory'
23  # assumes a 'Trigger.Offline.Tau' structure
24 
25  flags.addFlag("Trigger.Offline.Tau.TauJetRNNTargetEff", [ [0.98, 0.90, 0.65, 0.50], # 0p WPs: VL, L, M, T
26  [0.992, 0.99, 0.97, 0.94], # 1p WPs: VL, L, M, T
27  [0.99, 0.94, 0.895, 0.80] ] ) # mp WPs: VL, L, M, T
28 
29  flags.addFlag("Trigger.Offline.Tau.TauJetRNNConfigLLP", ['llpdev/net_experimental_llz_0p.json',
30  'llpdev/net_experimental_llz_1p.json',
31  'llpdev/net_experimental_llz_mp.json'])
32 
33  flags.addFlag("Trigger.Offline.Tau.TauJetRNNWPConfigLLP", ['llpdev/rnnid_flat_llp_llz0p_050621-v1.root',
34  'llpdev/rnnid_flat_llp_llz1p_050621-v1.root',
35  'llpdev/rnnid_flat_llp_llzmp_050621-v1.root'])
36 
37  flags.addFlag("Trigger.Offline.Tau.TauJetRNNLLPTargetEff", [ [0.98, 0.90, 0.65, 0.50], # 0p WPs: VL, L, M, T
38  [0.992, 0.99, 0.965, 0.94], # 1p WPs: VL, L, M, T
39  [0.99, 0.98, 0.865, 0.80] ] ) # mp WPs: VL, L, M, T
40 
41 
42  return flags
43 
44 
45 if __name__ == "__main__":
46  from AthenaConfiguration.AllConfigFlags import initConfigFlags
47  from AthenaConfiguration.TestDefaults import defaultTestFiles
48  flags = initConfigFlags()
49  flags.Input.Files = defaultTestFiles.RAW_RUN2
50 
51  flags.lock()
52  flags.Tau.MvaTESConfig
53  flags.Trigger.doLVL1
54  flags.dump("Tau|Trigger")
55 
56  assert flags.Tau.MvaTESConfig != flags.Trigger.Offline.Tau.MvaTESConfig, "No difference between trigger customization"
57  flags.dump("Tau|Trigger")
TauConfigFlags.createTauConfigFlags
def createTauConfigFlags()
Definition: TauConfigFlags.py:8
TrigTauConfigFlags.createTrigTauConfigFlags
def createTrigTauConfigFlags()
Definition: TrigTauConfigFlags.py:6
python.AllConfigFlags.initConfigFlags
def initConfigFlags()
Definition: AllConfigFlags.py:19