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