Skip to content

Commit

Permalink
Refs #6885. Fixing parameter lookup.
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Reuter committed Apr 19, 2013
1 parent 6b8fb1d commit a05cff6
Showing 1 changed file with 10 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,15 @@ energy transfer for direct geometry spectrometers.
#include "MantidKernel/System.h"
#include "MantidKernel/TimeSeriesProperty.h"
#include "MantidKernel/VisibleWhenProperty.h"
#include "MantidWorkflowAlgorithms/WorkflowAlgorithmHelpers.h"

#include <boost/algorithm/string.hpp>
#include <boost/lexical_cast.hpp>

using namespace Mantid::Kernel;
using namespace Mantid::API;
using namespace Mantid::Geometry;
using namespace WorkflowAlgorithmHelpers;

namespace Mantid
{
Expand Down Expand Up @@ -313,9 +315,15 @@ namespace Mantid
IAlgorithm_sptr cnvToDist = this->createChildAlgorithm("ConvertToDistribution");

// Set the binning parameters for the background region
double tibTofStart = reductionManager->getProperty("TibTofRangeStart");
double tibTofStart = getDblPropOrParam("TibTofRangeStart",
reductionManager,
"bkgd-range-min",
inputWS);
tibTofStart += binOffset;
double tibTofEnd = reductionManager->getProperty("TibTofRangeEnd");
double tibTofEnd = getDblPropOrParam("TibTofRangeEnd",
reductionManager,
"bkgd-range-max",
inputWS);
tibTofEnd += binOffset;
const double tibTofWidth = tibTofEnd - tibTofStart;
std::vector<double> params;
Expand Down

0 comments on commit a05cff6

Please sign in to comment.