Hi,
First happy new year to everbody.
I shall start this new year with a root question.
I have a file in which I have a histogram. This histogram has been saved
with its fit. I would like to access the fit in order to read the
parameters. So far I have:
TFile f("data/root/run5345.root");
TH1F *myhisto =(TH1F*)f->Get(Form("boundary;1"); //I have several of them
So from here I have a pointer to boudary;1
inside it there is "boundary" (the histogram) and "gaus" (the fit)
no problem to retrieve the parameters of the histogram directly like
that:
Double_t mean=myhisto->GetMean();
But How to I get the fit parameters ?
Cheers
--
------------------------------------------------------------
Reinhardt CHAMONAL The University of Edinburgh
School of Physics
email: chamonal@ph.ed.ac.uk King's Buildings, JCMB, 5301
Mayfield Road
phone: +44-131-650 5307 Edinburgh, EH9 3JZ
web: http://www.ph.ed.ac.uk/~chamonal/
http://www.reuh.fr.st
------------------------------------------------------------
This archive was generated by hypermail 2b29 : Thu Jan 01 2004 - 17:50:08 MET