Hi,
Check the class TChain and it's documentation.
Cheers,
Philippe
-----Original Message-----
From: owner-roottalk@pcroot.cern.ch
[mailto:owner-roottalk@pcroot.cern.ch]On Behalf Of tcli
Sent: Thursday, July 24, 2003 2:46 PM
To: roottalk@pcroot.cern.ch
Subject: [ROOT] to chain trees up with TChain
Dear root users,
I have two root files (which can be loaded with TFile and TTree)
containing the same types of variables but of course different valuse.
If I want to use TChain to chain them up so that I can do calculations
by extracting the same type of variable from the two files (eg, find the
sum of a particular variable from a file and the same var from another
file), how to create such a Chain? And if I get such a chain of the two
file, can I plot histograms with the chain in the same way I do using a
single TTree file?
Thank you very much!
Lesley
#################################################################
#################################################################
#################################################################
#####
#####
#####
#################################################################
#################################################################
#################################################################
This archive was generated by hypermail 2b29 : Thu Jan 01 2004 - 17:50:13 MET