16 #error no need to expose this header to Swig
20 #ifndef BORNAGAIN_SAMPLE_INTERFERENCE_DECOUPLINGAPPROXIMATIONSTRATEGY_H
21 #define BORNAGAIN_SAMPLE_INTERFERENCE_DECOUPLINGAPPROXIMATIONSTRATEGY_H
41 std::unique_ptr<IInterferenceFunction>
m_iff;
Defines interface IInterferenceFunctionStrategy.
Strategy class to compute the total scattering from a particle layout in the decoupling approximation...
double scalarCalculation(const SimulationElement &sim_element) const override
Returns the total incoherent and coherent scattering intensity for given kf and for one particle layo...
DecouplingApproximationStrategy(const std::vector< FormFactorCoherentSum > &weighted_formfactors, const IInterferenceFunction *iff, SimulationOptions sim_params, bool polarized)
double polarizedCalculation(const SimulationElement &sim_element) const override
This is the polarized version.
std::unique_ptr< IInterferenceFunction > m_iff
Base class of all interference function strategy classes.
Abstract base class of interference functions.
Data stucture containing both input and output of a single detector cell.
Collect the different options for simulation.