[ROOT] fitting ntuple plots

From: Vic Gehman (vmg@u.washington.edu)
Date: Thu Nov 07 2002 - 20:51:53 MET


I'm trying to plot a two-column data file in root.  I've read it into
root as an ntuple.  Now it seems that when I directly plot the ntuple
(i.e. using "ntuple_name->Draw()") that root creates a scatter plot of the
data by making it a 2D histogram, and plotting that.  I'm trying to do a
fit to this data (root's nice fitting routines are why I'm doing this in
the first place), and I can't use any of the predefined functions since
they are all 1D functions (and therefore only capable of fitting 1D
histograms).  I am also not certain that defining my own function of two
variables is the right way to do this since I'm not really trying to fit a
surface.
Can anyone help with this?  I can't be the only one who has tried to do
this...

Thanks,

Vic Gehman



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