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

Refs #23614 format fixed for dat files

parent 9580c153
No related branches found
No related tags found
No related merge requests found
......@@ -522,25 +522,20 @@ void IntegratePeaksMD2::integrate(typename MDEventWorkspace<MDE, nd>::sptr ws) {
IFunction_sptr ifun = fitAlgorithm->getProperty("Function");
if (i == 0) {
out << std::setw(20) << "spectrum" << " ";
for (size_t j = 0; j < ifun->nParams(); ++j)
out << std::setw(20) << ifun->parameterName(j) << " ";
out << std::setw(20) << "chi2" << " ";
out << "\n";
}
out << std::setw(20) << i << "\n";
out << std::setw(20) << i << " ";
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) {
if (replaceIntensity) {
p.setIntensity(0.0);
p.setSigmaIntensity(0.0);
}
continue;
}*/
double chi2 = fitAlgorithm->getProperty("OutputChi2overDoF");
out << std::setw(20) << std::fixed << std::setprecision(10) << chi2 << "\n";
boost::shared_ptr<const CompositeFunction> fun =
boost::dynamic_pointer_cast<const CompositeFunction>(ifun);
......
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