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())
46 fValid(true), fCovarianceValid(true), fGCCValid(false), fCovStatus(-1), fFVal(0.), fEDM(0.), fNFcn(0),
50 std::vector<double> err; err.reserve(par.size());
51 for(
unsigned int i = 0; i < par.size(); i++) {
60 fValid(true), fCovarianceValid(true), fGCCValid(false), fCovStatus(-1), fFVal(0.), fEDM(0.), fNFcn(0),
64 std::vector<double> err; err.reserve(par.size());
65 for(
unsigned int i = 0; i < par.size(); i++) {
75 fValid(true), fCovarianceValid(true), fGCCValid(false), fCovStatus(-1), fFVal(0.), fEDM(0.), fNFcn(0),
76 fParameters(par), fCovariance(cov), fGlobalCC(
MnGlobalCorrelationCoeff()), fIntParameters(std::vector<double>()), fIntCovariance(cov) {
82 if((*ipar).IsConst() || (*ipar).IsFixed())
continue;
83 if((*ipar).HasLimits())
98 fValid(st.IsValid()), fCovarianceValid(false), fGCCValid(false), fCovStatus(-1),
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;
#define MN_INFO_MSG2(loc, str)
Class describing a symmetric matrix of size n.
const double * Data() const
unsigned int Nrow() 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
determines the relative floating point arithmetic precision.
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
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)
int Invert(LASymMatrix &)