10 #ifndef ROOT_Minuit2_MnParabola
11 #define ROOT_Minuit2_MnParabola
62 double Y(
double x)
const {
return (
fA*x*x +
fB*x +
fC);}
138 double A()
const {
return fA;}
149 double B()
const {
return fB;}
160 double C()
const {
return fC;}
173 #endif // ROOT_Minuit2_MnParabola
double Min() const
Calculates the x coordinate of the Minimum of the parabola.
double A() const
Accessor to the coefficient of the quadratic term.
double X_pos(double y) const
Calculates the bigger of the two x values corresponding to the given y Value.
double X_neg(double y) const
Calculates the smaller of the two x values corresponding to the given y Value.
double C() const
Accessor to the coefficient of the constant term.
This class defines a parabola of the form a*x*x + b*x + c.
double B() const
Accessor to the coefficient of the linear term.
MnParabola(double a, double b, double c)
Constructor that initializes the parabola with its three parameters.
double YMin() const
Calculates the y coordinate of the Minimum of the parabola.
double Y(double x) const
Evaluates the parabola a the point x.