{ gROOT->Reset(); gStyle.SetPalette(1); //1-colour 8-black-white plots = new TCanvas("plots","00B", 600,0,750,500); plots->SetHighLightColor(10); plots->SetFillColor(10); plots->Divide(3,2); pad=(TPad*)gROOT->FindObject("plots_1"); pad=(TPad*)gROOT->FindObject("plots_2"); pad=(TPad*)gROOT->FindObject("plots_3"); pad=(TPad*)gROOT->FindObject("plots_4"); pad=(TPad*)gROOT->FindObject("plots_5"); plots_1->SetLeftMargin(.2); plots_2->SetLeftMargin(.2); plots_3->SetLeftMargin(.2); plots_4->SetLeftMargin(.2); plots_5->SetLeftMargin(.2); plots_1->SetRightMargin(.2); plots_2->SetRightMargin(.2); plots_3->SetRightMargin(.2); plots_4->SetRightMargin(.2); plots_5->SetRightMargin(.2); plots_1->SetTopMargin(.15); plots_2->SetTopMargin(.15); plots_3->SetTopMargin(.15); plots_4->SetTopMargin(.15); plots_5->SetTopMargin(.15); plots_1->SetBottomMargin(.2); plots_2->SetBottomMargin(.2); plots_3->SetBottomMargin(.2); plots_4->SetBottomMargin(.2); plots_5->SetBottomMargin(.2); TFile f1("pt_phi_z_20_inY.root"); plots.cd(1); hist21->Draw("colz"); hist21->SetStats(kFALSE); //varphi to male phi ale root tego nie interpretuje wlasciwie hist21->GetXaxis()->SetTitle("#phi [deg.]"); hist21->GetYaxis()->SetTitle("p_{T} [GeV/c]"); hist21->GetXaxis()->SetTitleSize(0.09); hist21->GetYaxis()->SetTitleSize(0.09); hist21->GetYaxis()->SetTitleOffset(0.8); hist21->GetXaxis()->SetTitleOffset(0.8); hist21->GetXaxis()->CenterTitle(kTRUE); hist21->GetYaxis()->CenterTitle(kTRUE); hist21->SetTitle(""); TText *t1 = new TText(); t1->SetTextColor(1); t1->SetTextSize(0.09); t1->DrawText(-100,1.55,"20 AGeV"); TLine *granica = new TLine(-180, 1.5, 180, 1.5); granica->Draw("same"); TF1 *fun1 = new TF1("fun1","1/(x*x/2500)-0.3",-180,180); fun1->SetLineWidth(3); fun1->Draw("same"); TFile f2("pt_phi_z_30_inY.root"); plots.cd(2); hist21->Draw("colz"); hist21->SetStats(kFALSE); //varphi to male phi ale root tego nie interpretuje wlasciwie hist21->GetXaxis()->SetTitle("#phi [deg.]"); hist21->GetYaxis()->SetTitle("p_{T} [GeV/c]"); hist21->GetXaxis()->SetTitleSize(0.09); hist21->GetYaxis()->SetTitleSize(0.09); hist21->GetYaxis()->SetTitleOffset(0.8); hist21->GetXaxis()->SetTitleOffset(0.8); hist21->GetXaxis()->CenterTitle(kTRUE); hist21->GetYaxis()->CenterTitle(kTRUE); hist21->SetTitle(""); TText *t2 = new TText(); t2->SetTextColor(1); t2->SetTextSize(0.09); t2->DrawText(-100,1.55,"30 AGeV"); TLine *granica = new TLine(-180, 1.5, 180, 1.5); granica->Draw("same"); fun1->Draw("same"); TFile f3("pt_phi_z_40_inY.root"); plots.cd(3); hist21->Draw("colz"); hist21->SetStats(kFALSE); hist21->GetXaxis()->SetTitle("#phi [deg.]"); hist21->GetYaxis()->SetTitle("p_{T} [GeV/c]"); hist21->GetXaxis()->SetTitleSize(0.09); hist21->GetYaxis()->SetTitleSize(0.09); hist21->GetYaxis()->SetTitleOffset(0.8); hist21->GetXaxis()->SetTitleOffset(0.8); hist21->GetXaxis()->CenterTitle(kTRUE); hist21->GetYaxis()->CenterTitle(kTRUE); hist21->SetTitle(""); TText *t3 = new TText(); t3->SetTextColor(1); t3->SetTextSize(0.09); t3->DrawText(-100,1.55,"40 AGeV"); fun1->Draw("same"); TFile f4("pt_phi_z_80_inY.root"); plots.cd(4); hist21->Draw("colz"); hist21->SetStats(kFALSE); hist21->GetXaxis()->SetTitle("#phi [deg.]"); hist21->GetYaxis()->SetTitle("p_{T} [GeV/c]"); hist21->GetXaxis()->SetTitleSize(0.09); hist21->GetYaxis()->SetTitleSize(0.09); hist21->GetYaxis()->SetTitleOffset(0.8); hist21->GetXaxis()->SetTitleOffset(0.8); hist21->GetXaxis()->CenterTitle(kTRUE); hist21->GetYaxis()->CenterTitle(kTRUE); hist21->SetTitle(""); TText *t4 = new TText(); t4->SetTextColor(1); t4->SetTextSize(0.09); t4->DrawText(-100,1.55,"80 AGeV"); fun1->Draw("same"); TFile f5("pt_phi_z_158_inY.root"); plots.cd(5); hist21->Draw("colz"); hist21->SetStats(kFALSE); hist21->GetXaxis()->SetTitle("#phi [deg.]"); hist21->GetYaxis()->SetTitle("p_{T} [GeV/c]"); hist21->GetXaxis()->SetTitleSize(0.09); hist21->GetYaxis()->SetTitleSize(0.09); hist21->GetYaxis()->SetTitleOffset(0.8); hist21->GetXaxis()->SetTitleOffset(0.8); hist21->GetXaxis()->CenterTitle(kTRUE); hist21->GetYaxis()->CenterTitle(kTRUE); hist21->SetTitle(""); TText *t5 = new TText(); t5->SetTextColor(1); t5->SetTextSize(0.09); t5->DrawText(-100,1.55,"158 AGeV"); fun1->Draw("same"); }