24 options.setUseAvgMaterials(
true);
28 return helper.calculateProfile(z_values);
34 options.setUseAvgMaterials(
true);
37 return helper.defaultLimits();
42 std::vector<double> result;
45 double step = n_points > 1 ? (z_max - z_min) / (n_points - 1) : 0.0;
46 for (
int i = 0; i < n_points; ++i) {
47 result.push_back(z_min + i * step);
std::pair< double, double > DefaultMaterialProfileLimits(const MultiLayer &multilayer)
Get default z limits for generating a material profile.
std::vector< double > GenerateZValues(int n_points, double z_min, double z_max)
Generate z values (equidistant) for use in MaterialProfile.
Global functions related to MultiLayers.
Defines class ProcessedSample.
Defines class ProfileHelper.
Defines class SimulationOptions.
Our sample model: a stack of layers one below the other.
Data structure that contains all the necessary data for scattering calculations.
Object that can generate the material profile of a sample as a function of depth.
Collect the different options for simulation.
std::vector< complex_t > MaterialProfile(const MultiLayer &multilayer, int n_points, double z_min, double z_max)