Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
MnScan.cxx
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#include "Minuit2/MnScan.h"
12
13namespace ROOT {
14
15namespace Minuit2 {
16
17std::vector<std::pair<double, double>> MnScan::Scan(unsigned int par, unsigned int maxsteps, double low, double high)
18{
19 // perform a scan of the function in the parameter par
21 double amin = scan.Fval();
22
23 std::vector<std::pair<double, double>> result = scan(par, maxsteps, low, high);
24 if (scan.Fval() < amin) {
25 fState.SetValue(par, scan.Parameters().Value(par));
26 amin = scan.Fval();
27 }
28
29 return result;
30}
31
32} // namespace Minuit2
33
34} // namespace ROOT
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t Float_t Float_t Int_t Int_t UInt_t UInt_t Rectangle_t result
MnUserParameterState fState
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 > > Scan(unsigned int par, unsigned int maxsteps=41, double low=0., double high=0.)
Definition MnScan.cxx:17
const MnUserParameters & Parameters() const
double Value(unsigned int) const
tbb::task_arena is an alias of tbb::interface7::task_arena, which doesn't allow to forward declare tb...