BornAgain  1.19.0
Simulate and fit neutron and x-ray scattering at grazing incidence
ComputeBA.cpp
Go to the documentation of this file.
1 // ************************************************************************************************
2 //
3 // BornAgain: simulate and fit reflection and scattering
4 //
5 //! @file Sample/FFCompute/ComputeBA.cpp
6 //! @brief Implements class ComputeBA.
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 
18 
20 
21 ComputeBA::~ComputeBA() = default;
22 
24 {
25  return new ComputeBA(*m_ff);
26 }
27 
28 complex_t ComputeBA::evaluate(const WavevectorInfo& wavevectors) const
29 {
30  return m_ff->evaluate(wavevectors);
31 }
std::complex< double > complex_t
Definition: Complex.h:20
Defines class ComputeBA.
Defines and implements interface IFormFactor.
Defines WavevectorInfo.
Provides scalar form factor evaluation in Born Approximation for given IFormFactor.
Definition: ComputeBA.h:30
~ComputeBA() override
ComputeBA(const IFormFactor &ff)
Definition: ComputeBA.cpp:19
ComputeBA * clone() const override
Definition: ComputeBA.cpp:23
complex_t evaluate(const WavevectorInfo &wavevectors) const override
Calculates and returns a form factor calculation in BA.
Definition: ComputeBA.cpp:28
Abstract base class for form factor evaluations.
Definition: IComputeFF.h:39
std::unique_ptr< IFormFactor > m_ff
Definition: IComputeFF.h:64
Abstract base class for all form factors.
Definition: IFormFactor.h:36
Holds all wavevector information relevant for calculating form factors.