Skip to content
Snippets Groups Projects
Commit 82b1236d authored by Wuttke, Joachim's avatar Wuttke, Joachim
Browse files

skip wrapper

parent 16b5380b
No related branches found
No related tags found
1 merge request!1301scan resolutions now always set without explicit reference to class ScanResolution
......@@ -420,13 +420,11 @@ test::makeSimulation::SpecularDivergentBeam(const MultiLayer& sample)
AlphaScan scan(wavelength, FixedBinAxis("axis", number_of_bins, min_angle, max_angle));
RangedDistributionGaussian wl_distr(n_integration_points, /*sigma_factor = */ 2.0);
std::unique_ptr<ScanResolution> wl_res(new ScanResolution(wl_distr, wl_stddev));
RangedDistributionGaussian alpha_distr(n_integration_points, /*sigma_factor = */ 2.0);
std::unique_ptr<ScanResolution> ang_res(new ScanResolution(alpha_distr, ang_stddev));
scan.setWavelengthResolution(wl_res.get());
scan.setAngleResolution(ang_res.get());
scan.setAbsoluteWavelengthResolution(wl_distr, wl_stddev);
scan.setAbsoluteAngularResolution(alpha_distr, ang_stddev);
return std::make_unique<SpecularSimulation>(scan, sample);
}
......
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