BornAgain  1.18.0
Simulate and fit neutron and x-ray scattering at grazing incidence
FormFactorCosineRipple.h
Go to the documentation of this file.
1 // ************************************************************************** //
2 //
3 // BornAgain: simulate and fit scattering at grazing incidence
4 //
5 //! @file Sample/HardParticle/FormFactorCosineRipple.h
6 //! @brief Defines classes FormFactorCosineRipple*.
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_HARDPARTICLE_FORMFACTORCOSINERIPPLE_H
16 #define BORNAGAIN_CORE_HARDPARTICLE_FORMFACTORCOSINERIPPLE_H
17 
19 
20 //! The form factor for a cosine ripple, with box profile in elongation direction.
21 //! @ingroup legacyGrating
23 {
24 public:
25  FormFactorCosineRippleBox(const std::vector<double> P);
26  FormFactorCosineRippleBox(double length, double width, double height);
27  FormFactorCosineRippleBox* clone() const override final;
28  void accept(INodeVisitor* visitor) const override final;
29 
30 private:
31  complex_t factor_x(complex_t qx) const override final;
32 };
33 
34 //! The form factor for a cosine ripple, with Gaussian profile in elongation direction.
35 //! @ingroup legacyGrating
37 {
38 public:
39  FormFactorCosineRippleGauss(const std::vector<double> P);
40  FormFactorCosineRippleGauss(double length, double width, double height);
41  FormFactorCosineRippleGauss* clone() const override final;
42  void accept(INodeVisitor* visitor) const override final;
43 
44 private:
45  complex_t factor_x(complex_t qx) const override final;
46 };
47 
48 //! The form factor for a cosine ripple, with Lorentz form factor in elongation direction.
49 //! @ingroup legacyGrating
51 {
52 public:
53  FormFactorCosineRippleLorentz(const std::vector<double> P);
54  FormFactorCosineRippleLorentz(double length, double width, double height);
55  FormFactorCosineRippleLorentz* clone() const override final;
56  void accept(INodeVisitor* visitor) const override final;
57 
58 private:
59  complex_t factor_x(complex_t qx) const override final;
60 };
61 
62 #endif // BORNAGAIN_CORE_HARDPARTICLE_FORMFACTORCOSINERIPPLE_H
std::complex< double > complex_t
Definition: Complex.h:20
Defines interface classes IProfileRipple, ICosineRipple, ISawtoothRipple.
The form factor for a cosine ripple, with box profile in elongation direction.
void accept(INodeVisitor *visitor) const override final
Calls the INodeVisitor's visit method.
FormFactorCosineRippleBox * clone() const override final
Returns a clone of this ISample object.
complex_t factor_x(complex_t qx) const override final
FormFactorCosineRippleBox(const std::vector< double > P)
The form factor for a cosine ripple, with Gaussian profile in elongation direction.
FormFactorCosineRippleGauss(const std::vector< double > P)
complex_t factor_x(complex_t qx) const override final
FormFactorCosineRippleGauss * clone() const override final
Returns a clone of this ISample object.
void accept(INodeVisitor *visitor) const override final
Calls the INodeVisitor's visit method.
The form factor for a cosine ripple, with Lorentz form factor in elongation direction.
FormFactorCosineRippleLorentz * clone() const override final
Returns a clone of this ISample object.
void accept(INodeVisitor *visitor) const override final
Calls the INodeVisitor's visit method.
complex_t factor_x(complex_t qx) const override final
FormFactorCosineRippleLorentz(const std::vector< double > P)
Base class for form factors with a cosine ripple profile in the yz plane.
Visitor interface to visit ISample objects.
Definition: INodeVisitor.h:149