Re: two histograms of different root file on one frame ?

From: Rene Brun (Rene.Brun@cern.ch)
Date: Mon Jan 24 2000 - 21:04:48 MET


Here is an example
{
   TFile f1("f1.root");
   TH1F *h1 = (TH1F*)f1.Get("h1");
   TFile f2("f2.root");
   TH1F *h2 = (TH1F*)f2.Get("h2");
   h1->Draw();
   h2->Draw("same");
}    

Rene Brun

On Mon, 24 Jan 2000, Yongzhao Zhou wrote:

> Hi, RootTalks,
> Can I find an example for displaying two histograms of two different
> root files(one is a normal root file and another one is a reference root
> file with same TDirectories and same histogram names to first one) on a
> frame?
> Thanks for any help.
> Best,
> ZYZ
> 
> ------
> Yongzhao Zhou, KLOE, LNF, INFN, Italy
> Tel:39-06-94032696 Fax:39-06-94032427
> 



This archive was generated by hypermail 2b29 : Tue Jan 02 2001 - 11:50:17 MET