BornAgain  1.18.0
Simulate and fit neutron and x-ray scattering at grazing incidence
InterferenceFunctionUtils.h
Go to the documentation of this file.
1 // ************************************************************************** //
2 //
3 // BornAgain: simulate and fit scattering at grazing incidence
4 //
5 //! @file Sample/Interference/InterferenceFunctionUtils.h
6 //! @brief Defines helper functions for InterferenceFunctions and Strategies.
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_MULTILAYER_INTERFERENCEFUNCTIONUTILS_H
16 #define BORNAGAIN_CORE_MULTILAYER_INTERFERENCEFUNCTIONUTILS_H
17 
18 #include "Base/Types/Complex.h"
19 #include <Eigen/StdVector>
20 #include <vector>
21 
23 class SimulationElement;
24 
26 {
27 using matrixFFVector_t = std::vector<Eigen::Matrix2cd, Eigen::aligned_allocator<Eigen::Matrix2cd>>;
28 
29 std::vector<complex_t>
31  const std::vector<FormFactorCoherentSum>& ff_wrappers);
34  const std::vector<FormFactorCoherentSum>& ff_wrappers);
35 
36 } // namespace InterferenceFunctionUtils
37 
38 #endif // BORNAGAIN_CORE_MULTILAYER_INTERFERENCEFUNCTIONUTILS_H
Defines complex_t, and a few elementary functions.
Information about particle form factor and abundance.
Data stucture containing both input and output of a single detector cell.
std::vector< complex_t > PrecomputeScalarFormFactors(const SimulationElement &sim_element, const std::vector< FormFactorCoherentSum > &ff_wrappers)
matrixFFVector_t PrecomputePolarizedFormFactors(const SimulationElement &sim_element, const std::vector< FormFactorCoherentSum > &ff_wrappers)
std::vector< Eigen::Matrix2cd, Eigen::aligned_allocator< Eigen::Matrix2cd > > matrixFFVector_t