Re: [ROOT] Bug in THbookFile::Get ?

From: Rene Brun (Rene.Brun@cern.ch)
Date: Sun Sep 29 2002 - 22:27:37 MEST


Hi Laurent,

Thanks for reporting this anomaly.
I have modified THbookFile::Get in CVS to print an error message
if the requested ID is not in the file. Before the fix, if the requested
ID did not exist, the last Hbook object was returned.

Rene Brun


On Sun, 29 Sep 2002, Laurent Aphecetche wrote:

> Hi,
> 
> I'm trying to use THbookFile to read CWN ntuples.
> 
> My HBOOK file contains only one ntuple :
> 
> PAW > h/file 0 ntuple.hbook
> PAW > h/list
> 
> 
>   ===> Directory :
>         1000 (N)   TAPS_FWALL_raw
> 
> If I try to use THbookFile::Get(int id), whatever the id is, I get a 
> pointer to the THbookTree, is that normal ?
> 
> root [0] THbookFile f("ntuple.hbook")
> root [1] THbookTree* t = (THbookTree*)f.Get(0)
> root [2] t.ls()
> OBJ: THbookTree h1000   ntuple.hbook : 0 at: 0x87b5820
> 
> I'm using ROOT 3.03/09 on Linux RH7.2 (gcc2.95.3)
> 
> Regards,
> 
> -- 
> Dr. Laurent APHECETCHE (mailto:aphecetc@in2p3.fr) (IN2P3-CNRS)
> SUBATECH-EMN-4 rue Alfred Kastler-BP 20722-44307 NANTES cedex 03
> TEL (+33/0) 2 51 85 84 17 - FAX (+33/0) 2 51 85 84 24 (France)
> Collaboration PHENIX http://www.phenix.bnl.gov/~aphecetc
> 



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