Skip to content

Commit

Permalink
Refs #10032 Tidy up.
Browse files Browse the repository at this point in the history
  • Loading branch information
Samuel Jackson committed Aug 4, 2014
1 parent 51c8cbd commit a89e945
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
8 changes: 8 additions & 0 deletions Code/Mantid/Framework/CurveFitting/src/VesuvioResolution.cpp
Expand Up @@ -156,6 +156,14 @@ namespace CurveFitting
double wl2 = 2.0*STDDEV_TO_HWHM*std::abs((std::pow(k0y0,3)/(k1*qy0*detpar.l1))*common)*respar.dl2;

m_resolutionSigma = std::sqrt(std::pow(wgauss,2) + std::pow(wtheta,2) + std::pow(wl1,2) + std::pow(wl2,2));

m_log.notice() << "--------------------- Mass=" << m_mass << " -----------------------" << std::endl;
m_log.notice() << "w_l1 (FWHM)=" << wl2 << std::endl;
m_log.notice() << "w_l0 (FWHM)=" << wl1 << std::endl;
m_log.notice() << "w_theta (FWHM)=" << wtheta << std::endl;
m_log.notice() << "w_foil_lorentz (FWHM)=" << m_lorentzFWHM << std::endl;
m_log.notice() << "w_foil_gauss (FWHM)=" << wgauss << std::endl;

}

void VesuvioResolution::function1D(double* out, const double* xValues, const size_t nData) const
Expand Down
Expand Up @@ -45,7 +45,6 @@ class VesuvioResolutionTest : public CxxTest::TestSuite
TS_ASSERT_THROWS_NOTHING(func->function(domain, values));

const double tol(1e-6);
for (int i=0;i<3;++i) std::cout << values.getCalculated(i) << std::endl;
TS_ASSERT_DELTA(0.279933, values.getCalculated(0), tol);
TS_ASSERT_DELTA(0.279933, values.getCalculated(1), tol);
TS_ASSERT_DELTA(0.279933, values.getCalculated(2), tol);
Expand Down

0 comments on commit a89e945

Please sign in to comment.