 ROOT   Reference Guide ROOT::Minuit2::MnParabola Class Reference

This class defines a parabola of the form a*x*x + b*x + c.

Definition at line 30 of file MnParabola.h.

## Public Member Functions

MnParabola (double a, double b, double c)
Constructor that initializes the parabola with its three parameters. More...

~MnParabola ()

double A () const
Accessor to the coefficient of the quadratic term. More...

double B () const
Accessor to the coefficient of the linear term. More...

double C () const
Accessor to the coefficient of the constant term. More...

double Min () const
Calculates the x coordinate of the Minimum of the parabola. More...

double X_neg (double y) const
Calculates the smaller of the two x values corresponding to the given y Value. More...

double X_pos (double y) const
Calculates the bigger of the two x values corresponding to the given y Value. More...

double Y (double x) const
Evaluates the parabola a the point x. More...

double YMin () const
Calculates the y coordinate of the Minimum of the parabola. More...

## Private Attributes

double fA

double fB

double fC

#include <Minuit2/MnParabola.h>

## ◆ MnParabola()

 ROOT::Minuit2::MnParabola::MnParabola ( double a, double b, double c )
inline

Constructor that initializes the parabola with its three parameters.

Parameters
 a the coefficient of the quadratic term b the coefficient of the linear term c the constant

Definition at line 43 of file MnParabola.h.

## ◆ ~MnParabola()

 ROOT::Minuit2::MnParabola::~MnParabola ( )
inline

Definition at line 45 of file MnParabola.h.

## ◆ A()

 double ROOT::Minuit2::MnParabola::A ( ) const
inline

Accessor to the coefficient of the quadratic term.

Returns
the coefficient of the quadratic term.

Definition at line 127 of file MnParabola.h.

## ◆ B()

 double ROOT::Minuit2::MnParabola::B ( ) const
inline

Accessor to the coefficient of the linear term.

Returns
the coefficient of the linear term.

Definition at line 137 of file MnParabola.h.

## ◆ C()

 double ROOT::Minuit2::MnParabola::C ( ) const
inline

Accessor to the coefficient of the constant term.

Returns
the coefficient of the constant term.

Definition at line 147 of file MnParabola.h.

## ◆ Min()

 double ROOT::Minuit2::MnParabola::Min ( ) const
inline

Calculates the x coordinate of the Minimum of the parabola.

Returns
x coordinate of the Minimum.

Definition at line 107 of file MnParabola.h.

## ◆ X_neg()

 double ROOT::Minuit2::MnParabola::X_neg ( double y ) const
inline

Calculates the smaller of the two x values corresponding to the given y Value.

???????!!!!!!!!! And when there is none?? it looks like it will crash?? what is sqrt (-1.0) ?

Parameters
 y the y Value for which the x Value is to be calculated.
Returns
the smaller one of the two corresponding values.

Definition at line 97 of file MnParabola.h.

## ◆ X_pos()

 double ROOT::Minuit2::MnParabola::X_pos ( double y ) const
inline

Calculates the bigger of the two x values corresponding to the given y Value.

???????!!!!!!!!! And when there is none?? it looks like it will crash?? what is sqrt (-1.0) ?

Parameters
 y the y Value for which the x Value is to be calculated.
Returns
the bigger one of the two corresponding values.

Definition at line 77 of file MnParabola.h.

## ◆ Y()

 double ROOT::Minuit2::MnParabola::Y ( double x ) const
inline

Evaluates the parabola a the point x.

Parameters
 x the coordinate where the parabola needs to be evaluated.
Returns
the y coordinate of the parabola corresponding to x.

Definition at line 57 of file MnParabola.h.

## ◆ YMin()

 double ROOT::Minuit2::MnParabola::YMin ( ) const
inline

Calculates the y coordinate of the Minimum of the parabola.

Returns
y coordinate of the Minimum.

Definition at line 117 of file MnParabola.h.

## ◆ fA

 double ROOT::Minuit2::MnParabola::fA
private

Definition at line 150 of file MnParabola.h.

## ◆ fB

 double ROOT::Minuit2::MnParabola::fB
private

Definition at line 151 of file MnParabola.h.

## ◆ fC

 double ROOT::Minuit2::MnParabola::fC
private

Definition at line 152 of file MnParabola.h.

Libraries for ROOT::Minuit2::MnParabola: [legend]

The documentation for this class was generated from the following file: