Thanks, Axel and Phillippe.
The solution you gave solved all the problem!!!
I'm stuck with the problem for two days.....
Thanks, again.
On Jul 29, 2010, at 1:23 AM, Axel Naumann wrote:
> Hi Genie,
>
> you shouldn't delete the directory that you write the tree into. I
> cannot tell whether that solves it because your macro takes too long for
> my patience. If not deleting teh directory doesn't solve it: can you
> come up with a much much much faster version that shows the same behavior?
>
> Cheers, Axel.
>
> Genie Jhang wrote on 07/26/2010 04:56 PM:
>> Hello.
>>
>> I'm now trying to make a ROOT file from about fifty ROOT files.
>>
>> First read source ROOT file.
>>
>> Read a tree to the vector;
>>
>> Sort them as I wanted.
>>
>> Rewrite them to a new ROOT file.
>>
>> By the for-loop, source file changes from one to another, but new ROOT file is only one.
>>
>> So, I loaded the new one using "UPDATE" option.
>>
>> Here's the problem.
>>
>> New ROOT file doesn't have any trees but folders.
>> (I used folders to categorize source files.)
>>
>> More than that, the size of the new ROOT file is so small.
>>
>> It looks like it has all the data I put in but I just cannot access to them.
>>
>>
>> Here's the source files and macro files. You can test it for yourself. You should use + option to compile.
>> (Sorry for the mess of the macro file. I'm in new)
>>
>>
>> http://physics.majimak.com/src.tgz
>>
>>
>> Thanks, in advance.
>>
Received on Thu Jul 29 2010 - 08:10:17 CEST