23 : fValid(true), fCovarianceValid(false), fGCCValid(false), fCovStatus(-1), fFVal(0.), fEDM(0.), fNFcn(0),
25 fIntParameters(par.begin(), par.end())
30 : fValid(true), fCovarianceValid(false), fGCCValid(false), fCovStatus(-1), fFVal(0.), fEDM(0.), fNFcn(0),
36 if (ipar.IsConst() || ipar.IsFixed())
55 fIntParameters(par.begin(), par.end())
60 std::vector<double> err;
61 err.reserve(par.size());
62 for (
unsigned int i = 0; i < par.size(); i++) {
77 fIntParameters(par.begin(), par.end())
82 std::vector<double> err;
83 err.reserve(par.size());
84 for (
unsigned int i = 0; i < par.size(); i++) {
93 : fValid(true), fGCCValid(false), fCovStatus(-1), fFVal(0.), fEDM(0.), fNFcn(0), fParameters(par)
99 if (ipar.IsConst() || ipar.IsFixed())
101 if (ipar.HasLimits())
113 : fValid(st.IsValid()), fCovarianceValid(false), fGCCValid(false), fCovStatus(-1), fFVal(st.Fval()), fEDM(st.Edm()),
122 if (ipar.IsConst()) {
123 Add(ipar.GetName(), ipar.Value());
124 }
else if (ipar.IsFixed()) {
125 Add(ipar.GetName(), ipar.Value(), ipar.Error());
126 if (ipar.HasLimits()) {
127 if (ipar.HasLowerLimit() && ipar.HasUpperLimit())
128 SetLimits(ipar.GetName(), ipar.LowerLimit(), ipar.UpperLimit());
129 else if (ipar.HasLowerLimit() && !ipar.HasUpperLimit())
135 }
else if (ipar.HasLimits()) {
136 unsigned int i = trafo.
IntOfExt(ipar.Number());
140 if (ipar.HasLowerLimit() && ipar.HasUpperLimit())
141 SetLimits(ipar.GetName(), ipar.LowerLimit(), ipar.UpperLimit());
142 else if (ipar.HasLowerLimit() && !ipar.HasUpperLimit())
147 unsigned int i = trafo.
IntOfExt(ipar.Number());
150 Add(ipar.GetName(), st.
Vec()(i), err);
187 MnPrint print(
"MnUserParameterState::Hessian");
193 print.
Warn(
"Inversion failed; return diagonal matrix");
234 MnPrint print(
"MnUserParameterState::Add");
247 print.
Warn(
"Cannot modify status of constant parameter",
name);
259 MnPrint print(
"MnUserParameterState::Add");
271 print.
Warn(
"Cannot modify status of constant parameter",
name);
295 assert(cov.
Nrow() >= nrow);
302 if (cov.
Nrow() > nrow)
304 else if (cov.
Nrow() == nrow)
308 for (
unsigned int i = 0; i < nrow; i++)
312 for (
unsigned int i = 0; i < nrow; i++)
313 for (
unsigned int j = i; j < nrow; j++)
314 covmat(i, j) = covsqueezed(i, j);
Class describing a symmetric matrix of size n.
const double * Data() const
unsigned int size() const
const MnAlgebraicSymMatrix & InvHessian() const
bool IsMadePosDef() const
const MnAlgebraicVector & Dirin() const
MinimumState keeps the information (position, Gradient, 2nd deriv, etc) after one minimization step (...
const MinimumError & Error() const
const MnAlgebraicVector & Vec() const
const MinimumParameters & Parameters() const
class for the individual Minuit Parameter with Name and number; contains the input numbers for the mi...
class to reduce the covariance matrix when a parameter is fixed by removing the corresponding row and...
class for global correlation coefficient
Sets the relative floating point (double) arithmetic precision.
void Warn(const Ts &... args)
Class containing the covariance matrix data represented as a vector of size n*(n+1)/2 Used to hide in...
unsigned int Nrow() const
const std::vector< double > & Data() const
const MnMachinePrecision & Precision() const
void SetLimits(unsigned int, double, double)
double Value(unsigned int) const
double Error(unsigned int) const
void RemoveLimits(unsigned int)
unsigned int Index(const std::string &) const
const std::string & GetName(unsigned int) const
double Int2ext(unsigned int, double) const
MnUserCovariance fIntCovariance
void Release(unsigned int)
unsigned int VariableParameters() const
const MinuitParameter & Parameter(unsigned int i) const
double Ext2int(unsigned int, double) const
void SetValue(unsigned int, double)
void Add(const std::string &name, double val, double err)
unsigned int ExtOfInt(unsigned int) const
const char * Name(unsigned int) const
MnUserCovariance Hessian() const
void AddCovariance(const MnUserCovariance &)
MnUserParameterState()
default constructor (invalid state)
const std::vector< ROOT::Minuit2::MinuitParameter > & MinuitParameters() const
facade: forward interface of MnUserParameters and MnUserTransformation
MnUserParameters fParameters
void SetPrecision(double eps)
unsigned int IntOfExt(unsigned int) const
void SetUpperLimit(unsigned int, double)
MnUserCovariance fCovariance
std::vector< double > fIntParameters
void SetError(unsigned int, double)
std::vector< double > Errors() const
void SetLowerLimit(unsigned int, double)
MnGlobalCorrelationCoeff fGlobalCC
std::vector< double > Params() const
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 > Params() const
access to parameters and errors in column-wise representation
const char * Name(unsigned int) const
const MinuitParameter & Parameter(unsigned int) const
access to single Parameter
unsigned int Index(const std::string &) const
void RemoveLimits(unsigned int)
double Value(unsigned int) const
const MnMachinePrecision & Precision() const
void Fix(unsigned int)
interaction via external number of Parameter
void SetLowerLimit(unsigned int, double)
void SetError(unsigned int, double)
void SetValue(unsigned int, double)
const std::vector< ROOT::Minuit2::MinuitParameter > & Parameters() const
access to parameters (row-wise)
const MnUserTransformation & Trafo() const
void Release(unsigned int)
std::vector< double > Errors() const
const std::string & GetName(unsigned int) const
void SetUpperLimit(unsigned int, double)
bool Add(const std::string &, double, double)
Add free Parameter Name, Value, Error.
void SetPrecision(double eps)
void SetLimits(unsigned int, double, double)
CPyCppyy::Parameter Parameter
int Invert(LASymMatrix &)
tbb::task_arena is an alias of tbb::interface7::task_arena, which doesn't allow to forward declare tb...