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
18
#include "
Device/Beam/IFootprintFactor.h
"
19
20
//! Gaussian beam footprint.
21
//!
22
//! Beam width is the full width at half maximum.
23
//! @ingroup beam
24
25
class
FootprintGauss
:
public
IFootprintFactor
{
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
IFootprintFactor.h
Defines interface IFootprintFactor.
FootprintGauss
Gaussian beam footprint.
Definition:
FootprintGauss.h:25
FootprintGauss::clone
FootprintGauss * clone() const override
Definition:
FootprintGauss.cpp:29
FootprintGauss::FootprintGauss
FootprintGauss(const std::vector< double > P)
Definition:
FootprintGauss.cpp:19
FootprintGauss::calculate
double calculate(double alpha) const override
Calculate footprint correction coefficient from the beam incident angle alpha.
Definition:
FootprintGauss.cpp:34
FootprintGauss::name
std::string name() const override
Definition:
FootprintGauss.h:37
FootprintGauss::accept
void accept(INodeVisitor *visitor) const override
Calls the INodeVisitor's visit method.
Definition:
FootprintGauss.h:30
IFootprintFactor
Abstract base for classes that calculate the beam footprint factor.
Definition:
IFootprintFactor.h:28
INodeVisitor
Visitor interface to visit ISampleNode objects.
Definition:
INodeVisitor.h:146
INodeVisitor::visit
virtual void visit(const BasicLattice2D *)
Definition:
INodeVisitor.h:151
Device
Beam
FootprintGauss.h
Generated by
1.9.1