{ gROOT->LoadMacro("AtlasUtils.C"); c1 = new TCanvas("c1","A Simple Graph",0,0,700,500); c1->SetFillStyle(4100); c1->SetGrid(); // leg = new TLegend(0.20,0.78,0.92,0.93); leg->SetHeader("Toy MC : Loc_#phi plot, B=2 Tesla, -1<#eta<+1, Landau fluctuation"); // Int_t nplot = 2; for (int iplot=0; iplotSetTitle(); phi_dist->GetXaxis()->SetTitle("loc-#phi [degree]"); phi_dist->GetXaxis()->SetTitleOffset(1.1); phi_dist->GetYaxis()->SetTitle(""); phi_dist->GetYaxis()->SetTitleOffset(1.3); phi_dist->SetMinimum(1.00); phi_dist->SetMaximum(1.50); phi_dist->SetMarkerSize(0.8); if(iplot==0) phi_dist->SetMarkerColor(2); if(iplot==1) phi_dist->SetMarkerColor(4); if(iplot==2) phi_dist->SetMarkerColor(3); if(iplot==3) phi_dist->SetMarkerColor(1); if(iplot==0) phi_dist->SetLineColor(2); if(iplot==1) phi_dist->SetLineColor(4); if(iplot==2) phi_dist->SetLineColor(3); if(iplot==3) phi_dist->SetLineColor(1); if(iplot==0) phi_dist->Draw("PZ"); if(iplot!=0) phi_dist->Draw("SAME PZ"); if(iplot==0) leg->AddEntry(phi_dist,"Induced Current Model w/new pulse shape (tot 25ns)","p"); if(iplot==1) leg->AddEntry(phi_dist,"SCT Digitization Model w/old pulse shape (tot 30ns)","p"); } // leg->SetBorderSize(2); leg->SetFillColor(10); leg->SetTextSize(0.035); leg->Draw(); // c1.Print("LA_phi.pdf"); }