BornAgain  1.18.0
Simulate and fit neutron and x-ray scattering at grazing incidence
InterferenceFunctionNone.cpp
Go to the documentation of this file.
1 // ************************************************************************** //
2 //
3 // BornAgain: simulate and fit scattering at grazing incidence
4 //
5 //! @file Sample/Aggregate/InterferenceFunctionNone.cpp
6 //! @brief Implements class InterferenceFunctionNone.
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 {
19  setName("InterferenceNone");
20 }
21 
23 {
24  auto* ret = new InterferenceFunctionNone();
25  ret->setPositionVariance(m_position_var);
26  return ret;
27 }
28 
30 {
31  return 1.0;
32 }
Defines class InterferenceFunctionNone.
Pure virtual base class of interference functions.
void setName(const std::string &name)
Default interference function (i.e.
double iff_without_dw(const kvector_t q) const override final
Calculates the structure factor without Debye-Waller factor.
InterferenceFunctionNone * clone() const override final
Returns a clone of this ISample object.