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