[ROOT] Fit parameters in stats box

From: Mike Kordosky (kordosky@mail.hep.utexas.edu)
Date: Mon Feb 25 2002 - 21:10:56 MET


Hi,

I am doing a double gaussian fit, where I fit two subranges of a histogram
to estimate the parameters for an eventual gaus+gaus fit.  I cannot seem
to figure out how to get the stats box to display the parameter results of
the final fit.  It looks like it always displays the result from the first
fit. How does one tell the HistPainter (or whatever appropriate object) to
use a certain function print the parameters? I tried:

hist->GetPainter()->PaintStat(1, myfunc);

but nothing seemed to happen...

Can anyone help? I include my macro for reference.

Mike Kordosky

-- 
Graduate Research Assistant  // High Energy Physics Lab
kordosky@hep.utexas.edu     // University of Texas at Austin
kordosky@fnal.gov	   //
ph: (512) 471-8426 (RLM Lab, Office)
    (512) 475-8673 (ENS Lab)





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