BornAgain  1.18.0
Simulate and fit neutron and x-ray scattering at grazing incidence
InterferenceFunction1DLattice.h
Go to the documentation of this file.
1 // ************************************************************************** //
2 //
3 // BornAgain: simulate and fit scattering at grazing incidence
4 //
5 //! @file Sample/Aggregate/InterferenceFunction1DLattice.h
6 //! @brief Defines class InterferenceFunction1DLattice.
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_INTERFERENCEFUNCTION1DLATTICE_H
16 #define BORNAGAIN_CORE_AGGREGATE_INTERFERENCEFUNCTION1DLATTICE_H
17 
19 
20 class IFTDecayFunction1D;
21 
22 //! Interference function of a 1D lattice.
23 //! @ingroup interference
24 
26 {
27 public:
28  InterferenceFunction1DLattice(double length, double xi);
30 
31  InterferenceFunction1DLattice* clone() const override final;
32 
33  void accept(INodeVisitor* visitor) const override final { visitor->visit(this); }
34 
35  void setDecayFunction(const IFTDecayFunction1D& decay);
36 
37  double getLength() const { return m_length; }
38  double getXi() const { return m_xi; }
39 
40  std::vector<const INode*> getChildren() const override final;
41 
42 private:
43  double iff_without_dw(const kvector_t q) const override final;
44 
45  double m_length;
46  double m_xi;
47  std::unique_ptr<IFTDecayFunction1D> mP_decay;
48  int m_na; //!< determines the number of reciprocal lattice points to use
49 };
50 
51 #endif // BORNAGAIN_CORE_AGGREGATE_INTERFERENCEFUNCTION1DLATTICE_H
Defines and implements the interface class IInterferenceFunction.
Interface for a one-dimensional decay function, with evaluate(q) returning the Fourier transform,...
Definition: FTDecay1D.h:28
Pure virtual base class of interference functions.
Visitor interface to visit ISample objects.
Definition: INodeVisitor.h:149
Interference function of a 1D lattice.
std::vector< const INode * > getChildren() const override final
Returns a vector of children (const).
InterferenceFunction1DLattice * clone() const override final
Returns a clone of this ISample object.
InterferenceFunction1DLattice(double length, double xi)
Constructor of interference function of one-dimensional lattice.
int m_na
determines the number of reciprocal lattice points to use
void setDecayFunction(const IFTDecayFunction1D &decay)
Sets one-dimensional decay function.
std::unique_ptr< IFTDecayFunction1D > mP_decay
double iff_without_dw(const kvector_t q) const override final
Calculates the structure factor without Debye-Waller factor.
void accept(INodeVisitor *visitor) const override final
Calls the INodeVisitor's visit method.