BornAgain  1.19.79
Open-source research software to simulate and fit neutron and x-ray reflectometry and grazing-incidence small-angle scattering
PoissonBackground.h
Go to the documentation of this file.
1 // ************************************************************************************************
2 //
3 // BornAgain: simulate and fit reflection and scattering
4 //
5 //! @file Sim/Background/PoissonBackground.h
6 //! @brief Defines class PoissonBackground.
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_SIM_BACKGROUND_POISSONBACKGROUND_H
16 #define BORNAGAIN_SIM_BACKGROUND_POISSONBACKGROUND_H
17 
19 
20 //! Poisson distributed noise, to be added to simulated scattering.
21 //!
22 //! @ingroup background
23 
25 public:
27  PoissonBackground* clone() const override;
28  std::string className() const final { return "PoissonBackground"; }
29  // const auto tooltip = "class_tooltip";
30 
31  double addBackground(double intensity) const override;
32 };
33 
34 #endif // BORNAGAIN_SIM_BACKGROUND_POISSONBACKGROUND_H
Defines interface IBackground.
Abstract base class for background noise, to be added to simulated scattering.
Definition: IBackground.h:27
Poisson distributed noise, to be added to simulated scattering.
std::string className() const final
Returns the class name, to be hard-coded in each leaf class that inherits from INode.
double addBackground(double intensity) const override
PoissonBackground * clone() const override