From daf53c8a4d1fe71376da496b84d7eeca946a197c Mon Sep 17 00:00:00 2001 From: JPorron Date: Tue, 16 Apr 2024 14:20:40 +0200 Subject: [PATCH] Fix Typo --- source/framework/analysis/src/TRestDataSetCalibration.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/framework/analysis/src/TRestDataSetCalibration.cxx b/source/framework/analysis/src/TRestDataSetCalibration.cxx index d9869d29d..f6794f3a9 100644 --- a/source/framework/analysis/src/TRestDataSetCalibration.cxx +++ b/source/framework/analysis/src/TRestDataSetCalibration.cxx @@ -192,7 +192,7 @@ void TRestDataSetCalibration::Calibrate() { if (fCalibFile.empty()) { auto histo = dataSet.GetDataFrame().Histo1D( - {"spectrum", "spectrum", fNBins, fCalibRange.X(), fCalibRange.X()}, fCalObservable); + {"spectrum", "spectrum", fNBins, fCalibRange.X(), fCalibRange.Y()}, fCalObservable); spectrum = std::unique_ptr(static_cast(histo->DrawClone())); // Get position of the maximum