BornAgain  1.18.0
Simulate and fit neutron and x-ray scattering at grazing incidence
ProfileHelper.h
Go to the documentation of this file.
1 // ************************************************************************** //
2 //
3 // BornAgain: simulate and fit scattering at grazing incidence
4 //
5 //! @file Core/Computation/ProfileHelper.h
6 //! @brief Defines class ProfileHelper.
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_PROFILEHELPER_H
16 #define BORNAGAIN_CORE_COMPUTATION_PROFILEHELPER_H
17 
19 #include <utility>
20 #include <vector>
21 
22 class ProcessedSample;
23 
24 //! Object that can generate the material profile of a sample as a function of depth.
25 //!
26 //! The generated profile contains the complex SLD for SLD materials and the parameters
27 //! delta and beta for refractive index materials
28 //!
29 //! @ingroup algorithms_internal
30 
32 {
33 public:
34  ProfileHelper(const ProcessedSample& sample);
36 
37  std::vector<complex_t> calculateProfile(const std::vector<double>& z_values) const;
38  std::pair<double, double> defaultLimits() const;
39 
40 private:
41  std::vector<complex_t> m_materialdata;
42  std::vector<double> m_zlimits;
43  std::vector<double> m_sigmas;
44 };
45 
46 #endif // BORNAGAIN_CORE_COMPUTATION_PROFILEHELPER_H
Defines and implements class Material.
Data structure that contains all the necessary data for scattering calculations.
Object that can generate the material profile of a sample as a function of depth.
Definition: ProfileHelper.h:32
std::vector< complex_t > m_materialdata
Definition: ProfileHelper.h:41
std::pair< double, double > defaultLimits() const
std::vector< complex_t > calculateProfile(const std::vector< double > &z_values) const
std::vector< double > m_sigmas
Definition: ProfileHelper.h:43
ProfileHelper(const ProcessedSample &sample)
std::vector< double > m_zlimits
Definition: ProfileHelper.h:42