[ROOT] two trees

From: Mariusz Sapinski (Mariusz.Sapinski@gamum2.in2p3.fr)
Date: Sun Oct 06 2002 - 14:21:50 MEST


 Hello Rooters,

 i got plenty of root-files with two trees each: event and header. I must 
have two because in the header i got numbers which are calculated during 
production of the file so header is written at the end of writting a file.
 I would like to analyse these files in a chain. So i'd like to create a 
TChain. But a single TChain is a chain of one kind of tree objects eg.

  TChain data("data"); 

 And i need information from header also. If i got one file, i do 
AddFriend and use variables from header. But how to proceed in my case? 
And i got 10000 records in event and one in header (per run).

 Maybe i can analyse files somehow in the loop? But how to do this?

  Regards,

            Mariusz Sapinski



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