Re: Problem using CopyTree

From: Woon-Seng Choong <wschoong_at_lbl.gov>
Date: Fri, 27 May 2005 12:09:59 -0700


Rene,

   I didn't even create a TFile object because I just filled the ntuple and process the ntuple in the same program without having the intention to save the ntuple. I did what you suggested by creating the TFile object before I create the ntuple. But I am still getting the same error when I called CopyTree. What is the limitation of using memory-resident ntuples. Why is it necessary to create a TFile object in relation to CopyTree?

	Thank you
	Seng


On May 27, 2005, at 1:19 AM, Rene Brun wrote:

> Hi Seng,
>
> It seems that you are creating memory-resident ntuples.
> To create disk-resident ntuples, do
> TFile *f = new TFile("myfile.root","recreate");
> TTree *T = new TNtupleD(...
>
> and not
> TTree *T = new TNtupleD(...
> TFile *f = new TFile("myfile.root","recreate");
>
> Rene Brun
>
> On Thu, 26 May 2005, Woon-Seng Choong wrote:
>
>> Hi,
>> I am running root version 4.04.00 on a Window 2000 platform. I have
>> an object of class NtupleD which has 5 elements in it. The object has
>> slightly over 6 milllion events. I tried to use CopyTree with
>> selection to prefilter the ntuple for further processing. But I got
>> the following error messages from root:
>>
>> Fatal in <TStorage::ReAllocChar>: storage exhausted
>> aborting
>> Warning in <TWinNTSystem::StackTrace>: this method must be overridden!
>>
>> This application has requested the Runtime to terminate it in an
>> unusual way.
>> Please contact the application's support team for more information.
>>
>>
>> Can someone help me? Thanks.
>>
>> Seng
>>
>>
Received on Fri May 27 2005 - 21:10:58 MEST

This archive was generated by hypermail 2.2.0 : Tue Jan 02 2007 - 14:45:08 MET