From 8ca048ae00c6890bf1781fc0aea9bc5b1b81ce74 Mon Sep 17 00:00:00 2001 From: aferrero2707 Date: Tue, 19 Aug 2025 16:51:35 +0200 Subject: [PATCH] [Common] customize ratio plot draw option in ReferenceComparator By default the histograms are drawn with error bars ("E" option), however there are cases where the user might want to hide the errors and draw the histograms with the "H" option, for example because the error bars are unreliable or unphysical. This can already be done by passing a custom draw option via the task configuration interface. However, the customized draw option is only passed to the current and reference histograms, but not to the ratio plot, which is always drawn with the "E" option. The commit extends the custom draw option also to the ratio histogram. --- Modules/Common/src/ReferenceComparatorPlot.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Modules/Common/src/ReferenceComparatorPlot.cxx b/Modules/Common/src/ReferenceComparatorPlot.cxx index 42d05e5d53..1bbaa60e57 100644 --- a/Modules/Common/src/ReferenceComparatorPlot.cxx +++ b/Modules/Common/src/ReferenceComparatorPlot.cxx @@ -306,8 +306,8 @@ class ReferenceComparatorPlotImpl1D : public ReferenceComparatorPlotImpl } mRatioPlot->SetLineColor(kBlack); mRatioPlot->SetStats(0); - mRatioPlot->SetOption("E"); - mRatioPlot->Draw("E"); + mRatioPlot->SetOption(drawOption.c_str()); + mRatioPlot->Draw(drawOption.c_str()); if (drawRatioOnly) { mRatioPlot->SetMinimum(0); mRatioPlot->SetMaximum(2);