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
18
#include "
Device/Beam/IFootprintFactor.h
"
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
25
class
FootprintGauss
:
public
IFootprintFactor
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
IFootprintFactor.h
Defines class IFootprintFactor.
FootprintGauss
Calculates footprint coefficient for a gaussian beam Beam width is interpreted as the full width on t...
Definition:
FootprintGauss.h:26
FootprintGauss::calculate
double calculate(double alpha) const override
Calculate footprint correction coefficient from the beam incident angle alpha.
Definition:
FootprintGauss.cpp:35
FootprintGauss::print
std::string print() const override
Print python-formatted footprint definition.
Definition:
FootprintGauss.cpp:45
FootprintGauss::accept
void accept(INodeVisitor *visitor) const override
Calls the INodeVisitor's visit method.
Definition:
FootprintGauss.h:31
IFootprintFactor
Abstract base for classes that calculate the beam footprint factor.
Definition:
IFootprintFactor.h:28
INodeVisitor
Visitor interface to visit ISample objects.
Definition:
INodeVisitor.h:149
Device
Beam
FootprintGauss.h
Generated by
1.9.1