BornAgain  1.19.0
Simulate and fit neutron and x-ray scattering at grazing incidence
FormFactorCoherentPart.h
Go to the documentation of this file.
1 // ************************************************************************************************
2 //
3 // BornAgain: simulate and fit reflection and scattering
4 //
5 //! @file Sample/Fresnel/FormFactorCoherentPart.h
6 //! @brief Defines class FormFactorCoherentPart.
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_FRESNEL_FORMFACTORCOHERENTPART_H
21 #define BORNAGAIN_SAMPLE_FRESNEL_FORMFACTORCOHERENTPART_H
22 
23 #include "Base/Types/Complex.h"
24 #include "Base/Vector/EigenCore.h"
25 #include <memory>
26 
27 class IFresnelMap;
28 class IComputeFF;
29 class SimulationElement;
30 
31 //! Information about single particle form factor and specular info of the embedding layer.
32 //! @ingroup formfactors_internal
33 
35 public:
42 
43  complex_t evaluate(const SimulationElement& sim_element) const;
44 #ifndef SWIG
45  Eigen::Matrix2cd evaluatePol(const SimulationElement& sim_element) const;
46 #endif
47 
48  void setSpecularInfo(const IFresnelMap* fresnel_map, size_t layer_index);
49  double radialExtension() const;
50 
51 private:
52  std::unique_ptr<IComputeFF> m_ff;
54  size_t m_layer_index;
55 };
56 
57 #endif // BORNAGAIN_SAMPLE_FRESNEL_FORMFACTORCOHERENTPART_H
58 #endif // USER_API
Defines complex_t, and a few elementary functions.
std::complex< double > complex_t
Definition: Complex.h:20
Include to deal with Eigen alignment centrally.
Information about single particle form factor and specular info of the embedding layer.
FormFactorCoherentPart & operator=(const FormFactorCoherentPart &other)
FormFactorCoherentPart(FormFactorCoherentPart &&other)
void setSpecularInfo(const IFresnelMap *fresnel_map, size_t layer_index)
complex_t evaluate(const SimulationElement &sim_element) const
FormFactorCoherentPart(IComputeFF *ff)
FormFactorCoherentPart & operator=(FormFactorCoherentPart &&other)
Eigen::Matrix2cd evaluatePol(const SimulationElement &sim_element) const
std::unique_ptr< IComputeFF > m_ff
const IFresnelMap * m_fresnel_map
Abstract base class for form factor evaluations.
Definition: IComputeFF.h:39
Holds the necessary information to calculate the radiation wavefunction in every layer for different ...
Definition: IFresnelMap.h:34
Data stucture containing both input and output of a single detector cell.