Rene Brun
On Thu,
13 May 1999, Peter M. Jacobs wrote:
> Daer Roottalk,
>
> I have a TF2 that I evaluate with several different sets of parameters
> within a macro. I would like to write to a root file a histogram of this
> function for each of these parameter sets, in order to read them in and
> plot them in a different macro. Plotting them within the original macro
> can be done via TF2::DrawCopy. How do I address these histograms in
> order to write them out?
>
> I naively tried to shortcircuit the hitsogramming by trying to use the
> Write method on my TF2, i.e.
>
> TF2 *f2 = new TF2 (.....)
> ....
> f2->Write();
>
> f2 is written to the root file, but when I open the file and do
> f2->Draw(), the resulting histogram is empty. (This technique works for
> TF1, by the way, in contrast to TF2.)
>
> Thanks,
>
> Peter Jacobs,
> LBNL
>