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 gui2/quicksimeditor/profilehelper.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_PROFILEHELPER_H
16 #define BORNAGAIN_GUI2_QUICKSIMEDITOR_PROFILEHELPER_H
17 
18 #include "darefl_export.h"
19 #include <Sample/Slice/Slice.h>
20 #include <utility>
21 #include <vector>
22 
23 //! Object that can generate the material profile of a sample as a function of depth.
24 namespace gui2 {
25 
26 class DAREFLCORE_EXPORT ProfileHelper {
27 public:
28  ProfileHelper(const std::vector<Slice>& sample);
30 
31  std::vector<complex_t> calculateProfile(const std::vector<double>& z_values) const;
32  std::pair<double, double> defaultLimits() const;
33 
34 private:
35  std::vector<complex_t> m_materialdata;
36  std::vector<double> m_zlimits;
37  std::vector<double> m_sigmas;
38 };
39 
40 } // namespace gui2
41 
42 #endif // BORNAGAIN_GUI2_QUICKSIMEDITOR_PROFILEHELPER_H
Defines class Slice.
std::vector< double > m_sigmas
Definition: profilehelper.h:37
std::vector< double > m_zlimits
Definition: profilehelper.h:36
std::vector< complex_t > m_materialdata
Definition: profilehelper.h:35
Based on Qt example "codeeditor" Copyright (C) 2016 The Qt Company Ltd.
Definition: app_constants.h:20