BornAgain  1.19.0
Simulate and fit neutron and x-ray scattering at grazing incidence
ComputeBAPol.h
Go to the documentation of this file.
1 // ************************************************************************************************
2 //
3 // BornAgain: simulate and fit reflection and scattering
4 //
5 //! @file Sample/FFCompute/ComputeBAPol.h
6 //! @brief Defines class ComputeBAPol.
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_FFCOMPUTE_COMPUTEBAPOL_H
21 #define BORNAGAIN_SAMPLE_FFCOMPUTE_COMPUTEBAPOL_H
22 
25 #include <memory>
26 
27 //! Provides polarized form factor evaluation in Born Approximation for given IFormFactor.
28 
29 //! @ingroup formfactors_internal
30 
31 class ComputeBAPol : public IComputeFF {
32 public:
33  ComputeBAPol(const IFormFactor& ff);
34  ~ComputeBAPol() override;
35 
36  ComputeBAPol* clone() const override;
37 
38  //! Throws not-implemented exception
39  complex_t evaluate(const WavevectorInfo& wavevectors) const override;
40 
41  //! Calculates and returns a polarized form factor calculation in BA
42  Eigen::Matrix2cd evaluatePol(const WavevectorInfo& wavevectors) const override;
43 };
44 
45 #endif // BORNAGAIN_SAMPLE_FFCOMPUTE_COMPUTEBAPOL_H
46 #endif // USER_API
std::complex< double > complex_t
Definition: Complex.h:20
Defines and implements interface IFormFactor.
Defines and implements interface IFormFactor.
Provides polarized form factor evaluation in Born Approximation for given IFormFactor.
Definition: ComputeBAPol.h:31
complex_t evaluate(const WavevectorInfo &wavevectors) const override
Throws not-implemented exception.
~ComputeBAPol() override
Eigen::Matrix2cd evaluatePol(const WavevectorInfo &wavevectors) const override
Calculates and returns a polarized form factor calculation in BA.
ComputeBAPol * clone() const override
ComputeBAPol(const IFormFactor &ff)
Abstract base class for form factor evaluations.
Definition: IComputeFF.h:39
Abstract base class for all form factors.
Definition: IFormFactor.h:36
Holds all wavevector information relevant for calculating form factors.