BornAgain
1.19.0
Simulate and fit neutron and x-ray scattering at grazing incidence
FootprintSquare.h
Go to the documentation of this file.
1
// ************************************************************************************************
2
//
3
// BornAgain: simulate and fit reflection and scattering
4
//
5
//! @file Device/Beam/FootprintSquare.h
6
//! @brief Defines class FootprintSquare.
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_FOOTPRINTSQUARE_H
16
#define BORNAGAIN_DEVICE_BEAM_FOOTPRINTSQUARE_H
17
18
#include "
Device/Beam/IFootprintFactor.h
"
19
20
//! Rectangular beam footprint.
21
//! @ingroup beam
22
23
class
FootprintSquare
:
public
IFootprintFactor
{
24
public
:
25
FootprintSquare
(
const
std::vector<double> P);
26
FootprintSquare
(
double
width_ratio);
27
28
void
accept
(
INodeVisitor
* visitor)
const override
{ visitor->
visit
(
this
); }
29
30
FootprintSquare
*
clone
()
const override
;
31
32
//! Calculate footprint correction coefficient from the beam incident angle _alpha_.
33
double
calculate
(
double
alpha)
const override
;
34
35
std::string
name
()
const override
{
return
"FootprintSquare"
; }
36
};
37
38
#endif
// BORNAGAIN_DEVICE_BEAM_FOOTPRINTSQUARE_H
IFootprintFactor.h
Defines interface IFootprintFactor.
FootprintSquare
Rectangular beam footprint.
Definition:
FootprintSquare.h:23
FootprintSquare::name
std::string name() const override
Definition:
FootprintSquare.h:35
FootprintSquare::accept
void accept(INodeVisitor *visitor) const override
Calls the INodeVisitor's visit method.
Definition:
FootprintSquare.h:28
FootprintSquare::clone
FootprintSquare * clone() const override
Definition:
FootprintSquare.cpp:30
FootprintSquare::calculate
double calculate(double alpha) const override
Calculate footprint correction coefficient from the beam incident angle alpha.
Definition:
FootprintSquare.cpp:35
FootprintSquare::FootprintSquare
FootprintSquare(const std::vector< double > P)
Definition:
FootprintSquare.cpp:20
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
FootprintSquare.h
Generated by
1.9.1