BornAgain  1.18.0
Simulate and fit neutron and x-ray scattering at grazing incidence
InterferenceFunctionTwin.h
Go to the documentation of this file.
1 // ************************************************************************** //
2 //
3 // BornAgain: simulate and fit scattering at grazing incidence
4 //
5 //! @file Sample/Aggregate/InterferenceFunctionTwin.h
6 //! @brief Defines class InterferenceFunctionTwin.
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 #ifndef BORNAGAIN_CORE_AGGREGATE_INTERFERENCEFUNCTIONTWIN_H
16 #define BORNAGAIN_CORE_AGGREGATE_INTERFERENCEFUNCTIONTWIN_H
17 
19 
20 //! Interference function for two particles at a mean distance and given standard deviation
21 //! from each other in a given direction.
22 //! @ingroup interference
23 
25 {
26 public:
27  InterferenceFunctionTwin(const kvector_t& direction, double mean_distance, double std_dev);
28 
29  InterferenceFunctionTwin* clone() const override final;
30 
31  void accept(INodeVisitor* visitor) const override final { visitor->visit(this); }
32 
33  kvector_t direction() const;
34  double meanDistance() const;
35  double stdDev() const;
36 
37 private:
38  double iff_without_dw(const kvector_t q) const override final;
39 
41  double m_distance;
42  double m_std_dev;
43 };
44 
45 #endif // BORNAGAIN_CORE_AGGREGATE_INTERFERENCEFUNCTIONTWIN_H
Defines and implements the interface class IInterferenceFunction.
Pure virtual base class of interference functions.
Visitor interface to visit ISample objects.
Definition: INodeVisitor.h:149
Interference function for two particles at a mean distance and given standard deviation from each oth...
InterferenceFunctionTwin(const kvector_t &direction, double mean_distance, double std_dev)
double iff_without_dw(const kvector_t q) const override final
Calculates the structure factor without Debye-Waller factor.
InterferenceFunctionTwin * clone() const override final
Returns a clone of this ISample object.
void accept(INodeVisitor *visitor) const override final
Calls the INodeVisitor's visit method.