RE: How to CopyTree for all friend trees

From: Philippe Canal <pcanal_at_fnal.gov>
Date: Fri, 23 Nov 2007 01:29:57 -0600


Hi,

Currently, you must clone/copy each of the (friend) tree individually. (You can get the list via master->GetListOfFriends()).

Cheers,
Philippe.

-----Original Message-----
From: owner-roottalk_at_root.cern.ch [mailto:owner-roottalk_at_root.cern.ch] On Behalf Of Seon-Hee Seo
Sent: Thursday, November 22, 2007 8:03 AM To: roottalk_at_root.cern.ch
Subject: [ROOT] How to CopyTree for all friend trees

Hi rooters,

I'd like to make a subset of my original ROOT files using my selection condition.
My original ROOT files contain more than 20 trees and a master tree which make friendship with all other trees. My TChain grabs the master tree so that it knows about all other trees.

Do you know how to copy all friend trees to the new subset ROOT file as well as the master tree?

Thanks,
Seon-Hee Received on Fri Nov 23 2007 - 08:30:22 CET

This archive was generated by hypermail 2.2.0 : Fri Nov 23 2007 - 23:50:02 CET