78def getNNs(flags):
79 '''
80 Gets the paths of models to run via MultiFoldTagger.
81 '''
82
83
84 ak4_nns = []
85 if flags.GeoModel.Run >= LHCPeriod.Run4:
86 ak4_nns = ["BTagging/20260308/GN2HL/antikt4emtopo/network.onnx"]
87 else:
88 caldir = 'BTagging/20231205/GN2v01/antikt4empflow'
89 ak4_nns = [f'{caldir}/network_fold{n}.onnx' for n in range(4)]
90
91
92
93
94
95
96
97 gn3v00_paths = [
98 "BTagging/20250213/GN3V00/antikt4empflow/network.onnx",
99 "BTagging/20250213/GN3PflowMuonsV00/antikt4empflow/network.onnx",
100 ] if isRun3Derivation(flags) else []
101 gn3v01_paths = [
102 "BTagging/20250912/GN3EPCLV01/antikt4empflow/network.onnx",
103 ] if isRun3Derivation(flags) else []
104
105 gn3_paths = gn3v00_paths + gn3v01_paths
106
107 bjr4_paths = [
108 "JetCalibTools/CalibArea-00-04-83/CalibrationFactors/bJES_calibFactors_R22_MC20MC23_AntiKt4EMPflow_bJR4v01_20260319.onnx"
109 ] if isRun3Derivation(flags) else []
110
111 lrj_paths = [
112 "BTagging/20230705/gn2xv01/antikt10ufo/network.onnx",
113 "BTagging/20240925/GN2Xv02/antikt10ufo/network.onnx",
114 "BTagging/20250310/GN2XTauV00/antikt10ufo/network.onnx",
115 "BTagging/20250912/GN3XPV01/antikt10ufo/network.onnx",
116 "JetCalibTools/CalibArea-00-04-83/CalibrationFactors/bbJESJMS_calibFactors_R22_MC20_CSSKUFO_bJR10v00Ext_20250212.onnx",
117 "JetCalibTools/CalibArea-00-04-83/CalibrationFactors/bbJESJMS_calibFactors_R22_MC20MC23_CSSKUFO_bJR10v01_20250212.onnx"
118 ]
119
120 noflip = dict(flip=False)
121
122 return {
123 'AntiKt4EMPFlowJets': [
124 {
125 'folds': ak4_nns,
126 'hash': 'jetFoldHash',
127 'cone_association': True,
128 },
129 *[{'folds' : [nn_path]} for nn_path in gn3_paths+bjr4_paths]
130 ],
131 'AntiKt4EMTopoJets': [
132 {
133 'folds': ak4_nns,
134 'hash': 'jetFoldHash',
135 'cone_association': True,
136 },
137 ],
138 'AntiKt4EMPFlowCustomVtxJets': [
139 {
140 'folds': ak4_nns,
141 'hash': 'jetFoldHash',
142 'cone_association': True
143 },
144 *[{'folds' : [nn_path]} for nn_path in gn3_paths+bjr4_paths]
145 ],
146 'AntiKt4EMPFlowByVertexJets': [
147 {
148 'folds': ak4_nns,
149 'hash': 'jetFoldHash',
150 'cone_association': True
151 }
152 ],
153 'AntiKt10UFOCSSKSoftDropBeta100Zcut10Jets': [
154 {'folds' : [nn_path], **noflip} for nn_path in lrj_paths
155 ],
156 'DFAntiKt4HIJets': [
157 {
158 'folds': ak4_nns,
159 'hash': 'jetFoldHash',
160 'cone_association': True
161 }
162 ]
163 }
164
165