BornAgain  1.19.0
Simulate and fit neutron and x-ray scattering at grazing incidence
FormFactorPrecompute.h
Go to the documentation of this file.
1 // ************************************************************************************************
2 //
3 // BornAgain: simulate and fit reflection and scattering
4 //
5 //! @file Sample/Interference/FormFactorPrecompute.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 #ifdef SWIG
16 #error no need to expose this header to Swig
17 #endif
18 
19 #ifndef USER_API
20 #ifndef BORNAGAIN_SAMPLE_INTERFERENCE_FORMFACTORPRECOMPUTE_H
21 #define BORNAGAIN_SAMPLE_INTERFERENCE_FORMFACTORPRECOMPUTE_H
22 
23 #include "Base/Types/Complex.h"
24 #include <Eigen/StdVector>
25 #include <vector>
26 
28 class SimulationElement;
29 
31 using matrixFFVector_t = std::vector<Eigen::Matrix2cd, Eigen::aligned_allocator<Eigen::Matrix2cd>>;
32 
33 std::vector<complex_t> scalar(const SimulationElement& sim_element,
34  const std::vector<FormFactorCoherentSum>& ff_wrappers);
36  const std::vector<FormFactorCoherentSum>& ff_wrappers);
37 
38 } // namespace FormFactorPrecompute
39 
40 #endif // BORNAGAIN_SAMPLE_INTERFERENCE_FORMFACTORPRECOMPUTE_H
41 #endif // USER_API
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.
matrixFFVector_t polarized(const SimulationElement &sim_element, const std::vector< FormFactorCoherentSum > &ff_wrappers)
std::vector< complex_t > scalar(const SimulationElement &sim_element, const std::vector< FormFactorCoherentSum > &ff_wrappers)
std::vector< Eigen::Matrix2cd, Eigen::aligned_allocator< Eigen::Matrix2cd > > matrixFFVector_t