ROOT  6.06/09
Reference Guide
MnParameterScan.h
Go to the documentation of this file.
1 // @(#)root/minuit2:$Id$
2 // Authors: M. Winkler, F. James, L. Moneta, A. Zsenei 2003-2005
3 
4 /**********************************************************************
5  * *
6  * Copyright (c) 2005 LCG ROOT Math team, CERN/PH-SFT *
7  * *
8  **********************************************************************/
9 
10 #ifndef ROOT_Minuit2_MnParameterScan
11 #define ROOT_Minuit2_MnParameterScan
12 
13 #include "Minuit2/MnConfig.h"
15 
16 #include <vector>
17 #include <utility>
18 
19 namespace ROOT {
20 
21  namespace Minuit2 {
22 
23 
24 class FCNBase;
25 
26 /** Scans the values of FCN as a function of one Parameter and retains the
27  best function and Parameter values found.
28  */
29 
31 
32 public:
33 
35 
36  MnParameterScan(const FCNBase&, const MnUserParameters&, double);
37 
39 
40 // returns pairs of (x,y) points, x=parameter Value, y=function Value of FCN
41  std::vector<std::pair<double, double> > operator()(unsigned int par, unsigned int maxsteps = 41, double low = 0., double high = 0.);
42 
43  const MnUserParameters& Parameters() const {return fParameters;}
44  double Fval() const {return fAmin;}
45 
46 private:
47 
48  const FCNBase& fFCN;
50  double fAmin;
51 };
52 
53  } // namespace Minuit2
54 
55 } // namespace ROOT
56 
57 #endif // ROOT_Minuit2_MnParameterScan
double par[1]
Definition: unuranDistr.cxx:38
Namespace for new ROOT classes and functions.
Definition: ROOT.py:1
std::vector< std::pair< double, double > > operator()(unsigned int par, unsigned int maxsteps=41, double low=0., double high=0.)
Interface (abstract class) defining the function to be minimized, which has to be implemented by the ...
Definition: FCNBase.h:47
API class for the user interaction with the parameters; serves as input to the minimizer as well as o...
const MnUserParameters & Parameters() const
MnParameterScan(const FCNBase &, const MnUserParameters &)
Scans the values of FCN as a function of one Parameter and retains the best function and Parameter va...