Re: multiple TKeys to an object w/ different cycle number

From: Rene Brun <Rene.Brun_at_cern.ch>
Date: Thu, 18 Jan 2007 08:26:02 +0100


When filling a TTree the header is saved to the file every 200 MBytes (see SetAutoSave).
The last copy of the header is kept, ie if you write 1 GByte, you will have 5 AutoSaves. The last AutoSave will be kept. In addition you will have the final header when you close the tree. This mechanism is in place to guarantee the data integrity on the file up to and including the last AutoSave in case your program crashes.

Rene Brun

Kazuyoshi Furutaka wrote:
> Dear rooters,
>
> Are there any possibility to have multiple TKeys
> to an object with an identical name but different
> cycle number, in a single root file?
>
> I wrote a code which creates a TTree and some TH1Fs
> and saves them in a root file, but I observe ther're
> two keys to the tree...
>
> I'm using ver.5.14/00 of root.
>
> Thanks in advance...
>
> Yours,
> Kazuyoshi
> --
> Kazuyoshi Furutaka
> furutaka _dot_ kazuyoshi _at_ jaea _dot_ go _dot_ jp
>
Received on Thu Jan 18 2007 - 08:26:12 CET

This archive was generated by hypermail 2.2.0 : Thu Jan 18 2007 - 11:50:00 CET