Skip to content

Commit 70fec13

Browse files
committed
make root object names reading-friendly
1 parent fff692a commit 70fec13

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

PWGHF/D2H/Macros/compute_fraction_cutvar.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ def main(config):
224224
hist_bin_title = f"bin # {ipt+1}; {pt_axis_title}#in ({pt_min}; {pt_max})"
225225

226226
hist_bin_title_rawy = hist_bin_title if is_draw_title_rawy else ""
227-
canv_rawy, histos_rawy, leg_r = minimiser.plot_result(f"_pt{pt_min}_{pt_max}", hist_bin_title_rawy)
227+
canv_rawy, histos_rawy, leg_r = minimiser.plot_result(f"_pt_{pt_min}_to_{pt_max}", hist_bin_title_rawy)
228228
output.cd()
229229
canv_rawy.Write()
230230
for _, hist in histos_rawy.items():
@@ -233,7 +233,7 @@ def main(config):
233233
canv_rawy.SaveAs(f"canv_rawy_{ipt+1}.C")
234234

235235
hist_bin_title_unc = hist_bin_title if is_draw_title_unc else ""
236-
canv_unc, histos_unc, leg_unc = minimiser.plot_uncertainties(f"_pt{pt_min}_{pt_max}", hist_bin_title_unc)
236+
canv_unc, histos_unc, leg_unc = minimiser.plot_uncertainties(f"_pt_{pt_min}_to_{pt_max}", hist_bin_title_unc)
237237
output.cd()
238238
canv_unc.Write()
239239
for _, hist in histos_unc.items():
@@ -242,7 +242,7 @@ def main(config):
242242
canv_unc.SaveAs(f"canv_unc_{ipt+1}.C")
243243

244244
hist_bin_title_eff = hist_bin_title if is_draw_title_eff else ""
245-
canv_eff, histos_eff, leg_e = minimiser.plot_efficiencies(f"_pt{pt_min}_{pt_max}", hist_bin_title_eff)
245+
canv_eff, histos_eff, leg_e = minimiser.plot_efficiencies(f"_pt_{pt_min}_to_{pt_max}", hist_bin_title_eff)
246246
output.cd()
247247
canv_eff.Write()
248248
for _, hist in histos_eff.items():
@@ -251,7 +251,7 @@ def main(config):
251251
canv_eff.SaveAs(f"canv_eff_{ipt+1}.C")
252252

253253
hist_bin_title_frac = hist_bin_title if is_draw_title_frac else ""
254-
canv_frac, histos_frac, leg_f = minimiser.plot_fractions(f"_pt{pt_min}_{pt_max}", hist_bin_title_frac)
254+
canv_frac, histos_frac, leg_f = minimiser.plot_fractions(f"_pt_{pt_min}_to_{pt_max}", hist_bin_title_frac)
255255
output.cd()
256256
canv_frac.Write()
257257
for _, hist in histos_frac.items():
@@ -260,7 +260,7 @@ def main(config):
260260
canv_frac.SaveAs(f"canv_frac_{ipt+1}.C")
261261

262262
hist_bin_title_cov = hist_bin_title if is_draw_title_cov else ""
263-
canv_cov, histo_cov = minimiser.plot_cov_matrix(True, f"_pt{pt_min}_{pt_max}", hist_bin_title_cov)
263+
canv_cov, histo_cov = minimiser.plot_cov_matrix(True, f"_pt_{pt_min}_to_{pt_max}", hist_bin_title_cov)
264264
output.cd()
265265
canv_cov.Write()
266266
histo_cov.Write()

0 commit comments

Comments
 (0)