RE: Split a root file!

From: Philippe Canal <pcanal_at_fnal.gov>
Date: Thu, 25 Aug 2005 11:57:13 -0500


> the root reads it very slowly(Is it normal?).

In general this should not be the case (i.e. reading an entry from the original files
or from the merge files should be about the same).

> I want to split again this file to smaller files, Is it possible?

You can simply clone the large tree but setting the TTree maximum size to a low number (see TTree::SetMaxTreeSize) (see $ROOTSYS/tutorials/copytree*.C)

Cheers,
Philippe.

-----Original Message-----
From: owner-roottalk_at_pcroot.cern.ch [mailto:owner-roottalk_at_pcroot.cern.ch] On Behalf Of Saeid Paktinat Mehdiabadi
Sent: Thursday, August 25, 2005 8:58 AM
To: roottalk (Mailing list discussing all aspects of the ROOT system) Subject: [ROOT] Split a root file!

Hello ROOT developers,

I had something like 100 root files with same structure,

I used, TChain::Merge(), to merge them and make a single file, this file is very big and the root reads it very slowly(Is it normal?).

I want to split again this file to smaller files, Is it possible?

What's the solution?

Thank you,

Saeid Received on Thu Aug 25 2005 - 18:59:25 MEST

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