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));
Interface (abstract class) defining the function to be minimized, which has to be implemented by the ...
double LowerLimit() const
double UpperLimit() const
bool HasLowerLimit() const
bool HasUpperLimit() const
std::vector< std::pair< double, double > > operator()(unsigned int par, unsigned int maxsteps=41, double low=0., double high=0.)
MnParameterScan(const FCNBase &, const MnUserParameters &)
MnUserParameters fParameters
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 MinuitParameter & Parameter(unsigned int) const
access to single Parameter
void SetValue(unsigned int, double)