Logo ROOT  
Reference Guide
TMinuit.h
Go to the documentation of this file.
1 // @(#)root/minuit:$Id$
2 // Author: Rene Brun, Frederick James 12/08/95
3 
4 /*************************************************************************
5  * Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *
6  * All rights reserved. *
7  * *
8  * For the licensing terms see $ROOTSYS/LICENSE. *
9  * For the list of contributors see $ROOTSYS/README/CREDITS. *
10  *************************************************************************/
11 
12 //////////////////////////////////////////////////////////////////////////
13 // //
14 // TMinuit //
15 // //
16 // The MINUIT minimisation package (base class) //
17 // //
18 //////////////////////////////////////////////////////////////////////////
19 
20 #ifndef ROOT_TMinuit
21 #define ROOT_TMinuit
22 
23 #include "TNamed.h"
24 
25 #include "TMethodCall.h"
26 
27 class TMinuit : public TNamed {
28 
29 private:
30  TMinuit(const TMinuit &m);
31  TMinuit& operator=(const TMinuit &m); // Not implemented
32 
33 // should become private....
34 public:
35  enum{kMAXWARN=100};
36 
37  Int_t fNpfix; //Number of fixed parameters
38  Int_t fEmpty; //Initialization flag (1 = Minuit initialized)
39  Int_t fMaxpar; //Maximum number of parameters
40  Int_t fMaxint; //Maximum number of internal parameters
41  Int_t fNpar; //Number of free parameters (total number of pars = fNpar + fNfix)
42  Int_t fMaxext; //Maximum number of external parameters
43  Int_t fMaxIterations; //Maximum number of iterations
44  Int_t fMaxpar5; // fMaxpar*(fMaxpar+1)/2
46  Int_t fMaxpar2; // fMaxpar*fMaxpar
47  Int_t fMaxpar1; // fMaxpar*(fMaxpar+1)
48 
49  Double_t fAmin; //Minimum value found for FCN
50  Double_t fUp; //FCN+-UP defines errors (for chisquare fits UP=1)
51  Double_t fEDM; //Estimated vertical distance to the minimum
55  Double_t fDcovar; //Relative change in covariance matrix
56  Double_t fEpsmac; //machine precision for floating points:
57  Double_t fEpsma2; //sqrt(fEpsmac)
60  Double_t fUndefi; //Undefined number = -54321
61  Double_t fBigedm; //Big EDM = 123456
67 
68  Double_t *fU; //[fMaxpar2] External (visible to user in FCN) value of parameters
69  Double_t *fAlim; //[fMaxpar2] Lower limits for parameters. If zero no limits
70  Double_t *fBlim; //[fMaxpar2] Upper limits for parameters
71  Double_t *fErp; //[fMaxpar] Positive Minos errors if calculated
72  Double_t *fErn; //[fMaxpar] Negative Minos errors if calculated
73  Double_t *fWerr; //[fMaxpar] External parameters error (standard deviation, defined by UP)
74  Double_t *fGlobcc; //[fMaxpar] Global Correlation Coefficients
75  Double_t *fX; //[fMaxpar] Internal parameters values
76  Double_t *fXt; //[fMaxpar] Internal parameters values X saved as Xt
77  Double_t *fDirin; //[fMaxpar] (Internal) step sizes for current step
78  Double_t *fXs; //[fMaxpar] Internal parameters values saved for fixed params
79  Double_t *fXts; //[fMaxpar] Internal parameters values X saved as Xt for fixed params
80  Double_t *fDirins; //[fMaxpar] (Internal) step sizes for current step for fixed params
81  Double_t *fGrd; //[fMaxpar] First derivatives
82  Double_t *fG2; //[fMaxpar]
83  Double_t *fGstep; //[fMaxpar] Step sizes
84  Double_t *fGin; //[fMaxpar2]
85  Double_t *fDgrd; //[fMaxpar] Uncertainties
86  Double_t *fGrds; //[fMaxpar]
87  Double_t *fG2s; //[fMaxpar]
88  Double_t *fGsteps; //[fMaxpar]
89  Double_t *fVhmat; //[fMaxpar5] (Internal) error matrix stored as Half MATrix, since it is symmetric
90  Double_t *fVthmat; //[fMaxpar5] VHMAT is sometimes saved in VTHMAT, especially in MNMNOT
91  Double_t *fP; //[fMaxpar1]
92  Double_t *fPstar; //[fMaxpar2]
93  Double_t *fPstst; //[fMaxpar]
94  Double_t *fPbar; //[fMaxpar]
95  Double_t *fPrho; //[fMaxpar] Minimum point of parabola
96  Double_t *fWord7; //[fMaxpar]
97  Double_t *fXpt; //[fMaxcpt] X array of points for contours
98  Double_t *fYpt; //[fMaxcpt] Y array of points for contours
99 
100  Double_t *fCONTgcc; //[fMaxpar] array used in mncont
101  Double_t *fCONTw; //[fMaxpar] array used in mncont
102  Double_t *fFIXPyy; //[fMaxpar] array used in mnfixp
103  Double_t *fGRADgf; //[fMaxpar] array used in mngrad
104  Double_t *fHESSyy; //[fMaxpar] array used in mnhess
105  Double_t *fIMPRdsav; //[fMaxpar] array used in mnimpr
106  Double_t *fIMPRy; //[fMaxpar] array used in mnimpr
107  Double_t *fMATUvline; //[fMaxpar] array used in mnmatu
108  Double_t *fMIGRflnu; //[fMaxpar] array used in mnmigr
109  Double_t *fMIGRstep; //[fMaxpar] array used in mnmigr
110  Double_t *fMIGRgs; //[fMaxpar] array used in mnmigr
111  Double_t *fMIGRvg; //[fMaxpar] array used in mnmigr
112  Double_t *fMIGRxxs; //[fMaxpar] array used in mnmigr
113  Double_t *fMNOTxdev; //[fMaxpar] array used in mnmnot
114  Double_t *fMNOTw; //[fMaxpar] array used in mnmnot
115  Double_t *fMNOTgcc; //[fMaxpar] array used in mnmnot
116  Double_t *fPSDFs; //[fMaxpar] array used in mnpsdf
117  Double_t *fSEEKxmid; //[fMaxpar] array used in mnseek
118  Double_t *fSEEKxbest; //[fMaxpar] array used in mnseek
119  Double_t *fSIMPy; //[fMaxpar] array used in mnsimp
120  Double_t *fVERTq; //[fMaxpar] array used in mnvert
121  Double_t *fVERTs; //[fMaxpar] array used in mnvert
122  Double_t *fVERTpp; //[fMaxpar] array used in mnvert
123  Double_t *fCOMDplist; //[fMaxpar] array used in mncomd
124  Double_t *fPARSplist; //[fMaxpar] array used in mnpars
125 
126  Int_t *fNvarl; //[fMaxpar2] parameters flag (-1=undefined, 0=constant..)
127  Int_t *fNiofex; //[fMaxpar2] Internal parameters number, or zero if not currently variable
128  Int_t *fNexofi; //[fMaxpar] External parameters number for currently variable parameters
129  Int_t *fIpfix; //[fMaxpar] List of fixed parameters
130  Int_t fNu; //
131  Int_t fIsysrd; //standardInput unit
132  Int_t fIsyswr; //standard output unit
134  Int_t fNpagwd; //Page width
135  Int_t fNpagln; //Number of lines per page
137  Int_t fIstkrd[10]; //
139  Int_t fIstkwr[10]; //
141  Int_t fISW[7]; //Array of switches
142  Int_t fIdbg[11]; //Array of internal debug switches
143  Int_t fNblock; //Number of Minuit data blocks
144  Int_t fIcomnd; //Number of commands
145  Int_t fNfcn; //Number of calls to FCN
146  Int_t fNfcnmx; //Maximum number of calls to FCN
151  Int_t fNwrmes[2]; //
152  Int_t fNfcwar[20]; //
153  Int_t fIcirc[2]; //
154  Int_t fStatus; //Status flag for the last called Minuit function
157  Bool_t fLwarn; //true if warning messages are to be put out (default=true)
158  Bool_t fLrepor; //true if exceptional conditions are put out (default=false)
159  Bool_t fLimset; //true if a parameter is up against limits (for MINOS)
160  Bool_t fLnolim; //true if there are no limits on any parameters (not yet used)
161  Bool_t fLnewmn; //true if the previous process has unexpectedly improved FCN
162  Bool_t fLphead; //true if a heading should be put out for the next parameter definition
163  Bool_t fGraphicsMode; //true if graphics mode on (default)
164  char *fChpt; //!Character to be plotted at the X,Y contour positions
165  TString *fCpnam; //[fMaxpar2] Array of parameters names
175  TObject *fObjectFit; //Pointer to object being fitted
176  TObject *fPlot; //Pointer to TGraph object created by mncont
177  TMethodCall *fMethodCall; //Pointer to MethodCall in case of interpreted function
178  void (*fFCN)(Int_t &npar, Double_t *gin, Double_t &f, Double_t *u, Int_t flag); //!
179 
180 // methods performed on TMinuit class
181 public:
182  TMinuit();
183  TMinuit(Int_t maxpar);
184  virtual ~TMinuit();
185  virtual void BuildArrays(Int_t maxpar=15);
186  virtual TObject *Clone(const char *newname="") const; //Clone-Method to copy the function-pointer fFCN
187  virtual Int_t Command(const char *command);
188  virtual TObject *Contour(Int_t npoints=10, Int_t pa1=0, Int_t pa2=1);
189  virtual Int_t DefineParameter( Int_t parNo, const char *name, Double_t initVal, Double_t initErr, Double_t lowerLimit, Double_t upperLimit );
190  virtual void DeleteArrays();
191  virtual Int_t Eval(Int_t npar, Double_t *grad, Double_t &fval, Double_t *par, Int_t flag);
192  virtual Int_t FixParameter( Int_t parNo );
194  TObject *GetObjectFit() const {return fObjectFit;}
196  virtual Int_t GetNumFixedPars() const;
197  virtual Int_t GetNumFreePars() const;
198  virtual Int_t GetNumPars() const;
199  virtual Int_t GetParameter( Int_t parNo, Double_t &currentValue, Double_t &currentError ) const;
200  virtual TObject *GetPlot() const {return fPlot;}
201  Int_t GetStatus() const {return fStatus;}
202  virtual Int_t Migrad();
203  virtual void mnamin();
204  virtual void mnbins(Double_t a1, Double_t a2, Int_t naa, Double_t &bl, Double_t &bh, Int_t &nb, Double_t &bwid);
205  virtual void mncalf(Double_t *pvec, Double_t &ycalf);
206  virtual void mncler();
207  virtual void mncntr(Int_t ke1, Int_t ke2, Int_t &ierrf);
208  virtual void mncomd(const char *crdbin, Int_t &icondn);
209  virtual void mncont(Int_t ke1, Int_t ke2, Int_t nptu, Double_t *xptu, Double_t *yptu, Int_t &ierrf);
210  virtual void mncrck(TString crdbuf, Int_t maxcwd, TString &comand, Int_t &lnc
211  , Int_t mxp, Double_t *plist, Int_t &llist, Int_t &ierr, Int_t isyswr);
212  virtual void mncros(Double_t &aopt, Int_t &iercr);
213  virtual void mncuve();
214  virtual void mnderi();
215  virtual void mndxdi(Double_t pint, Int_t ipar, Double_t &dxdi);
216  virtual void mneig(Double_t *a, Int_t ndima, Int_t n, Int_t mits, Double_t *work, Double_t precis, Int_t &ifault);
217  virtual void mnemat(Double_t *emat, Int_t ndim);
218  virtual void mnerrs(Int_t number, Double_t &eplus, Double_t &eminus, Double_t &eparab, Double_t &gcc);
219  virtual void mneval(Double_t anext, Double_t &fnext, Int_t &ierev);
220  virtual void mnexcm(const char *comand, Double_t *plist, Int_t llist, Int_t &ierflg) ;
221  virtual void mnexin(Double_t *pint);
222  virtual void mnfixp(Int_t iint, Int_t &ierr);
223  virtual void mnfree(Int_t k);
224  virtual void mngrad();
225  virtual void mnhelp(TString comd);
226  virtual void mnhelp(const char *command="");
227  virtual void mnhess();
228  virtual void mnhes1();
229  virtual void mnimpr();
230  virtual void mninex(Double_t *pint);
231  virtual void mninit(Int_t i1, Int_t i2, Int_t i3);
232  virtual void mnlims();
233  virtual void mnline(Double_t *start, Double_t fstart, Double_t *step, Double_t slope, Double_t toler);
234  virtual void mnmatu(Int_t kode);
235  virtual void mnmigr();
236  virtual void mnmnos();
237  virtual void mnmnot(Int_t ilax, Int_t ilax2, Double_t &val2pl, Double_t &val2mi);
238  virtual void mnparm(Int_t k, TString cnamj, Double_t uk, Double_t wk, Double_t a, Double_t b, Int_t &ierflg);
239  virtual void mnpars(TString &crdbuf, Int_t &icondn);
240  virtual void mnpfit(Double_t *parx2p, Double_t *pary2p, Int_t npar2p, Double_t *coef2p, Double_t &sdev2p);
241  virtual void mnpint(Double_t &pexti, Int_t i, Double_t &pinti);
242  virtual void mnplot(Double_t *xpt, Double_t *ypt, char *chpt, Int_t nxypt, Int_t npagwd, Int_t npagln);
243  virtual void mnpout(Int_t iuext, TString &chnam, Double_t &val, Double_t &err, Double_t &xlolim, Double_t &xuplim, Int_t &iuint) const;
244  virtual void mnprin(Int_t inkode, Double_t fval);
245  virtual void mnpsdf();
246  virtual void mnrazz(Double_t ynew, Double_t *pnew, Double_t *y, Int_t &jh, Int_t &jl);
247  virtual void mnrn15(Double_t &val, Int_t &inseed);
248  virtual void mnrset(Int_t iopt);
249  virtual void mnsave();
250  virtual void mnscan();
251  virtual void mnseek();
252  virtual void mnset();
253  virtual void mnsimp();
254  virtual void mnstat(Double_t &fmin, Double_t &fedm, Double_t &errdef, Int_t &npari, Int_t &nparx, Int_t &istat);
255  virtual void mntiny(volatile Double_t epsp1, Double_t &epsbak);
256  Bool_t mnunpt(TString &cfname);
257  virtual void mnvert(Double_t *a, Int_t l, Int_t m, Int_t n, Int_t &ifail);
258  virtual void mnwarn(const char *copt, const char *corg, const char *cmes);
259  virtual void mnwerr();
260  virtual Int_t Release( Int_t parNo );
261  virtual Int_t SetErrorDef( Double_t up );
262  virtual void SetFCN(void (*fcn)(Int_t &, Double_t *, Double_t &f, Double_t *, Int_t));
263  virtual void SetGraphicsMode(Bool_t mode=kTRUE) {fGraphicsMode = mode;}
264  virtual void SetMaxIterations(Int_t maxiter=500) {fMaxIterations = maxiter;}
265  virtual void SetObjectFit(TObject *obj) {fObjectFit=obj;}
266  virtual Int_t SetPrintLevel( Int_t printLevel=0 );
267 
268  ClassDef(TMinuit,1) //The MINUIT minimisation package
269 };
270 
272 
273 #endif
274 
l
auto * l
Definition: textangle.C:4
TMinuit::fCOMDplist
Double_t * fCOMDplist
Definition: TMinuit.h:123
m
auto * m
Definition: textangle.C:8
TMinuit::fEmpty
Int_t fEmpty
Definition: TMinuit.h:38
TMinuit::fP
Double_t * fP
Definition: TMinuit.h:91
TMinuit::fXdircr
Double_t fXdircr
Definition: TMinuit.h:65
n
const Int_t n
Definition: legend1.C:16
TMinuit::mnfree
virtual void mnfree(Int_t k)
Restores one or more fixed parameter(s) to variable status.
Definition: TMinuit.cxx:3266
TMinuit::mncomd
virtual void mncomd(const char *crdbin, Int_t &icondn)
Reads a command string and executes.
Definition: TMinuit.cxx:1320
TMinuit::mnrazz
virtual void mnrazz(Double_t ynew, Double_t *pnew, Double_t *y, Int_t &jh, Int_t &jl)
Called only by MNSIMP (and MNIMPR) to add a new point.
Definition: TMinuit.cxx:6580
TGeant4Unit::eplus
static constexpr double eplus
Definition: TGeant4SystemOfUnits.h:170
TMinuit::fFCN
void(* fFCN)(Int_t &npar, Double_t *gin, Double_t &f, Double_t *u, Int_t flag)
Definition: TMinuit.h:178
TMinuit::fNexofi
Int_t * fNexofi
Definition: TMinuit.h:128
TMinuit::fLimset
Bool_t fLimset
Definition: TMinuit.h:159
TMinuit::mnpout
virtual void mnpout(Int_t iuext, TString &chnam, Double_t &val, Double_t &err, Double_t &xlolim, Double_t &xuplim, Int_t &iuint) const
Provides the user with information concerning the current status.
Definition: TMinuit.cxx:6259
kTRUE
const Bool_t kTRUE
Definition: RtypesCore.h:91
TMinuit::fYmidcr
Double_t fYmidcr
Definition: TMinuit.h:64
TMinuit::fFval3
Double_t fFval3
Definition: TMinuit.h:52
TMinuit::mnwerr
virtual void mnwerr()
Calculates the WERR, external parameter errors.
Definition: TMinuit.cxx:7871
TMinuit::mnsave
virtual void mnsave()
Writes current parameter values and step sizes onto file ISYSSA.
Definition: TMinuit.cxx:6705
TMinuit::fIpfix
Int_t * fIpfix
Definition: TMinuit.h:129
TMinuit::fCtitl
TString fCtitl
Definition: TMinuit.h:168
TMinuit::mnpfit
virtual void mnpfit(Double_t *parx2p, Double_t *pary2p, Int_t npar2p, Double_t *coef2p, Double_t &sdev2p)
To fit a parabola to npar2p points.
Definition: TMinuit.cxx:5968
f
#define f(i)
Definition: RSha256.hxx:104
TMinuit::fMIGRvg
Double_t * fMIGRvg
Definition: TMinuit.h:111
TMinuit::fNfcnmx
Int_t fNfcnmx
Definition: TMinuit.h:146
TMinuit::DefineParameter
virtual Int_t DefineParameter(Int_t parNo, const char *name, Double_t initVal, Double_t initErr, Double_t lowerLimit, Double_t upperLimit)
Define a parameter.
Definition: TMinuit.cxx:705
TMinuit::mncont
virtual void mncont(Int_t ke1, Int_t ke2, Int_t nptu, Double_t *xptu, Double_t *yptu, Int_t &ierrf)
Find points along a contour where FCN is minimum.
Definition: TMinuit.cxx:1405
TMinuit::fUndefi
Double_t fUndefi
Definition: TMinuit.h:60
TMinuit::mnbins
virtual void mnbins(Double_t a1, Double_t a2, Int_t naa, Double_t &bl, Double_t &bh, Int_t &nb, Double_t &bwid)
Compute reasonable histogram intervals.
Definition: TMinuit.cxx:1007
TMinuit::mnemat
virtual void mnemat(Double_t *emat, Int_t ndim)
Calculates the external error matrix from the internal matrix.
Definition: TMinuit.cxx:2511
TMinuit::fItaur
Int_t fItaur
Definition: TMinuit.h:149
TMinuit::fGrds
Double_t * fGrds
Definition: TMinuit.h:86
TMinuit::mnvert
virtual void mnvert(Double_t *a, Int_t l, Int_t m, Int_t n, Int_t &ifail)
Inverts a symmetric matrix.
Definition: TMinuit.cxx:7706
TMinuit::fIcirc
Int_t fIcirc[2]
Definition: TMinuit.h:153
TMinuit::fDirin
Double_t * fDirin
Definition: TMinuit.h:77
TMinuit::fMaxpar2
Int_t fMaxpar2
Definition: TMinuit.h:46
TMinuit::mncler
virtual void mncler()
Resets the parameter list to UNDEFINED.
Definition: TMinuit.cxx:1113
TMinuit::fNfcwar
Int_t fNfcwar[20]
Definition: TMinuit.h:152
TMinuit::mncuve
virtual void mncuve()
Makes sure that the current point is a local minimum.
Definition: TMinuit.cxx:2140
TMinuit::fMaxcpt
Int_t fMaxcpt
Definition: TMinuit.h:45
TMinuit::fMIGRflnu
Double_t * fMIGRflnu
Definition: TMinuit.h:108
TMinuit::fAmin
Double_t fAmin
Definition: TMinuit.h:49
TMinuit::fMNOTxdev
Double_t * fMNOTxdev
Definition: TMinuit.h:113
TMinuit::fMaxext
Int_t fMaxext
Definition: TMinuit.h:42
TMinuit::fEDM
Double_t fEDM
Definition: TMinuit.h:51
TMinuit::mneval
virtual void mneval(Double_t anext, Double_t &fnext, Int_t &ierev)
Evaluates the function being analysed by MNCROS.
Definition: TMinuit.cxx:2630
TNamed.h
TMinuit::fGin
Double_t * fGin
Definition: TMinuit.h:84
TMinuit::mnprin
virtual void mnprin(Int_t inkode, Double_t fval)
Prints the values of the parameters at the time of the call.
Definition: TMinuit.cxx:6316
TMinuit::mnline
virtual void mnline(Double_t *start, Double_t fstart, Double_t *step, Double_t slope, Double_t toler)
Perform a line search from position START.
Definition: TMinuit.cxx:4746
TMinuit::fYdircr
Double_t fYdircr
Definition: TMinuit.h:66
TMinuit::fNewpag
Int_t fNewpag
Definition: TMinuit.h:136
TMinuit::fPrho
Double_t * fPrho
Definition: TMinuit.h:95
TMinuit::fGsteps
Double_t * fGsteps
Definition: TMinuit.h:88
TMinuit::fFIXPyy
Double_t * fFIXPyy
Definition: TMinuit.h:102
TMinuit::Clone
virtual TObject * Clone(const char *newname="") const
Make a clone of an object using the Streamer facility.
Definition: TMinuit.cxx:606
TMinuit::mnhess
virtual void mnhess()
Calculates the full second-derivative matrix of FCN.
Definition: TMinuit.cxx:4003
TMinuit::fX
Double_t * fX
Definition: TMinuit.h:75
Int_t
int Int_t
Definition: RtypesCore.h:45
TMinuit::fVERTq
Double_t * fVERTq
Definition: TMinuit.h:120
TMinuit::mncntr
virtual void mncntr(Int_t ke1, Int_t ke2, Int_t &ierrf)
Print function contours in two variables, on line printer.
Definition: TMinuit.cxx:1142
TMinuit::GetObjectFit
TObject * GetObjectFit() const
Definition: TMinuit.h:194
TMinuit::TMinuit
TMinuit()
Minuit normal constructor.
Definition: TMinuit.cxx:357
TMinuit::SetObjectFit
virtual void SetObjectFit(TObject *obj)
Definition: TMinuit.h:265
TMinuit::fIdbg
Int_t fIdbg[11]
Definition: TMinuit.h:142
TMinuit::fVlimlo
Double_t fVlimlo
Definition: TMinuit.h:58
TMinuit::fErp
Double_t * fErp
Definition: TMinuit.h:71
TMinuit::mnmnot
virtual void mnmnot(Int_t ilax, Int_t ilax2, Double_t &val2pl, Double_t &val2mi)
Performs a MINOS error analysis on one parameter.
Definition: TMinuit.cxx:5475
TMinuit::fNpagln
Int_t fNpagln
Definition: TMinuit.h:135
TMinuit::fIstkrd
Int_t fIstkrd[10]
Definition: TMinuit.h:137
TMinuit::GetPlot
virtual TObject * GetPlot() const
Definition: TMinuit.h:200
TMinuit::fDcovar
Double_t fDcovar
Definition: TMinuit.h:55
TMinuit::SetErrorDef
virtual Int_t SetErrorDef(Double_t up)
To get the n-sigma contour the error def parameter "up" has to set to n^2.
Definition: TMinuit.cxx:918
TMinuit
Implementation in C++ of the Minuit package written by Fred James.
Definition: TMinuit.h:27
TMinuit::fNfcnfr
Int_t fNfcnfr
Definition: TMinuit.h:148
TMinuit::fOrigin
TString fOrigin[kMAXWARN]
Definition: TMinuit.h:173
TMinuit::mnimpr
virtual void mnimpr()
Attempts to improve on a good local minimum.
Definition: TMinuit.cxx:4305
TMinuit::Migrad
virtual Int_t Migrad()
invokes the MIGRAD minimizer
Definition: TMinuit.cxx:890
TMinuit::fMaxIterations
Int_t fMaxIterations
Definition: TMinuit.h:43
TMinuit::fCundef
TString fCundef
Definition: TMinuit.h:170
TMinuit::fErn
Double_t * fErn
Definition: TMinuit.h:72
TMinuit::GetNumFixedPars
virtual Int_t GetNumFixedPars() const
returns the number of currently fixed parameters
Definition: TMinuit.cxx:865
TMinuit::fCpnam
TString * fCpnam
Character to be plotted at the X,Y contour positions.
Definition: TMinuit.h:165
TMinuit::fNvarl
Int_t * fNvarl
Definition: TMinuit.h:126
TMinuit::mnparm
virtual void mnparm(Int_t k, TString cnamj, Double_t uk, Double_t wk, Double_t a, Double_t b, Int_t &ierflg)
Implements one parameter definition.
Definition: TMinuit.cxx:5677
TMinuit::fXmidcr
Double_t fXmidcr
Definition: TMinuit.h:63
TMinuit::fXts
Double_t * fXts
Definition: TMinuit.h:79
TMinuit::fG2s
Double_t * fG2s
Definition: TMinuit.h:87
TMinuit::fGstep
Double_t * fGstep
Definition: TMinuit.h:83
TMinuit::fMethodCall
TMethodCall * fMethodCall
Definition: TMinuit.h:177
TString
Basic string class.
Definition: TString.h:136
TMinuit::fDgrd
Double_t * fDgrd
Definition: TMinuit.h:85
TMinuit::fVERTs
Double_t * fVERTs
Definition: TMinuit.h:121
TMinuit::fPbar
Double_t * fPbar
Definition: TMinuit.h:94
TMinuit::mnstat
virtual void mnstat(Double_t &fmin, Double_t &fedm, Double_t &errdef, Int_t &npari, Int_t &nparx, Int_t &istat)
Returns concerning the current status of the minimization.
Definition: TMinuit.cxx:7648
TMinuit::mnpint
virtual void mnpint(Double_t &pexti, Int_t i, Double_t &pinti)
Calculates the internal parameter value PINTI.
Definition: TMinuit.cxx:6029
TMinuit::fVhmat
Double_t * fVhmat
Definition: TMinuit.h:89
Bool_t
bool Bool_t
Definition: RtypesCore.h:63
TMinuit::fNblock
Int_t fNblock
Definition: TMinuit.h:143
b
#define b(i)
Definition: RSha256.hxx:100
TMinuit::fLnewmn
Bool_t fLnewmn
Definition: TMinuit.h:161
bool
gMinuit
R__EXTERN TMinuit * gMinuit
Definition: TMinuit.h:271
TMinuit::fNfcn
Int_t fNfcn
Definition: TMinuit.h:145
TMinuit::fKe2cr
Int_t fKe2cr
Definition: TMinuit.h:156
TMinuit::fYpt
Double_t * fYpt
Definition: TMinuit.h:98
TMinuit::fWord7
Double_t * fWord7
Definition: TMinuit.h:96
TMinuit::fBlim
Double_t * fBlim
Definition: TMinuit.h:70
TMinuit::fPlot
TObject * fPlot
Definition: TMinuit.h:176
TMinuit::fNstkwr
Int_t fNstkwr
Definition: TMinuit.h:140
TMinuit::SetFCN
virtual void SetFCN(void(*fcn)(Int_t &, Double_t *, Double_t &f, Double_t *, Int_t))
To set the address of the minimization function.
Definition: TMinuit.cxx:930
TMinuit::fUpdflt
Double_t fUpdflt
Definition: TMinuit.h:62
TMinuit::kMAXWARN
@ kMAXWARN
Definition: TMinuit.h:35
TMinuit::fLnolim
Bool_t fLnolim
Definition: TMinuit.h:160
TMinuit::mnamin
virtual void mnamin()
Initialize AMIN.
Definition: TMinuit.cxx:982
TMinuit::fMATUvline
Double_t * fMATUvline
Definition: TMinuit.h:107
TMinuit::mnlims
virtual void mnlims()
Interprets the SET LIM command, to reset the parameter limits.
Definition: TMinuit.cxx:4626
TMinuit::BuildArrays
virtual void BuildArrays(Int_t maxpar=15)
Create internal Minuit arrays for the maxpar parameters.
Definition: TMinuit.cxx:522
TMinuit::fGlobcc
Double_t * fGlobcc
Definition: TMinuit.h:74
TMinuit::fPARSplist
Double_t * fPARSplist
Definition: TMinuit.h:124
TMinuit::SetPrintLevel
virtual Int_t SetPrintLevel(Int_t printLevel=0)
set Minuit print level.
Definition: TMinuit.cxx:962
TMinuit::mndxdi
virtual void mndxdi(Double_t pint, Int_t ipar, Double_t &dxdi)
Calculates the transformation factor between ext/internal values.
Definition: TMinuit.cxx:2303
TMinuit::fIcomnd
Int_t fIcomnd
Definition: TMinuit.h:144
TMinuit::mntiny
virtual void mntiny(volatile Double_t epsp1, Double_t &epsbak)
To find the machine precision.
Definition: TMinuit.cxx:7671
TMinuit::operator=
TMinuit & operator=(const TMinuit &m)
TMinuit::fEpsmac
Double_t fEpsmac
Definition: TMinuit.h:56
TMinuit::mninit
virtual void mninit(Int_t i1, Int_t i2, Int_t i3)
Main initialization member function for MINUIT.
Definition: TMinuit.cxx:4536
TMinuit::GetNumPars
virtual Int_t GetNumPars() const
returns the total number of parameters that have been defined as fixed or free.
Definition: TMinuit.cxx:882
TMinuit::mnpars
virtual void mnpars(TString &crdbuf, Int_t &icondn)
Implements one parameter definition.
Definition: TMinuit.cxx:5879
TMinuit::GetMethodCall
TMethodCall * GetMethodCall() const
Definition: TMinuit.h:193
TMinuit::fVthmat
Double_t * fVthmat
Definition: TMinuit.h:90
TMinuit::fLphead
Bool_t fLphead
Definition: TMinuit.h:162
TMinuit::fNpagwd
Int_t fNpagwd
Definition: TMinuit.h:134
TMinuit::GetParameter
virtual Int_t GetParameter(Int_t parNo, Double_t &currentValue, Double_t &currentError) const
return parameter value and error
Definition: TMinuit.cxx:851
TMinuit::fIMPRdsav
Double_t * fIMPRdsav
Definition: TMinuit.h:105
TMinuit::fHESSyy
Double_t * fHESSyy
Definition: TMinuit.h:104
TMinuit::fVlimhi
Double_t fVlimhi
Definition: TMinuit.h:59
TMinuit::mncalf
virtual void mncalf(Double_t *pvec, Double_t &ycalf)
Transform FCN to find further minima.
Definition: TMinuit.cxx:1080
a
auto * a
Definition: textangle.C:12
TMinuit::GetNumFreePars
virtual Int_t GetNumFreePars() const
returns the number of currently free parameters
Definition: TMinuit.cxx:873
TMinuit::mngrad
virtual void mngrad()
Interprets the SET GRAD command.
Definition: TMinuit.cxx:3372
TNamed
The TNamed class is the base class for all named ROOT classes.
Definition: TNamed.h:29
TMinuit::Command
virtual Int_t Command(const char *command)
Execute a Minuit command.
Definition: TMinuit.cxx:636
TMinuit::~TMinuit
virtual ~TMinuit()
Minuit default destructor.
Definition: TMinuit.cxx:507
TMinuit::fIsyswr
Int_t fIsyswr
Definition: TMinuit.h:132
TMinuit::SetGraphicsMode
virtual void SetGraphicsMode(Bool_t mode=kTRUE)
Definition: TMinuit.h:263
TMinuit::fNwrmes
Int_t fNwrmes[2]
Definition: TMinuit.h:151
TMinuit::fMaxint
Int_t fMaxint
Definition: TMinuit.h:40
TMinuit::fVERTpp
Double_t * fVERTpp
Definition: TMinuit.h:122
TMinuit::fCONTgcc
Double_t * fCONTgcc
Definition: TMinuit.h:100
TMinuit::fIMPRy
Double_t * fIMPRy
Definition: TMinuit.h:106
TMinuit::mncrck
virtual void mncrck(TString crdbuf, Int_t maxcwd, TString &comand, Int_t &lnc, Int_t mxp, Double_t *plist, Int_t &llist, Int_t &ierr, Int_t isyswr)
Cracks the free-format input.
Definition: TMinuit.cxx:1687
TMinuit::fMNOTw
Double_t * fMNOTw
Definition: TMinuit.h:114
TMinuit::fCstatu
TString fCstatu
Definition: TMinuit.h:167
TMinuit::Release
virtual Int_t Release(Int_t parNo)
release a parameter
Definition: TMinuit.cxx:904
TMinuit::fXt
Double_t * fXt
Definition: TMinuit.h:76
TMinuit::fMIGRstep
Double_t * fMIGRstep
Definition: TMinuit.h:109
TMinuit::GetStatus
Int_t GetStatus() const
Definition: TMinuit.h:201
TMinuit::fNstkrd
Int_t fNstkrd
Definition: TMinuit.h:138
TMinuit::fNpar
Int_t fNpar
Definition: TMinuit.h:41
y
Double_t y[n]
Definition: legend1.C:17
TMinuit::fCword
TString fCword
Definition: TMinuit.h:169
TMinuit::fSEEKxmid
Double_t * fSEEKxmid
Definition: TMinuit.h:117
TMinuit::fMaxpar1
Int_t fMaxpar1
Definition: TMinuit.h:47
TMinuit::fPstst
Double_t * fPstst
Definition: TMinuit.h:93
TMinuit::fGrd
Double_t * fGrd
Definition: TMinuit.h:81
TMinuit::mnmigr
virtual void mnmigr()
Performs a local function minimization.
Definition: TMinuit.cxx:5060
TMinuit::mnexcm
virtual void mnexcm(const char *comand, Double_t *plist, Int_t llist, Int_t &ierflg)
Interprets a command and takes appropriate action.
Definition: TMinuit.cxx:2674
TMinuit::mnexin
virtual void mnexin(Double_t *pint)
Transforms the external parameter values U to internal values.
Definition: TMinuit.cxx:3161
TMinuit::fIsysrd
Int_t fIsysrd
Definition: TMinuit.h:131
TMinuit::fMIGRgs
Double_t * fMIGRgs
Definition: TMinuit.h:110
TMinuit::fGRADgf
Double_t * fGRADgf
Definition: TMinuit.h:103
TMinuit::fChpt
char * fChpt
Definition: TMinuit.h:164
TMinuit::fEpsma2
Double_t fEpsma2
Definition: TMinuit.h:57
TMinuit::mnmatu
virtual void mnmatu(Int_t kode)
Prints the covariance matrix v when KODE=1.
Definition: TMinuit.cxx:4980
void
typedef void((*Func_t)())
TMinuit::fPstar
Double_t * fPstar
Definition: TMinuit.h:92
TMinuit::mnhes1
virtual void mnhes1()
Calculate first derivatives (GRD) and uncertainties (DGRD)
Definition: TMinuit.cxx:4228
TMinuit::fKe1cr
Int_t fKe1cr
Definition: TMinuit.h:155
TMinuit::fMaxpar
Int_t fMaxpar
Definition: TMinuit.h:39
TMinuit::fIsyssa
Int_t fIsyssa
Definition: TMinuit.h:133
TMinuit::fEpsi
Double_t fEpsi
Definition: TMinuit.h:53
TMinuit::fPSDFs
Double_t * fPSDFs
Definition: TMinuit.h:116
TMinuit::Contour
virtual TObject * Contour(Int_t npoints=10, Int_t pa1=0, Int_t pa2=1)
Creates a TGraph object describing the n-sigma contour of a TMinuit fit.
Definition: TMinuit.cxx:663
TMinuit::fNiofex
Int_t * fNiofex
Definition: TMinuit.h:127
TMinuit::fStatus
Int_t fStatus
Definition: TMinuit.h:154
TMinuit::mnwarn
virtual void mnwarn(const char *copt, const char *corg, const char *cmes)
Prints Warning messages.
Definition: TMinuit.cxx:7794
TMinuit::fNu
Int_t fNu
Definition: TMinuit.h:130
TMinuit::mnsimp
virtual void mnsimp()
Minimization using the simplex method of Nelder and Mead.
Definition: TMinuit.cxx:7441
TMinuit::fMaxpar5
Int_t fMaxpar5
Definition: TMinuit.h:44
TMinuit::fSIMPy
Double_t * fSIMPy
Definition: TMinuit.h:119
TMinuit::fMIGRxxs
Double_t * fMIGRxxs
Definition: TMinuit.h:112
TMinuit::mneig
virtual void mneig(Double_t *a, Int_t ndima, Int_t n, Int_t mits, Double_t *work, Double_t precis, Int_t &ifault)
Compute matrix eigen values.
Definition: TMinuit.cxx:2315
TMinuit::fLrepor
Bool_t fLrepor
Definition: TMinuit.h:158
TMinuit::fIstrat
Int_t fIstrat
Definition: TMinuit.h:150
Double_t
double Double_t
Definition: RtypesCore.h:59
TMinuit::fDirins
Double_t * fDirins
Definition: TMinuit.h:80
TMinuit::fWarmes
TString fWarmes[kMAXWARN]
Definition: TMinuit.h:174
TMinuit::fUp
Double_t fUp
Definition: TMinuit.h:50
TMinuit::mnunpt
Bool_t mnunpt(TString &cfname)
Returns .TRUE.
Definition: TMinuit.cxx:7680
TMinuit::mnmnos
virtual void mnmnos()
Performs a MINOS error analysis.
Definition: TMinuit.cxx:5400
TMinuit::fCovmes
TString fCovmes[4]
Definition: TMinuit.h:172
TMinuit::mnrn15
virtual void mnrn15(Double_t &val, Int_t &inseed)
This is a super-portable random number generator.
Definition: TMinuit.cxx:6629
TMinuit::fU
Double_t * fU
Definition: TMinuit.h:68
TMinuit::fCvrsn
TString fCvrsn
Definition: TMinuit.h:171
TObject
Mother of all ROOT objects.
Definition: TObject.h:37
TMinuit::Eval
virtual Int_t Eval(Int_t npar, Double_t *grad, Double_t &fval, Double_t *par, Int_t flag)
Evaluate the minimisation function Input parameters:
Definition: TMinuit.cxx:810
ClassDef
#define ClassDef(name, id)
Definition: Rtypes.h:325
TMinuit::fXpt
Double_t * fXpt
Definition: TMinuit.h:97
TMinuit::GetMaxIterations
Int_t GetMaxIterations() const
Definition: TMinuit.h:195
TMinuit::fGraphicsMode
Bool_t fGraphicsMode
Definition: TMinuit.h:163
name
char name[80]
Definition: TGX11.cxx:110
TMinuit::fWerr
Double_t * fWerr
Definition: TMinuit.h:73
TMinuit::mncros
virtual void mncros(Double_t &aopt, Int_t &iercr)
Find point where MNEVAL=AMIN+UP.
Definition: TMinuit.cxx:1808
TMinuit::mnscan
virtual void mnscan()
Scans the values of FCN as a function of one parameter.
Definition: TMinuit.cxx:6718
TMinuit::fISW
Int_t fISW[7]
Definition: TMinuit.h:141
TMinuit::fObjectFit
TObject * fObjectFit
Definition: TMinuit.h:175
R__EXTERN
#define R__EXTERN
Definition: DllImport.h:27
TMinuit::fIstkwr
Int_t fIstkwr[10]
Definition: TMinuit.h:139
TMinuit::fNfcnlc
Int_t fNfcnlc
Definition: TMinuit.h:147
TMinuit::mnseek
virtual void mnseek()
Performs a rough (but global) minimization by monte carlo search.
Definition: TMinuit.cxx:6828
TMinuit::mnfixp
virtual void mnfixp(Int_t iint, Int_t &ierr)
Removes parameter IINT from the internal parameter list.
Definition: TMinuit.cxx:3179
TMinuit::fLwarn
Bool_t fLwarn
Definition: TMinuit.h:157
TMethodCall
Method or function calling interface.
Definition: TMethodCall.h:37
TMinuit::mnset
virtual void mnset()
Interprets the commands that start with SET and SHOW.
Definition: TMinuit.cxx:6923
TMinuit::mnderi
virtual void mnderi()
Calculates the first derivatives of FCN (GRD)
Definition: TMinuit.cxx:2188
TMinuit::fApsi
Double_t fApsi
Definition: TMinuit.h:54
TMinuit::fCfrom
TString fCfrom
Definition: TMinuit.h:166
TMinuit::mnhelp
virtual void mnhelp(TString comd)
HELP routine for MINUIT interactive commands.
Definition: TMinuit.cxx:3449
TMinuit::fAlim
Double_t * fAlim
Definition: TMinuit.h:69
TMinuit::fSEEKxbest
Double_t * fSEEKxbest
Definition: TMinuit.h:118
TMinuit::mnerrs
virtual void mnerrs(Int_t number, Double_t &eplus, Double_t &eminus, Double_t &eparab, Double_t &gcc)
Utility routine to get MINOS errors.
Definition: TMinuit.cxx:2588
TMinuit::fMNOTgcc
Double_t * fMNOTgcc
Definition: TMinuit.h:115
TMinuit::mninex
virtual void mninex(Double_t *pint)
Transforms from internal coordinates (PINT) to external (U)
Definition: TMinuit.cxx:4516
TMinuit::fBigedm
Double_t fBigedm
Definition: TMinuit.h:61
TMinuit::fCONTw
Double_t * fCONTw
Definition: TMinuit.h:101
TMinuit::fNpfix
Int_t fNpfix
Definition: TMinuit.h:37
TMinuit::mnrset
virtual void mnrset(Int_t iopt)
Resets function value and errors to UNDEFINED.
Definition: TMinuit.cxx:6671
TMinuit::mnplot
virtual void mnplot(Double_t *xpt, Double_t *ypt, char *chpt, Int_t nxypt, Int_t npagwd, Int_t npagln)
Plots points in array xypt onto one page with labelled axes.
Definition: TMinuit.cxx:6080
TMinuit::fXs
Double_t * fXs
Definition: TMinuit.h:78
TMinuit::fG2
Double_t * fG2
Definition: TMinuit.h:82
TMinuit::mnpsdf
virtual void mnpsdf()
Calculates the eigenvalues of v to see if positive-def.
Definition: TMinuit.cxx:6506
TMinuit::SetMaxIterations
virtual void SetMaxIterations(Int_t maxiter=500)
Definition: TMinuit.h:264
TMinuit::DeleteArrays
virtual void DeleteArrays()
Delete internal Minuit arrays.
Definition: TMinuit.cxx:718
int
TMethodCall.h
TMinuit::FixParameter
virtual Int_t FixParameter(Int_t parNo)
fix a parameter
Definition: TMinuit.cxx:837