BornAgain  1.19.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 reflection and scattering
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 #ifdef SWIG
16 #error no need to expose this header to Swig
17 #endif
18 
19 #ifndef USER_API
20 #ifndef BORNAGAIN_CORE_COMPUTATION_ROUGHMULTILAYERCOMPUTATION_H
21 #define BORNAGAIN_CORE_COMPUTATION_ROUGHMULTILAYERCOMPUTATION_H
22 
23 #include "Base/Types/Complex.h"
24 
25 class ProcessedSample;
26 class SimulationElement;
27 
28 //! Computes the diffuse reflection from the rough interfaces of a multilayer.
29 //! Used by DWBAComputation.
30 //! @ingroup algorithms_internal
31 
33 public:
35 
36  void compute(SimulationElement& elem) const;
37 
38 private:
40  complex_t get_refractive_term(size_t ilayer, double wavelength) const;
41  complex_t get_sum8terms(size_t ilayer, const SimulationElement& sim_element) const;
42 };
43 
44 #endif // BORNAGAIN_CORE_COMPUTATION_ROUGHMULTILAYERCOMPUTATION_H
45 #endif // USER_API
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.