140def getNNs(flags):
141 '''
142 Gets the paths of models to run via MultiFoldTagger.
143 '''
144
145
146 ak4_nns = []
147 if flags.GeoModel.Run >= LHCPeriod.Run4:
148 ak4_nns = ["BTagging/20260308/GN2HL/antikt4emtopo/network.onnx"]
149 else:
150 caldir = 'BTagging/20231205/GN2v01/antikt4empflow'
151 ak4_nns = [f'{caldir}/network_fold{n}.onnx' for n in range(4)]
152
153
154
155
156
157
158
159 gn3v00_paths = [
160 "BTagging/20250213/GN3V00/antikt4empflow/network.onnx",
161 "BTagging/20250213/GN3PflowMuonsV00/antikt4empflow/network.onnx",
162 ] if isRun3Derivation(flags) else []
163 gn3v01_paths = [
164 "BTagging/20260805/GN3EPCLV01/antikt4empflow/network.onnx",
165 ] if isRun3Derivation(flags) else []
166
167 gn3_paths = gn3v00_paths + gn3v01_paths
168
169 bjr4_paths = [
170 "JetCalibTools/CalibArea-00-04-83/CalibrationFactors/bJES_calibFactors_R22_MC20MC23_AntiKt4EMPflow_bJR4v01_20260319.onnx"
171 ] if isRun3Derivation(flags) else []
172
173 lrj_paths = [
174 "BTagging/20230705/gn2xv01/antikt10ufo/network.onnx",
175 "BTagging/20240925/GN2Xv02/antikt10ufo/network.onnx",
176 "BTagging/20250310/GN2XTauV00/antikt10ufo/network.onnx",
177 "BTagging/20250912/GN3XPV01/antikt10ufo/network.onnx",
178 "BTagging/20260803/tautauJRv00/antikt10ufo/network.onnx",
179 "JetCalibTools/CalibArea-00-04-83/CalibrationFactors/bbJESJMS_calibFactors_R22_MC20_CSSKUFO_bJR10v00Ext_20260513.onnx",
180 "JetCalibTools/CalibArea-00-04-83/CalibrationFactors/bbJESJMS_calibFactors_R22_MC20MC23_CSSKUFO_bJR10v01_20260513.onnx"
181 ]
182
183 noflip = dict(flip=False)
184
185 return {
186 'AntiKt4EMPFlowJets': [
187 {
188 'folds': ak4_nns,
189 'hash': 'jetFoldHash',
190 'cone_association': True,
191 },
192 *[{'folds' : [nn_path]} for nn_path in gn3_paths+bjr4_paths]
193 ],
194 'AntiKt4EMTopoJets': [
195 {
196 'folds': ak4_nns,
197 'hash': 'jetFoldHash',
198 'cone_association': True,
199 },
200 ],
201 'AntiKt4EMPFlowCustomVtxJets': [
202 {
203 'folds': ak4_nns,
204 'hash': 'jetFoldHash',
205 'cone_association': True
206 },
207 *[{'folds' : [nn_path]} for nn_path in gn3_paths+bjr4_paths]
208 ],
209 'AntiKt4EMPFlowByVertexJets': [
210 {
211 'folds': ak4_nns,
212 'hash': 'jetFoldHash',
213 'cone_association': True
214 }
215 ],
216 'AntiKt10UFOCSSKSoftDropBeta100Zcut10Jets': [
217 {'folds' : [nn_path], **noflip} for nn_path in lrj_paths
218 ],
219 'DFAntiKt4HIJets': [
220 {
221 'folds': ak4_nns,
222 'hash': 'jetFoldHash',
223 'cone_association': True
224 }
225 ]
226 }
227
228