Re: [ROOT] How to fit a function to several histograms at the same time?

From: Rene Brun (Rene.Brun@cern.ch)
Date: Thu May 29 2003 - 19:06:21 MEST


Hi Arache,

see $ROOTSYS/tutorials/fithist.C for an example of fit
of a histogram + function. You can adapt it
to the sum of histograms.

Rene Brun

On Wed, 28 May 2003, 
Arache Djannati-Atai wrote:

> 
> Hi rooters,
> 	Is there a simple way of fitting a user defined function to
> several histograms at the same time? The problem is rather usual : I try
> to fit some parameters using several observations summarized in different
> histograms (that may not be compiled: e.g. fitting the parameters of a
> resonance using several channels).
> Of course, what one would do in a non-object-oriented framework is just to
> fetch data from all histograms into arrays and fit them...
> 	Thanks,
> 		Arache
> 
> =======================================================================
> 
>          Arache Djannati-Atai
>          Astroparticle Group             |     tel:  +33  1-44271478
>        PCC - College de France           |     fax:  +33  1-43546989
>     11, Place Marcelin Berthelot
>         75231 Paris Cedex 05             |   e-mail: djannati@in2p3.fr
> 
> 
> 



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