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/20240918/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 lrj_paths = [
108 "BTagging/20230705/gn2xv01/antikt10ufo/network.onnx",
109 "BTagging/20240925/GN2Xv02/antikt10ufo/network.onnx",
110 "BTagging/20250310/GN2XTauV00/antikt10ufo/network.onnx",
111 "BTagging/20250912/GN3XPV01/antikt10ufo/network.onnx",
112 "JetCalibTools/CalibArea-00-04-83/CalibrationFactors/bbJESJMS_calibFactors_R22_MC20_CSSKUFO_bJR10v00Ext_20250212.onnx",
113 "JetCalibTools/CalibArea-00-04-83/CalibrationFactors/bbJESJMS_calibFactors_R22_MC20MC23_CSSKUFO_bJR10v01_20250212.onnx"
114 ]
115
116 noflip = dict(flip=False)
117
118 return {
119 'AntiKt4EMPFlowJets': [
120 {
121 'folds': ak4_nns,
122 'hash': 'jetFoldHash',
123 'cone_association': True,
124 },
125 *[{'folds' : [nn_path]} for nn_path in gn3_paths]
126 ],
127 'AntiKt4EMTopoJets': [
128 {
129 'folds': ak4_nns,
130 'hash': 'jetFoldHash',
131 'cone_association': True,
132 },
133 ],
134 'AntiKt4EMPFlowCustomVtxJets': [
135 {
136 'folds': ak4_nns,
137 'hash': 'jetFoldHash',
138 'cone_association': True
139 },
140 *[{'folds' : [nn_path]} for nn_path in gn3_paths]
141 ],
142 'AntiKt4EMPFlowByVertexJets': [
143 {
144 'folds': ak4_nns,
145 'hash': 'jetFoldHash',
146 'cone_association': True
147 }
148 ],
149 'AntiKt10UFOCSSKSoftDropBeta100Zcut10Jets': [
150 {'folds' : [nn_path], **noflip} for nn_path in lrj_paths
151 ],
152 'DFAntiKt4HIJets': [
153 {
154 'folds': ak4_nns,
155 'hash': 'jetFoldHash',
156 'cone_association': True
157 }
158 ]
159 }
160
161