Hi,
I think you meant:
T1->Draw("Ptlep1");
and
T2->Draw("Ptlep1", "", "same");
The 2nd argument to TTree::Draw (see Reference's guide) is the selection and is _not_ the graphic option.
Cheers,
Philippe.
-----Original Message-----
From: owner-roottalk_at_root.cern.ch [mailto:owner-roottalk_at_root.cern.ch] On
Behalf Of Anil Singh
Sent: Friday, December 21, 2007 2:00 PM
To: ROOT Talk
Subject: [ROOT] Simultaneously accessing data from two trees in different
root files
Dear rooters
I have two root file each containing a tree. The trees have exactly same architecture. I can draw from a branch using
T2->Draw("Ptlep1")
But I want to draw the "Ptlep1" from both the rootfiles (each containing either tree), on the same canvas. I tried
====================================== This did not work. Any Suggestions????????
A Singh
Fermi LAB
Received on Fri Dec 28 2007 - 05:42:54 CET
This archive was generated by hypermail 2.2.0 : Sat Dec 29 2007 - 23:50:02 CET