BornAgain
1.19.79
Open-source research software to simulate and fit neutron and x-ray reflectometry and grazing-incidence small-angle scattering
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
(std::vector<double> P);
28
FootprintGauss
(
double
width_ratio);
29
30
FootprintGauss
*
clone
()
const override
;
31
std::string
className
() const final {
return
"FootprintGauss"
; }
32
// const auto tooltip = "class_tooltip";
33
std::vector<ParaMeta>
parDefs
() const final
34
{
35
return
{{
"BeamToSampleWidthRatio"
,
""
,
"ratio of beam width to sample width"
, 0,
INF
, 1.}};
36
}
37
38
//! Calculate footprint correction coefficient from the beam incident angle _alpha_.
39
double
calculate
(
double
alpha)
const override
;
40
41
std::string
name
()
const override
{
return
"FootprintGauss"
; }
42
};
43
44
#endif
// BORNAGAIN_DEVICE_BEAM_FOOTPRINTGAUSS_H
IFootprintFactor.h
Defines interface IFootprintFactor.
INF
const double INF
Definition:
INode.h:26
FootprintGauss
Gaussian beam footprint.
Definition:
FootprintGauss.h:25
FootprintGauss::clone
FootprintGauss * clone() const override
Definition:
FootprintGauss.cpp:30
FootprintGauss::calculate
double calculate(double alpha) const override
Calculate footprint correction coefficient from the beam incident angle alpha.
Definition:
FootprintGauss.cpp:35
FootprintGauss::parDefs
std::vector< ParaMeta > parDefs() const final
Returns the parameter definitions, to be hard-coded in each leaf class.
Definition:
FootprintGauss.h:33
FootprintGauss::className
std::string className() const final
Returns the class name, to be hard-coded in each leaf class that inherits from INode.
Definition:
FootprintGauss.h:31
FootprintGauss::name
std::string name() const override
Definition:
FootprintGauss.h:41
FootprintGauss::FootprintGauss
FootprintGauss(std::vector< double > P)
Definition:
FootprintGauss.cpp:19
IFootprintFactor
Abstract base for classes that calculate the beam footprint factor.
Definition:
IFootprintFactor.h:27
Device
Beam
FootprintGauss.h
Generated by
1.9.1