Re: [ROOT] Can I fit a gaussian on to a ntuple plot... how?

From: Rene Brun (Rene.Brun@cern.ch)
Date: Thu Apr 11 2002 - 21:09:17 MEST


Hi Shiva,

See TTree::Fit

example:
   ntuple.Fit("gaus","px")

Rene Brun

On Thu, 11 Apr 2002, Siva Subramania wrote:

> Hi,
> I am new to using ntuples, I managed to understand about ntuples, and I 
> think, they are nearly the same as histograms, so if I can fit a gaussian 
> on to a histogram, I should be able to - on an ntuple also, but
> I am having trouble with fitting a gaussian function on to a ntuple plot. 
> Can I do it or not? If I can, then how to?  Please reply.
> Thanx,
> Yours,
> Shiva.
> 



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