Re: [ROOT] mnemat problem

From: Rene Brun (Rene.Brun@cern.ch)
Date: Sat May 11 2002 - 10:13:21 MEST


Hi Steve,

In your case, you must do:
  gMinuit->mnemat(&matrix[0][0],ndim);

Rene Brun

On Fri, 10 May 2002, Sean Stave wrote:

> Hello Rooters:
> 
> I am not that experienced with C++ so maybe someone will see the problem
> with this immediately.  I cannot get the TMinuit command mnemat to run
> correctly.  I am running ROOT 3.02/02 on Red Hat Linux 6.2.  Below is a
> macro that just won't work.  When it gets to the mnemat command, I get
> 
> Error: Can't call TMinuit::mnemat(matrix,ndim) in current scope
> FILE:show_err.C LINE:13
> Possible candidates are...
> filename       line:size busy function type and name  (in TMinuit)
> (compiled)        0:0    0 public: virtual void mnemat(Double_t*
> emat,Int_t ndim);
> filename       line:size busy function type and name  (in TNamed)
> filename       line:size busy function type and name  (in TObject)
> 
> ---------------
> {
> 
> TH1F *h1 = new TH1F("h1","test",3,0,3);
> h1->Fill(0.5,1);
> h1->Fill(1.5,5);
> h1->Fill(2.5,3);
> 
> TF1 *f1 = new TF1("f1","[0]+[1]*x+[2]*x^2",0,3);
> 
> h1->Fit("f1");
> Double_t matrix[3][3];
> Int_t ndim=3;
> gMinuit->mnemat(matrix,ndim);
> 
> 
> }
> 
> Thanks in advance for the help.
> 
> -Sean Stave
> 



This archive was generated by hypermail 2b29 : Sat Jan 04 2003 - 23:50:52 MET