void PlotPointingResG() { //=========Macro generated from canvas: c/c //========= (Thu Jun 2 05:28:11 2022) by ROOT version 6.20/06 TCanvas *c = new TCanvas("c", "c",0,0,1600,1200); gStyle->SetOptStat(0); c->Range(-867.784,-7.794342,904.1808,130.3865); c->SetFillColor(0); c->SetBorderMode(0); c->SetBorderSize(2); c->SetFrameBorderMode(0); c->SetFrameBorderMode(0); Double_t Graph0_fx1001[20] = { -459.9846, -254.1478, -205.8585, -119.5217, -99.36684, -79.59929, -59.57938, -39.73878, -19.81562, 0.3538603, 19.64614, 39.76846, 59.65143, 79.50295, 99.50372, 119.3574, 205.826, 253.7621, 462.2994, 579.2169}; Double_t Graph0_fy1001[20] = { 99.48489, 69.83906, 40.69638, 23.51051, 20.49753, 16.29225, 12.08582, 11.00751, 7.906136, 7.067186, 7.24011, 8.438192, 9.496727, 11.89409, 15.8515, 17.9952, 21.99965, 40.77549, 67.59787, 102.5883}; Double_t Graph0_fex1001[20] = { 112.4719, 57.21137, 32.75287, 9.988556, 9.979935, 9.991968, 9.99115, 9.996588, 9.9983, 9.993737, 9.993737, 9.997319, 9.993923, 9.987639, 9.987678, 9.979333, 32.78347, 57.00168, 112.4998, 29.63637}; Double_t Graph0_fey1001[20] = { 3.660272, 2.582181, 0.9781339, 1.278707, 1.114437, 0.7560549, 0.6375085, 0.5352348, 0.3439554, 0.3741365, 0.3416098, 0.4342558, 0.463136, 0.5875116, 0.7830268, 1.051527, 1.241238, 0.9499329, 2.731503, 3.991455}; TGraphErrors *gre = new TGraphErrors(20,Graph0_fx1001,Graph0_fy1001,Graph0_fex1001,Graph0_fey1001); gre->SetName("Graph0"); gre->SetTitle("Graph"); gre->SetFillStyle(1000); Int_t ci; // for color index setting TColor *color; // for color definition with alpha ci = TColor::GetColor("#00ff00"); gre->SetLineColor(ci); gre->SetLineWidth(2); ci = TColor::GetColor("#00ff00"); gre->SetMarkerColor(ci); gre->SetMarkerStyle(26); TH1F *Graph_Graph01001 = new TH1F("Graph_Graph01001","Graph",100,-690.5875,726.9843); Graph_Graph01001->SetMinimum(6.023745); Graph_Graph01001->SetMaximum(116.5684); Graph_Graph01001->SetDirectory(0); Graph_Graph01001->SetStats(0); ci = TColor::GetColor("#000099"); Graph_Graph01001->SetLineColor(ci); Graph_Graph01001->GetXaxis()->SetLabelFont(42); Graph_Graph01001->GetXaxis()->SetTitleOffset(1); Graph_Graph01001->GetXaxis()->SetTitleFont(42); Graph_Graph01001->GetYaxis()->SetLabelFont(42); Graph_Graph01001->GetYaxis()->SetTitleFont(42); Graph_Graph01001->GetZaxis()->SetLabelFont(42); Graph_Graph01001->GetZaxis()->SetTitleOffset(1); Graph_Graph01001->GetZaxis()->SetTitleFont(42); gre->SetHistogram(Graph_Graph01001); gre->Draw("ap"); Double_t Graph1_fx1002[20] = { -464.704, -252.4208, -204.2478, -119.6059, -98.97347, -79.45598, -58.82085, -39.53086, -19.68352, -0.128123, 19.91822, 39.2138, 59.23525, 79.2864, 98.97539, 119.3333, 205.0472, 252.2302, 463.4825, 577.5449}; Double_t Graph1_fy1002[20] = { 101.2463, 66.72363, 38.44461, 21.08077, 18.90017, 15.63679, 9.816134, 9.027378, 8.411517, 8.815828, 8.761348, 9.562157, 9.247755, 11.30163, 14.94742, 19.02045, 15.61152, 34.5507, 67.90903, 99.22511}; Double_t Graph1_fex1002[20] = { 112.4784, 56.24586, 34.19891, 9.99223, 9.947172, 9.985191, 9.930237, 9.98899, 9.994991, 9.999179, 9.999666, 9.969047, 9.970715, 9.974506, 9.94737, 9.977753, 33.49872, 56.13504, 112.4957, 23.11529}; Double_t Graph1_fey1002[20] = { 6.019186, 4.442047, 1.287556, 1.251562, 1.391701, 0.9994799, 0.6867121, 0.5656399, 0.4420224, 0.4607169, 0.5909469, 0.5469708, 0.4508557, 0.6642594, 0.9857522, 1.283787, 1.05018, 1.162637, 3.838647, 5.841237}; gre = new TGraphErrors(20,Graph1_fx1002,Graph1_fy1002,Graph1_fex1002,Graph1_fey1002); gre->SetName("Graph1"); gre->SetTitle("Graph"); gre->SetFillStyle(1000); ci = TColor::GetColor("#ffcc00"); gre->SetLineColor(ci); gre->SetLineWidth(2); ci = TColor::GetColor("#ffcc00"); gre->SetMarkerColor(ci); gre->SetMarkerStyle(26); TH1F *Graph_Graph11002 = new TH1F("Graph_Graph11002","Graph",100,-694.9666,718.4445); Graph_Graph11002->SetMinimum(7.172545); Graph_Graph11002->SetMaximum(117.1951); Graph_Graph11002->SetDirectory(0); Graph_Graph11002->SetStats(0); ci = TColor::GetColor("#000099"); Graph_Graph11002->SetLineColor(ci); Graph_Graph11002->GetXaxis()->SetLabelFont(42); Graph_Graph11002->GetXaxis()->SetTitleOffset(1); Graph_Graph11002->GetXaxis()->SetTitleFont(42); Graph_Graph11002->GetYaxis()->SetLabelFont(42); Graph_Graph11002->GetYaxis()->SetTitleFont(42); Graph_Graph11002->GetZaxis()->SetLabelFont(42); Graph_Graph11002->GetZaxis()->SetTitleOffset(1); Graph_Graph11002->GetZaxis()->SetTitleFont(42); gre->SetHistogram(Graph_Graph11002); gre->Draw("p"); Double_t Graph2_fx1003[20] = { -459.8979, -251.2548, -205.489, -119.5043, -99.40509, -79.34899, -59.51558, -39.69749, -19.6241, -0.06855517, 19.76403, 39.67141, 59.43948, 79.5446, 99.38745, 119.3065, 205.6112, 251.3231, 458.997, 580.816}; Double_t Graph2_fy1003[20] = { 93.70665, 68.27086, 43.35849, 25.79542, 23.6701, 20.23902, 14.17921, 12.75071, 12.02947, 10.19005, 11.21183, 11.55497, 11.86561, 15.50044, 18.40776, 22.14174, 27.84982, 41.81662, 70.35336, 97.16801}; Double_t Graph2_fex1003[20] = { 112.4699, 55.55412, 33.09711, 9.987704, 9.982288, 9.978787, 9.98826, 9.995423, 9.992932, 9.999765, 9.997216, 9.9946, 9.984279, 9.989625, 9.981221, 9.975927, 32.98413, 55.59556, 112.4454, 34.67108}; Double_t Graph2_fey1003[20] = { 2.942592, 2.040871, 0.7853584, 0.9791692, 0.9348505, 0.8019259, 0.5488181, 0.4973457, 0.4580106, 0.3969828, 0.4166408, 0.4287261, 0.444452, 0.631203, 0.7392939, 0.9270682, 1.257967, 0.7394994, 2.171854, 3.18329}; gre = new TGraphErrors(20,Graph2_fx1003,Graph2_fy1003,Graph2_fex1003,Graph2_fey1003); gre->SetName("Graph2"); gre->SetTitle("Graph"); gre->SetFillStyle(1000); ci = TColor::GetColor("#ff00ff"); gre->SetLineColor(ci); gre->SetLineWidth(2); ci = TColor::GetColor("#ff00ff"); gre->SetMarkerColor(ci); gre->SetMarkerStyle(26); TH1F *Graph_Graph21003 = new TH1F("Graph_Graph21003","Graph",100,-691.1533,734.2726); Graph_Graph21003->SetMinimum(0.7372412); Graph_Graph21003->SetMaximum(109.4071); Graph_Graph21003->SetDirectory(0); Graph_Graph21003->SetStats(0); ci = TColor::GetColor("#000099"); Graph_Graph21003->SetLineColor(ci); Graph_Graph21003->GetXaxis()->SetLabelFont(42); Graph_Graph21003->GetXaxis()->SetTitleOffset(1); Graph_Graph21003->GetXaxis()->SetTitleFont(42); Graph_Graph21003->GetYaxis()->SetLabelFont(42); Graph_Graph21003->GetYaxis()->SetTitleFont(42); Graph_Graph21003->GetZaxis()->SetLabelFont(42); Graph_Graph21003->GetZaxis()->SetTitleOffset(1); Graph_Graph21003->GetZaxis()->SetTitleFont(42); gre->SetHistogram(Graph_Graph21003); gre->Draw("p"); Double_t Graph3_fx1004[20] = { -457.3262, -249.5365, -204.7575, -119.1393, -99.23782, -79.13424, -59.22188, -39.43962, -19.49147, -0.1196902, 19.73087, 39.38913, 59.19057, 79.17919, 99.19661, 119.0906, 204.4638, 250.2352, 456.8082, 579.9609}; Double_t Graph3_fy1004[20] = { 94.60775, 70.08714, 40.14675, 26.76306, 22.93765, 18.88881, 14.35762, 12.02575, 10.5615, 9.125655, 9.120913, 10.14069, 11.89251, 13.90363, 18.22607, 21.49089, 24.81698, 41.99218, 71.39249, 102.9324}; Double_t Graph3_fex1004[20] = { 112.381, 54.47332, 33.75637, 9.962891, 9.970912, 9.962453, 9.96968, 9.984287, 9.987062, 9.999284, 9.996378, 9.981324, 9.967187, 9.966256, 9.967676, 9.958564, 34.01303, 54.92187, 112.3559, 32.08696}; Double_t Graph3_fey1004[20] = { 2.885896, 2.042108, 0.6842586, 0.9686741, 0.8014642, 0.6560068, 0.4568761, 0.3562684, 0.3054491, 0.2610385, 0.2449389, 0.3017179, 0.3469512, 0.4743235, 0.5806395, 0.7463017, 0.9662813, 0.7204689, 2.136612, 3.436614}; gre = new TGraphErrors(20,Graph3_fx1004,Graph3_fy1004,Graph3_fex1004,Graph3_fey1004); gre->SetName("Graph3"); gre->SetTitle("Graph"); gre->SetFillStyle(1000); ci = TColor::GetColor("#cc00ff"); gre->SetLineColor(ci); gre->SetLineWidth(2); ci = TColor::GetColor("#cc00ff"); gre->SetMarkerColor(ci); gre->SetMarkerStyle(26); TH1F *Graph_Graph31004 = new TH1F("Graph_Graph31004","Graph",100,-687.8827,730.2233); Graph_Graph31004->SetMinimum(7.978155); Graph_Graph31004->SetMaximum(116.1195); Graph_Graph31004->SetDirectory(0); Graph_Graph31004->SetStats(0); ci = TColor::GetColor("#000099"); Graph_Graph31004->SetLineColor(ci); Graph_Graph31004->GetXaxis()->SetLabelFont(42); Graph_Graph31004->GetXaxis()->SetTitleOffset(1); Graph_Graph31004->GetXaxis()->SetTitleFont(42); Graph_Graph31004->GetYaxis()->SetLabelFont(42); Graph_Graph31004->GetYaxis()->SetTitleFont(42); Graph_Graph31004->GetZaxis()->SetLabelFont(42); Graph_Graph31004->GetZaxis()->SetTitleOffset(1); Graph_Graph31004->GetZaxis()->SetTitleFont(42); gre->SetHistogram(Graph_Graph31004); gre->Draw("p"); Double_t Graph4_fx1005[20] = { 3.554172e-316, 7.821223e-316, 1.58101e-322, -112.7055, -93.52674, -74.55565, -55.73788, -37.07454, -18.62698, -0.2291278, 18.16929, 36.77403, 55.60603, 74.47834, 93.57154, 112.8578, 141.217, 220, 0, 1.000181e-315}; Double_t Graph4_fy1005[20] = { 1.538291e-315, 0, 0, 21.75727, 17.06831, 15.06899, 13.0371, 11.32826, 10.38705, 10.12302, 10.10714, 10.27112, 11.15207, 12.58951, 14.74361, 16.85668, 18.83443, 47.04609, 4.940656e-324, 0}; Double_t Graph4_fex1005[20] = { 1.931016e-312, 6.95309e-310, 0, 6.840299, 7.62213, 8.388033, 9.046232, 9.562513, 9.905292, 9.997375, 9.830996, 9.465365, 8.982931, 8.337341, 7.659951, 6.99924, 29.72725, 0, 6.931939e-310, 7.821223e-316}; Double_t Graph4_fey1005[20] = { 6.95309e-310, 6.95309e-310, 2.173889e-322, 1.718083, 0.4637901, 0.1984439, 0.08880136, 0.05584969, 0.03571768, 0.0289099, 0.02947083, 0.03719167, 0.05913792, 0.1041009, 0.207922, 0.5268882, 1.282238, 14.42602, 0, 0}; gre = new TGraphErrors(20,Graph4_fx1005,Graph4_fy1005,Graph4_fex1005,Graph4_fey1005); gre->SetName("Graph4"); gre->SetTitle("Graph"); gre->SetFillStyle(1000); gre->SetLineWidth(2); gre->SetMarkerStyle(20); TH1F *Graph_Graph41005 = new TH1F("Graph_Graph41005","Graph",100,-153.5003,253.9546); Graph_Graph41005->SetMinimum(-6.14721); Graph_Graph41005->SetMaximum(67.61931); Graph_Graph41005->SetDirectory(0); Graph_Graph41005->SetStats(0); ci = TColor::GetColor("#000099"); Graph_Graph41005->SetLineColor(ci); Graph_Graph41005->GetXaxis()->SetLabelFont(42); Graph_Graph41005->GetXaxis()->SetTitleOffset(1); Graph_Graph41005->GetXaxis()->SetTitleFont(42); Graph_Graph41005->GetYaxis()->SetLabelFont(42); Graph_Graph41005->GetYaxis()->SetTitleFont(42); Graph_Graph41005->GetZaxis()->SetLabelFont(42); Graph_Graph41005->GetZaxis()->SetTitleOffset(1); Graph_Graph41005->GetZaxis()->SetTitleFont(42); gre->SetHistogram(Graph_Graph41005); gre->Draw("p"); Double_t Graph5_fx1006[20] = { 3.554172e-316, 7.821223e-316, 1.58101e-322, -114.3056, -94.8904, -75.9107, -56.71056, -37.8505, -18.85265, -0.0417736, 18.92122, 37.78946, 56.81028, 75.78503, 94.98474, 113.8542, 149.2695, 220, 0, 1.038183e-315}; Double_t Graph5_fy1006[20] = { 1.538291e-315, 0, 0, 22.61884, 19.26066, 14.71616, 13.22084, 11.26389, 10.13346, 9.940352, 9.642372, 10.14648, 11.0081, 12.82068, 14.46914, 15.45373, 21.03742, 14.13637, 4.940656e-324, 0}; Double_t Graph5_fex1006[20] = { 1.931016e-312, 6.95309e-310, 0, 8.220357, 8.596045, 9.125659, 9.443494, 9.766251, 9.933962, 9.999913, 9.941642, 9.752617, 9.477641, 9.068296, 8.651428, 7.888569, 36.91805, 0, 6.931939e-310, 7.821223e-316}; Double_t Graph5_fey1006[20] = { 6.95309e-310, 6.95309e-310, 2.173889e-322, 2.463732, 1.219847, 0.4555812, 0.2518581, 0.1728915, 0.1244977, 0.1031877, 0.1049296, 0.1237656, 0.1601158, 0.2446766, 0.456329, 0.851949, 2.062653, 3.353112, 0, 0}; gre = new TGraphErrors(20,Graph5_fx1006,Graph5_fy1006,Graph5_fex1006,Graph5_fey1006); gre->SetName("Graph5"); gre->SetTitle("Graph"); gre->SetFillStyle(1000); ci = TColor::GetColor("#0000ff"); gre->SetLineColor(ci); gre->SetLineWidth(2); ci = TColor::GetColor("#0000ff"); gre->SetMarkerColor(ci); gre->SetMarkerStyle(20); TH1F *Graph_Graph51006 = new TH1F("Graph_Graph51006","Graph",100,-156.7786,254.2526); Graph_Graph51006->SetMinimum(-2.508258); Graph_Graph51006->SetMaximum(27.59083); Graph_Graph51006->SetDirectory(0); Graph_Graph51006->SetStats(0); ci = TColor::GetColor("#000099"); Graph_Graph51006->SetLineColor(ci); Graph_Graph51006->GetXaxis()->SetLabelFont(42); Graph_Graph51006->GetXaxis()->SetTitleOffset(1); Graph_Graph51006->GetXaxis()->SetTitleFont(42); Graph_Graph51006->GetYaxis()->SetLabelFont(42); Graph_Graph51006->GetYaxis()->SetTitleFont(42); Graph_Graph51006->GetZaxis()->SetLabelFont(42); Graph_Graph51006->GetZaxis()->SetTitleOffset(1); Graph_Graph51006->GetZaxis()->SetTitleFont(42); gre->SetHistogram(Graph_Graph51006); gre->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_325_Zee","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(1); entry->SetTextFont(42); entry=leg->AddEntry("Graph1","Hino_325_Hyy","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(1); entry->SetTextFont(42); entry=leg->AddEntry("Graph2","Hino_135_Zee","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(1); entry->SetTextFont(42); entry=leg->AddEntry("Graph3","Hino_135_2ns","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(26); entry->SetMarkerSize(1); entry->SetTextFont(42); entry=leg->AddEntry("Graph4","data_skimmed","lpf"); entry->SetFillStyle(1000); entry->SetLineColor(1); entry->SetLineStyle(1); entry->SetLineWidth(2); entry->SetMarkerColor(1); entry->SetMarkerStyle(20); entry->SetMarkerSize(1); entry->SetTextFont(42); entry=leg->AddEntry("Graph5","Zee_truZ","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(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(); TPaveText *pt = new TPaveText(0.435802,0.9345904,0.564198,0.995,"blNDC"); pt->SetName("title"); pt->SetBorderSize(0); pt->SetFillColor(0); pt->SetFillStyle(0); pt->SetTextFont(42); TText *pt_LaTex = pt->AddText("Graph"); pt->Draw(); c->Modified(); c->cd(); c->SetSelected(c); }