BornAgain  1.19.79
Open-source research software to simulate and fit neutron and x-ray reflectometry and grazing-incidence small-angle scattering
InterferenceNone.cpp
Go to the documentation of this file.
1 // ************************************************************************************************
2 //
3 // BornAgain: simulate and fit reflection and scattering
4 //
5 //! @file Sample/Aggregate/InterferenceNone.cpp
6 //! @brief Implements class InterferenceNone.
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 
16 
18  : IInterference(0)
19 {
20 }
21 
23 {
24  auto* result = new InterferenceNone();
25  result->setPositionVariance(m_position_var);
26  return result;
27 }
28 
29 double InterferenceNone::iff_without_dw(const R3) const
30 {
31  return 1.0;
32 }
Defines class InterferenceNone.
Abstract base class of interference functions.
Definition: IInterference.h:24
double m_position_var
Definition: IInterference.h:53
Default interference function (i.e. absence of any interference).
double iff_without_dw(R3 q) const override
Calculates the structure factor without Debye-Waller factor.
InterferenceNone * clone() const override