26 std::vector<std::pair<double, double> > result; result.reserve(maxsteps+1);
28 result.push_back(std::pair<double, double>(params[par],
fAmin));
30 if(low > high)
return result;
31 if(maxsteps < 2)
return result;
33 if(low == 0. && high == 0.) {
53 double stp = (high - low)/
double(maxsteps - 1);
54 for(
unsigned int i = 0; i < maxsteps; i++) {
55 params[par] = x0 + double(i)*stp;
56 double fval =
fFCN(params);
61 result.push_back(std::pair<double, double>(params[par], fval));
Namespace for new ROOT classes and functions.
double LowerLimit() const
std::vector< std::pair< double, double > > operator()(unsigned int par, unsigned int maxsteps=41, double low=0., double high=0.)
bool HasLowerLimit() const
void SetValue(unsigned int, double)
Interface (abstract class) defining the function to be minimized, which has to be implemented by the ...
double UpperLimit() 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
const MinuitParameter & Parameter(unsigned int) const
access to single Parameter
MnParameterScan(const FCNBase &, const MnUserParameters &)
bool HasUpperLimit() const
std::vector< double > Params() const
access to parameters and errors in column-wise representation
MnUserParameters fParameters