{ gROOT->SetStyle("Plain"); TLatex lx; c1 = new TCanvas("c1"," - ",200,10,400,400); // c1->SetOptStat("0000000"); not property of c1 Float_t ptot[8] = {2.5, 5.0, 10.0, 20.0, 8, 10}; Float_t resx_perf[8] = { 102, 54, 26, 13, 260, 260}; Float_t resx_20perc[8] = { 121, 71, 32, 18, 280, 280}; Float_t resx_50100[8] = { 714, 354, 160, 69, 300, 300}; Float_t resx_strt[8] = { 720, 356, 160, 81, 320, 320}; frame = new TH2F("frame","y resolution vs ptotal",10,0.,21.,10,0.,400.); //frame->SetOptStat("0000000"); frame->Draw(); lx.SetTextSize(0.04); lx.DrawLatex(11,255,"p = p_{original}"); lx.DrawLatex(11,275,"p = p #pm 20%"); lx.DrawLatex(11,295,"p_{x,y,z} = 50,50,100 GeV"); lx.DrawLatex(11,315,"straight-line fit"); lx.DrawLatex(8,-35,"p_{total} (GeV)"); lx.DrawLatex(-2,-40,"0 #mum"); for (int i=0;i<3;i++) { TLine *line1 = new TLine(ptot[i], resx_perf[i], ptot[i+1], resx_perf[i+1]); line1->SetLineWidth(3); line1->SetLineColor(2); line1->Draw(); } TLine *line1a = new TLine(ptot[4], resx_perf[4], ptot[4+1], resx_perf[4+1]); line1a->SetLineWidth(3); line1a->SetLineColor(2); line1a->Draw(); for (int i=0;i<3;i++) { TLine *line2 = new TLine(ptot[i], resx_20perc[i], ptot[i+1], resx_20perc[i+1]); line2->SetLineWidth(3); line2->SetLineColor(3); line2->Draw(); } TLine *line2a = new TLine(ptot[4], resx_20perc[4], ptot[4+1], resx_20perc[4+1]); line2a->SetLineWidth(3); line2a->SetLineColor(3); line2a->Draw(); for (int i=0;i<3;i++) { TLine *line3 = new TLine(ptot[i], resx_50100[i], ptot[i+1], resx_50100[i+1]); line3->SetLineWidth(3); line3->SetLineColor(4); line3->Draw(); } TLine *line3a = new TLine(ptot[4], resx_50100[4], ptot[4+1], resx_50100[4+1]); line3a->SetLineWidth(3); line3a->SetLineColor(4); line3a->Draw(); for (int i=0;i<3;i++) { TLine *line4 = new TLine(ptot[i], resx_strt[i], ptot[i+1], resx_strt[i+1]); line4->SetLineWidth(1); line4->SetLineColor(1); line4->Draw(); } TLine *line4a = new TLine(ptot[4], resx_strt[4], ptot[4+1], resx_strt[4+1]); line4a->SetLineWidth(1); line4a->SetLineColor(1); line4a->Draw(); }