Hi Elena,
Create TChain chain1 with file1.root and file2.root,
then TChain chain2 with file3.root and file4.root, then you can do
chain1.Draw("x","some cut");
chain2.Draw("x","some cut","same");
where x is a variable in your tree mytree.
Rene Brun
On Tue, 26 Mar 2002, Elena Vataga wrote:
>
>
> Hello rooter!
>
> I have set of files with TTree with I need to compare.
> If I make chain:
> TChain chain("mytree");
> chain.Add("file1.root");
> chain.Add("file2.root");
>
> mytree->Print();
>
> I need to compare it with another chain made from files file3.root and file4.root.
> But all files have the same name for TTree - so
> how could I distinguish between them?
>
> Thank you for help,
> Elena
>
This archive was generated by hypermail 2b29 : Sat Jan 04 2003 - 23:50:47 MET