BornAgain  1.19.0
Simulate and fit neutron and x-ray scattering at grazing incidence
FootprintGauss.h
Go to the documentation of this file.
1 // ************************************************************************************************
2 //
3 // BornAgain: simulate and fit reflection and scattering
4 //
5 //! @file Device/Beam/FootprintGauss.h
6 //! @brief Defines class FootprintGauss.
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_DEVICE_BEAM_FOOTPRINTGAUSS_H
16 #define BORNAGAIN_DEVICE_BEAM_FOOTPRINTGAUSS_H
17 
19 
20 //! Gaussian beam footprint.
21 //!
22 //! Beam width is the full width at half maximum.
23 //! @ingroup beam
24 
26 public:
27  FootprintGauss(const std::vector<double> P);
28  FootprintGauss(double width_ratio);
29 
30  void accept(INodeVisitor* visitor) const override { visitor->visit(this); }
31 
32  FootprintGauss* clone() const override;
33 
34  //! Calculate footprint correction coefficient from the beam incident angle _alpha_.
35  double calculate(double alpha) const override;
36 
37  std::string name() const override { return "FootprintGauss"; }
38 };
39 
40 #endif // BORNAGAIN_DEVICE_BEAM_FOOTPRINTGAUSS_H
Defines interface IFootprintFactor.
Gaussian beam footprint.
FootprintGauss * clone() const override
FootprintGauss(const std::vector< double > P)
double calculate(double alpha) const override
Calculate footprint correction coefficient from the beam incident angle alpha.
std::string name() const override
void accept(INodeVisitor *visitor) const override
Calls the INodeVisitor's visit method.
Abstract base for classes that calculate the beam footprint factor.
Visitor interface to visit ISampleNode objects.
Definition: INodeVisitor.h:146
virtual void visit(const BasicLattice2D *)
Definition: INodeVisitor.h:151