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