Skip to content
Snippets Groups Projects
Commit a63d0c92 authored by Mikhail Svechnikov's avatar Mikhail Svechnikov
Browse files

normalize specular simulation if no background

parent 4cbe2450
No related branches found
No related tags found
2 merge requests!2050rebase main on r21/v21.1,!2047<root>/CMakeLists.txt: add 'BornAgain_LIBRARIES' cached variable to store...
......@@ -109,7 +109,10 @@ SimulationResult SpecularSimulation::packResult()
}
if (background())
for (size_t i = 0; i < m_scan->nScan(); i++)
vec[i] = background()->addBackground(vec[i]) / m_scan->intensity();
vec[i] = background()->addBackground(vec[i]);
for (size_t i = 0; i < m_scan->nScan(); i++)
vec[i] /= m_scan->intensity();
Datafield data({m_scan->coordinateAxis()->clone()}, vec);
return {data, simCoordSystem()};
......
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