Skip to content

Commit 9c95c7b

Browse files
committed
get rid of special chars in root object names
1 parent 85f2221 commit 9c95c7b

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

PWGHF/D2H/Macros/cut_variation.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -484,6 +484,7 @@ def plot_result(self, suffix="", title=""):
484484
- leg: ROOT.TLegend
485485
needed otherwise it is destroyed
486486
"""
487+
suffix = suffix.replace(".", "_")
487488

488489
set_global_style(padleftmargin=0.16, padbottommargin=0.12, padtopmargin=0.075, titleoffsety=1.6)
489490

@@ -604,6 +605,7 @@ def plot_cov_matrix(self, correlated=True, suffix="", title=""):
604605
- hist_corr_matrix: ROOT.TH2F
605606
histogram of correlation matrix
606607
"""
608+
suffix = suffix.replace(".", "_")
607609

608610
set_global_style(
609611
padleftmargin=0.14,
@@ -667,6 +669,7 @@ def plot_efficiencies(self, suffix="", title=""):
667669
- leg: ROOT.TLegend
668670
needed otherwise it is destroyed
669671
"""
672+
suffix = suffix.replace(".", "_")
670673

671674
set_global_style(padleftmargin=0.14, padbottommargin=0.12, titleoffset=1.2, padtopmargin = 0.075)
672675

@@ -758,6 +761,7 @@ def plot_fractions(self, suffix="", title=""):
758761
- leg: ROOT.TLegend
759762
needed otherwise it is destroyed
760763
"""
764+
suffix = suffix.replace(".", "_")
761765

762766
set_global_style(padleftmargin=0.14, padbottommargin=0.12, titleoffset=1.2, padtopmargin = 0.075)
763767

@@ -844,6 +848,7 @@ def plot_uncertainties(self, suffix="", title=""):
844848
- leg: ROOT.TLegend
845849
needed otherwise it is destroyed
846850
"""
851+
suffix = suffix.replace(".", "_")
847852

848853
set_global_style(padleftmargin=0.16, padbottommargin=0.12, padtopmargin=0.075, titleoffsety=1.6)
849854

0 commit comments

Comments
 (0)