[ROOT] Re: Retrieving Histogram from File

From: Frank Simon (fsimon@cipsuse2.t30.physik.tu-muenchen.de)
Date: Wed Oct 24 2001 - 19:59:51 MEST


Hi Rooters,

I solved the Problem myself...

Was something stupid with the directories in the file...

Greetings

Frank

On Wed, 24 Oct 2001, Frank Simon wrote:

> Hi Rooters,
>
> I have a small macro that should read a histogram from file and draw
> it in a canvas:
>
>
> TH2F *hClusterRatio =
> (TH2F*) f->Get("ClusterAmpRatioCoord_Smpl02;1");
>
> hClusterRatio->Draw();   //Line 21
>
> I get:
>
> Error: illegal pointer to class object hClusterRatio 0x0 141
> FILE:goldenrun.cc LINE:21
>
> When I open the file, and call
> ClusterAmpRatioCoord_Smpl02->Draw()
>
> I can display the histogram. However, I also want to make some
> modifications, so I need the pointer.
>
> What could be the problem?
>
> I'm using SuSE Linux 7.4 and Root 3.02 precompiled.
>
> Thanks!
>
> Greetings
>
> Frank
>
>



This archive was generated by hypermail 2b29 : Tue Jan 01 2002 - 17:51:04 MET