void trak_effect_1T (){ TCanvas *c1=new TCanvas("c1","",200,20,600,400); c1->SetFillColor(0); //For 0.35 cone size Int_t n=10; //0 GeV Double_t se1[10]={0.455209,0.740371,0.879024,0.942011,0.970181,0.983226,0.989592,0.992952,0.995018,0.996452}; Double_t sb1[10]={0.927593,0.845918,0.706696,0.529677,0.375488,0.2644 ,0.192244,0.146966,0.117558,0.0982063}; //1 GeV Double_t se2[10]={0.805008,0.93773,0.973589,0.985644,0.99093,0.993677,0.995343,0.996534,0.997477,0.99821}; Double_t sb2[10]={0.893914,0.756623 ,0.557395,0.374321,0.253138,0.17871,0.134495,0.10735,0.0900951,0.0786766 }; //2 GeV0 Double_t se3[10]={0.925047,0.977824,0.988433 ,0.992348,0.994603,0.996071,0.997204,0.998022,0.998616,0.999051}; Double_t sb3[10]={0.840594 ,0.627896,0.40729,0.258785,0.17619,0.129064,0.101765,0.0851419,0.0743987,0.0671606}; //3 geV Double_t se4[10]={0.964507,0.987316,0.992144,0.994542,0.996153,0.997305,0.998165,0.998717,0.999157,0.99945}; Double_t sb4[10]={0.772775,0.511106,0.306937,0.19409,0.135829,0.103655,0.084948,0.0734513,0.0659551,0.060848}; TGraph *gr1=new TGraph(n,sb4,se4); TGraph *gr2=new TGraph(n,sb3,se3); TGraph *gr3=new TGraph(n,sb2,se2); TGraph *gr4=new TGraph(n,sb1,se1); gr4->SetMarkerStyle(25); gr4->SetMarkerColor(2); gr4->SetLineStyle(2); gr4->SetLineColor(2); gr4->Draw("APL"); gr1->SetMarkerStyle(27); gr1->SetMarkerColor(4); gr1->SetLineStyle(3); gr1->SetLineColor(4); gr1->Draw("PL"); gr2->SetMarkerStyle(23); gr2->SetMarkerColor(8); gr2->SetLineStyle(3); gr2->SetLineColor(8); gr2->Draw("PL"); gr3->SetMarkerStyle(22); gr2->SetMarkerColor(1); gr3->SetLineStyle(5); gr2->SetLineColor(1); gr3->Draw("PL"); // Draw the Legend leg=new TLegend(0.7,0.7,0.9,0.9); leg->SetTextFont(72); leg->SetTextSize(0.05); leg->AddEntry(gr1,"\P_{T min}^{trk} #geq 3.0 GeV","pl"); leg->AddEntry(gr2,"\P_{T min}^{trk} #geq 2.0 GeV","pl"); leg->AddEntry(gr3,"\P_{T min}^{trk} #geq 1.0 GeV","pl"); leg->AddEntry(gr4,"\P_{T min}^{trk} #geq 0.0 GeV","pl"); leg->Draw(); leg->SetFillStyle(0); leg->SetBorderSize(0); }