15 #ifndef BORNAGAIN_CORE_SIMULATION_OFFSPECSIMULATION_H
16 #define BORNAGAIN_CORE_SIMULATION_OFFSPECSIMULATION_H
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.
void transferResultsToIntensityMap() override
Creates the appropriate data structure (e.g.
SimulationResult result() const override
Returns the results of the simulation in a format that supports unit conversion and export to numpy a...
void updateIntensityMap() override
Default implementation only adds the detector axes.
void initSimulationElementVector() override
Initializes the vector of Simulation elements.
OffSpecSimulation * clone() const override
~OffSpecSimulation() final
const IAxis * beamAxis() const
Returns axis of the beam.
size_t numberOfSimulationElements() const final
Gets the number of elements this simulation needs to calculate.
void transferDetectorImage(size_t index)
Normalize, apply detector resolution and transfer detector image corresponding to alpha_i = mp_alpha_...
std::unique_ptr< IAxis > mP_alpha_i_axis
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 validateParametrization(const ParameterDistribution &par_distr) const override
Checks the distribution validity for simulation.
std::unique_ptr< IUnitConverter > createUnitConverter() const
void checkInitialization() const
Check correct number of axes.
OutputData< double > m_intensity_map
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.
const double wavelength(0.154)