[ROOT] Changing the ERRDEF parameter in MINUIT

From: Alexander Dietz (Alexander.Dietz@mpi-hd.mpg.de)
Date: Mon Nov 24 2003 - 12:14:05 MET


Hi,

to change the ERRDEF-parameter in MINUIT I tried the following:

  Double_t arglist[100];

  TH1F* h1=new TH1F("h1","h1",3,1,4);
  h1->Fill(1,1);
  h1->Fill(2,2);
  h1->Fill(3,1);
  h1->Draw();

  TVirtualFitter *hFitter = TVirtualFitter::Fitter(h1);
  h1->Fit("pol0");   // Fit 1

  arglist[0]=1;
  hFitter->ExecuteCommand("SET ERR",arglist,0.7);
  gMinuit->SetErrorDef(0.7);
  h1->Fit("pol0");   // Fit 2


But both fits gave the same errors!
So how to change the ERRDEF -parameter?

Alexander Dietz



This archive was generated by hypermail 2b29 : Thu Jan 01 2004 - 17:50:17 MET