BornAgain  1.18.0
Simulate and fit neutron and x-ray scattering at grazing incidence
DecouplingApproximationStrategy.h
Go to the documentation of this file.
1 // ************************************************************************** //
2 //
3 // BornAgain: simulate and fit scattering at grazing incidence
4 //
5 //! @file Sample/Interference/DecouplingApproximationStrategy.h
6 //! @brief Defines class DecouplingApproximationStrategy.
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_DECOUPLINGAPPROXIMATIONSTRATEGY_H
16 #define BORNAGAIN_CORE_MULTILAYER_DECOUPLINGAPPROXIMATIONSTRATEGY_H
17 
19 
20 class SimulationElement;
21 
22 //! Strategy class to compute the total scattering from a particle layout
23 //! in the decoupling approximation.
24 //! @ingroup algorithms_internal
25 
27 {
28 public:
29  DecouplingApproximationStrategy(SimulationOptions sim_params, bool polarized);
30 
31 private:
32  double scalarCalculation(const SimulationElement& sim_element) const override;
33  double polarizedCalculation(const SimulationElement& sim_element) const override;
34 };
35 
36 #endif // BORNAGAIN_CORE_MULTILAYER_DECOUPLINGAPPROXIMATIONSTRATEGY_H
Defines class 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...
double polarizedCalculation(const SimulationElement &sim_element) const override
This is the polarized version.
DecouplingApproximationStrategy(SimulationOptions sim_params, bool polarized)
Base class of all interference function strategy classes.
Data stucture containing both input and output of a single detector cell.
Collect the different options for simulation.