BornAgain  1.18.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 scattering at grazing incidence
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_CORE_BEAM_FOOTPRINTGAUSS_H
16 #define BORNAGAIN_CORE_BEAM_FOOTPRINTGAUSS_H
17 
19 
20 //! Calculates footprint coefficient for a gaussian beam
21 //! Beam width is interpreted as the full width on the level
22 //! of \f[ \exp{-1/2} \f] from the peak intensity.
23 //! @ingroup beam
24 
26 {
27 public:
28  FootprintGauss(const std::vector<double> P);
29  FootprintGauss(double width_ratio);
30 
31  void accept(INodeVisitor* visitor) const override { visitor->visit(this); }
32 
33  FootprintGauss* clone() const override;
34 
35  //! Calculate footprint correction coefficient from the beam incident angle _alpha_.
36  double calculate(double alpha) const override;
37 
38  //! Print python-formatted footprint definition
39  std::string print() const override;
40 };
41 
42 #endif // BORNAGAIN_CORE_BEAM_FOOTPRINTGAUSS_H
Defines class IFootprintFactor.
Calculates footprint coefficient for a gaussian beam Beam width is interpreted as the full width on t...
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 print() const override
Print python-formatted footprint definition.
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 ISample objects.
Definition: INodeVisitor.h:149
virtual void visit(const BasicLattice *)
Definition: INodeVisitor.h:154