Histogram from root files

I have 2 root files, time1d.root & timn1d.root, first one contains 25 histograms(TH1F* hi) & next one has also 25 histograms(TH1F*his).
I am applying
TFile f("time1d.root ");
his9->Draw();
TFile f("timn1d.root ");
hi9->Draw();

but canvas contains only one histogram his9; :frowning: what should I do to see overlap of two histo in same pad?

Thank you

I assume that your typo with the hist name is only in your mail.
You should do (see Users Guide)

TFile f1(“time1d.root”);
TH1F h1 = (TH1F)f1.Get(“his9”);
h1->Draw();
TFile f2(“timn1d.root”);
TH1F h2 = (TH1F)f2.Get(“his9”);
h2->Draw(“same”)

Rene