[ROOT] to chain trees up with TChain

From: tcli (tcli@ic.sunysb.edu)
Date: Thu Jul 24 2003 - 21:45:48 MEST


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