void Result(){ TCanvas *c1=new TCanvas("c1","",200,20,600,400); c1->SetFillColor(0); Int_t n=11,m=4; //for f=1.0 case Double_t x1[11]={1.0,1.5,2.0,2.5,3.0,3.5,4.0,4.5,5.0,5.5,6.0}; Double_t y1[11]={0.010,0.060,0.350,1.9,2.8,9.2,28.0,74.0,139.0,390.0, 1000.0}; Double_t x2[11]={1.0,1.5,2.0,2.5,3.0,3.5,4.0,4.5,5.0,5.5,6.0}; Double_t y2[11]={0.008,0.054,0.180,0.800,1.6,7.1,15.0,33.0,123.0,357.0,920.0}; //for f=0.5 case Double_t x3[4]={1.0,3.0,4.0,5.0}; Double_t y3[4]={0.050,9.4,180,1000}; //Draw Lines for Differen Pt Cut regions TGraph *gr1=new TGraph(n,x1,y1); TGraph *gr2=new TGraph(n,x2,y2); TGraph *gr3=new TGraph(m,x3,y3); gr1->SetMarkerStyle(24); gr1->SetMarkerColor(8); gr1->SetLineStyle(3); gr1->SetLineColor(8); gr1->Draw("AP"); gr2->SetMarkerStyle(23); gr2->SetMarkerColor(8); gr2->SetLineStyle(3); gr2->SetLineColor(8); gr2->Draw("P"); //for f=0.5 case gr3->SetMarkerStyle(27); gr3->SetMarkerColor(4); gr3->SetLineStyle(3); gr3->SetLineColor(4); gr3->Draw("P"); // Draw the Legend leg=new TLegend(0.7,0.7,0.9,0.9); leg->SetTextFont(72); leg->SetTextSize(0.05); leg->AddEntry(gr1,"f=1.0","pl"); leg->AddEntry(gr2,"#eta <|1.5|, f=1.0","pl"); leg->AddEntry(gr3,"f=0.5","pl"); leg->Draw(); leg->SetFillStyle(0); leg->SetBorderSize(0); }