10#ifndef ROOT_Minuit2_MnParabola
11#define ROOT_Minuit2_MnParabola
41 double Y(
double x)
const {
return (
fA *
x *
x +
fB *
x +
fC); }
44 double Min()
const {
return -
fB / (2. *
fA); }
50 double A()
const {
return fA; }
53 double B()
const {
return fB; }
56 double C()
const {
return fC; }
This class defines a parabola of the form a*x*x + b*x + c.
double YMin() const
Calculate the y coordinate of the Minimum of the parabola.
double B() const
Get the coefficient of the linear term.
double C() const
Get the coefficient of the constant term.
double Min() const
Calculate the x coordinate of the Minimum of the parabola.
double A() const
Get the coefficient of the quadratic term.
MnParabola(double a, double b, double c)
Constructor that initializes the parabola with its three parameters.
double Y(double x) const
Evaluates the parabola a the point x.
Namespace for new ROOT classes and functions.