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

upd depthprobe sim

parent 3865933e
No related branches found
No related tags found
1 merge request!1694Use footprint in GISAS and off-specular computations (#642)
......@@ -146,9 +146,8 @@ void DepthprobeSimulation::runComputation(const ReSample& re_sample, size_t i, d
}
const double alpha_i = result_angle;
const auto* footprint = m_scan->footprint();
double intensity_factor = m_scan->intensity();
if (footprint != nullptr)
if (const auto* footprint = m_scan->footprint())
intensity_factor *= footprint->calculate(alpha_i);
for (double& v : intensities)
v *= intensity_factor;
......
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