BornAgain
1.18.0
Simulate and fit neutron and x-ray scattering at grazing incidence
|
Public Member Functions | |
DWBAComputation (const MultiLayer &multilayer, const SimulationOptions &options, ProgressHandler &progress, std::vector< SimulationElement >::iterator begin_it, std::vector< SimulationElement >::iterator end_it) | |
~DWBAComputation () override | |
void | run () |
bool | isCompleted () const |
std::string | errorMessage () const |
Protected Attributes | |
SimulationOptions | m_sim_options |
ProgressHandler * | mp_progress |
ComputationStatus | m_status |
std::unique_ptr< ProcessedSample > | mP_processed_sample |
Private Member Functions | |
void | runProtected () override |
Private Attributes | |
std::vector< SimulationElement >::iterator | m_begin_it |
std::vector< SimulationElement >::iterator | m_end_it |
DWBASingleComputation | m_single_computation |
Performs a single-threaded DWBA computation with given sample and simulation parameters.
Controlled by the multi-threading machinery in Simulation::runSingleSimulation().
Definition at line 30 of file DWBAComputation.h.
DWBAComputation::DWBAComputation | ( | const MultiLayer & | multilayer, |
const SimulationOptions & | options, | ||
ProgressHandler & | progress, | ||
std::vector< SimulationElement >::iterator | begin_it, | ||
std::vector< SimulationElement >::iterator | end_it | ||
) |
Definition at line 31 of file DWBAComputation.cpp.
References DWBASingleComputation::addLayoutComputation(), SimulationOptions::includeSpecular(), IComputation::m_sim_options, m_single_computation, IComputation::mP_processed_sample, DWBASingleComputation::setRoughnessComputation(), and DWBASingleComputation::setSpecularBinComputation().
|
overridedefault |
|
overrideprivatevirtual |
Implements IComputation.
Definition at line 58 of file DWBAComputation.cpp.
References ProgressHandler::alive(), DWBASingleComputation::compute(), m_begin_it, m_end_it, m_single_computation, IComputation::mp_progress, and DWBASingleComputation::setProgressHandler().
|
inherited |
Definition at line 30 of file IComputation.cpp.
References IComputation::m_status, IComputation::runProtected(), ComputationStatus::setCompleted(), ComputationStatus::setErrorMessage(), ComputationStatus::setFailed(), and ComputationStatus::setRunning().
|
inlineinherited |
Definition at line 43 of file IComputation.h.
References ComputationStatus::isCompleted(), and IComputation::m_status.
|
inlineinherited |
Definition at line 44 of file IComputation.h.
References ComputationStatus::errorMessage(), and IComputation::m_status.
|
private |
These iterators define the span of detector bins this simulation will work on.
Definition at line 42 of file DWBAComputation.h.
Referenced by runProtected().
|
private |
Definition at line 42 of file DWBAComputation.h.
Referenced by runProtected().
|
private |
Contains the information, necessary to calculate the Fresnel coefficients.
Definition at line 44 of file DWBAComputation.h.
Referenced by DWBAComputation(), and runProtected().
|
protectedinherited |
Definition at line 47 of file IComputation.h.
Referenced by DWBAComputation().
|
protectedinherited |
Definition at line 48 of file IComputation.h.
Referenced by DepthProbeComputation::runProtected(), runProtected(), and SpecularComputation::runProtected().
|
protectedinherited |
Definition at line 49 of file IComputation.h.
Referenced by IComputation::errorMessage(), IComputation::isCompleted(), and IComputation::run().
|
protectedinherited |
Definition at line 50 of file IComputation.h.
Referenced by DWBAComputation(), SpecularComputation::runProtected(), and SpecularComputation::SpecularComputation().