Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
MinuitFitter.h
Go to the documentation of this file.
1// @(#)root/tmva $Id$
2// Author: Andreas Hoecker
3
4/**********************************************************************************
5 * Project: TMVA - a Root-integrated toolkit for multivariate data analysis *
6 * Package: TMVA *
7 * Class : MinuitFitter *
8 * *
9 * *
10 * Description: *
11 * Fitter using MINUIT *
12 * *
13 * Authors (alphabetical): *
14 * Andreas Hoecker <Andreas.Hocker@cern.ch> - CERN, Switzerland *
15 * *
16 * Copyright (c) 2005: *
17 * CERN, Switzerland *
18 * MPI-K Heidelberg, Germany *
19 * *
20 * Redistribution and use in source and binary forms, with or without *
21 * modification, are permitted according to the terms listed in LICENSE *
22 * (see tmva/doc/LICENSE) *
23 **********************************************************************************/
24
25#ifndef ROOT_TMVA_MinuitFitter
26#define ROOT_TMVA_MinuitFitter
27
28//////////////////////////////////////////////////////////////////////////
29// //
30// MinuitFitter //
31// //
32// Fitter using MINUIT //
33// //
34//////////////////////////////////////////////////////////////////////////
35
36#include "TMVA/FitterBase.h"
37#include "TMVA/IFitterTarget.h"
38#include <vector>
39
40class TFitter;
41
42namespace TMVA {
43
44 class IFitterTarget;
45 class Interval;
46 class MinuitWrapper;
47
48 class MinuitFitter : public FitterBase, public IFitterTarget {
49
50 public:
51
53 std::vector<TMVA::Interval*>& ranges, const TString& theOption );
54
55 virtual ~MinuitFitter();
56
57 void Init();
58
59 Double_t Run( std::vector<Double_t>& pars );
60 Double_t EstimatorFunction( std::vector<Double_t>& pars );
61
62 protected:
63
64 MinuitWrapper *fMinWrap; // holds a wrapper around TMinuit
65
66 private:
67
68 void DeclareOptions();
69
70 Int_t fErrorLevel; ///< minuit error level
71 Int_t fPrintLevel; ///< minuit printout level
72 Int_t fFitStrategy; ///< minuit strategy level
73 Bool_t fPrintWarnings; ///< minuit warnings level
74 Bool_t fUseImprove; ///< flag for 'IMPROVE' use
75 Bool_t fUseMinos; ///< flag for 'MINOS' use
76 Bool_t fBatch; ///< batch mode
77 Int_t fMaxCalls; ///< (approximate) maximum number of function calls
78 Double_t fTolerance; ///< tolerance to the function value at the minimum
79
80 ClassDef(MinuitFitter,0); // Fitter using a Genetic Algorithm
81 };
82
83} // namespace TMVA
84
85#endif
86
87
#define ClassDef(name, id)
Definition Rtypes.h:342
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 Int_t Int_t Window_t TString Int_t GCValues_t GetPrimarySelectionOwner GetDisplay GetScreen GetColormap GetNativeEvent const char const char dpyName wid window const char font_name cursor keysym reg const char only_if_exist regb h Point_t winding char text const char depth char const char Int_t count const char ColorStruct_t color const char Pixmap_t Pixmap_t PictureAttributes_t attr const char char ret_data h unsigned char height h Atom_t Int_t ULong_t ULong_t unsigned char prop_list Atom_t Atom_t target
char name[80]
Definition TGX11.cxx:110
<div class="legacybox"><h2>Legacy Code</h2> TFitter is a legacy interface: there will be no bug fixes...
Definition TFitter.h:19
Base class for TMVA fitters.
Definition FitterBase.h:51
Double_t Run()
estimator function interface for fitting
Interface for a fitter 'target'.
/Fitter using MINUIT
Bool_t fPrintWarnings
minuit warnings level
Int_t fErrorLevel
minuit error level
Int_t fPrintLevel
minuit printout level
void Init()
minuit-specific settings
virtual ~MinuitFitter()
destructor
Bool_t fUseImprove
flag for 'IMPROVE' use
Bool_t fBatch
batch mode
Int_t fMaxCalls
(approximate) maximum number of function calls
Int_t fFitStrategy
minuit strategy level
Double_t EstimatorFunction(std::vector< Double_t > &pars)
performs the fit by calling Run(pars)
MinuitWrapper * fMinWrap
Bool_t fUseMinos
flag for 'MINOS' use
Double_t fTolerance
tolerance to the function value at the minimum
void DeclareOptions()
declare SA options
Wrapper around MINUIT.
Basic string class.
Definition TString.h:139
create variable transformations