Logo ROOT   6.16/01
Reference Guide
List of all members | Public Member Functions | Private Attributes | List of all members
ROOT::Minuit2::MnParabola Class Reference

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

Author
Fred James and Matthias Winkler; comments added by Andras Zsenei and Lorenzo Moneta

Definition at line 31 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>

Constructor & Destructor Documentation

◆ MnParabola()

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

Constructor that initializes the parabola with its three parameters.

Parameters
athe coefficient of the quadratic term
bthe coefficient of the linear term
cthe constant

Definition at line 46 of file MnParabola.h.

◆ ~MnParabola()

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

Definition at line 49 of file MnParabola.h.

Member Function Documentation

◆ 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 138 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 149 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 160 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 116 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
ythe y Value for which the x Value is to be calculated.
Returns
the smaller one of the two corresponding values.

Definition at line 105 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
ythe y Value for which the x Value is to be calculated.
Returns
the bigger one of the two corresponding values.

Definition at line 83 of file MnParabola.h.

◆ Y()

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

Evaluates the parabola a the point x.

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

Definition at line 62 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 127 of file MnParabola.h.

Member Data Documentation

◆ fA

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

Definition at line 164 of file MnParabola.h.

◆ fB

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

Definition at line 165 of file MnParabola.h.

◆ fC

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

Definition at line 166 of file MnParabola.h.


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