59 bool m_exp_background =
true) {
virtual double calculateBackground(double *x, double *par)=0
Calculates the value of the background function at the specified x and with the specified parameters.
SignalFitModel
description
double getCorrectedX(double x)
Gets a value of x corrected for window size and the mass hypothesis.
double calculateSignal(double *x, double *par)
Calculates the value of the signal function at the specified x and with the specified parameters.
double operator()(double *x, double *par)
Calculates the value of the function at the specified x and with the specified parameters.
FitFunction(double m_mass_hypothesis, double m_window_size, double m_bin_size, ModelOrder m_model_order, SignalFitModel m_sig_model=FitFunction::SignalFitModel::NONE, bool m_exp_background=true)
Constructor.
static double CrystalBall(double x, double amplitude, double mean, double stddev, double alpha, double n)
Defines a crystal ball function for signal-fitting.
static double Gaussian(double x, double amplitude, double mean, double stddev)
Defines a Gaussian function for signal-fitting.