void simple() { TFile *f1 = new TFile("TestCAL_Co60_d5z3.root", "READ"); TH1D *h1 = static_cast(f1->Get("Edep")); /* TFile f2("TestCAL_Co60_d5z6.root"); TH1D *h2 = static_cast(f2.Get("Edep")); TFile f3("TestCAL_Co60_d5z9.root"); TH1D *h3 = static_cast(f3.Get("Edep")); */ h1->Draw(); /* h2->Draw("same"); h3->Draw("same"); */ }