plot(){ TFile *f = new TFile("trigTest_000001.root","READ"); TProfile *ch0 = (TProfile*)f->Get("ch 0"); TProfile *ch1 = (TProfile*)f->Get("ch 1"); TProfile *ch2 = (TProfile*)f->Get("ch 2"); TProfile *ch3 = (TProfile*)f->Get("ch 3"); TProfile *ch4 = (TProfile*)f->Get("ch 4"); TProfile *ch5 = (TProfile*)f->Get("ch 5"); TProfile *ch6 = (TProfile*)f->Get("ch 6"); TProfile *ch7 = (TProfile*)f->Get("ch 7"); TCanvas *c1 = new TCanvas("c1","c1",800,1000); c1->Divide(2,4); c1->cd(1); ch0->Draw(); c1->cd(2); ch1->Draw(); c1->cd(3); ch2->Draw(); c1->cd(4); ch3->Draw(); c1->cd(5); ch4->Draw(); c1->cd(6); ch5->Draw(); c1->cd(7); ch6->Draw(); c1->cd(8); ch7->Draw(); }