BornAgain  1.19.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 reflection and scattering
4 //
5 //! @file Sample/Processed/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 #ifdef SWIG
16 #error no need to expose this header to Swig
17 #endif
18 
19 #ifndef USER_API
20 #ifndef BORNAGAIN_SAMPLE_PROCESSED_PROFILEHELPER_H
21 #define BORNAGAIN_SAMPLE_PROCESSED_PROFILEHELPER_H
22 
24 #include <utility>
25 #include <vector>
26 
27 class ProcessedSample;
28 
29 //! Object that can generate the material profile of a sample as a function of depth.
30 //!
31 //! The generated profile contains the complex SLD for SLD materials and the parameters
32 //! delta and beta for refractive index materials
33 //!
34 //! @ingroup algorithms_internal
35 
37 public:
38  ProfileHelper(const ProcessedSample& sample);
40 
41  std::vector<complex_t> calculateProfile(const std::vector<double>& z_values) const;
42  std::pair<double, double> defaultLimits() const;
43 
44 private:
45  std::vector<complex_t> m_materialdata;
46  std::vector<double> m_zlimits;
47  std::vector<double> m_sigmas;
48 };
49 
50 #endif // BORNAGAIN_SAMPLE_PROCESSED_PROFILEHELPER_H
51 #endif // USER_API
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:36
std::vector< complex_t > m_materialdata
Definition: ProfileHelper.h:45
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:47
ProfileHelper(const ProcessedSample &sample)
std::vector< double > m_zlimits
Definition: ProfileHelper.h:46