Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
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 30 of file MnParabola.h.

Public Member Functions

 MnParabola (double a, double b, double c)
 Constructor that initializes the parabola with its three parameters.
 
 ~MnParabola ()
 
double A () const
 Accessor to the coefficient of the quadratic term.
 
double B () const
 Accessor to the coefficient of the linear term.
 
double C () const
 Accessor to the coefficient of the constant term.
 
double Min () const
 Calculates the x coordinate of the Minimum of the parabola.
 
double X_neg (double y) const
 Calculates the smaller of the two x values corresponding to the given y Value.
 
double X_pos (double y) const
 Calculates the bigger of the two x values corresponding to the given y Value.
 
double Y (double x) const
 Evaluates the parabola a the point x.
 
double YMin () const
 Calculates the y coordinate of the Minimum of the parabola.
 

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 43 of file MnParabola.h.

◆ ~MnParabola()

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

Definition at line 45 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 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
ythe 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
ythe 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
xthe 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.

Member Data Documentation

◆ 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:

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