BornAgain  1.18.0
Simulate and fit neutron and x-ray scattering at grazing incidence
SSCApproximationStrategy.h
Go to the documentation of this file.
1 // ************************************************************************** //
2 //
3 // BornAgain: simulate and fit scattering at grazing incidence
4 //
5 //! @file Sample/Interference/SSCApproximationStrategy.h
6 //! @brief Defines class SSCApproximationStrategy.
7 //!
8 //! @homepage http://www.bornagainproject.org
9 //! @license GNU General Public License v3 or higher (see COPYING)
10 //! @copyright Forschungszentrum Jülich GmbH 2018
11 //! @authors Scientific Computing Group at MLZ (see CITATION, AUTHORS)
12 //
13 // ************************************************************************** //
14 
15 #ifndef BORNAGAIN_CORE_MULTILAYER_SSCAPPROXIMATIONSTRATEGY_H
16 #define BORNAGAIN_CORE_MULTILAYER_SSCAPPROXIMATIONSTRATEGY_H
17 
19 
20 class SimulationElement;
21 
22 //! Strategy class to compute the total scattering from a particle layout
23 //! in the size-spacing correlation approximation.
24 //! @ingroup algorithms_internal
25 
27 {
28 public:
29  SSCApproximationStrategy(SimulationOptions sim_params, double kappa, bool polarized);
30 
31 private:
32  void strategy_specific_post_init() override;
33  double scalarCalculation(const SimulationElement& sim_element) const override;
34  double polarizedCalculation(const SimulationElement& sim_element) const override;
36 };
37 
38 #endif // BORNAGAIN_CORE_MULTILAYER_SSCAPPROXIMATIONSTRATEGY_H
Defines class SSCAHelper.
Base class of all interference function strategy classes.
Helper class for SSCApproximationStrategy, offering some methods, shared between the scalar and polar...
Definition: SSCAHelper.h:30
Strategy class to compute the total scattering from a particle layout in the size-spacing correlation...
double polarizedCalculation(const SimulationElement &sim_element) const override
This is the polarized version.
double scalarCalculation(const SimulationElement &sim_element) const override
Returns the total scattering intensity for given kf and for one particle layout (implied by the given...
SSCApproximationStrategy(SimulationOptions sim_params, double kappa, bool polarized)
Data stucture containing both input and output of a single detector cell.
Collect the different options for simulation.