Logo ROOT  
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 class FCNBase;
24 
25 /** Scans the values of FCN as a function of one Parameter and retains the
26  best function and Parameter values found.
27  */
28 
30 
31 public:
32  MnParameterScan(const FCNBase &, const MnUserParameters &);
33 
34  MnParameterScan(const FCNBase &, const MnUserParameters &, double);
35 
37 
38  // returns pairs of (x,y) points, x=parameter Value, y=function Value of FCN
39  std::vector<std::pair<double, double>>
40  operator()(unsigned int par, unsigned int maxsteps = 41, double low = 0., double high = 0.);
41 
42  const MnUserParameters &Parameters() const { return fParameters; }
43  double Fval() const { return fAmin; }
44 
45 private:
46  const FCNBase &fFCN;
48  double fAmin;
49 };
50 
51 } // namespace Minuit2
52 
53 } // namespace ROOT
54 
55 #endif // ROOT_Minuit2_MnParameterScan
ROOT::Minuit2::MnParameterScan::~MnParameterScan
~MnParameterScan()
Definition: MnParameterScan.h:36
ROOT::Minuit2::MnParameterScan::MnParameterScan
MnParameterScan(const FCNBase &, const MnUserParameters &)
Definition: MnParameterScan.cxx:17
ROOT::Minuit2::FCNBase
Interface (abstract class) defining the function to be minimized, which has to be implemented by the ...
Definition: FCNBase.h:45
ROOT::Minuit2::MnParameterScan::fAmin
double fAmin
Definition: MnParameterScan.h:48
ROOT::Minuit2::MnParameterScan::Parameters
const MnUserParameters & Parameters() const
Definition: MnParameterScan.h:42
ROOT::Minuit2::MnParameterScan
Scans the values of FCN as a function of one Parameter and retains the best function and Parameter va...
Definition: MnParameterScan.h:29
MnUserParameters.h
ROOT::Minuit2::MnParameterScan::fParameters
MnUserParameters fParameters
Definition: MnParameterScan.h:47
ROOT::Minuit2::MnUserParameters
API class for the user interaction with the parameters; serves as input to the minimizer as well as o...
Definition: MnUserParameters.h:36
ROOT::Minuit2::MnParameterScan::fFCN
const FCNBase & fFCN
Definition: MnParameterScan.h:46
ROOT::Minuit2::MnParameterScan::Fval
double Fval() const
Definition: MnParameterScan.h:43
ROOT::Minuit2::MnParameterScan::operator()
std::vector< std::pair< double, double > > operator()(unsigned int par, unsigned int maxsteps=41, double low=0., double high=0.)
Definition: MnParameterScan.cxx:28
ROOT
tbb::task_arena is an alias of tbb::interface7::task_arena, which doesn't allow to forward declare tb...
Definition: EExecutionPolicy.hxx:4
MnConfig.h