102def getNNs(flags):
103 '''
104 Gets the paths of models to run via MultiFoldTagger.
105 '''
106
107
108 ak4_nns = []
109 if flags.GeoModel.Run >= LHCPeriod.Run4:
110 ak4_nns = ["BTagging/20260308/GN2HL/antikt4emtopo/network.onnx"]
111 else:
112 caldir = 'BTagging/20231205/GN2v01/antikt4empflow'
113 ak4_nns = [f'{caldir}/network_fold{n}.onnx' for n in range(4)]
114
115
116
117
118
119
120
121 gn3pflowmuons_paths = [
122 "BTagging/20250213/GN3PflowMuonsV00/antikt4empflow/network.onnx",
123 ] if isRun3Derivation(flags) else []
124 gn3v01_paths = [
125 "BTagging/20260805/GN3EPCLV01/antikt4empflow/network.onnx",
126 ] if isRun3Derivation(flags) else []
127
128
129 gn3v03_paths = [
130 "BTagging/20260922/GN3V03/antikt4empflow/network.onnx",
131 ] if isRun3Derivation(flags) else []
132
133 gn3_paths = gn3pflowmuons_paths + gn3v01_paths
134
135 bjr4_paths = [
136 "JetCalibTools/CalibArea-00-04-83/CalibrationFactors/bJES_calibFactors_R22_MC20MC23_AntiKt4EMPflow_bJR4v01_20260319.onnx"
137 ] if isRun3Derivation(flags) else []
138
139 lrj_paths = [
140 "BTagging/20230705/gn2xv01/antikt10ufo/network.onnx",
141 "BTagging/20240925/GN2Xv02/antikt10ufo/network.onnx",
142 "BTagging/20250310/GN2XTauV00/antikt10ufo/network.onnx",
143 "BTagging/20250912/GN3XPV01/antikt10ufo/network.onnx",
144 "BTagging/20260803/tautauJRv00/antikt10ufo/network.onnx",
145 "JetCalibTools/CalibArea-00-04-83/CalibrationFactors/bbJESJMS_calibFactors_R22_MC20_CSSKUFO_bJR10v00Ext_20260513.onnx",
146 "JetCalibTools/CalibArea-00-04-83/CalibrationFactors/bbJESJMS_calibFactors_R22_MC20MC23_CSSKUFO_bJR10v01_20260513.onnx"
147 ]
148
149 noflip = dict(flip=False)
150
151 sv1_paths = [sv1OnnxPath(flags)] if flags.BTagging.RunSV1Onnx else []
152
153 return {
154 'AntiKt4EMPFlowJets': [
155 {
156 'folds': ak4_nns,
157 'hash': 'jetFoldHash',
158 'cone_association': True,
159 },
160 *[{'folds' : [nn_path]} for nn_path in gn3_paths+bjr4_paths],
161 *[{'folds': [nn_path], 'ip_prefix': 'poormanIp_'}
162 for nn_path in gn3v03_paths],
163 *[{'folds': [nn_path]} for nn_path in sv1_paths]
164 ],
165 'AntiKt4EMTopoJets': [
166 {
167 'folds': ak4_nns,
168 'hash': 'jetFoldHash',
169 'cone_association': True,
170 },
171 ],
172 'AntiKt4EMPFlowCustomVtxJets': [
173 {
174 'folds': ak4_nns,
175 'hash': 'jetFoldHash',
176 'cone_association': True
177 },
178 *[{'folds' : [nn_path]} for nn_path in gn3_paths+bjr4_paths]
179 ],
180 'AntiKt4EMPFlowByVertexJets': [
181 {
182 'folds': ak4_nns,
183 'hash': 'jetFoldHash',
184 'cone_association': True
185 }
186 ],
187 'AntiKt10UFOCSSKSoftDropBeta100Zcut10Jets': [
188 {'folds' : [nn_path], **noflip} for nn_path in lrj_paths
189 ],
190 'DFAntiKt4HIJets': [
191 {
192 'folds': ak4_nns,
193 'hash': 'jetFoldHash',
194 'cone_association': True
195 }
196 ]
197 }
198
199