Skip to content
Snippets Groups Projects
Commit 9580c153 authored by Lynch, Vickie's avatar Lynch, Vickie
Browse files

Refs #23614 write fits to file

parent ae6642a3
No related branches found
No related tags found
No related merge requests found
......@@ -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) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment