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