ROOT logo
ROOT » MATH » MINUIT2 » ROOT::Minuit2::MinuitParameter

class ROOT::Minuit2::MinuitParameter


    class for the individual Minuit Parameter with Name and number;
    contains the input numbers for the minimization or the output result
    from minimization;
    possible interactions: Fix/release, set/remove limits, set Value/error;

    From version 5.20: use string to store the name to avoid limitation of
    name length of 20 characters

This class is also known as (typedefs to this class)

vector<ROOT::Minuit2::MinuitParameter,allocator<ROOT::Minuit2::MinuitParameter> >::value_type

Function Members (Methods)

public:
~MinuitParameter()
doubleError() const
voidFix()
const string&GetName() const
boolHasLimits() const
boolHasLowerLimit() const
boolHasUpperLimit() const
boolIsConst() const
boolIsFixed() const
doubleLowerLimit() const
ROOT::Minuit2::MinuitParameterMinuitParameter()
ROOT::Minuit2::MinuitParameterMinuitParameter(const ROOT::Minuit2::MinuitParameter& par)
ROOT::Minuit2::MinuitParameterMinuitParameter(unsigned int num, const string& name, double val)
ROOT::Minuit2::MinuitParameterMinuitParameter(unsigned int num, const string& name, double val, double err)
ROOT::Minuit2::MinuitParameterMinuitParameter(unsigned int num, const string& name, double val, double err, double min, double max)
const char*Name() const
unsigned intNumber() const
ROOT::Minuit2::MinuitParameter&operator=(const ROOT::Minuit2::MinuitParameter& par)
voidRelease()
voidRemoveLimits()
voidSetError(double err)
voidSetLimits(double low, double up)
voidSetLowerLimit(double low)
voidSetUpperLimit(double up)
voidSetValue(double val)
doubleUpperLimit() const
doubleValue() const

Data Members

private:
boolfConst
doublefError
boolfFix
boolfLoLimValid
doublefLoLimit
stringfName
unsigned intfNum
boolfUpLimValid
doublefUpLimit
doublefValue

Class Charts

Inheritance Inherited Members Includes Libraries
Class Charts

Function documentation

MinuitParameter()
default constructor standard with value/error = 0
{}
MinuitParameter(unsigned int num, const string& name, double val)
constructor for constant Parameter
{}
MinuitParameter(unsigned int num, const string& name, double val, double err)
constructor for standard Parameter
{}
MinuitParameter(unsigned int num, const string& name, double val, double err, double min, double max)
constructor for limited Parameter
~MinuitParameter()
{}
MinuitParameter(const ROOT::Minuit2::MinuitParameter& par)
{}
MinuitParameter& operator=(const ROOT::Minuit2::MinuitParameter& par)
unsigned int Number() const
access methods
{return fNum;}
const std::string & GetName() const
 new API returning a string
{ return fName; }
const char * Name() const
 return const char * for mantaining backward compatibility
{return fName.c_str();}
double Value() const
{return fValue;}
double Error() const
{return fError;}
void SetValue(double val)
interaction
{fValue = val;}
void SetError(double err)
{fError = err;}
void SetLimits(double low, double up)
void SetUpperLimit(double up)
void SetLowerLimit(double low)
void RemoveLimits()
void Fix()
{fFix = true;}
void Release()
{fFix = false;}
bool IsConst() const
state of Parameter (fixed/const/limited)
{return fConst;}
bool IsFixed() const
{return fFix;}
bool HasLimits() const
{return fLoLimValid || fUpLimValid; }
bool HasLowerLimit() const
{return fLoLimValid; }
bool HasUpperLimit() const
{return fUpLimValid; }
double LowerLimit() const
{return fLoLimit;}
double UpperLimit() const
{return fUpLimit;}