BornAgain  1.19.79
Open-source research software to simulate and fit neutron and x-ray reflectometry and grazing-incidence small-angle scattering
Interference3DLattice.h
Go to the documentation of this file.
1 // ************************************************************************************************
2 //
3 // BornAgain: simulate and fit reflection and scattering
4 //
5 //! @file Sample/Aggregate/Interference3DLattice.h
6 //! @brief Defines class Interference3DLattice.
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_INTERFERENCE3DLATTICE_H
16 #define BORNAGAIN_SAMPLE_AGGREGATE_INTERFERENCE3DLATTICE_H
17 
20 
21 class IPeakShape;
22 
23 //! Interference function of a 3D lattice.
24 //! @ingroup interference
25 
27 public:
30 
31  Interference3DLattice* clone() const override;
32  std::string className() const final { return "Interference3DLattice"; }
33 
34  void setPeakShape(const IPeakShape& peak_shape);
35 
36  const Lattice3D& lattice() const;
37 
38  bool supportsMultilayer() const override { return false; }
39 
40  std::vector<const INode*> nodeChildren() const override;
41 
42 private:
43  double iff_without_dw(R3 q) const override;
44 
45  Lattice3D m_lattice; // TODO unique_ptr as in other Interference%s
46  std::unique_ptr<IPeakShape> m_peak_shape;
47  double m_rec_radius; //!< radius in reciprocal space defining the nearest q vectors to use
48 };
49 
50 #endif // BORNAGAIN_SAMPLE_AGGREGATE_INTERFERENCE3DLATTICE_H
Defines and implements the interface class IInterference.
Defines class Lattice.
Abstract base class of interference functions.
Definition: IInterference.h:24
Abstract base class class that defines the peak shape of a Bragg peak.
Definition: IPeakShape.h:25
Interference function of a 3D lattice.
void setPeakShape(const IPeakShape &peak_shape)
std::string className() const final
Returns the class name, to be hard-coded in each leaf class that inherits from INode.
double m_rec_radius
radius in reciprocal space defining the nearest q vectors to use
Interference3DLattice(const Lattice3D &lattice)
bool supportsMultilayer() const override
Indicates if this interference function can be used with a sample (DWBA mode)
~Interference3DLattice() override
Interference3DLattice * clone() const override
const Lattice3D & lattice() const
double iff_without_dw(R3 q) const override
Calculates the structure factor without Debye-Waller factor.
std::vector< const INode * > nodeChildren() const override
Returns all children.
std::unique_ptr< IPeakShape > m_peak_shape
A Bravais lattice, characterized by three basis vectors, and optionally an ISelectionRule.
Definition: Lattice3D.h:30