Re: TFile effectivity

From: John Idarraga <idarraga_at_cern.ch>
Date: Fri, 6 Nov 2009 17:27:34 -0800


Hello Jakub,

Could you may be close your file, and then open it later again with 'UPDATE' option ? Then you can write another bunch of objects.

cheers,

John Idarraga

On Sat, 2009-11-07 at 02:04 +0100, Jakub Čermák wrote:
> Hello *,
> I'm writing an app which makes large number of histograms and some other graphs and then writes them to TFile. I'd like to avoid holding all the objects in memory, because they can be safely written to the file and discarded. I destruct all of them as soon as I don't need them, but I suppose TFile holds them somewhere in its cache. So the question is - is it possible to write a bunch of root objects into a file and discard them from memory? So the new histograms will be appended at disk to already written ones without need to hold them all in memory. I found a Flush function, but I don't know whether it's what I need.
>
> Thanks
>
> Best regards
>
> Jakub Čermák
> http://www.jcermak.cz
>
>
Received on Sat Nov 07 2009 - 02:27:42 CET

This archive was generated by hypermail 2.2.0 : Sat Nov 07 2009 - 11:50:02 CET