BornAgain  1.19.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 reflection and scattering
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_SAMPLE_HARDPARTICLE_FORMFACTORCOSINERIPPLE_H
16 #define BORNAGAIN_SAMPLE_HARDPARTICLE_FORMFACTORCOSINERIPPLE_H
17 
19 
20 //! The form factor for a cosine ripple, with box profile in elongation direction.
21 //! @ingroup legacyGrating
23 public:
24  FormFactorCosineRippleBox(const std::vector<double> P);
25  FormFactorCosineRippleBox(double length, double width, double height);
26  FormFactorCosineRippleBox* 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  FormFactorCosineRippleGauss(const std::vector<double> P);
38  FormFactorCosineRippleGauss(double length, double width, double height);
39  FormFactorCosineRippleGauss* 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  FormFactorCosineRippleLorentz(const std::vector<double> P);
51  FormFactorCosineRippleLorentz(double length, double width, double height);
52  FormFactorCosineRippleLorentz* clone() const final;
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_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.
FormFactorCosineRippleBox(const std::vector< double > P)
complex_t factor_x(complex_t qx) const final
FormFactorCosineRippleBox * 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 Gaussian profile in elongation direction.
FormFactorCosineRippleGauss(const std::vector< double > P)
void accept(INodeVisitor *visitor) const final
Calls the INodeVisitor's visit method.
complex_t factor_x(complex_t qx) const final
FormFactorCosineRippleGauss * clone() const final
Returns a clone of this ISampleNode object.
The form factor for a cosine ripple, with Lorentz form factor in elongation direction.
FormFactorCosineRippleLorentz * clone() const final
Returns a clone of this ISampleNode object.
complex_t factor_x(complex_t qx) const final
FormFactorCosineRippleLorentz(const std::vector< double > P)
void accept(INodeVisitor *visitor) const final
Calls the INodeVisitor's visit method.
Base class for form factors with a cosine ripple profile in the yz plane.
Visitor interface to visit ISampleNode objects.
Definition: INodeVisitor.h:146