BornAgain  1.19.0
Simulate and fit neutron and x-ray scattering at grazing incidence
materialprofile.h
Go to the documentation of this file.
1 // ************************************************************************************************
2 //
3 // BornAgain: simulate and fit reflection and scattering
4 //
5 //! @file gui2/quicksimeditor/materialprofile.h
6 //! @brief Defines class CLASS?
7 //!
8 //! @homepage http://www.bornagainproject.org
9 //! @license GNU General Public License v3 or higher (see COPYING)
10 //! @copyright Forschungszentrum Jülich GmbH 2020
11 //! @authors Scientific Computing Group at MLZ (see CITATION, AUTHORS)
12 //
13 // ************************************************************************************************
14 
15 #ifndef BORNAGAIN_GUI2_QUICKSIMEDITOR_MATERIALPROFILE_H
16 #define BORNAGAIN_GUI2_QUICKSIMEDITOR_MATERIALPROFILE_H
17 
18 #include "darefl_export.h"
20 
21 namespace gui2 {
22 
23 //! Collection of methods borrowed from BornAgain for material profile calculations.
24 
25 namespace MaterialProfile {
26 
27 //! Calculate average material profile for given multilayer
28 DAREFLCORE_EXPORT std::vector<complex_t> CalculateProfile(const multislice_t& multilayer,
29  int n_points, double z_min, double z_max);
30 
31 //! Get default z limits for generating a material profile
32 DAREFLCORE_EXPORT std::pair<double, double>
34 
35 //! Generate z values (equidistant) for use in MaterialProfile
36 DAREFLCORE_EXPORT std::vector<double> GenerateZValues(int n_points, double z_min, double z_max);
37 
38 } // namespace MaterialProfile
39 
40 } // namespace gui2
41 
42 #endif // BORNAGAIN_GUI2_QUICKSIMEDITOR_MATERIALPROFILE_H
DAREFLCORE_EXPORT std::pair< double, double > DefaultMaterialProfileLimits(const multislice_t &multilayer)
Get default z limits for generating a material profile.
DAREFLCORE_EXPORT std::vector< complex_t > CalculateProfile(const multislice_t &multilayer, int n_points, double z_min, double z_max)
Calculate average material profile for given multilayer.
DAREFLCORE_EXPORT std::vector< double > GenerateZValues(int n_points, double z_min, double z_max)
Generate z values (equidistant) for use in MaterialProfile.
Based on Qt example "codeeditor" Copyright (C) 2016 The Qt Company Ltd.
Definition: app_constants.h:20
std::vector< SliceData > multislice_t
Defines class CLASS?