BornAgain
1.18.0
Simulate and fit neutron and x-ray scattering at grazing incidence
|
Public Member Functions | |
ParticleLayoutComputation (const ProcessedLayout *p_layout, const SimulationOptions &options, bool polarized) | |
~ParticleLayoutComputation () | |
void | compute (SimulationElement &elem) const |
void | mergeRegionMap (std::map< size_t, std::vector< HomogeneousRegion >> ®ion_map) const |
Private Attributes | |
const ProcessedLayout * | mp_layout |
std::unique_ptr< const IInterferenceFunctionStrategy > | mP_strategy |
double | m_surface_density |
std::map< size_t, std::vector< HomogeneousRegion > > | m_region_map |
Computes the scattering contribution from one particle layout.
Used by DWBAComputation.
Definition at line 32 of file ParticleLayoutComputation.h.
ParticleLayoutComputation::ParticleLayoutComputation | ( | const ProcessedLayout * | p_layout, |
const SimulationOptions & | options, | ||
bool | polarized | ||
) |
Definition at line 21 of file ParticleLayoutComputation.cpp.
References m_region_map, m_surface_density, mP_strategy, ProcessedLayout::regionMap(), LayoutStrategyBuilder::releaseStrategy(), and ProcessedLayout::surfaceDensity().
|
default |
void ParticleLayoutComputation::compute | ( | SimulationElement & | elem | ) | const |
Definition at line 34 of file ParticleLayoutComputation.cpp.
References SimulationElement::addIntensity(), SimulationElement::getAlphaMean(), m_surface_density, mp_layout, mP_strategy, and ProcessedLayout::numberOfSlices().
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 45 of file ParticleLayoutComputation.cpp.
References m_region_map.
Referenced by DWBASingleComputation::addLayoutComputation().
|
private |
Definition at line 45 of file ParticleLayoutComputation.h.
Referenced by compute().
|
private |
Definition at line 46 of file ParticleLayoutComputation.h.
Referenced by compute(), and ParticleLayoutComputation().
|
private |
Definition at line 47 of file ParticleLayoutComputation.h.
Referenced by compute(), and ParticleLayoutComputation().
|
private |
Definition at line 48 of file ParticleLayoutComputation.h.
Referenced by mergeRegionMap(), and ParticleLayoutComputation().