Re: problem when reading small tree

From: Rene Brun (Rene.Brun@cern.ch)
Date: Wed Mar 15 2000 - 08:23:01 MET


Hi Ursula,
I suspect a mismatch between versions of your class.
We strongly recommend to use the CheckByteCount facility introduced in
2.23. When the CheckByteCount option in Streamer is active, Root will
tell you
precisely which class Streamer has a problem.
Here is an extract of what we wrote in the Release notes of 2.23.

- CheckByteCount
  ==============
  All Root Streamers include now the CheckByteCount facility.
  All LinkDef files modified accordingly.
  For users intending to use the same facility, modify your Linkdef file
  adding a + character at the end of the class name, eg:
          #pragma link C++ class TLeafB+;
  The code generated for Streamers with the bytecount facility is
backward
  compatible with Streamers not including this code.

If you cannot solve your problem, tell me where I can get your file
to investigate.

Rene Brun

Ursula Berthon wrote:
> 
> Hi!
> I am having problems with a small tree I am writing onto a file.
> Everything looks ok when I write (compressionlevel 0, split=1), and
> also when I read it with a little macro:
>   TFile *hfile = new TFile("/h1wgs/reunion/x03/usr/berthon/tag.root");
> 
>   hfile->ls();
>   TTree * tree = (TTree*)hfile->Get("TAG");
>   tree->ls();
>   tree->Print();
>   TBrowser *b =new TBrowser();
> (but tree->Print() talks about compression factor 1...)
> 
> But sometimes (no idea about the difference) when I read it, I get
> things like:
> R__unzip: discrepancy with initial size
> Error in <TBuffer::ReadObject>: object tag too large, I/O buffer
> corrupted
> Error in <TBuffer::ReadObject>: object tag too large, I/O buffer
> corrupted
> Error in <TBuffer::ReadObject>: object tag too large, I/O buffer
> corrupted
> ... for pages.
> 
> Has anyone seen something like that, and found an explanation?
> 
> I am working with root 2.23/200 under Linux with gcc-2.95.2.
> Thanks for your help!
> 
> 
>                          Ursula
> 
> *************************************************************
>                                                 Ursula Berthon
>                                       E-mail  berthon@in2p3.fr
>                                     Tel. 33 - 1 - 69 33 31 21
>                                     Fax  33 - 1 - 69 33 30 02
> 
>



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