Draw multiple root files along with graph file on the same canvas

Hi,
since in your first.root file have no canvas you have to get the histogram.

TFile *f1 = TFile::Open(“first.root”);
TH1D *h2 = (TH1D)f1->Get(“h2”);
h2->SetName("F");
h2->Draw(“hist same”);
h2->SetLineColor(1);
h2->SetLineWidth(2);

almost the same problem is addressed here

Ciao,
Stefano