26 fValid(true), fCovarianceValid(false), fGCCValid(false), fCovStatus(-1), fFVal(0.), fEDM(0.), fNFcn(0), fParameters(
MnUserParameters(par, err)), fCovariance(
MnUserCovariance()), fGlobalCC(
MnGlobalCorrelationCoeff()), fIntParameters(par), fIntCovariance(
MnUserCovariance())
30 fValid(true),
fCovarianceValid(false),
fGCCValid(false),
fCovStatus(-1),
fFVal(0.),
fEDM(0.),
fNFcn(0),
fParameters(par),
fCovariance(
MnUserCovariance()),
fGlobalCC(
MnGlobalCorrelationCoeff()),
fIntParameters(
std::vector<double>()),
fIntCovariance(
MnUserCovariance()) {
34 if((*ipar).IsConst() || (*ipar).IsFixed())
continue;
35 if((*ipar).HasLimits())
50 std::vector<double> err; err.reserve(par.size());
51 for(
unsigned int i = 0; i < par.size(); i++) {
64 std::vector<double> err; err.reserve(par.size());
65 for(
unsigned int i = 0; i < par.size(); i++) {
82 if((*ipar).IsConst() || (*ipar).IsFixed())
continue;
83 if((*ipar).HasLimits())
105 for(std::vector<MinuitParameter>::const_iterator ipar = trafo.
Parameters().begin(); ipar != trafo.
Parameters().end(); ++ipar) {
106 if((*ipar).IsConst()) {
107 Add((*ipar).GetName(), (*ipar).Value());
108 }
else if((*ipar).IsFixed()) {
109 Add((*ipar).GetName(), (*ipar).Value(), (*ipar).Error());
110 if((*ipar).HasLimits()) {
111 if((*ipar).HasLowerLimit() && (*ipar).HasUpperLimit())
112 SetLimits((*ipar).GetName(), (*ipar).LowerLimit(),(*ipar).UpperLimit());
113 else if((*ipar).HasLowerLimit() && !(*ipar).HasUpperLimit())
118 Fix((*ipar).GetName());
119 }
else if((*ipar).HasLimits()) {
120 unsigned int i = trafo.
IntOfExt((*ipar).Number());
123 if((*ipar).HasLowerLimit() && (*ipar).HasUpperLimit())
124 SetLimits((*ipar).GetName(), (*ipar).LowerLimit(), (*ipar).UpperLimit());
125 else if((*ipar).HasLowerLimit() && !(*ipar).HasUpperLimit())
130 unsigned int i = trafo.
IntOfExt((*ipar).Number());
132 Add((*ipar).GetName(), st.
Vec()(i), err);
168 MN_INFO_MSG(
"MnUserParameterState:Hessian inversion fails- return diagonal matrix.");
217 std::string msg =
"Cannot modify status of constant parameter " + name;
240 std::string msg =
"Cannot modify status of constant parameter " + name;
void Release(unsigned int)
void SetLowerLimit(unsigned int, double)
void RemoveLimits(unsigned int)
void SetError(unsigned int, double)
int Invert(LASymMatrix &)
const std::string & GetName(unsigned int) const
MnUserCovariance fCovariance
Namespace for new ROOT classes and functions.
const char * Name(unsigned int) const
unsigned int Index(const std::string &) const
const std::vector< double > & Data() const
Class describing a symmetric matrix of size n.
const std::vector< ROOT::Minuit2::MinuitParameter > & Parameters() const
access to parameters (row-wise)
unsigned int Nrow() const
void Release(unsigned int)
void Add(const std::string &name, double val, double err)
void Fix(unsigned int)
interaction via external number of Parameter
class for the individual Minuit Parameter with Name and number; contains the input numbers for the mi...
MnUserCovariance fIntCovariance
unsigned int NFcn() const
determines the relative floating point arithmetic precision.
void SetError(unsigned int, double)
const MinuitParameter & Parameter(unsigned int i) const
bool Add(const std::string &, double, double)
Add free Parameter Name, Value, Error.
std::vector< double > Params() const
void SetPrecision(double eps)
unsigned int ExtOfInt(unsigned int) const
unsigned int VariableParameters() const
const double * Data() const
double Error(unsigned int) const
const std::vector< ROOT::Minuit2::MinuitParameter > & MinuitParameters() const
facade: forward interface of MnUserParameters and MnUserTransformation
void SetLimits(unsigned int, double, double)
void SetLimits(unsigned int, double, double)
const MnMachinePrecision & Precision() const
void SetValue(unsigned int, double)
MnUserCovariance Hessian() const
#define MN_INFO_MSG2(loc, str)
class to reduce the covariance matrix when a parameter is fixed by removing the corresponding row and...
unsigned int IntOfExt(unsigned int) const
const std::string & GetName(unsigned int) const
unsigned int Nrow() const
void SetValue(unsigned int, double)
MnGlobalCorrelationCoeff fGlobalCC
void SetUpperLimit(unsigned int, double)
MnUserParameters fParameters
std::vector< double > Errors() const
double Value(unsigned int) const
void SetLowerLimit(unsigned int, double)
API class for the user interaction with the parameters; serves as input to the minimizer as well as o...
double Error(unsigned int) const
std::vector< double > fIntParameters
const MnUserTransformation & Trafo() const
MnUserParameterState()
default constructor (invalid state)
std::vector< double > Errors() const
const MinimumError & Error() const
class for global correlation coefficient
const MinimumParameters & Parameters() const
const char * Name(unsigned int) const
void SetPrecision(double eps)
you should not use this method at all Int_t Int_t Double_t Double_t Double_t e
unsigned int Index(const std::string &) const
void SetUpperLimit(unsigned int, double)
const MinuitParameter & Parameter(unsigned int) const
access to single Parameter
unsigned int size() const
bool IsMadePosDef() const
double Ext2int(unsigned int, double) const
const MnAlgebraicVector & Dirin() const
MinimumState keeps the information (position, Gradient, 2nd deriv, etc) after one minimization step (...
double Int2ext(unsigned int, double) const
std::vector< double > Params() const
access to parameters and errors in column-wise representation
void RemoveLimits(unsigned int)
double Value(unsigned int) const
const MnMachinePrecision & Precision() const
const MnAlgebraicVector & Vec() const
const MnAlgebraicSymMatrix & InvHessian() const
Class containing the covariance matrix data represented as a vector of size n*(n+1)/2 Used to hide in...