'LIKELIHOOD AND MINIMIZATION' RooFit tutorial macro #601
Interactive minimization with MINUIT
Processing /mnt/build/workspace/root-makedoc-v608/rootspi/rdoc/src/v6-08-00-patches/tutorials/roofit/rf601_intminuit.C...
void rf601_intminuit()
{
RooRealVar sigma_g2(
"sigma_g2",
"width of g2",4,3.0,6.0) ;
m.migrad() ;
m.hesse() ;
sigma_g2.Print() ;
m.minos(sigma_g2) ;
sigma_g2.Print() ;
RooPlot* frame = m.contour(frac,sigma_g2,1,2,3) ;
frame->
SetTitle(
"Minuit contour plot") ;
mean = 0.3 ;
m.migrad() ;
m.hesse() ;
frac.Print() ;
sigma_g2.setConstant(
kTRUE) ;
m.migrad() ;
m.hesse() ;
frac.Print() ;
new TCanvas(
"rf601_intminuit",
"rf601_intminuit",600,600) ;
}
- Author
- 07/2008 - Wouter Verkerke
Definition in file rf601_intminuit.C.