BornAgain
1.19.0
Simulate and fit neutron and x-ray scattering at grazing incidence
|
Computes the scattering contribution from one particle layout. More...
Public Member Functions | |
ParticleLayoutComputation (const ProcessedLayout &layout, const SimulationOptions &options, bool polarized) | |
~ParticleLayoutComputation () | |
void | compute (SimulationElement &elem) const |
void | mergeRegionMap (std::map< size_t, std::vector< HomogeneousRegion >> ®ion_map) const |
Merges its region map into the given one (notice non-const reference parameter) More... | |
Private Attributes | |
std::unique_ptr< const IInterferenceFunctionStrategy > | m_interference_function_strategy |
const ProcessedLayout & | m_layout |
const std::map< size_t, std::vector< HomogeneousRegion > > | m_region_map |
Computes the scattering contribution from one particle layout.
Used by DWBAComputation.
Definition at line 37 of file ParticleLayoutComputation.h.
ParticleLayoutComputation::ParticleLayoutComputation | ( | const ProcessedLayout & | layout, |
const SimulationOptions & | options, | ||
bool | polarized | ||
) |
Definition at line 48 of file ParticleLayoutComputation.cpp.
|
default |
void ParticleLayoutComputation::compute | ( | SimulationElement & | elem | ) | const |
Definition at line 59 of file ParticleLayoutComputation.cpp.
References SimulationElement::addIntensity(), m_interference_function_strategy, m_layout, and ProcessedLayout::surfaceDensity().
void ParticleLayoutComputation::mergeRegionMap | ( | std::map< size_t, std::vector< HomogeneousRegion >> & | region_map | ) | const |
Merges its region map into the given one (notice non-const reference parameter)
Definition at line 64 of file ParticleLayoutComputation.cpp.
References m_region_map.
Referenced by DWBASingleComputation::addLayoutComputation().
|
private |
Definition at line 51 of file ParticleLayoutComputation.h.
Referenced by compute().
|
private |
Definition at line 49 of file ParticleLayoutComputation.h.
Referenced by compute().
|
private |
Definition at line 50 of file ParticleLayoutComputation.h.
Referenced by mergeRegionMap().