> I want to write a large ROOT file consisting of a number of Event
> objects stored in a super branch of a TTree object. If I make a single
> call to hfile->Write() outside the event loop I run out of memmory. My
> question, how do I flush the output buffers every 1000 events or so ?
The function to use for this is TTree::AutoSave(). It standard saves your
tree after 10000000 bytes, but you can change this using
TTree::SetAutoSave(Int_t bytes).
Simon Peeters.
-- NIKHEF, National Institute for Nuclear and High Energy Physics Kruislaan 409, office H-044 Tel:(+31-20-592) 5140 P.O. Box 41882, 1009 DB Amsterdam (NL) Fax:(+31-20-592) 5155 CERN, building 40, office 2-D06 Tel:(+41-22-76) 71157