152 taggers = [
"_IP3D_",
"_SV1_",
"_JetFitter_"]
153 old_taggers = [
"_IP2D_"]
154 oneToOne_associations = {
155 '_truthLabel ':
'_jet_truthLabel ',
156 '_IP3Dpb ':
'_tagger_IP3D_pb ',
157 '_IP3Dpc ':
'_tagger_IP3D_pc ',
158 '_IP3Dpu ':
'_tagger_IP3D_pu ',
159 '_SV1pb ':
'_tagger_SV1_pb ',
160 '_SV1pc ':
'_tagger_SV1_pc ',
161 '_SV1pu ':
'_tagger_SV1_pu ',
162 '_NTracksIP3D ':
'_tagger_IP3D_NTracks_incl ',
163 '_NTracksIP2D ':
'_old_taggers_IP2D_NTracks_incl ',
164 '_NGTinSvx1 ':
'_tagger_SV1_nGoodTracks_incl ',
165 '_eta ':
'_jet_jet_eta ',
166 '_phi ':
'_jet_jet_phi ',
167 '_d0 ':
'_tracks_d0_b ',
168 '_z0 ':
'_tracks_z0_b ',
169 '_IP3DgradeOfTracks ':
'_tagger_IP3D_gradeOfTracks_incl ',
170 '_IP2DgradeOfTracks ':
'_old_taggers_IP2D_gradeOfTracks_incl ',
172 oneToOne_associations_ttbar = {
173 '_TruthBpt ':
'_jet_jet_pt_b_ttbar ',
174 '_TruthLpt ':
'_jet_jet_pt_l_ttbar ',
175 '_TruthCpt ':
'_jet_jet_pt_c_ttbar ',
176 '_e ':
'_jet_jet_e ',
177 '_pt ':
'_jet_jet_pt_ttbar ',
179 oneToOne_associations_Zprime = {
180 '_TruthBpt ':
'_jet_jet_pt_b_Zprime ',
181 '_TruthLpt ':
'_jet_jet_pt_l_Zprime ',
182 '_TruthCpt ':
'_jet_jet_pt_c_Zprime ',
183 '_e ':
'_jet_jet_e_Zprime ',
184 '_pt ':
'_jet_jet_pt_Zprime ',
187 name_associations = {}
194 new_name = new_name.replace(tag,
"_tagger" + tag)
196 for tag
in old_taggers:
198 new_name = new_name.replace(tag,
"_old_taggers" + tag)
200 if "_matched_pt" in new_name:
201 new_name = new_name.replace(
"_matched_pt",
"_matched_pt_" + production_process)
203 if "AntiKt4EMPFlowJets" in new_name:
204 new_name = new_name.replace(
"AntiKt4EMPFlowJets",
"AntiKt4EMPFlowJets_")
206 if "AntiKtVR30Rmax4Rmin02TrackJets" in new_name:
207 new_name = new_name.replace(
"AntiKtVR30Rmax4Rmin02TrackJets",
"AntiKtVR30Rmax4Rmin02TrackJets_")
209 for key
in oneToOne_associations:
211 new_name = new_name.replace(key, oneToOne_associations[key])
213 if production_process ==
'ttbar':
214 for key
in oneToOne_associations_ttbar:
216 new_name = new_name.replace(key, oneToOne_associations_ttbar[key])
218 if production_process ==
'Zprime':
219 for key
in oneToOne_associations_Zprime:
221 new_name = new_name.replace(key, oneToOne_associations_Zprime[key])
227 name = name.replace(
" ",
"")
228 new_name = new_name.replace(
" ",
"")
231 name_associations[name] = new_name
233 return name_associations