// { gROOT->Reset(); TFile f("histo.root","READ"); //TPostScript ps("h1.ps",111); c1 = new TCanvas("c1","sub data",200,10,700,500); c1.Divide(2,2); c1.cd(1); TH1F *hcallanstime = f->Get("callanstime"); hcallanstime->Draw();c1.Update(); c1.cd(2); TH1F* hcallanstime0 = f->Get( "callanstime0" ); hcallanstime0->Draw();c1.Update(); c1.cd(3); TH1F* hcallanstime51 = f->Get( "callanstime51" ); hcallanstime51->Draw();c1.Update(); c1.cd(4); TH1F* hcallanstime451 = f->Get( "callanstime451" ); hcallanstime451->Draw();c1.Update(); c1->Print("h1.ps(","ps"); c1.Clear(); c1.Divide(2,2); c1.cd(1); TH1F *hcell = f->Get("cell"); hcell->Draw();c1.Update(); c1.cd(2); TH1F *hcalltype = f->Get("calltype"); hcalltype->Draw();c1.Update(); c1->Print("h1.ps(","ps"); c1.Clear(); c1.Divide(2,2); c1.cd(1); TH1F* hpriortime1 = f->Get( "priortime1" ); hpriortime1->Draw();c1.Update(); c1.cd(2); TH1F* hpriortime1_0 = f->Get( "priortime1_0" ); hpriortime1_0->Draw();c1.Update(); c1.cd(3); TH1F* hpriortime1_51 = f->Get( "priortime1_51" ); hpriortime1_51->Draw();c1.Update(); c1.cd(4); TH1F* hpriortime1_451 = f->Get( "priortime1_451" ); hpriortime1_451->Draw();c1.Update(); c1->Print("h1.ps(","ps"); c1.Clear(); c1.Divide(2,2); c1.cd(1); callhr_15->Draw();c1.Update(); c1.cd(2); callhr_15_1->Draw();c1.Update(); TH1F *h1 = callhr_15_1->Clone("h1"); h1->Divide(callhr_15); c1.cd(3); h1->Draw();c1.Update(); c1->Print("h1.ps(","ps"); c1.Clear(); c1.Divide(2,2); c1.cd(1); callhr_60->Draw();c1.Update(); c1.cd(2); callhr_60_1->Draw();c1.Update(); TH1F *h2 = callhr_60_1->Clone("h2"); h2->Divide(callhr_60); c1.cd(3); h2->Draw();c1.Update(); c1->Print("h1.ps(","ps"); c1.Clear(); c1.Divide(2,2); c1.cd(1); callhr_120->Draw();c1.Update(); c1.cd(2); callhr_120_1->Draw();c1.Update(); TH1F *h3 = callhr_120_1->Clone("h3"); h3->Divide(callhr_120); c1.cd(3); h3->Draw();c1.Update(); c1->Print("h1.ps)","ps"); c1.Clear(); //c1.cd(); //ps.Close(); }