15 #ifndef BORNAGAIN_SIM_BACKGROUND_CONSTANTBACKGROUND_H
16 #define BORNAGAIN_SIM_BACKGROUND_CONSTANTBACKGROUND_H
30 std::string
className() const final {
return "ConstantBackground"; }
32 std::vector<ParaMeta>
parDefs() const final
34 return {{
"BackgroundValue",
"",
"para_tooltip", 0, +
INF, 0}};
Defines interface IBackground.
Constant background, to be added to simulated scattering.
double addBackground(double intensity) const override
std::vector< ParaMeta > parDefs() const final
Returns the parameter definitions, to be hard-coded in each leaf class.
std::string className() const final
Returns the class name, to be hard-coded in each leaf class that inherits from INode.
const double & m_background_value
double backgroundValue() const
ConstantBackground * clone() const override
ConstantBackground(std::vector< double > P)
Abstract base class for background noise, to be added to simulated scattering.