Skip to content

Commit

Permalink
Use IPF defaults for calibration range
Browse files Browse the repository at this point in the history
Refs #10259
  • Loading branch information
DanNixon committed Sep 29, 2014
1 parent feb2409 commit 0f54cd8
Showing 1 changed file with 7 additions and 7 deletions.
Expand Up @@ -278,13 +278,13 @@ namespace CustomInterfaces
m_dblManager->setValue(m_properties["ResSpecMax"], instDetails["SpectraMax"].toDouble());

//Set peak and background ranges
std::map<std::string, double> ranges = getRangesFromInstrument();

std::pair<double, double> peakRange(ranges["peak-start-tof"], ranges["peak-end-tof"]);
std::pair<double, double> backgroundRange(ranges["back-start-tof"], ranges["back-end-tof"]);

setMiniPlotGuides("CalPeak", m_properties["CalPeakMin"], m_properties["CalPeakMax"], peakRange);
setMiniPlotGuides("CalBackground", m_properties["CalBackMin"], m_properties["CalBackMax"], backgroundRange);
if(instDetails.size() >= 8)
{
setMiniPlotGuides("CalPeak", m_properties["CalPeakMin"], m_properties["CalPeakMax"],
std::pair<double, double>(instDetails["PeakMin"].toDouble(), instDetails["PeakMax"].toDouble()));
setMiniPlotGuides("CalBackground", m_properties["CalBackMin"], m_properties["CalBackMax"],
std::pair<double, double>(instDetails["BackMin"].toDouble(), instDetails["BackMax"].toDouble()));
}
}

/**
Expand Down

0 comments on commit 0f54cd8

Please sign in to comment.