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