Re: [ROOT] to chain trees up with TChain

From: Pasha Murat 630-840-8237/169G (murat@fnal.gov)
Date: Thu Jul 24 2003 - 22:40:34 MEST


Hi Lesley, 

the short answer to all your questions is "yes". To get the detailed 
answers go to http://root.cern.ch, download and read the ROOT manual. 
The answers are in there. 
                                            - best, Pasha
-------------------------------------------------------------------------------
Pasha Murat (murat@fnal.gov) | CDF/FNAL B0 trailers 168G, MS 318
office: 630-840-8237         | cell: 630-854-9188
-------------------------------------------------------------------------------
On Thu, 24 Jul 2003, tcli wrote:

> 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