BornAgain  1.19.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 reflection and scattering
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_SAMPLE_AGGREGATE_INTERFERENCEFUNCTION1DLATTICE_H
16 #define BORNAGAIN_SAMPLE_AGGREGATE_INTERFERENCEFUNCTION1DLATTICE_H
17 
19 
20 class IFTDecayFunction1D;
21 
22 //! Interference function of a 1D lattice.
23 //! @ingroup interference
24 
26 public:
27  InterferenceFunction1DLattice(double length, double xi);
29 
30  InterferenceFunction1DLattice* clone() const override;
31 
32  void accept(INodeVisitor* visitor) const override { visitor->visit(this); }
33 
34  void setDecayFunction(const IFTDecayFunction1D& decay);
35 
36  double getLength() const { return m_length; }
37  double getXi() const { return m_xi; }
38 
39  std::vector<const INode*> getChildren() const override;
40 
41 private:
42  double iff_without_dw(const kvector_t q) const override;
43 
44  double m_length;
45  double m_xi;
46  std::unique_ptr<IFTDecayFunction1D> m_decay;
47  int m_na; //!< determines the number of reciprocal lattice points to use
48 };
49 
50 #endif // BORNAGAIN_SAMPLE_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:29
Abstract base class of interference functions.
Visitor interface to visit ISampleNode objects.
Definition: INodeVisitor.h:146
virtual void visit(const BasicLattice2D *)
Definition: INodeVisitor.h:151
Interference function of a 1D lattice.
std::unique_ptr< IFTDecayFunction1D > m_decay
~InterferenceFunction1DLattice() override
std::vector< const INode * > getChildren() const override
Returns a vector of children.
void accept(INodeVisitor *visitor) const override
Calls the INodeVisitor's visit method.
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.
InterferenceFunction1DLattice * clone() const override
Returns a clone of this ISampleNode object.
double iff_without_dw(const kvector_t q) const override
Calculates the structure factor without Debye-Waller factor.