From 9580c15323cd6c14f769944bf3422e7d30536393 Mon Sep 17 00:00:00 2001 From: Vickie Lynch <lynchve@ornl.gov> Date: Mon, 1 Oct 2018 17:01:29 -0400 Subject: [PATCH] Refs #23614 write fits to file --- Framework/MDAlgorithms/src/IntegratePeaksMD2.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/Framework/MDAlgorithms/src/IntegratePeaksMD2.cpp b/Framework/MDAlgorithms/src/IntegratePeaksMD2.cpp index d471d14748c..137718f2510 100644 --- a/Framework/MDAlgorithms/src/IntegratePeaksMD2.cpp +++ b/Framework/MDAlgorithms/src/IntegratePeaksMD2.cpp @@ -521,6 +521,17 @@ void IntegratePeaksMD2::integrate(typename MDEventWorkspace<MDE, nd>::sptr ws) { } IFunction_sptr ifun = fitAlgorithm->getProperty("Function"); + if (i == 0) { + for (size_t j = 0; j < ifun->nParams(); ++j) + out << std::setw(20) << ifun->parameterName(j) << " "; + out << "\n"; + } + out << std::setw(20) << i << "\n"; + for (size_t j = 0; j < ifun->nParams(); ++j) { + out << std::setw(20) << std::fixed << std::setprecision(10) + << ifun->getParameter(j) << " "; + } + out << "\n"; /*double chi2 = fitAlgorithm->getProperty("OutputChi2overDoF"); if (chi2 > 10.0) { -- GitLab