void PlotPointingResG() { //=========Macro generated from canvas: c/c //========= (Thu Jun 2 10:05:37 2022) by ROOT version 6.20/06 TCanvas *c = new TCanvas("c", "c",0,0,1600,1200); gStyle->SetOptStat(0); c->Range(-87.50001,-37.5,787.5,337.5); c->SetFillColor(0); c->SetBorderMode(0); c->SetBorderSize(2); c->SetFrameBorderMode(0); c->SetFrameBorderMode(0); TH2F *hpx__1 = new TH2F("hpx__1","",10,0,700,10,0,50); hpx__1->SetStats(0); Int_t ci; // for color index setting TColor *color; // for color definition with alpha ci = TColor::GetColor("#000099"); hpx__1->SetLineColor(ci); hpx__1->GetXaxis()->SetTitle("|z_{origin}|"); hpx__1->GetXaxis()->SetLabelFont(42); hpx__1->GetXaxis()->SetTitleOffset(1); hpx__1->GetXaxis()->SetTitleFont(42); hpx__1->GetYaxis()->SetTitle("Pointing Resolution [ns]"); hpx__1->GetYaxis()->SetLabelFont(42); hpx__1->GetYaxis()->SetTitleFont(42); hpx__1->GetZaxis()->SetLabelFont(42); hpx__1->GetZaxis()->SetTitleOffset(1); hpx__1->GetZaxis()->SetTitleFont(42); hpx__1->Draw(""); Double_t Graph0_fx3001[9] = { 9.937955, 29.87212, 49.86845, 69.81564, 89.82815, 109.8058, 196.1861, 381.9555, 671.8358}; Double_t Graph0_fy3001[9] = { 8.867156, 9.683333, 11.34849, 14.63945, 17.78856, 22.00575, 38.50383, 81.32578, 130.0786}; Double_t Graph0_felx3001[9] = { 9.937955, 9.872117, 9.868451, 9.81564, 9.828149, 9.805843, 76.18607, 81.95552, //171.8358}; 30.0}; Double_t Graph0_fely3001[9] = { 0.09771018, 0.1033482, 0.1409041, 0.1698742, 0.2209858, 0.2948614, 0.2335758, 0.7579699, 5.241974}; Double_t Graph0_fehx3001[9] = { 10.06205, 10.12788, 10.13155, 10.18436, 10.17185, 10.19416, 103.8139, 118.0445, 1328.164}; Double_t Graph0_fehy3001[9] = { 0.09771018, 0.1033482, 0.1409041, 0.1698742, 0.2209858, 0.2948614, 0.2335758, 0.7579699, 5.241974}; TGraphAsymmErrors *grae = new TGraphAsymmErrors(9,Graph0_fx3001,Graph0_fy3001,Graph0_felx3001,Graph0_fehx3001,Graph0_fely3001,Graph0_fehy3001); grae->SetName("Graph0"); grae->SetTitle("Graph"); grae->SetFillStyle(1000); ci = TColor::GetColor("#00ff00"); grae->SetLineColor(ci); grae->SetLineWidth(2); ci = TColor::GetColor("#00ff00"); grae->SetMarkerColor(ci); grae->SetMarkerStyle(26); grae->SetMarkerSize(2); TH1F *Graph_Graph03001 = new TH1F("Graph_Graph03001","Graph",100,0,2200); Graph_Graph03001->SetMinimum(7.892501); Graph_Graph03001->SetMaximum(147.9756); Graph_Graph03001->SetDirectory(0); Graph_Graph03001->SetStats(0); ci = TColor::GetColor("#000099"); Graph_Graph03001->SetLineColor(ci); Graph_Graph03001->GetXaxis()->SetLabelFont(42); Graph_Graph03001->GetXaxis()->SetTitleOffset(1); Graph_Graph03001->GetXaxis()->SetTitleFont(42); Graph_Graph03001->GetYaxis()->SetLabelFont(42); Graph_Graph03001->GetYaxis()->SetTitleFont(42); Graph_Graph03001->GetZaxis()->SetLabelFont(42); Graph_Graph03001->GetZaxis()->SetTitleOffset(1); Graph_Graph03001->GetZaxis()->SetTitleFont(42); grae->SetHistogram(Graph_Graph03001); grae->Draw("p "); Double_t Graph1_fx3002[9] = { 9.888295, 30.08324, 50.19024, 69.47225, 89.88574, 109.872, 197.5157, 386.4686, 691.1613}; Double_t Graph1_fy3002[9] = { 8.476352, 9.233261, 9.687838, 13.78784, 16.43418, 20.66521, 35.95679, 78.4043, 111.7773}; Double_t Graph1_felx3002[9] = { 9.888295, 10.08324, 10.19024, 9.472251, 9.885742, 9.871962, 77.51574, 86.4686, 191.1613}; Double_t Graph1_fely3002[9] = { 0.3440555, 0.3688292, 0.4893596, 0.6775233, 0.8687703, 1.172827, 0.9323272, 2.954664, 12.55094}; Double_t Graph1_fehx3002[9] = { 10.11171, 9.916756, 9.809763, 10.52775, 10.11426, 10.12804, 102.4843, 113.5314, 1308.839}; Double_t Graph1_fehy3002[9] = { 0.3440555, 0.3688292, 0.4893596, 0.6775233, 0.8687703, 1.172827, 0.9323272, 2.954664, 12.55094}; grae = new TGraphAsymmErrors(9,Graph1_fx3002,Graph1_fy3002,Graph1_felx3002,Graph1_fehx3002,Graph1_fely3002,Graph1_fehy3002); grae->SetName("Graph1"); grae->SetTitle("Graph"); grae->SetFillStyle(1000); ci = TColor::GetColor("#ffcc00"); grae->SetLineColor(ci); grae->SetLineWidth(2); ci = TColor::GetColor("#ffcc00"); grae->SetMarkerColor(ci); grae->SetMarkerStyle(26); grae->SetMarkerSize(2); TH1F *Graph_Graph13002 = new TH1F("Graph_Graph13002","Graph",100,0,2200); Graph_Graph13002->SetMinimum(7.319067); Graph_Graph13002->SetMaximum(135.9478); Graph_Graph13002->SetDirectory(0); Graph_Graph13002->SetStats(0); ci = TColor::GetColor("#000099"); Graph_Graph13002->SetLineColor(ci); Graph_Graph13002->GetXaxis()->SetLabelFont(42); Graph_Graph13002->GetXaxis()->SetTitleOffset(1); Graph_Graph13002->GetXaxis()->SetTitleFont(42); Graph_Graph13002->GetYaxis()->SetLabelFont(42); Graph_Graph13002->GetYaxis()->SetTitleFont(42); Graph_Graph13002->GetZaxis()->SetLabelFont(42); Graph_Graph13002->GetZaxis()->SetTitleOffset(1); Graph_Graph13002->GetZaxis()->SetTitleFont(42); grae->SetHistogram(Graph_Graph13002); grae->Draw("p "); Double_t Graph2_fx3003[9] = { 9.917465, 29.87278, 49.91042, 69.66424, 90.06757, 109.9282, 197.2432, 379.7816, 640.8798}; Double_t Graph2_fy3003[9] = { 11.42792, 11.7944, 13.05205, 16.93253, 18.76457, 24.42185, 41.33957, 77.37193, 95.42953}; Double_t Graph2_felx3003[9] = { 9.917465, 9.87278, 9.910419, 9.664242, 10.06757, 9.928182, 77.24323, 79.78162, 140.8798}; Double_t Graph2_fely3003[9] = { 0.4334913, 0.4069783, 0.4571548, 0.6214321, 0.7016827, 0.9087918, 0.6976486, 2.113806, 10.12993}; Double_t Graph2_fehx3003[9] = { 10.08253, 10.12722, 10.08958, 10.33576, 9.932433, 10.07182, 102.7568, 120.2184, 1359.12}; Double_t Graph2_fehy3003[9] = { 0.4334913, 0.4069783, 0.4571548, 0.6214321, 0.7016827, 0.9087918, 0.6976486, 2.113806, 10.12993}; grae = new TGraphAsymmErrors(9,Graph2_fx3003,Graph2_fy3003,Graph2_felx3003,Graph2_fehx3003,Graph2_fely3003,Graph2_fehy3003); grae->SetName("Graph2"); grae->SetTitle("Graph"); grae->SetFillStyle(1000); ci = TColor::GetColor("#ff00ff"); grae->SetLineColor(ci); grae->SetLineWidth(2); ci = TColor::GetColor("#ff00ff"); grae->SetMarkerColor(ci); grae->SetMarkerStyle(26); grae->SetMarkerSize(2); TH1F *Graph_Graph23003 = new TH1F("Graph_Graph23003","Graph",100,0,2200); Graph_Graph23003->SetMinimum(1.537928); Graph_Graph23003->SetMaximum(115.016); Graph_Graph23003->SetDirectory(0); Graph_Graph23003->SetStats(0); ci = TColor::GetColor("#000099"); Graph_Graph23003->SetLineColor(ci); Graph_Graph23003->GetXaxis()->SetLabelFont(42); Graph_Graph23003->GetXaxis()->SetTitleOffset(1); Graph_Graph23003->GetXaxis()->SetTitleFont(42); Graph_Graph23003->GetYaxis()->SetLabelFont(42); Graph_Graph23003->GetYaxis()->SetTitleFont(42); Graph_Graph23003->GetZaxis()->SetLabelFont(42); Graph_Graph23003->GetZaxis()->SetTitleOffset(1); Graph_Graph23003->GetZaxis()->SetTitleFont(42); grae->SetHistogram(Graph_Graph23003); grae->Draw("p "); Double_t Graph3_fx3004[9] = { 10.03375, 29.95203, 49.8698, 69.94994, 89.84646, 109.9119, 197.2787, 382.8711, 666.8239}; Double_t Graph3_fy3004[9] = { 10.91, 11.16239, 12.58377, 15.48338, 18.5939, 23.56102, 40.39932, 79.73661, 105.4832}; Double_t Graph3_felx3004[9] = { 10.03375, 9.952027, 9.869795, 9.949944, 9.846456, 9.911898, 77.27874, 82.87115, 166.8239}; Double_t Graph3_fely3004[9] = { 0.3041421, 0.2814657, 0.3520685, 0.4672338, 0.5683004, 0.8056514, 0.5859432, 1.828394, 9.185227}; Double_t Graph3_fehx3004[9] = { 9.966254, 10.04797, 10.1302, 10.05006, 10.15354, 10.0881, 102.7213, 117.1289, 1333.176}; Double_t Graph3_fehy3004[9] = { 0.3041421, 0.2814657, 0.3520685, 0.4672338, 0.5683004, 0.8056514, 0.5859432, 1.828394, 9.185227}; grae = new TGraphAsymmErrors(9,Graph3_fx3004,Graph3_fy3004,Graph3_felx3004,Graph3_fehx3004,Graph3_fely3004,Graph3_fehy3004); grae->SetName("Graph3"); grae->SetTitle("Graph"); grae->SetFillStyle(1000); ci = TColor::GetColor("#cc00ff"); grae->SetLineColor(ci); grae->SetLineWidth(2); ci = TColor::GetColor("#cc00ff"); grae->SetMarkerColor(ci); grae->SetMarkerStyle(26); grae->SetMarkerSize(2); TH1F *Graph_Graph33004 = new TH1F("Graph_Graph33004","Graph",100,0,2200); Graph_Graph33004->SetMinimum(0.1995977); Graph_Graph33004->SetMaximum(125.0747); Graph_Graph33004->SetDirectory(0); Graph_Graph33004->SetStats(0); ci = TColor::GetColor("#000099"); Graph_Graph33004->SetLineColor(ci); Graph_Graph33004->GetXaxis()->SetLabelFont(42); Graph_Graph33004->GetXaxis()->SetTitleOffset(1); Graph_Graph33004->GetXaxis()->SetTitleFont(42); Graph_Graph33004->GetYaxis()->SetLabelFont(42); Graph_Graph33004->GetYaxis()->SetTitleFont(42); Graph_Graph33004->GetZaxis()->SetLabelFont(42); Graph_Graph33004->GetZaxis()->SetTitleOffset(1); Graph_Graph33004->GetZaxis()->SetTitleFont(42); grae->SetHistogram(Graph_Graph33004); grae->Draw("p "); Double_t Graph4_fx3005[7] = { 9.719621, 29.19979, 48.6744, 68.21274, 87.75272, 107.3798, 129.9598}; Double_t Graph4_fy3005[7] = { 11.21073, 11.69251, 12.59044, 13.85909, 16.39805, 18.07808, 21.38061}; Double_t Graph4_felx3005[7] = { 9.719621, 9.199793, 8.674402, 8.212738, 7.752718, 7.379756, 9.959807}; Double_t Graph4_fely3005[7] = { 0.02316528, 0.0259716, 0.03735131, 0.06764235, 0.1541146, 0.3526359, 0.8877638}; Double_t Graph4_fehx3005[7] = { 10.28038, 10.80021, 11.3256, 11.78726, 12.24728, 12.62024, 30.0402}; Double_t Graph4_fehy3005[7] = { 0.02316528, 0.0259716, 0.03735131, 0.06764235, 0.1541146, 0.3526359, 0.8877638}; grae = new TGraphAsymmErrors(7,Graph4_fx3005,Graph4_fy3005,Graph4_felx3005,Graph4_fehx3005,Graph4_fely3005,Graph4_fehy3005); grae->SetName("Graph4"); grae->SetTitle("Graph"); grae->SetFillStyle(1000); grae->SetLineWidth(2); grae->SetMarkerStyle(20); grae->SetMarkerSize(2); TH1F *Graph_Graph43005 = new TH1F("Graph_Graph43005","Graph",100,0,330); Graph_Graph43005->SetMinimum(10.07948); Graph_Graph43005->SetMaximum(23.37646); Graph_Graph43005->SetDirectory(0); Graph_Graph43005->SetStats(0); ci = TColor::GetColor("#000099"); Graph_Graph43005->SetLineColor(ci); Graph_Graph43005->GetXaxis()->SetLabelFont(42); Graph_Graph43005->GetXaxis()->SetTitleOffset(1); Graph_Graph43005->GetXaxis()->SetTitleFont(42); Graph_Graph43005->GetYaxis()->SetLabelFont(42); Graph_Graph43005->GetYaxis()->SetTitleFont(42); Graph_Graph43005->GetZaxis()->SetLabelFont(42); Graph_Graph43005->GetZaxis()->SetTitleOffset(1); Graph_Graph43005->GetZaxis()->SetTitleFont(42); grae->SetHistogram(Graph_Graph43005); grae->Draw("p "); Double_t Graph5_fx3006[7] = { 9.774689, 29.4504, 49.06401, 68.67102, 88.19348, 108.2269, 132.2002}; Double_t Graph5_fy3006[7] = { 10.96003, 11.52982, 12.544, 14.58825, 15.88157, 17.90625, 22.2419}; Double_t Graph5_felx3006[7] = { 9.774689, 9.450396, 9.064012, 8.671021, 8.193476, 8.226918, 12.2002}; Double_t Graph5_fely3006[7] = { 0.07458021, 0.08109079, 0.1095729, 0.1764526, 0.3081625, 0.5944787, 1.53691}; Double_t Graph5_fehx3006[7] = { 10.22531, 10.5496, 10.93599, 11.32898, 11.80652, 11.77308, 30.7998}; Double_t Graph5_fehy3006[7] = { 0.07458021, 0.08109079, 0.1095729, 0.1764526, 0.3081625, 0.5944787, 1.53691}; grae = new TGraphAsymmErrors(7,Graph5_fx3006,Graph5_fy3006,Graph5_felx3006,Graph5_fehx3006,Graph5_fely3006,Graph5_fehy3006); grae->SetName("Graph5"); grae->SetTitle("Graph"); grae->SetFillStyle(1000); ci = TColor::GetColor("#0000ff"); grae->SetLineColor(kBlue); grae->SetLineWidth(2); ci = TColor::GetColor("#0000ff"); grae->SetMarkerColor(ci); grae->SetMarkerStyle(20); grae->SetMarkerSize(2); TH1F *Graph_Graph53006 = new TH1F("Graph_Graph53006","Graph",100,0,330); Graph_Graph53006->SetMinimum(9.596113); Graph_Graph53006->SetMaximum(25.06815); Graph_Graph53006->SetDirectory(0); Graph_Graph53006->SetStats(0); ci = TColor::GetColor("#000099"); Graph_Graph53006->SetLineColor(ci); Graph_Graph53006->GetXaxis()->SetLabelFont(42); Graph_Graph53006->GetXaxis()->SetTitleOffset(1); Graph_Graph53006->GetXaxis()->SetTitleFont(42); Graph_Graph53006->GetYaxis()->SetLabelFont(42); Graph_Graph53006->GetYaxis()->SetTitleFont(42); Graph_Graph53006->GetZaxis()->SetLabelFont(42); Graph_Graph53006->GetZaxis()->SetTitleOffset(1); Graph_Graph53006->GetZaxis()->SetTitleFont(42); grae->SetHistogram(Graph_Graph53006); /* TF1 *f13007 = new TF1("f1","([3]*x)^4 + ([0]*x)^2 + [2]",-700,700, TF1::EAddToList::kNo); f13007->SetFillColor(19); f13007->SetFillStyle(0); f13007->SetLineColor(2); f13007->SetLineWidth(2); f13007->SetChisquare(0.6455419); f13007->SetNDF(3); f13007->GetXaxis()->SetLabelFont(42); f13007->GetXaxis()->SetTitleOffset(1); f13007->GetXaxis()->SetTitleFont(42); f13007->GetYaxis()->SetLabelFont(42); f13007->GetYaxis()->SetTitleFont(42); f13007->SetParameter(0,0.02568678); f13007->SetParError(0,0.001725845); f13007->SetParLimits(0,0,0); f13007->SetParameter(1,0); f13007->SetParError(1,1.414214); f13007->SetParLimits(1,0,0); f13007->SetParameter(2,10.91123); f13007->SetParError(2,0.1432827); f13007->SetParLimits(2,0,0); f13007->SetParameter(3,0); f13007->SetParError(3,1.414214); f13007->SetParLimits(3,0,0); f13007->SetParent(grae); */ //grae->GetListOfFunctions()->Add(f13007); grae->Draw("p "); TLegend *leg = new TLegend(0.45,0.7,0.62,0.88,NULL,"brNDC"); leg->SetBorderSize(0); leg->SetTextSize(0.03); leg->SetLineColor(1); leg->SetLineStyle(1); leg->SetLineWidth(1); leg->SetFillColor(0); leg->SetFillStyle(1001); TLegendEntry *entry=leg->AddEntry("Graph0","Hino 2ns MC","lpf"); entry->SetFillStyle(1000); ci = TColor::GetColor("#00ff00"); entry->SetLineColor(ci); entry->SetLineStyle(1); entry->SetLineWidth(2); ci = TColor::GetColor("#00ff00"); entry->SetMarkerColor(ci); entry->SetMarkerStyle(26); entry->SetMarkerSize(2); entry->SetTextFont(42); entry=leg->AddEntry("Graph1","Hino->Hyy 325 GeV MC","lpf"); entry->SetFillStyle(1000); ci = TColor::GetColor("#ffcc00"); entry->SetLineColor(ci); entry->SetLineStyle(1); entry->SetLineWidth(2); ci = TColor::GetColor("#ffcc00"); entry->SetMarkerColor(ci); entry->SetMarkerStyle(26); entry->SetMarkerSize(2); entry->SetTextFont(42); entry=leg->AddEntry("Graph2","Hino->Zee 135 GeV MC","lpf"); entry->SetFillStyle(1000); ci = TColor::GetColor("#ff00ff"); entry->SetLineColor(ci); entry->SetLineStyle(1); entry->SetLineWidth(2); ci = TColor::GetColor("#ff00ff"); entry->SetMarkerColor(ci); entry->SetMarkerStyle(26); entry->SetMarkerSize(2); entry->SetTextFont(42); entry=leg->AddEntry("Graph3","Hino 135 GeV 2ns MC","lpf"); entry->SetFillStyle(1000); ci = TColor::GetColor("#cc00ff"); entry->SetLineColor(ci); entry->SetLineStyle(1); entry->SetLineWidth(2); ci = TColor::GetColor("#cc00ff"); entry->SetMarkerColor(ci); entry->SetMarkerStyle(22); entry->SetMarkerSize(2); entry->SetTextFont(42); entry=leg->AddEntry("Graph4","Zee data","lpf"); entry->SetFillStyle(1000); entry->SetLineColor(1); entry->SetLineStyle(1); entry->SetLineWidth(2); entry->SetMarkerColor(1); entry->SetMarkerStyle(22); entry->SetMarkerSize(2); entry->SetTextFont(42); entry=leg->AddEntry("Graph5","Zee MC","lpf"); entry->SetFillStyle(1000); ci = TColor::GetColor("#0000ff"); entry->SetLineColor(ci); entry->SetLineStyle(1); entry->SetLineWidth(2); ci = TColor::GetColor("#0000ff"); entry->SetMarkerColor(ci); entry->SetMarkerStyle(20); entry->SetMarkerSize(2); entry->SetTextFont(42); //entry=leg->AddEntry("f1","(2.6e-02z)^{4} + (0.0e+00z)^{2} + 10.9","lpf"); entry->SetFillColor(19); entry->SetLineColor(2); entry->SetLineStyle(1); entry->SetLineWidth(2); entry->SetMarkerColor(1); entry->SetMarkerStyle(1); entry->SetMarkerSize(1); entry->SetTextFont(42); leg->Draw(); TLatex * tex = new TLatex(0.14,0.84,"ATLAS"); tex->SetNDC(); tex->SetTextFont(72); tex->SetTextSize(0.045); tex->SetLineWidth(2); tex->Draw(); tex = new TLatex(0.25,0.84,"Internal"); tex->SetNDC(); tex->SetTextFont(42); tex->SetTextSize(0.045); tex->SetLineWidth(2); tex->Draw(); tex = new TLatex(0.14,0.8,"#sqrt{s} = 13 TeV"); tex->SetNDC(); tex->SetTextFont(42); tex->SetTextSize(0.03375); tex->SetLineWidth(2); tex->Draw(); c->Modified(); c->cd(); c->SetSelected(c); c->SaveAs("./finalB.pdf"); }