{ //=========Macro generated from canvas: c2/ //========= (Mon May 9 20:45:07 2011) by ROOT version5.28/00b TCanvas *c2 = new TCanvas("c2", "",10,32,700,500); gStyle->SetOptStat(0); gStyle->SetOptTitle(0); c2->Range(-4.496202,-0.2227848,3.605063,1.16962); c2->SetFillColor(0); c2->SetBorderMode(0); c2->SetBorderSize(2); c2->SetTickx(1); c2->SetTicky(1); c2->SetLeftMargin(0.16); c2->SetRightMargin(0.05); c2->SetTopMargin(0.05); c2->SetBottomMargin(0.16); c2->SetFrameBorderMode(0); c2->SetFrameBorderMode(0); TH1F *hframe__2 = new TH1F("hframe__2","",1000,-3.2,3.2); hframe__2->SetMinimum(0); hframe__2->SetMaximum(1.1); hframe__2->SetDirectory(0); hframe__2->SetStats(0); hframe__2->SetLineWidth(2); hframe__2->SetMarkerStyle(20); hframe__2->SetMarkerSize(1.2); hframe__2->GetXaxis()->SetTitle("#font[42]{#eta}"); hframe__2->GetXaxis()->SetLabelFont(42); hframe__2->GetXaxis()->SetLabelSize(0.05); hframe__2->GetXaxis()->SetTitleSize(0.05); hframe__2->GetXaxis()->SetTitleOffset(1.4); hframe__2->GetXaxis()->SetTitleFont(42); hframe__2->GetYaxis()->SetTitle("efficiency"); hframe__2->GetYaxis()->SetLabelFont(42); hframe__2->GetYaxis()->SetLabelSize(0.05); hframe__2->GetYaxis()->SetTitleSize(0.05); hframe__2->GetYaxis()->SetTitleOffset(1.4); hframe__2->GetYaxis()->SetTitleFont(42); hframe__2->GetZaxis()->SetLabelFont(42); hframe__2->GetZaxis()->SetLabelSize(0.05); hframe__2->GetZaxis()->SetTitleSize(0.05); hframe__2->GetZaxis()->SetTitleFont(42); hframe__2->Draw(" "); TGraphAsymmErrors *grae = new TGraphAsymmErrors(24); grae->SetName(""); grae->SetTitle(""); grae->SetFillColor(2); grae->SetFillStyle(3001); grae->SetLineColor(2); grae->SetMarkerColor(2); grae->SetMarkerStyle(24); grae->SetMarkerSize(1.2); grae->SetPoint(0,-2.338333,1); grae->SetPointError(0,0.1016667,0.1016667,0.1513615,0); grae->SetPoint(1,-2.135,0.8461538); grae->SetPointError(1,0.1016667,0.1016667,0.1123372,0.07974868); grae->SetPoint(2,-1.931667,1); grae->SetPointError(2,0.1016667,0.1016667,0.0586742,0); grae->SetPoint(3,-1.728333,0.9565217); grae->SetPointError(3,0.1016667,0.1016667,0.05875471,0.03087939); grae->SetPoint(4,-1.525,0.6428571); grae->SetPointError(4,0.1016667,0.1016667,0.09085225,0.08444103); grae->SetPoint(5,-1.321667,0.9473684); grae->SetPointError(5,0.1016667,0.1016667,0.06958997,0.03713847); grae->SetPoint(6,-1.118333,0.6818182); grae->SetPointError(6,0.1016667,0.1016667,0.1005219,0.09028236); grae->SetPoint(7,-0.915,0.875); grae->SetPointError(7,0.1016667,0.1016667,0.06535089,0.05016751); grae->SetPoint(8,-0.7116667,0.6); grae->SetPointError(8,0.1016667,0.1016667,0.08879988,0.08459887); grae->SetPoint(9,-0.5083333,0.7777778); grae->SetPointError(9,0.1016667,0.1016667,0.07279093,0.06290535); grae->SetPoint(10,-0.305,0.6216216); grae->SetPointError(10,0.1016667,0.1016667,0.0798546,0.07566595); grae->SetPoint(11,-0.1016667,0.6896552); grae->SetPointError(11,0.1016667,0.1016667,0.0874693,0.07922055); grae->SetPoint(12,0.1016667,0.7692308); grae->SetPointError(12,0.1016667,0.1016667,0.08673736,0.07368395); grae->SetPoint(13,0.305,0.8571429); grae->SetPointError(13,0.1016667,0.1016667,0.0731568,0.05678604); grae->SetPoint(14,0.5083333,0.8571429); grae->SetPointError(14,0.1016667,0.1016667,0.0731568,0.05678604); grae->SetPoint(15,0.7116667,0.8095238); grae->SetPointError(15,0.1016667,0.1016667,0.09220302,0.07374857); grae->SetPoint(16,0.915,0.7407407); grae->SetPointError(16,0.1016667,0.1016667,0.08743373,0.07619852); grae->SetPoint(17,1.118333,0.7368421); grae->SetPointError(17,0.1016667,0.1016667,0.1044341,0.08909409); grae->SetPoint(18,1.321667,1); grae->SetPointError(18,0.1016667,0.1016667,0.04165758,0); grae->SetPoint(19,1.525,0.826087); grae->SetPointError(19,0.1016667,0.1016667,0.08586639,0.06796267); grae->SetPoint(20,1.728333,0.8181818); grae->SetPointError(20,0.1016667,0.1016667,0.08892864,0.07073939); grae->SetPoint(21,1.931667,0.9); grae->SetPointError(21,0.1016667,0.1016667,0.07943508,0.05357914); grae->SetPoint(22,2.135,0.8823529); grae->SetPointError(22,0.1016667,0.1016667,0.090915,0.06236242); grae->SetPoint(23,2.338333,1); grae->SetPointError(23,0.1016667,0.1016667,0.1337716,0); TH1F *Graph3 = new TH1F("Graph3","",100,-2.928,2.928); Graph3->SetMinimum(0.4623201); Graph3->SetMaximum(1.04888); Graph3->SetDirectory(0); Graph3->SetStats(0); Graph3->SetLineWidth(2); Graph3->SetMarkerStyle(20); Graph3->SetMarkerSize(1.2); Graph3->GetXaxis()->SetLabelFont(42); Graph3->GetXaxis()->SetLabelSize(0.05); Graph3->GetXaxis()->SetTitleSize(0.05); Graph3->GetXaxis()->SetTitleOffset(1.4); Graph3->GetXaxis()->SetTitleFont(42); Graph3->GetYaxis()->SetLabelFont(42); Graph3->GetYaxis()->SetLabelSize(0.05); Graph3->GetYaxis()->SetTitleSize(0.05); Graph3->GetYaxis()->SetTitleOffset(1.4); Graph3->GetYaxis()->SetTitleFont(42); Graph3->GetZaxis()->SetLabelFont(42); Graph3->GetZaxis()->SetLabelSize(0.05); Graph3->GetZaxis()->SetTitleSize(0.05); Graph3->GetZaxis()->SetTitleFont(42); grae->SetHistogram(Graph3); grae->Draw("e3"); grae = new TGraphAsymmErrors(24); grae->SetName(""); grae->SetTitle(""); grae->SetFillColor(3); grae->SetFillStyle(3001); grae->SetLineColor(2); grae->SetMarkerColor(2); grae->SetMarkerStyle(24); grae->SetMarkerSize(1.2); grae->SetPoint(0,-2.338333,0.7752475); grae->SetPointError(0,0.1016667,0.1016667,0.01331403,0.01295075); grae->SetPoint(1,-2.135,0.9364992); grae->SetPointError(1,0.1016667,0.1016667,0.005896318,0.005574506); grae->SetPoint(2,-1.931667,0.960251); grae->SetPointError(2,0.1016667,0.1016667,0.004129941,0.003872668); grae->SetPoint(3,-1.728333,0.9653929); grae->SetPointError(3,0.1016667,0.1016667,0.003587075,0.003362921); grae->SetPoint(4,-1.525,0.945414); grae->SetPointError(4,0.1016667,0.1016667,0.004491966,0.004271105); grae->SetPoint(5,-1.321667,0.9504587); grae->SetPointError(5,0.1016667,0.1016667,0.004271321,0.004050562); grae->SetPoint(6,-1.118333,0.8011869); grae->SetPointError(6,0.1016667,0.1016667,0.008305073,0.008134728); grae->SetPoint(7,-0.915,0.7630865); grae->SetPointError(7,0.1016667,0.1016667,0.008443251,0.008307144); grae->SetPoint(8,-0.7116667,0.6980455); grae->SetPointError(8,0.1016667,0.1016667,0.009224511,0.009119116); grae->SetPoint(9,-0.5083333,0.797955); grae->SetPointError(9,0.1016667,0.1016667,0.008204336,0.008041734); grae->SetPoint(10,-0.305,0.7474138); grae->SetPointError(10,0.1016667,0.1016667,0.009094322,0.008952046); grae->SetPoint(11,-0.1016667,0.6143719); grae->SetPointError(11,0.1016667,0.1016667,0.0114431,0.01135942); grae->SetPoint(12,0.1016667,0.6125519); grae->SetPointError(12,0.1016667,0.1016667,0.01113537,0.0110575); grae->SetPoint(13,0.305,0.7469371); grae->SetPointError(13,0.1016667,0.1016667,0.009008379,0.008869198); grae->SetPoint(14,0.5083333,0.8208417); grae->SetPointError(14,0.1016667,0.1016667,0.007765977,0.007594392); grae->SetPoint(15,0.7116667,0.6998355); grae->SetPointError(15,0.1016667,0.1016667,0.009351131,0.009241507); grae->SetPoint(16,0.915,0.7705287); grae->SetPointError(16,0.1016667,0.1016667,0.008212705,0.008077362); grae->SetPoint(17,1.118333,0.8059024); grae->SetPointError(17,0.1016667,0.1016667,0.007773142,0.007618706); grae->SetPoint(18,1.321667,0.9515963); grae->SetPointError(18,0.1016667,0.1016667,0.004083842,0.003876807); grae->SetPoint(19,1.525,0.9322157); grae->SetPointError(19,0.1016667,0.1016667,0.004907552,0.004697262); grae->SetPoint(20,1.728333,0.9461436); grae->SetPointError(20,0.1016667,0.1016667,0.004218515,0.00402046); grae->SetPoint(21,1.931667,0.9556008); grae->SetPointError(21,0.1016667,0.1016667,0.004285794,0.004037909); grae->SetPoint(22,2.135,0.9402985); grae->SetPointError(22,0.1016667,0.1016667,0.005632044,0.00531865); grae->SetPoint(23,2.338333,0.7795527); grae->SetPointError(23,0.1016667,0.1016667,0.01372388,0.01332705); TH1F *Graph4 = new TH1F("Graph4","",100,-2.928,2.928); Graph4->SetMinimum(0.5646826); Graph4->SetMaximum(1.00549); Graph4->SetDirectory(0); Graph4->SetStats(0); Graph4->SetLineWidth(2); Graph4->SetMarkerStyle(20); Graph4->SetMarkerSize(1.2); Graph4->GetXaxis()->SetLabelFont(42); Graph4->GetXaxis()->SetLabelSize(0.05); Graph4->GetXaxis()->SetTitleSize(0.05); Graph4->GetXaxis()->SetTitleOffset(1.4); Graph4->GetXaxis()->SetTitleFont(42); Graph4->GetYaxis()->SetLabelFont(42); Graph4->GetYaxis()->SetLabelSize(0.05); Graph4->GetYaxis()->SetTitleSize(0.05); Graph4->GetYaxis()->SetTitleOffset(1.4); Graph4->GetYaxis()->SetTitleFont(42); Graph4->GetZaxis()->SetLabelFont(42); Graph4->GetZaxis()->SetLabelSize(0.05); Graph4->GetZaxis()->SetTitleSize(0.05); Graph4->GetZaxis()->SetTitleFont(42); grae->SetHistogram(Graph4); grae->Draw("p"); TLatex * tex = new TLatex(0.65,0.55,"ATLAS"); tex->SetNDC(); tex->SetTextFont(72); tex->SetLineWidth(2); tex->Draw(); tex = new TLatex(0.77,0.55,"Preliminary"); tex->SetNDC(); tex->SetTextFont(42); tex->SetLineWidth(2); tex->Draw(); tex = new TLatex(0.7,0.5,"CB muons"); tex->SetNDC(); tex->SetTextFont(42); tex->SetLineWidth(2); tex->Draw(); TMarker *marker = new TMarker(0.676,0.45,24); marker->SetMarkerColor(2); marker->SetMarkerStyle(24); marker->SetMarkerSize(1.3); marker->Draw(); tex = new TLatex(0.7,0.45,"Data 2010"); tex->SetNDC(); tex->SetTextAlign(12); tex->SetTextFont(42); tex->SetLineWidth(2); tex->Draw(); tex = new TLatex(0.7,0.38,"#sqrt{s}= 7 TeV"); tex->SetNDC(); tex->SetTextFont(42); tex->SetLineWidth(2); tex->Draw(); c2->Modified(); c2->cd(); c2->SetSelected(c2); }