[ROOT] Cloning/filtering more complicated trees

From: Rick Van Kooten (rvankoot@indiana.edu)
Date: Mon Dec 02 2002 - 17:24:40 MET


  I was filtering trees, i.e., using selection criteria inside of a
looping macro in root and then writing out a subset of the original
tree.

  However, I am having trouble (and have tried other experts already)
cloning a tree where some of the branches are not basic types, i.e.,
arrays, and there are links between members of the different arrays. 
The documentation does state:

 IMPORTANT: Before invoking this function, the branch addresses
            of this TTree must have been set if one or more branches
            is not a basic type.

and there is a member function CopyAddresses, but how does one use it
to set the addresses _before_ one has created the new tree using
CloneTree? All my efforts so far has resulted in a correctly filtered
tree for the basic branches, but not for the branches that are arrays.
An example would be nice....

				Thanks,
						Rick
-- 
Rick Van Kooten  \    Telephone: (812) 855-2650  FNAL: (630) 840-3859
Dept. of Physics  \   FAX:       (812) 855-0440 
Indiana University \  e-mail:    rvankoot@indiana.edu
Swain Hall West 117 \            rickv@fnal.gov
Bloomington, IN 47405\ http://physics.indiana.edu/~rickv/aboutme.html



This archive was generated by hypermail 2b29 : Sat Jan 04 2003 - 23:51:22 MET