32 "GISASSimulation::prepareSimulation() "
33 "-> Error. The detector was not properly configured.");
41 const std::unique_ptr<OutputData<double>> data(
50 "Simulation::setBeamParameters() -> Error. Incoming wavelength <= 0.");
Defines class DWBAComputation.
Defines class GISASSimulation.
Defines class Histogram2D.
Defines interface IBackground.
Defines pure virtual base class ISampleBuilder.
Defines class MultiLayer.
Declares utilities for unit converters.
Main class to run a Grazing-Incidence Small-Angle Scattering simulation.
void initSimulationElementVector() override
Initializes the vector of Simulation elements.
void setBeamParameters(double wavelength, double alpha_i, double phi_i)
Sets beam parameters from here (forwarded to Instrument)
size_t intensityMapSize() const override
Returns the total number of the intensity values in the simulation result.
void prepareSimulation() override
Put into a clean state for running a simulation.
SimulationResult result() const override
Returns the results of the simulation in a format that supports unit conversion and export to numpy a...
void iterate(std::function< void(const_iterator)> func, bool visit_masks=false) const
void setName(const std::string &name)
void setBeamParameters(double wavelength, double alpha_i, double phi_i)
Sets the beam wavelength and incoming angles.
void initDetector()
init detector with beam settings
Pure virtual base class of OffSpecularSimulation and GISASSimulation.
std::vector< double > m_cache
std::vector< SimulationElement > m_sim_elements
std::vector< SimulationElement > generateSimulationElements(const Beam &beam)
Generate simulation elements for given beam.
void prepareSimulation() override
Put into a clean state for running a simulation.
An iterator for SimulationArea.
Wrapper around OutputData<double> that also provides unit conversions.
const Instrument & instrument() const
std::unique_ptr< IUnitConverter > createConverterForGISAS(const Instrument &instrument)
Helper factory function to use in GISASSimulation.
const double wavelength(0.154)