Hi, Took me a little while to get back to this. I think the attached is the simplest example that shows the problem. Using root 3.10.2 I find that this program has a constant size during the file creation, but grows linearly with the number of events read in during the read. Usage: root [0] .L treetest.C root [1] testWrite(); root [2] testRead(); Thanks for your attention. Cheers, Mark On Sun, 2004-05-02 at 00:56, Rene Brun wrote: > Hi Mark, > > Please send the shortest possible program (writer & reader) > reproducing the problem and indicate which version you use. > > Rene Brun > > On 1 May 2004, > Mark Messier wrote: > > > Hi, > > > > I'm trying to set up an event class based on a hierarchy of TFolders > > which contain TCloneArrays where the actual data objects are stored: > > > > /mipp > > /mipp/raw/tpc/TPCDigitsClonesArray > > /mipp/raw/rich/RICHDigitsClonesArray > > ... > > > > The top TFolder is mapped onto a TTree to be written out. The sizes and > > contents of the ClonesArrays change from one event to the next. I'm > > having trouble with memory leaks when I read this class back in. I've > > seen references to this sort of thing in various talks but cannot find > > some example code. Does anyone have a working example they would be > > willing to share? This might make a nice tutorial... > > > > Thanks, > > Mark > > > > -- Mark Messier e-mail: messier@indiana.edu Department of Physics http://www.physics.indiana.edu/~messier Indiana University Phone: (812) 855-0236 Bloomington, IN 47405 Fax: (812) 855-0440
This archive was generated by hypermail 2b29 : Sun Jan 02 2005 - 05:50:08 MET