10#ifndef ROOT_Minuit2_MnPrint
11#define ROOT_Minuit2_MnPrint
39std::ostream&
operator<<(std::ostream&,
const FunctionMinimum&);
42std::ostream&
operator<<(std::ostream&,
const MinimumState&);
45std::ostream&
operator<<(std::ostream&,
const LAVector&);
48std::ostream&
operator<<(std::ostream&,
const LASymMatrix&);
50class MnUserParameters;
51std::ostream&
operator<<(std::ostream&,
const MnUserParameters&);
53class MnUserCovariance;
54std::ostream&
operator<<(std::ostream&,
const MnUserCovariance&);
56class MnGlobalCorrelationCoeff;
57std::ostream&
operator<<(std::ostream&,
const MnGlobalCorrelationCoeff&);
59class MnUserParameterState;
60std::ostream&
operator<<(std::ostream&,
const MnUserParameterState&);
62class MnMachinePrecision;
63std::ostream&
operator<<(std::ostream&,
const MnMachinePrecision&);
66std::ostream&
operator<<(std::ostream&,
const MinosError&);
69std::ostream&
operator<<(std::ostream&,
const ContoursError&);
87 static void PrintState(std::ostream & os,
double fcn,
double edm,
int ncalls,
const char * msg,
int iter = -1);
90 static void PrintFcn(std::ostream & os,
double value,
bool endline =
true);
102#ifndef USE_ROOT_ERROR
105#define MN_OS std::cerr
110#define MN_INFO_MSG(str) \
111 if (MnPrint::Level() > 0) MN_OS << "Info: " << str \
113#define MN_ERROR_MSG(str) \
114 if (MnPrint::Level() >= 0) MN_OS << "Error: " << str \
116# define MN_INFO_VAL(x) \
117 if (MnPrint::Level() > 0) MN_OS << "Info: " << #x << " = " << (x) << std::endl;
118# define MN_ERROR_VAL(x) \
119 if (MnPrint::Level() >= 0) MN_OS << "Error: " << #x << " = " << (x) << std::endl;
124#define MN_INFO_MSG2(loc,str) \
125 if (MnPrint::Level() > 0) MN_OS << "Info in " << loc << " : " << str \
127#define MN_ERROR_MSG2(loc,str) \
128 if (MnPrint::Level() >= 0) MN_OS << "Error in " << loc << " : " << str \
130# define MN_INFO_VAL2(loc,x) \
131 if (MnPrint::Level() > 0) MN_OS << "Info in " << loc << " : " << #x << " = " << (x) << std::endl;
132# define MN_ERROR_VAL2(loc,x) \
133 if (MnPrint::Level() >= 0) MN_OS << "Error in " << loc << " : " << #x << " = " << (x) << std::endl;
144#define MN_INFO_MSG(str) \
145 ::Info("Minuit2",str);
146#define MN_ERROR_MSG(str) \
147 ::Error("Minuit2",str);
148# define MN_INFO_VAL(x) \
149 {std::string str = std::string(#x) + std::string(" = ") + ROOT::Math::Util::ToString(x); \
150 ::Info("Minuit2","%s",str.c_str() );}
151# define MN_ERROR_VAL(x) \
152 {std::string str = std::string(#x) + std::string(" = ") + ROOT::Math::Util::ToString(x); \
153 ::Error("Minuit2","%s",str.c_str() );}
155# define MN_INFO_MSG2(loc,txt) \
156 {std::string str = std::string(loc) + std::string(" : ") + std::string(txt); \
157 ::Info("Minuit2","%s",str.c_str() );}
158# define MN_ERROR_MSG2(loc,txt) \
159 {std::string str = std::string(loc) + std::string(" : ") + std::string(txt); \
160 ::Error("Minuit2","%s",str.c_str() );}
162# define MN_INFO_VAL2(loc,x) \
163 {std::string str = std::string(loc) + std::string(" : ") + std::string(#x) + std::string(" = ") + ROOT::Math::Util::ToString(x); \
164 ::Info("Minuit2","%s",str.c_str() );}
165# define MN_ERROR_VAL2(loc,x) \
166 {std::string str = std::string(loc) + std::string(" : ") + std::string(#x) + std::string(" = ") + ROOT::Math::Util::ToString(x); \
167 ::Error("Minuit2","%s",str.c_str() );}
MinimumState keeps the information (position, Gradient, 2nd deriv, etc) after one minimization step (...
static void PrintState(std::ostream &os, const MinimumState &state, const char *msg, int iter=-1)
static void PrintFcn(std::ostream &os, double value, bool endline=true)
static int SetLevel(int level)
std::ostream & operator<<(std::ostream &, const FunctionMinimum &)