Re: Simultaneously accessing data from two trees in different root files

From: Rene Brun <Rene.Brun_at_cern.ch>
Date: Sat, 22 Dec 2007 09:06:35 +0100


see TTree::Draw API. You should do:

 T1->Draw("Ptlep1")
 T2->Draw("Ptlep1", "","same")

Rene Brun

Anil Singh wrote:
> Dear rooters
> I have two root file each containing a tree. The trees have exactly same architecture. I can draw from a branch using
> ===============================
> T1->Draw("Ptlep1")
> and
> T2->Draw("Ptlep1")
>
> ================================
>
>
> But I want to draw the "Ptlep1" from both the rootfiles (each containing either tree), on the same canvas. I tried
> ====================================
> T1->Draw("Ptlep1")
> and
> T1->Draw("Ptlep1", "same")
> ====================================== This did not work. Any Suggestions ????????
>
> A Singh
> Fermi LAB
>
>
Received on Sat Dec 22 2007 - 09:06:57 CET

This archive was generated by hypermail 2.2.0 : Fri Dec 28 2007 - 05:50:02 CET