15 #ifndef BORNAGAIN_CORE_SIMULATION_OFFSPECSIMULATION_H
16 #define BORNAGAIN_CORE_SIMULATION_OFFSPECSIMULATION_H
50 std::unique_ptr<IUnitConverter> createUnitConverter()
const;
60 void initSimulationElementVector()
override;
67 void transferResultsToIntensityMap()
override;
70 void updateIntensityMap()
override;
73 size_t numberOfSimulationElements() const final;
77 void transferDetectorImage(
size_t index);
80 void checkInitialization() const;
84 std::unique_ptr<
IAxis> mP_alpha_i_axis;
Defines class Simulation2D.
Defines class SimulationElement.
Two dimensional histogram.
Interface for one-dimensional axes.
Visitor interface to visit ISample objects.
Main class to run an off-specular simulation.
SimulationResult result() const override
Returns the results of the simulation in a format that supports unit conversion and export to numpy a...
const IAxis * beamAxis() const
Returns axis of the beam.
void accept(INodeVisitor *visitor) const final
Calls the INodeVisitor's visit method.
size_t intensityMapSize() const override
Returns the total number of the intensity values in the simulation result.
void prepareSimulation() final
Put into a clean state for running a simulation.
void setBeamParameters(double wavelength, const IAxis &alpha_axis, double phi_i)
Sets beam parameters from here (forwarded to Instrument)
Template class to store data of any type in multi-dimensional space.
A parametric distribution function, for use with any model parameter.
Pure virtual base class of OffSpecularSimulation and GISASSimulation.
Wrapper around OutputData<double> that also provides unit conversions.