source: trunk/MagicSoft/Mars/mtools/MTMinuit.h@ 6724

Last change on this file since 6724 was 2729, checked in by tbretz, 21 years ago
*** empty log message ***
File size: 1.1 KB
Line 
1#ifndef MARS_MTMinuit
2#define MARS_MTMinuit
3
4#ifndef MARS_MParContainer
5#include "MParContainer.h"
6#endif
7
8#ifndef ROOT_TArrayC
9#include <TArrayC.h>
10#endif
11
12#ifndef ROOT_TArrayD
13#include <TArrayD.h>
14#endif
15
16class TMinuit;
17
18class MTMinuit : public MParContainer
19{
20private:
21 // FIXME: Maybe we can use a TMinuit Object to store all this?
22 void (*fFcn)(Int_t &, Double_t *, Double_t &, Double_t *, Int_t);
23
24 TString *fNames;
25 TMinuit *fMinuit;
26
27 TArrayD fVinit;
28 TArrayD fStep;
29 TArrayD fLimLo;
30 TArrayD fLimUp;
31 TArrayC fFix;
32
33public:
34 // FIXME: Use FCN as first argument...
35 MTMinuit(const char *name=NULL, const char *title=NULL);
36 ~MTMinuit();
37
38 Bool_t CallMinuit(TObject *fObjectFit, const TString &method, Bool_t nulloutput);
39
40 TMinuit *GetMinuit() const;
41
42 void SetFcn(void (*fcn)(Int_t &, Double_t *, Double_t &, Double_t *, Int_t));
43 void InitParameters(const TArrayD &vinit, const TArrayD *step=0, const TString *name=0);
44
45 void SetLimits(const TArrayD &limlo, const TArrayD &limup);
46 void SetFixedParameters(const TArrayC &fix);
47
48 ClassDef(MTMinuit, 0) // Class for interfacing with Minuit
49};
50
51#endif
Note: See TracBrowser for help on using the repository browser.