BornAgain
1.18.0
Simulate and fit neutron and x-ray scattering at grazing incidence
|
Public Member Functions | |
DWBASingleComputation () | |
~DWBASingleComputation () | |
DWBASingleComputation (DWBASingleComputation &&other) | |
void | setProgressHandler (ProgressHandler *p_progress) |
void | addLayoutComputation (ParticleLayoutComputation *p_layout_comp) |
void | setRoughnessComputation (RoughMultiLayerComputation *p_roughness_comp) |
void | setSpecularBinComputation (GISASSpecularComputation *p_spec_comp) |
void | compute (SimulationElement &elem) const |
const std::map< size_t, std::vector< HomogeneousRegion > > & | regionMap () const |
Private Attributes | |
std::vector< std::unique_ptr< ParticleLayoutComputation > > | m_layout_comps |
std::unique_ptr< RoughMultiLayerComputation > | mP_roughness_comp |
std::unique_ptr< GISASSpecularComputation > | mP_spec_comp |
std::unique_ptr< DelayedProgressCounter > | mP_progress_counter |
std::map< size_t, std::vector< HomogeneousRegion > > | m_region_map |
Class that handles all the computations involved in GISAS (particles, roughness,...) for a single detector bin.
Called by DWBASimulation on each detector bin.
Definition at line 37 of file DWBASingleComputation.h.
|
default |
|
default |
|
default |
void DWBASingleComputation::setProgressHandler | ( | ProgressHandler * | p_progress | ) |
Definition at line 27 of file DWBASingleComputation.cpp.
References mP_progress_counter.
Referenced by DWBAComputation::runProtected().
void DWBASingleComputation::addLayoutComputation | ( | ParticleLayoutComputation * | p_layout_comp | ) |
Definition at line 32 of file DWBASingleComputation.cpp.
References m_layout_comps, m_region_map, and ParticleLayoutComputation::mergeRegionMap().
Referenced by DWBAComputation::DWBAComputation().
void DWBASingleComputation::setRoughnessComputation | ( | RoughMultiLayerComputation * | p_roughness_comp | ) |
Definition at line 38 of file DWBASingleComputation.cpp.
References mP_roughness_comp.
Referenced by DWBAComputation::DWBAComputation().
void DWBASingleComputation::setSpecularBinComputation | ( | GISASSpecularComputation * | p_spec_comp | ) |
Definition at line 43 of file DWBASingleComputation.cpp.
References mP_spec_comp.
Referenced by DWBAComputation::DWBAComputation().
void DWBASingleComputation::compute | ( | SimulationElement & | elem | ) | const |
Definition at line 48 of file DWBASingleComputation.cpp.
References m_layout_comps, mP_progress_counter, mP_roughness_comp, and mP_spec_comp.
Referenced by DWBAComputation::runProtected().
const std::map< size_t, std::vector< HomogeneousRegion > > & DWBASingleComputation::regionMap | ( | ) | const |
Retrieves a map of regions for the calculation of averaged layers.
Definition at line 64 of file DWBASingleComputation.cpp.
References m_region_map.
|
private |
Definition at line 55 of file DWBASingleComputation.h.
Referenced by addLayoutComputation(), and compute().
|
private |
Definition at line 56 of file DWBASingleComputation.h.
Referenced by compute(), and setRoughnessComputation().
|
private |
Definition at line 57 of file DWBASingleComputation.h.
Referenced by compute(), and setSpecularBinComputation().
|
private |
Definition at line 58 of file DWBASingleComputation.h.
Referenced by compute(), and setProgressHandler().
|
private |
Definition at line 59 of file DWBASingleComputation.h.
Referenced by addLayoutComputation(), and regionMap().