All objects are completely serialized by TBuffer::WriteObject (or TMessage::WriteObject). The only special case is a TTree which during filling will write its full buffers (TBaskets) to the currently open file (if there is no open file when a TTree is created it will keep all its buffers in memory, but then you can only have as many objects in a tree as can fit in memory+swap. In this case a WriteObject() of the tree will be the complete tree). Cheers, Fons. On Mon, 2002-03-11 at 10:58, André David wrote: > Hi Fons, > > Fons Rademakers wrote: > > simple objects can be stored easily in a BLOB field, TTree's are not > > simple objects as they can write many buffers to file and without these > > buffers a TTree is not complete. But for simple objects (or purely in > > memory TTrees) the recipe is something like: > > I got the recipe. Now my question becomes: How do I make sure an object > is completely in memory? > > As far as I understood _any_ object should be serializeable via > TObject's Streamer method, right? Is there some way of telling a ROOT > standard object (like a TTree) "Hey, cleanup time. Get ready to be > streamed!" ? > > Enlightening appreciated, > > Andre -- Org: CERN, European Laboratory for Particle Physics. Mail: 1211 Geneve 23, Switzerland E-Mail: Fons.Rademakers@cern.ch Phone: +41 22 7679248 WWW: http://root.cern.ch/~rdm/ Fax: +41 22 7679480
This archive was generated by hypermail 2b29 : Sat Jan 04 2003 - 23:50:45 MET