BornAgain  1.19.0
Simulate and fit neutron and x-ray scattering at grazing incidence
FormFactorSawtoothRipple.h
Go to the documentation of this file.
1 // ************************************************************************************************
2 //
3 // BornAgain: simulate and fit reflection and scattering
4 //
5 //! @file Sample/HardParticle/FormFactorSawtoothRipple.h
6 //! @brief Defines classes FormFactorSawtoothRipple*.
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_HARDPARTICLE_FORMFACTORSAWTOOTHRIPPLE_H
16 #define BORNAGAIN_SAMPLE_HARDPARTICLE_FORMFACTORSAWTOOTHRIPPLE_H
17 
19 
20 //! The form factor for a cosine ripple, with box profile in elongation direction.
21 //! @ingroup legacyGrating
23 public:
24  FormFactorSawtoothRippleBox(const std::vector<double> P);
25  FormFactorSawtoothRippleBox(double length, double width, double height, double asymmetry);
26  FormFactorSawtoothRippleBox* clone() const final;
27  void accept(INodeVisitor* visitor) const final;
28 
29 private:
30  complex_t factor_x(complex_t qx) const final;
31 };
32 
33 //! The form factor for a cosine ripple, with Gaussian profile in elongation direction.
34 //! @ingroup legacyGrating
36 public:
37  FormFactorSawtoothRippleGauss(const std::vector<double> P);
38  FormFactorSawtoothRippleGauss(double length, double width, double height, double asymmetry);
39  FormFactorSawtoothRippleGauss* clone() const final;
40  void accept(INodeVisitor* visitor) const final;
41 
42 private:
43  complex_t factor_x(complex_t qx) const final;
44 };
45 
46 //! The form factor for a cosine ripple, with Lorentz form factor in elongation direction.
47 //! @ingroup legacyGrating
49 public:
50  FormFactorSawtoothRippleLorentz(const std::vector<double> P);
51  FormFactorSawtoothRippleLorentz(double length, double width, double height, double asymmetry);
53  void accept(INodeVisitor* visitor) const final;
54 
55 private:
56  complex_t factor_x(complex_t qx) const final;
57 };
58 
59 #endif // BORNAGAIN_SAMPLE_HARDPARTICLE_FORMFACTORSAWTOOTHRIPPLE_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.
complex_t factor_x(complex_t qx) const final
void accept(INodeVisitor *visitor) const final
Calls the INodeVisitor's visit method.
FormFactorSawtoothRippleBox * clone() const final
Returns a clone of this ISampleNode object.
FormFactorSawtoothRippleBox(const std::vector< double > P)
The form factor for a cosine ripple, with Gaussian profile in elongation direction.
FormFactorSawtoothRippleGauss(const std::vector< double > P)
complex_t factor_x(complex_t qx) const final
FormFactorSawtoothRippleGauss * clone() const final
Returns a clone of this ISampleNode object.
void accept(INodeVisitor *visitor) const final
Calls the INodeVisitor's visit method.
The form factor for a cosine ripple, with Lorentz form factor in elongation direction.
FormFactorSawtoothRippleLorentz * clone() const final
Returns a clone of this ISampleNode object.
FormFactorSawtoothRippleLorentz(const std::vector< double > P)
complex_t factor_x(complex_t qx) const final
void accept(INodeVisitor *visitor) const final
Calls the INodeVisitor's visit method.
Visitor interface to visit ISampleNode objects.
Definition: INodeVisitor.h:146
Base class for form factors with a triangular ripple profile in the yz plane.