Re: root : unbinned fit 1D

From: Arthur E. Snyder <snyder_at_slac.stanford.edu>
Date: Sat, 5 Dec 2009 16:02:47 -0800


Hello Marc,

An unbinned fit to a histogram makes no sense. Presumably you mean you want to fit the data that is used to make the histogram w/o binning it.

I'm not sure if ROOT has a native unbinned fitter; you could use RooFit or you could write your own using minuit via TMinuit.

A likelihood fit to a finely binned histogram is more or less equivalent to an unbinned fit and ROOT does do that.

-Art S.

A.E. Snyder, Group EC                        \!c*p?/
SLAC Mail Stop #95                          ((.   .))
Box 4349                                        |
Stanford, Ca, USA, 94309                      '\|/`
e-mail:snyder_at_slac.stanford.edu                 o
phone:650-926-2701                              _
http://www.slac.stanford.edu/~snyder          BaBar
FAX:650-926-2657                          Collaboration



On Sun, 6 Dec 2009, Marc Escalier wrote:

> Dear root experts,
>
> would somebody know how to proceed to do a unbinned fit of a TH1 histo ?
>
> for example, lets consider
> MyTH1Histo->Fit("gaus")
>
> ==>i wish to do this fit, but with a unbinned fit
>
> thank you
>
> (i will thank those who know in private to prevent spamming people)
>
>
Received on Sun Dec 06 2009 - 01:02:55 CET

This archive was generated by hypermail 2.2.0 : Mon Dec 07 2009 - 11:50:02 CET