vdschaaf wrote: > > Hi, > > I've a problem with TTree's. > If I have a big tree (say 200 Mb) and want to access ntuple data in it, I > typically say > > f=new TFile("....."); > TTree *ntuple = (TTree*)gDirectory->Get("ntuple"); > int nevent=ntuple->GetEntries(); > for (i=0; i<nevent; i++) { > ntuple->GetEvent(i); > ...... > } > > but after the Get, it starts to load 200 Mb of data into memory......That won't > work. Is there another method to access the data without loading everything > into memory first? I suspect something wrong when you wrote your TTree. Could yous end me the output of ntuple->Print(); added immediatly after Get("ntuple") Rene Brun
This archive was generated by hypermail 2b29 : Tue Jan 04 2000 - 00:34:41 MET