Skip to content

Commit

Permalink
Merge pull request #518 from rest-for-physics/jporron-dataset-calibra…
Browse files Browse the repository at this point in the history
…tion

Fix Typo
  • Loading branch information
JPorron authored Apr 17, 2024
2 parents df3eb05 + daf53c8 commit e0bd44c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/framework/analysis/src/TRestDataSetCalibration.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -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<TH1F>(static_cast<TH1F*>(histo->DrawClone()));

// Get position of the maximum
Expand Down

0 comments on commit e0bd44c

Please sign in to comment.