{ //=========Macro generated from canvas: c2/JET resol //========= (Fri Jun 19 15:50:00 2009) by ROOT version5.20/00 TCanvas *c2 = new TCanvas("c2", "JET resol",342,203,597,450); gStyle->SetOptFit(1); gStyle->SetOptStat(0); c2->Range(-121.1613,0.8152498,874.2716,34.27834); c2->SetFillColor(0); c2->SetBorderMode(0); c2->SetBorderSize(2); c2->SetTickx(1); c2->SetTicky(1); c2->SetLeftMargin(0.13); c2->SetRightMargin(0.05); c2->SetTopMargin(0.05); c2->SetBottomMargin(0.13); c2->SetFrameFillStyle(0); c2->SetFrameBorderMode(0); c2->SetFrameFillStyle(0); c2->SetFrameBorderMode(0); TGraph *graph = new TGraph(15); graph->SetName("Graph"); graph->SetTitle(""); Int_t ci; // for color index setting ci = TColor::GetColor("#3333ff"); graph->SetFillColor(ci); graph->SetMarkerStyle(3); graph->SetPoint(0,5,19.11605); graph->SetPoint(1,15,25.27396); graph->SetPoint(2,25,22.45308); graph->SetPoint(3,35,18.30321); graph->SetPoint(4,45,17.1514); graph->SetPoint(5,55,15.73424); graph->SetPoint(6,65,14.17836); graph->SetPoint(7,85.94222,12.10961); graph->SetPoint(8,74.25089,13.14307); graph->SetPoint(9,110,11.51238); graph->SetPoint(10,130,10.83168); graph->SetPoint(11,160,9.330358); graph->SetPoint(12,200,8.666195); graph->SetPoint(13,260,8.09707); graph->SetPoint(14,750,6.974951); TH1 *Graph112 = new TH1F("Graph112","",100,0,824.5); Graph112->SetMinimum(5.165452); Graph112->SetMaximum(32.60519); Graph112->SetDirectory(0); Graph112->SetStats(0); Graph112->SetLineStyle(0); Graph112->SetMarkerStyle(20); Graph112->GetXaxis()->SetTitle("E_{T}^{MC} [GeV]"); Graph112->GetXaxis()->SetRange(2,100); Graph112->GetXaxis()->SetLabelFont(42); Graph112->GetXaxis()->SetLabelOffset(0.007); Graph112->GetXaxis()->SetTitleSize(0.05); Graph112->GetXaxis()->SetTitleOffset(0.9); Graph112->GetXaxis()->SetTitleFont(42); Graph112->GetYaxis()->SetTitle("#sigma(E_{T}^{rec}/E_{T}^{MC})_{fit}/_{fit}"); Graph112->GetYaxis()->SetLabelFont(42); Graph112->GetYaxis()->SetLabelOffset(0.007); Graph112->GetYaxis()->SetTitleSize(0.05); Graph112->GetYaxis()->SetTitleOffset(1.05); Graph112->GetYaxis()->SetTitleFont(42); Graph112->GetZaxis()->SetLabelFont(42); Graph112->GetZaxis()->SetLabelOffset(0.007); Graph112->GetZaxis()->SetTitleSize(0.05); Graph112->GetZaxis()->SetTitleFont(42); graph->SetHistogram(Graph112); TF1 *user = new TF1("user","sqrt(pow([0]/x,2)+pow([1]/sqrt(x),2)+pow([2],2))",10,800); user->SetFillColor(19); user->SetFillStyle(596); ci = TColor::GetColor("#3333ff"); user->SetMarkerColor(ci); user->SetMarkerStyle(3); ci = TColor::GetColor("#3333ff"); user->SetLineColor(ci); user->SetLineWidth(1); user->SetLineStyle(7); user->SetChisquare(7.655612); user->GetXaxis()->SetLabelFont(42); user->GetXaxis()->SetLabelOffset(0.007); user->GetXaxis()->SetTitleSize(0.05); user->GetXaxis()->SetTitleOffset(0.9); user->GetXaxis()->SetTitleFont(42); user->GetYaxis()->SetLabelFont(42); user->GetYaxis()->SetLabelOffset(0.007); user->GetYaxis()->SetTitleSize(0.05); user->GetYaxis()->SetTitleOffset(1.05); user->GetYaxis()->SetTitleFont(42); user->SetParameter(0,4.23081e-08); user->SetParError(0,75.81953); user->SetParLimits(0,0,0); user->SetParameter(1,102.0147); user->SetParError(1,2.576386); user->SetParLimits(1,0,0); user->SetParameter(2,5.687143); user->SetParError(2,0.6450141); user->SetParLimits(2,0,0); graph->GetListOfFunctions()->Add(user); TPaveStats *ptstats = new TPaveStats(0.5946463,0.760218,0.8642447,0.8855586,"brNDC"); ptstats->SetName("stats"); ptstats->SetBorderSize(1); ptstats->SetFillColor(19); ptstats->SetTextAlign(12); ptstats->SetTextFont(42); ptstats->SetOptStat(0); ptstats->SetOptFit(0); ptstats->Draw(); graph->GetListOfFunctions()->Add(ptstats); ptstats->SetParent(graph->GetListOfFunctions()); graph->Draw("ap"); TF1 *userDelphes = new TF1("userDelphes","sqrt(pow(102.0/sqrt(x),2)+pow(5.7,2))",7,1000); userDelphes->SetFillColor(19); userDelphes->SetFillStyle(0); userDelphes->SetMarkerStyle(20); userDelphes->SetLineWidth(1); userDelphes->SetLineStyle(7); userDelphes->GetXaxis()->SetLabelFont(42); userDelphes->GetXaxis()->SetLabelOffset(0.007); userDelphes->GetXaxis()->SetTitleSize(0.05); userDelphes->GetXaxis()->SetTitleOffset(0.9); userDelphes->GetXaxis()->SetTitleFont(42); userDelphes->GetYaxis()->SetLabelFont(42); userDelphes->GetYaxis()->SetLabelOffset(0.007); userDelphes->GetYaxis()->SetTitleSize(0.05); userDelphes->GetYaxis()->SetTitleOffset(1.05); userDelphes->GetYaxis()->SetTitleFont(42); userDelphes->Draw("same"); TF1 *userCMS = new TF1("userCMS","sqrt(pow(1.17*100/sqrt(x),2)+pow(0.042*100,2))",10,800); userCMS->SetFillColor(19); userCMS->SetFillStyle(0); userCMS->SetMarkerStyle(20); ci = TColor::GetColor("#3333ff"); userCMS->SetLineColor(ci); userCMS->SetLineWidth(1); userCMS->GetXaxis()->SetLabelFont(42); userCMS->GetXaxis()->SetLabelOffset(0.007); userCMS->GetXaxis()->SetTitleSize(0.05); userCMS->GetXaxis()->SetTitleOffset(0.9); userCMS->GetXaxis()->SetTitleFont(42); userCMS->GetYaxis()->SetLabelFont(42); userCMS->GetYaxis()->SetLabelOffset(0.007); userCMS->GetYaxis()->SetTitleSize(0.05); userCMS->GetYaxis()->SetTitleOffset(1.05); userCMS->GetYaxis()->SetTitleFont(42); userCMS->Draw("same"); TPaveText *pt = new TPaveText(0.5440613,0.5081967,0.6954023,0.557377,"brNDC"); pt->SetBorderSize(0); pt->SetFillColor(10); pt->SetTextFont(42); pt->SetTextSize(0.04098361); TText *text = pt->AddText("Events: pp #rightarrow gg "); pt->Draw(); pt = new TPaveText(0.6080306,0.3569482,0.7590822,0.4059946,"brNDC"); pt->SetBorderSize(0); pt->SetFillColor(10); pt->SetTextFont(42); pt->SetTextSize(0.04098361); text = pt->AddText("MG/ME + Pythia + Delphes"); pt->Draw(); pt = new TPaveText(0.6398467,0.431694,0.7911877,0.4808743,"brNDC"); pt->SetBorderSize(0); pt->SetFillColor(10); pt->SetTextFont(42); pt->SetTextSize(0.04098361); text = pt->AddText("MidPoint cone algorithm, #Delta R=0.7"); pt->Draw(); TLegend *leg = new TLegend(0.1988528,0.6594005,0.8986616,0.9073569,NULL,"brNDC"); leg->SetBorderSize(0); leg->SetTextFont(62); leg->SetLineColor(1); leg->SetLineStyle(1); leg->SetLineWidth(1); leg->SetFillColor(10); leg->SetFillStyle(1001); TLegendEntry *entry=leg->AddEntry("userCMS","CMS resolution","l"); ci = TColor::GetColor("#3333ff"); entry->SetLineColor(ci); entry->SetLineStyle(1); entry->SetLineWidth(1); entry->SetMarkerColor(1); entry->SetMarkerStyle(21); entry->SetMarkerSize(1); entry=leg->AddEntry("userDelphes","Delphes resolution: #frac{#sigma(E_{T}^{rec}/E_{T}^{MC})}{} = #frac{102.0}{#sqrt{E_{T}^{MC}}} #oplus 5.7","l"); entry->SetLineColor(1); entry->SetLineStyle(7); entry->SetLineWidth(1); entry->SetMarkerColor(1); entry->SetMarkerStyle(21); entry->SetMarkerSize(1); leg->Draw(); c2->Modified(); c2->cd(); c2->SetSelected(c2); }