Re: [ROOT] TBranch::GetTotBytes()

From: Rene Brun (Rene.Brun@cern.ch)
Date: Tue Jun 19 2001 - 16:44:05 MEST


Hi Jiri,
TBranch::GetTotBytes returns the total number of bytes written to the file
so far, excluding the current buffer. fTotBytes cannot be incremented
when the file is closed because you may want to continue to fill the
branch in a different job.
I could modify GetTotBytes to always return the fTotBytes + the current
buffer length.

Rene Brun


On Tue, 19 Jun 2001, Jiri Chudoba wrote:

> Hello,
> 
> I use TBranch::GetTotBytes() method to get a size of a given branch, but
> the result is not correct, for branches with just a few entries I get
> 0. To get correct result, I have to look into baskets as well, 
> branch->GetBasket(i)->GetBufferSize(). Would it be possible to change the
> root code to update fTotBytes when file is closed?
> I get the same behaviour for fZipBytes.
> 
> I use root 3.00.06 on Linux RedHat 6.1.
> 
>            Thanks, cheers,
>                                Jiri.
> 
> *************************************************************************
> * E-mail address:  Jiri.Chudoba@cern.ch                                 *
> * WWW Homepage  :  http://delphiwww.troja.mff.cuni.cz/chudoba/          *
> * Telephone     :  +41 22 76 72288                                      *
> * Fax           :  +41 22 76 79480                                      *
> *************************************************************************
> 



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