Re: problem of illegal pointer

From: Rene Brun <Rene.Brun_at_cern.ch>
Date: Thu, 20 Apr 2006 21:21:31 +0200 (MEST)


The object named "outputTree" does not exist in your file Example.root"

Rene Brun

On
Thu, 20 Apr 2006, Muhammad Asghar wrote:

>
> Dear Rene
>
> I am facing a problem of illegal pointer.
>
>
> In the code there are some lines
>
>
>
>
>
> int numbers;
> TFile *f = new TFile("Example.root");
> TTree *outputTree = (TTree*) f->Get("outputTree");
> numbers = outputTree->GetEntries();
> cout << numbers << " numbers in file " << endl;
>
>
>
> Error: illegal pointer to class object outputTree 0x0 54 FILE:Example.C LINE:107
>
>
>
> I have understood the problem. But does not know how to correct this. Any suggestion please
>
>
>
> regards
> Irfan
>
Received on Thu Apr 20 2006 - 21:21:36 MEST

This archive was generated by hypermail 2.2.0 : Mon Jan 01 2007 - 16:31:58 MET