BornAgain  1.18.0
Simulate and fit neutron and x-ray scattering at grazing incidence
RoughMultiLayerComputation.h
Go to the documentation of this file.
1 // ************************************************************************** //
2 //
3 // BornAgain: simulate and fit scattering at grazing incidence
4 //
5 //! @file Core/Computation/RoughMultiLayerComputation.h
6 //! @brief Defines class RoughMultiLayerComputation.
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_COMPUTATION_ROUGHMULTILAYERCOMPUTATION_H
16 #define BORNAGAIN_CORE_COMPUTATION_ROUGHMULTILAYERCOMPUTATION_H
17 
18 #include "Base/Types/Complex.h"
19 
20 class ProcessedSample;
21 class SimulationElement;
22 
23 //! Computes the diffuse reflection from the rough interfaces of a multilayer.
24 //! Used by DWBAComputation.
25 //! @ingroup algorithms_internal
26 
28 {
29 public:
31 
32  void compute(SimulationElement& elem) const;
33 
34 private:
36  complex_t get_refractive_term(size_t ilayer, double wavelength) const;
37  complex_t get_sum8terms(size_t ilayer, const SimulationElement& sim_element) const;
38 };
39 
40 #endif // BORNAGAIN_CORE_COMPUTATION_ROUGHMULTILAYERCOMPUTATION_H
Defines complex_t, and a few elementary functions.
std::complex< double > complex_t
Definition: Complex.h:20
Data structure that contains all the necessary data for scattering calculations.
Computes the diffuse reflection from the rough interfaces of a multilayer.
void compute(SimulationElement &elem) const
complex_t get_sum8terms(size_t ilayer, const SimulationElement &sim_element) const
complex_t get_refractive_term(size_t ilayer, double wavelength) const
RoughMultiLayerComputation(const ProcessedSample *p_sample)
Data stucture containing both input and output of a single detector cell.