BornAgain  1.19.79
Open-source research software to simulate and fit neutron and x-ray reflectometry and grazing-incidence small-angle scattering
SSCAStrategy.h
Go to the documentation of this file.
1 // ************************************************************************************************
2 //
3 // BornAgain: simulate and fit reflection and scattering
4 //
5 //! @file Resample/Interparticle/SSCAStrategy.h
6 //! @brief Defines class SSCAStrategy.
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 #ifdef SWIG
16 #error no need to expose this header to Swig
17 #endif
18 
19 #ifndef USER_API
20 #ifndef BORNAGAIN_RESAMPLE_INTERPARTICLE_SSCASTRATEGY_H
21 #define BORNAGAIN_RESAMPLE_INTERPARTICLE_SSCASTRATEGY_H
22 
24 
26 class DiffuseElement;
27 
28 //! Strategy class to compute the total scattering from a particle layout
29 //! in the size-spacing correlation approximation.
30 
32 public:
33  SSCAStrategy(const std::vector<std::unique_ptr<const CoherentFFSum>>& weighted_formfactors,
34  const InterferenceRadialParaCrystal* iff, SimulationOptions sim_params,
35  bool polarized, double kappa);
36 
37 private:
38  double scalarCalculation(const DiffuseElement& ele) const override;
39  double polarizedCalculation(const DiffuseElement& ele) const override;
40 
42  double qp, const std::vector<std::unique_ptr<const CoherentFFSum>>& ff_wrappers) const;
43  complex_t calculatePositionOffsetPhase(double qp, double radial_extension) const;
44 
45  const std::unique_ptr<InterferenceRadialParaCrystal> m_iff;
46  const double m_kappa;
47  const double m_mean_radius;
48 };
49 
50 #endif // BORNAGAIN_RESAMPLE_INTERPARTICLE_SSCASTRATEGY_H
51 #endif // USER_API
Defines interface IInterparticleStrategy.
Data stucture containing both input and output of a single detector cell.
Abstract base class of DecouplingApproximationStrategy, SSCAStrategy. Provides function 'evaluate' th...
Interference function of radial paracrystal.
Strategy class to compute the total scattering from a particle layout in the size-spacing correlation...
Definition: SSCAStrategy.h:31
const double m_kappa
Definition: SSCAStrategy.h:46
complex_t getCharacteristicSizeCoupling(double qp, const std::vector< std::unique_ptr< const CoherentFFSum >> &ff_wrappers) const
double polarizedCalculation(const DiffuseElement &ele) const override
This is the polarized version.
SSCAStrategy(const std::vector< std::unique_ptr< const CoherentFFSum >> &weighted_formfactors, const InterferenceRadialParaCrystal *iff, SimulationOptions sim_params, bool polarized, double kappa)
complex_t calculatePositionOffsetPhase(double qp, double radial_extension) const
const std::unique_ptr< InterferenceRadialParaCrystal > m_iff
Definition: SSCAStrategy.h:45
const double m_mean_radius
Definition: SSCAStrategy.h:47
double scalarCalculation(const DiffuseElement &ele) const override
Returns the total scattering intensity for given kf and for one particle layout (implied by the given...
Collect the different options for simulation.SimulationOptions.