Re: [ROOT] Binding arguments

From: Rene Brun (Rene.Brun@cern.ch)
Date: Fri Dec 01 2000 - 09:27:33 MET


Hi George,
You can superimpose the result of a fit on a 2-d histogram.
Using the fitted function TF2 *f2, do f2->Draw("same,cont1")

Rene Brun

On Thu, 30 Nov 2000, George A. Heintzelman wrote:

> 
> Hi rooters,
> 
> I'm working with some fits of 2-dimensional histograms with TF2's. But, 
> since people have a hard time seeing fits of 2-d histograms, I'd like 
> to present these in 1-D slices.
> 
> I'm finding that, while it's easy to get the slices, it is hard to get 
> the 1-D function representing the fit values at the midpoint of the bin.
> 
> In other words, what I would like is a way, given a TF2, to create 
> something that looks like a TF1 from it, binding one or the other 
> coordinates of the TF2 to a specific value. I'm not sure exactly how 
> this would look, but something like:
> 
> TF1 * newf = TF2.BindX(33);
> TF1 * newg = TF2.BindY(13.2);
> 
> would work.
> 
> I don't think there's anything like this now, but if there is, please 
> let me know how to do it. ;) If not, I think it would be an extremely 
> valuable addition to ROOT.
> 
> George Heintzelman
> gah@bnl.gov
> 
> 



This archive was generated by hypermail 2b29 : Tue Jan 02 2001 - 11:50:38 MET