BornAgain  1.19.79
Open-source research software to simulate and fit neutron and x-ray reflectometry and grazing-incidence small-angle scattering
RoughMultiLayerContribution.h
Go to the documentation of this file.
1 // ************************************************************************************************
2 //
3 // BornAgain: simulate and fit reflection and scattering
4 //
5 //! @file Sim/Contrib/RoughMultiLayerContribution.h
6 //! @brief Defines class RoughMultiLayerContribution.
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_SIM_CONTRIB_ROUGHMULTILAYERCONTRIBUTION_H
21 #define BORNAGAIN_SIM_CONTRIB_ROUGHMULTILAYERCONTRIBUTION_H
22 
23 #include <heinz/Complex.h>
24 
25 class reSample;
26 class DiffuseElement;
27 
28 //! Computes the diffuse reflection from the rough interfaces of a sample.
29 //! Used by DWBAComputation.
30 
32 public:
33  RoughMultiLayerContribution(const reSample& re_sample);
34 
35  void compute(DiffuseElement& ele) const;
36 
37 private:
39 
40  complex_t get_refractive_term(size_t i_layer, double wavelength) const;
41  complex_t get_sum8terms(size_t i_layer, const DiffuseElement& ele) const;
42 };
43 
44 #endif // BORNAGAIN_SIM_CONTRIB_ROUGHMULTILAYERCONTRIBUTION_H
45 #endif // USER_API
Data stucture containing both input and output of a single detector cell.
Computes the diffuse reflection from the rough interfaces of a sample. Used by DWBAComputation.
void compute(DiffuseElement &ele) const
complex_t get_refractive_term(size_t i_layer, double wavelength) const
RoughMultiLayerContribution(const reSample &re_sample)
complex_t get_sum8terms(size_t i_layer, const DiffuseElement &ele) const
Data structure that contains all the necessary data for scattering calculations.
Definition: ReSample.h:41