#include #include #include #include #include #include #include #include #include void test(){ TFile f1("general.root"); TH1D *h1=f1.Get("2"); TFile f2("fragmentation.root"); TH1D *h2=f2.Get("2"); TFile f3("acceleratedregion.root"); TH1D *h3=f3.Get("2"); THStack *st = new THStack(); st->Add(h1); st->Add(h2); st->Add(h3); st->Draw(); gPad->BuildLegend(); }