void Eff_GEN_PT500() { //=========Macro generated from canvas: Eff_GEN_PT500/ //========= (Tue Apr 19 15:55:56 2016) by ROOT version6.06/01 TCanvas *Eff_GEN_PT500 = new TCanvas("Eff_GEN_PT500", "",3,54,600,600); Eff_GEN_PT500->Range(-187.013,-0.2142857,851.9481,1.214286); Eff_GEN_PT500->SetFillColor(0); Eff_GEN_PT500->SetBorderMode(0); Eff_GEN_PT500->SetBorderSize(10); Eff_GEN_PT500->SetGridx(); Eff_GEN_PT500->SetGridy(); Eff_GEN_PT500->SetLeftMargin(0.18); Eff_GEN_PT500->SetRightMargin(0.05); Eff_GEN_PT500->SetTopMargin(0.08); Eff_GEN_PT500->SetBottomMargin(0.15); Eff_GEN_PT500->SetFrameFillStyle(0); Eff_GEN_PT500->SetFrameLineStyle(0); Eff_GEN_PT500->SetFrameBorderMode(0); Eff_GEN_PT500->SetFrameBorderSize(10); Eff_GEN_PT500->SetFrameFillStyle(0); Eff_GEN_PT500->SetFrameLineStyle(0); Eff_GEN_PT500->SetFrameBorderMode(0); Eff_GEN_PT500->SetFrameBorderSize(10); Double_t eff_graph_fx3109[136] = { 2.5, 7.5, 12.5, 17.5, 22.5, 27.5, 32.5, 37.5, 42.5, 47.5, 52.5, 57.5, 62.5, 67.5, 72.5, 77.5, 82.5, 87.5, 92.5, 97.5, 102.5, 107.5, 112.5, 117.5, 122.5, 127.5, 132.5, 137.5, 142.5, 147.5, 152.5, 157.5, 162.5, 167.5, 172.5, 177.5, 182.5, 187.5, 192.5, 197.5, 202.5, 207.5, 212.5, 217.5, 222.5, 227.5, 232.5, 237.5, 242.5, 247.5, 252.5, 257.5, 262.5, 267.5, 272.5, 277.5, 282.5, 287.5, 292.5, 297.5, 305, 315, 325, 335, 345, 355, 365, 375, 385, 395, 405, 415, 425, 435, 445, 455, 465, 475, 485, 495, 505, 515, 525, 535, 545, 555, 565, 575, 585, 595, 610, 630, 650, 670, 690, 710, 730, 750, 770, 790, 810, 830, 850, 870, 890, 910, 930, 950, 970, 990, 1010, 1030, 1050, 1070, 1090, 1110, 1130, 1150, 1170, 1190, 1225, 1275, 1325, 1375, 1425, 1475, 1525, 1575, 1625, 1675, 1725, 1775, 1825, 1875, 1925, 1975}; Double_t eff_graph_fy3109[136] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 5.587966e-05, 3.493735e-05, 4.878287e-05, 0.0001255382, 0.0001169059, 0.0002449446, 0.0003525695, 0.0004664451, 0.0005167016, 0.000931084, 0.001562856, 0.002784586, 0.006072557, 0.0132944, 0.03112775, 0.06089989, 0.1175979, 0.2001722, 0.3098303, 0.4346158, 0.5605569, 0.6784091, 0.775769, 0.8517811, 0.8994757, 0.9347354, 0.9571974, 0.9709124, 0.9817703, 0.988964, 0.9918415, 0.9946827, 0.9961106, 0.9970732, 0.997731, 0.9983087, 0.9989874, 0.9990183, 0.9989978, 0.9993544, 0.9994955, 0.9993408, 0.9996996, 0.9997539, 0.9998161, 0.9998072, 0.999879, 0.9997856, 0.9999544, 0.9998088, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1}; Double_t eff_graph_felx3109[136] = { 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25}; Double_t eff_graph_fely3109[136] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2.413635e-05, 1.901406e-05, 2.33466e-05, 3.902486e-05, 3.823322e-05, 5.718894e-05, 7.003123e-05, 8.201046e-05, 8.815992e-05, 0.0001208297, 0.0001591297, 0.0002150066, 0.0003244806, 0.0004878905, 0.0007500346, 0.001047979, 0.001438497, 0.001815485, 0.002132442, 0.002330472, 0.002376143, 0.002282557, 0.002070616, 0.001790879, 0.00154769, 0.001295256, 0.001091019, 0.0009198206, 0.0005305985, 0.0004299596, 0.0003854595, 0.0003241398, 0.0002896967, 0.0002614413, 0.0002397124, 0.0002169029, 0.0001790675, 0.0001836153, 0.0001902674, 0.0001645622, 0.0001543851, 0.0001774379, 0.0001371689, 0.0001325445, 0.0001244005, 0.00013039, 0.0001177212, 0.0001449888, 0.000104778, 0.0001511212, 9.32025e-05, 9.853508e-05, 0.0001025872, 0.0001098074, 0.00011505, 0.00012206, 0.0001273806, 0.0001329745, 5.843971e-05, 6.670629e-05, 7.551385e-05, 8.673051e-05, 9.741412e-05, 0.0001119576, 0.0001265662, 0.0001441347, 0.0001621485, 0.0001846391, 0.0002123703, 0.0002358796, 0.0002696709, 0.0003090041, 0.0003552093, 0.0004021524}; Double_t eff_graph_fehx3109[136] = { 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25}; Double_t eff_graph_fehy3109[136] = { 0.01960128, 0.0002181584, 4.169743e-05, 2.38203e-05, 2.144066e-05, 2.113665e-05, 2.074019e-05, 1.956745e-05, 1.820326e-05, 1.690951e-05, 1.614819e-05, 1.554091e-05, 1.513451e-05, 1.500818e-05, 1.485151e-05, 1.486926e-05, 1.487575e-05, 1.510719e-05, 1.528251e-05, 1.548627e-05, 1.569687e-05, 1.605077e-05, 1.640343e-05, 1.670408e-05, 1.701327e-05, 1.731652e-05, 1.781244e-05, 1.815121e-05, 1.866368e-05, 1.910132e-05, 1.943114e-05, 1.999721e-05, 2.052606e-05, 2.091834e-05, 2.136898e-05, 2.203341e-05, 2.248386e-05, 2.301567e-05, 2.348664e-05, 2.409622e-05, 2.454142e-05, 2.520052e-05, 2.578176e-05, 2.641998e-05, 2.698578e-05, 2.769123e-05, 2.816873e-05, 2.877274e-05, 2.941262e-05, 2.99719e-05, 3.087982e-05, 3.152547e-05, 3.192232e-05, 3.260816e-05, 3.335733e-05, 3.406907e-05, 3.487912e-05, 3.546023e-05, 3.638604e-05, 3.684555e-05, 1.901589e-05, 1.976407e-05, 3.780051e-05, 3.398338e-05, 3.857036e-05, 5.356174e-05, 5.338513e-05, 7.239696e-05, 8.553704e-05, 9.786395e-05, 0.0001046467, 0.0001376095, 0.000176189, 0.0002322313, 0.0003421824, 0.0005058735, 0.0007677201, 0.001064962, 0.001453805, 0.001827844, 0.00214052, 0.002333353, 0.002373384, 0.002274111, 0.002057189, 0.001773304, 0.001526982, 0.001272015, 0.001065408, 0.0008928554, 0.0005160649, 0.0004142939, 0.0003685701, 0.000306096, 0.0002703084, 0.0002408287, 0.0002177897, 0.0001934486, 0.0001537682, 0.0001564745, 0.0001618051, 0.0001335996, 0.0001211335, 0.0001426609, 9.824636e-05, 9.076468e-05, 7.943907e-05, 8.326436e-05, 6.587135e-05, 9.258823e-05, 3.769637e-05, 9.148357e-05, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}; TGraphAsymmErrors *grae = new TGraphAsymmErrors(136,eff_graph_fx3109,eff_graph_fy3109,eff_graph_felx3109,eff_graph_fehx3109,eff_graph_fely3109,eff_graph_fehy3109); grae->SetName("eff_graph"); grae->SetTitle("HLT_PFJet450 Efficiency (GEN Jets)"); grae->SetFillColor(19); Int_t ci; // for color index setting TColor *color; // for color definition with alpha ci = TColor::GetColor("#ff0000"); grae->SetLineColor(ci); grae->SetLineWidth(3); ci = TColor::GetColor("#ff0000"); grae->SetMarkerColor(ci); grae->SetMarkerStyle(20); grae->SetMarkerSize(0.9); TH1F *Graph_eff_graph3109 = new TH1F("Graph_eff_graph3109","HLT_PFJet450 Efficiency (GEN Jets)",136,0,800); Graph_eff_graph3109->SetMinimum(0); Graph_eff_graph3109->SetMaximum(1.1); Graph_eff_graph3109->SetDirectory(0); Graph_eff_graph3109->SetStats(0); ci = TColor::GetColor("#000099"); Graph_eff_graph3109->SetLineColor(ci); Graph_eff_graph3109->GetXaxis()->SetTitle("P_{T} [GeV/c]"); Graph_eff_graph3109->GetXaxis()->SetLabelFont(42); Graph_eff_graph3109->GetXaxis()->SetLabelOffset(0.014); Graph_eff_graph3109->GetXaxis()->SetLabelSize(0.05); Graph_eff_graph3109->GetXaxis()->SetTitleSize(0.055); Graph_eff_graph3109->GetXaxis()->SetTitleOffset(1.3); Graph_eff_graph3109->GetXaxis()->SetTitleFont(42); Graph_eff_graph3109->GetYaxis()->SetTitle("Efficiency"); Graph_eff_graph3109->GetYaxis()->SetLabelFont(42); Graph_eff_graph3109->GetYaxis()->SetLabelOffset(0.014); Graph_eff_graph3109->GetYaxis()->SetLabelSize(0.05); Graph_eff_graph3109->GetYaxis()->SetTitleSize(0.055); Graph_eff_graph3109->GetYaxis()->SetTitleOffset(1.6); Graph_eff_graph3109->GetYaxis()->SetTitleFont(42); Graph_eff_graph3109->GetZaxis()->SetLabelFont(42); Graph_eff_graph3109->GetZaxis()->SetLabelSize(0.035); Graph_eff_graph3109->GetZaxis()->SetTitleSize(0.035); Graph_eff_graph3109->GetZaxis()->SetTitleFont(42); grae->SetHistogram(Graph_eff_graph3109); TF1 *turnon_5003110 = new TF1("turnon_500","0.5*[2]*(1 + TMath::Erf((x - [0])/[1]))",515,770); turnon_5003110->SetFillColor(19); turnon_5003110->SetFillStyle(0); ci = TColor::GetColor("#ff0000"); turnon_5003110->SetLineColor(ci); turnon_5003110->SetLineWidth(2); turnon_5003110->SetChisquare(0.0006465025); turnon_5003110->SetNDF(15); turnon_5003110->GetXaxis()->SetLabelFont(42); turnon_5003110->GetXaxis()->SetLabelSize(0.035); turnon_5003110->GetXaxis()->SetTitleSize(0.035); turnon_5003110->GetXaxis()->SetTitleFont(42); turnon_5003110->GetYaxis()->SetLabelFont(42); turnon_5003110->GetYaxis()->SetLabelSize(0.035); turnon_5003110->GetYaxis()->SetTitleSize(0.035); turnon_5003110->GetYaxis()->SetTitleFont(42); turnon_5003110->SetParameter(0,519.5474); turnon_5003110->SetParError(0,0.3732116); turnon_5003110->SetParLimits(0,0,0); turnon_5003110->SetParameter(1,47.6704); turnon_5003110->SetParError(1,0.9593653); turnon_5003110->SetParLimits(1,0,0); turnon_5003110->SetParameter(2,0.9922862); turnon_5003110->SetParError(2,0.002121236); turnon_5003110->SetParLimits(2,0,0); grae->GetListOfFunctions()->Add(turnon_5003110); grae->Draw("ap"); Double_t eff_graph_fx3111[133] = { 17.5, 22.5, 27.5, 32.5, 37.5, 42.5, 47.5, 52.5, 57.5, 62.5, 67.5, 72.5, 77.5, 82.5, 87.5, 92.5, 97.5, 102.5, 107.5, 112.5, 117.5, 122.5, 127.5, 132.5, 137.5, 142.5, 147.5, 152.5, 157.5, 162.5, 167.5, 172.5, 177.5, 182.5, 187.5, 192.5, 197.5, 202.5, 207.5, 212.5, 217.5, 222.5, 227.5, 232.5, 237.5, 242.5, 247.5, 252.5, 257.5, 262.5, 267.5, 272.5, 277.5, 282.5, 287.5, 292.5, 297.5, 305, 315, 325, 335, 345, 355, 365, 375, 385, 395, 405, 415, 425, 435, 445, 455, 465, 475, 485, 495, 505, 515, 525, 535, 545, 555, 565, 575, 585, 595, 610, 630, 650, 670, 690, 710, 730, 750, 770, 790, 810, 830, 850, 870, 890, 910, 930, 950, 970, 990, 1010, 1030, 1050, 1070, 1090, 1110, 1130, 1150, 1170, 1190, 1225, 1275, 1325, 1375, 1425, 1475, 1525, 1575, 1625, 1675, 1725, 1775, 1825, 1875, 1925, 1975}; Double_t eff_graph_fy3111[133] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2.20675e-05, 1.154868e-05, 5.990176e-05, 9.885819e-05, 7.679803e-05, 0.0001071797, 0.0002075119, 0.0003029472, 0.0006398238, 0.001049027, 0.002502112, 0.004252233, 0.00919102, 0.01986626, 0.04470558, 0.08675114, 0.1562772, 0.2476519, 0.371465, 0.4947496, 0.6247037, 0.7278204, 0.8209457, 0.8817031, 0.9235818, 0.9539537, 0.9702413, 0.9829352, 0.9917729, 0.9942308, 0.9960092, 0.9974266, 0.9982058, 0.9988131, 0.9990148, 0.9994287, 0.9995994, 0.9996278, 0.9997634, 0.9996949, 0.9998823, 0.9999689, 0.9999016, 1, 0.9999637, 0.9999238, 0.9999602, 1, 0.9999553, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1}; Double_t eff_graph_felx3111[133] = { 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25}; Double_t eff_graph_fely3111[133] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1.425355e-05, 9.553602e-06, 2.587362e-05, 3.4209e-05, 3.046193e-05, 3.708852e-05, 5.297311e-05, 6.557201e-05, 9.71689e-05, 0.0001268481, 0.000199266, 0.0002640658, 0.000393728, 0.0005879515, 0.0008869658, 0.001220205, 0.001600417, 0.001936604, 0.002199751, 0.002317966, 0.002292951, 0.002146892, 0.001885096, 0.001605719, 0.001350346, 0.001091142, 0.0009018981, 0.000499092, 0.0003620084, 0.0003166325, 0.0002746129, 0.0002307657, 0.0002022388, 0.0001737427, 0.0001655956, 0.000135408, 0.0001225844, 0.000123006, 0.0001080196, 0.0001224712, 9.301782e-05, 7.14768e-05, 9.567208e-05, 6.372981e-05, 8.339882e-05, 0.0001004542, 9.151015e-05, 7.780196e-05, 0.0001028013, 8.652263e-05, 9.149788e-05, 9.565279e-05, 0.0001018663, 0.0001076815, 0.0001129051, 0.0001189758, 0.0001240504, 5.441188e-05, 6.177527e-05, 7.06159e-05, 7.959825e-05, 9.03883e-05, 0.0001035101, 0.0001163295, 0.0001334081, 0.000151177, 0.0001690729, 0.0001972822, 0.0002195634, 0.0002479851, 0.0002840241, 0.0003277052, 0.0003697632}; Double_t eff_graph_fehx3111[133] = { 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25}; Double_t eff_graph_fehy3111[133] = { 5.144686e-05, 2.683513e-05, 2.397572e-05, 2.369827e-05, 2.324583e-05, 2.227601e-05, 2.077576e-05, 1.902807e-05, 1.792884e-05, 1.700007e-05, 1.634895e-05, 1.610384e-05, 1.571026e-05, 1.566748e-05, 1.560559e-05, 1.561618e-05, 1.576704e-05, 1.590228e-05, 1.61257e-05, 1.644167e-05, 1.666386e-05, 1.699631e-05, 1.721725e-05, 1.75152e-05, 1.78919e-05, 1.826792e-05, 1.868111e-05, 1.915478e-05, 1.947101e-05, 1.999005e-05, 2.03419e-05, 2.079266e-05, 2.141746e-05, 2.173043e-05, 2.223619e-05, 2.282194e-05, 2.328494e-05, 2.377662e-05, 2.422144e-05, 2.486391e-05, 2.554246e-05, 2.589708e-05, 2.644161e-05, 2.722804e-05, 2.762765e-05, 2.817175e-05, 2.892645e-05, 2.93152e-05, 3.01926e-05, 3.082915e-05, 3.131473e-05, 3.186541e-05, 3.259488e-05, 3.322549e-05, 3.427202e-05, 3.460182e-05, 3.490954e-05, 1.813298e-05, 1.901785e-05, 1.970126e-05, 2.910474e-05, 2.655599e-05, 4.052118e-05, 4.874759e-05, 4.586662e-05, 5.285066e-05, 6.859036e-05, 8.15663e-05, 0.0001131657, 0.0001431786, 0.0002157578, 0.0002809175, 0.0004107969, 0.0006052415, 0.000903885, 0.001235816, 0.001613802, 0.001946764, 0.002205066, 0.002318191, 0.002287399, 0.002136399, 0.001869801, 0.001587205, 0.001329005, 0.001067357, 0.0008765303, 0.0004853414, 0.0003471718, 0.0003006427, 0.0002575109, 0.0002125026, 0.0001826637, 0.0001527306, 0.0001431447, 0.0001113009, 9.617839e-05, 9.500504e-05, 7.736585e-05, 9.056794e-05, 5.630658e-05, 2.571485e-05, 5.353259e-05, 0, 3.000423e-05, 4.919871e-05, 3.292263e-05, 0, 3.698515e-05, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}; grae = new TGraphAsymmErrors(133,eff_graph_fx3111,eff_graph_fy3111,eff_graph_felx3111,eff_graph_fehx3111,eff_graph_fely3111,eff_graph_fehy3111); grae->SetName("eff_graph"); grae->SetTitle("HLT_PFJet450 Efficiency (GEN Jets)"); grae->SetFillColor(19); ci = TColor::GetColor("#00ff00"); grae->SetLineColor(ci); grae->SetLineWidth(3); ci = TColor::GetColor("#00ff00"); grae->SetMarkerColor(ci); grae->SetMarkerStyle(21); grae->SetMarkerSize(0.9); TH1F *Graph_eff_graph3111 = new TH1F("Graph_eff_graph3111","HLT_PFJet450 Efficiency (GEN Jets)",133,0,800); Graph_eff_graph3111->SetMinimum(0); Graph_eff_graph3111->SetMaximum(1.1); Graph_eff_graph3111->SetDirectory(0); Graph_eff_graph3111->SetStats(0); ci = TColor::GetColor("#000099"); Graph_eff_graph3111->SetLineColor(ci); Graph_eff_graph3111->GetXaxis()->SetTitle("P_{T} [GeV/c]"); Graph_eff_graph3111->GetXaxis()->SetLabelFont(42); Graph_eff_graph3111->GetXaxis()->SetLabelOffset(0.014); Graph_eff_graph3111->GetXaxis()->SetLabelSize(0.05); Graph_eff_graph3111->GetXaxis()->SetTitleSize(0.055); Graph_eff_graph3111->GetXaxis()->SetTitleOffset(1.3); Graph_eff_graph3111->GetXaxis()->SetTitleFont(42); Graph_eff_graph3111->GetYaxis()->SetTitle("Efficiency"); Graph_eff_graph3111->GetYaxis()->SetLabelFont(42); Graph_eff_graph3111->GetYaxis()->SetLabelOffset(0.014); Graph_eff_graph3111->GetYaxis()->SetLabelSize(0.05); Graph_eff_graph3111->GetYaxis()->SetTitleSize(0.055); Graph_eff_graph3111->GetYaxis()->SetTitleOffset(1.6); Graph_eff_graph3111->GetYaxis()->SetTitleFont(42); Graph_eff_graph3111->GetZaxis()->SetLabelFont(42); Graph_eff_graph3111->GetZaxis()->SetLabelSize(0.035); Graph_eff_graph3111->GetZaxis()->SetTitleSize(0.035); Graph_eff_graph3111->GetZaxis()->SetTitleFont(42); grae->SetHistogram(Graph_eff_graph3111); TF1 *turnon_5003112 = new TF1("turnon_500","0.5*[2]*(1 + TMath::Erf((x - [0])/[1]))",525,730); turnon_5003112->SetFillColor(19); turnon_5003112->SetFillStyle(0); ci = TColor::GetColor("#00ff00"); turnon_5003112->SetLineColor(ci); turnon_5003112->SetLineWidth(2); turnon_5003112->SetChisquare(0.0003294732); turnon_5003112->SetNDF(12); turnon_5003112->GetXaxis()->SetLabelFont(42); turnon_5003112->GetXaxis()->SetLabelSize(0.035); turnon_5003112->GetXaxis()->SetTitleSize(0.035); turnon_5003112->GetXaxis()->SetTitleFont(42); turnon_5003112->GetYaxis()->SetLabelFont(42); turnon_5003112->GetYaxis()->SetLabelSize(0.035); turnon_5003112->GetYaxis()->SetTitleSize(0.035); turnon_5003112->GetYaxis()->SetTitleFont(42); turnon_5003112->SetParameter(0,524.5642); turnon_5003112->SetParError(0,0.3541479); turnon_5003112->SetParLimits(0,0,0); turnon_5003112->SetParameter(1,47.12895); turnon_5003112->SetParError(1,0.8764054); turnon_5003112->SetParLimits(1,0,0); turnon_5003112->SetParameter(2,0.9935985); turnon_5003112->SetParError(2,0.001951717); turnon_5003112->SetParLimits(2,0,0); grae->GetListOfFunctions()->Add(turnon_5003112); grae->Draw("p"); Double_t eff_graph_fx3113[133] = { 17.5, 22.5, 27.5, 32.5, 37.5, 42.5, 47.5, 52.5, 57.5, 62.5, 67.5, 72.5, 77.5, 82.5, 87.5, 92.5, 97.5, 102.5, 107.5, 112.5, 117.5, 122.5, 127.5, 132.5, 137.5, 142.5, 147.5, 152.5, 157.5, 162.5, 167.5, 172.5, 177.5, 182.5, 187.5, 192.5, 197.5, 202.5, 207.5, 212.5, 217.5, 222.5, 227.5, 232.5, 237.5, 242.5, 247.5, 252.5, 257.5, 262.5, 267.5, 272.5, 277.5, 282.5, 287.5, 292.5, 297.5, 305, 315, 325, 335, 345, 355, 365, 375, 385, 395, 405, 415, 425, 435, 445, 455, 465, 475, 485, 495, 505, 515, 525, 535, 545, 555, 565, 575, 585, 595, 610, 630, 650, 670, 690, 710, 730, 750, 770, 790, 810, 830, 850, 870, 890, 910, 930, 950, 970, 990, 1010, 1030, 1050, 1070, 1090, 1110, 1130, 1150, 1170, 1190, 1225, 1275, 1325, 1375, 1425, 1475, 1525, 1575, 1625, 1675, 1725, 1775, 1825, 1875, 1925, 1975}; Double_t eff_graph_fy3113[133] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 5.990176e-05, 1.235727e-05, 7.679803e-05, 0.0001205772, 0.0001521754, 0.0002019648, 0.0002529536, 0.0007096356, 0.001450269, 0.002604081, 0.005633755, 0.01307271, 0.02872485, 0.05711554, 0.1016044, 0.1670438, 0.259087, 0.3514878, 0.4613936, 0.5616768, 0.6519546, 0.725787, 0.7848711, 0.8304387, 0.867733, 0.9014847, 0.9301065, 0.9471311, 0.9617119, 0.9705996, 0.9776665, 0.9823548, 0.9851169, 0.9897381, 0.9919414, 0.9935737, 0.9947429, 0.9956177, 0.9964704, 0.9972956, 0.9982295, 0.9985114, 0.9987306, 0.9992002, 0.9995224, 0.9996619, 0.9995082, 0.999765, 0.9998012, 0.9998961, 0.999834, 0.999883, 0.9999387, 0.9999354, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1}; Double_t eff_graph_felx3113[133] = { 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25}; Double_t eff_graph_fely3113[133] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2.587362e-05, 1.022251e-05, 3.046193e-05, 3.943385e-05, 4.517477e-05, 5.332304e-05, 6.073695e-05, 0.0001042214, 0.0001516614, 0.0002067217, 0.000308723, 0.0004785007, 0.0007167344, 0.001005732, 0.00133104, 0.00167259, 0.00199299, 0.002210888, 0.002356661, 0.002387626, 0.002333361, 0.002206112, 0.002072402, 0.001930631, 0.001769418, 0.001129073, 0.0009936901, 0.000903434, 0.0008002831, 0.0007264466, 0.0006572434, 0.0006052088, 0.0005752806, 0.0004944981, 0.0004577872, 0.0004231819, 0.0003975079, 0.0003762124, 0.0003518332, 0.0003216492, 0.0002749356, 0.0002631499, 0.0002526967, 0.0002152687, 0.0001814111, 0.0001666869, 0.0001973889, 0.0001589419, 0.0001571665, 0.0001370436, 0.0001614491, 0.000154276, 0.0001410177, 0.0001485996, 0.0001240504, 5.441188e-05, 6.177527e-05, 7.06159e-05, 7.959825e-05, 9.03883e-05, 0.0001035101, 0.0001163295, 0.0001334081, 0.000151177, 0.0001690729, 0.0001972822, 0.0002195634, 0.0002479851, 0.0002840241, 0.0003277052, 0.0003697632}; Double_t eff_graph_fehx3113[133] = { 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25}; Double_t eff_graph_fehy3113[133] = { 5.144686e-05, 2.683513e-05, 2.397572e-05, 2.369827e-05, 2.324583e-05, 2.227601e-05, 2.077576e-05, 1.902807e-05, 1.792884e-05, 1.700007e-05, 1.634895e-05, 1.610384e-05, 1.571026e-05, 1.566748e-05, 1.560559e-05, 1.561618e-05, 1.576704e-05, 1.590228e-05, 1.61257e-05, 1.644167e-05, 1.666386e-05, 1.699631e-05, 1.721725e-05, 1.75152e-05, 1.78919e-05, 1.826792e-05, 1.868111e-05, 1.915478e-05, 1.947101e-05, 1.999005e-05, 2.03419e-05, 2.079266e-05, 2.141746e-05, 2.173043e-05, 2.223619e-05, 2.282194e-05, 2.328494e-05, 2.377662e-05, 2.422144e-05, 2.486391e-05, 2.554246e-05, 2.589708e-05, 2.644161e-05, 2.722804e-05, 2.762765e-05, 2.817175e-05, 2.892645e-05, 2.93152e-05, 3.01926e-05, 3.082915e-05, 3.131473e-05, 3.186541e-05, 3.259488e-05, 3.322549e-05, 3.427202e-05, 3.460182e-05, 3.490954e-05, 1.813298e-05, 1.901785e-05, 1.970126e-05, 2.031317e-05, 2.126114e-05, 4.052118e-05, 2.84153e-05, 4.586662e-05, 5.506147e-05, 6.10922e-05, 6.967389e-05, 7.74166e-05, 0.0001207651, 0.0001683874, 0.0002237715, 0.0003260159, 0.0004960951, 0.0007342902, 0.00102249, 0.001346572, 0.001686006, 0.002002959, 0.002217245, 0.00235838, 0.002384787, 0.002326129, 0.002195184, 0.002058097, 0.00191341, 0.001749728, 0.001117734, 0.0009808887, 0.0008892128, 0.0007846998, 0.0007096508, 0.0006391278, 0.0005858029, 0.0005545578, 0.0004724741, 0.0004339739, 0.0003979246, 0.0003705759, 0.0003476218, 0.0003212899, 0.0002890699, 0.000240034, 0.0002259958, 0.0002134523, 0.0001730851, 0.0001359037, 0.0001169889, 0.0001459824, 0.0001014999, 9.514373e-05, 6.712092e-05, 9.034311e-05, 7.556203e-05, 5.073579e-05, 5.346392e-05, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}; grae = new TGraphAsymmErrors(133,eff_graph_fx3113,eff_graph_fy3113,eff_graph_felx3113,eff_graph_fehx3113,eff_graph_fely3113,eff_graph_fehy3113); grae->SetName("eff_graph"); grae->SetTitle("HLT_PFJet450 Efficiency (GEN Jets)"); grae->SetFillColor(19); ci = TColor::GetColor("#0000ff"); grae->SetLineColor(ci); grae->SetLineWidth(3); ci = TColor::GetColor("#0000ff"); grae->SetMarkerColor(ci); grae->SetMarkerStyle(22); grae->SetMarkerSize(0.9); TH1F *Graph_eff_graph3113 = new TH1F("Graph_eff_graph3113","HLT_PFJet450 Efficiency (GEN Jets)",133,0,800); Graph_eff_graph3113->SetMinimum(0); Graph_eff_graph3113->SetMaximum(1.1); Graph_eff_graph3113->SetDirectory(0); Graph_eff_graph3113->SetStats(0); ci = TColor::GetColor("#000099"); Graph_eff_graph3113->SetLineColor(ci); Graph_eff_graph3113->GetXaxis()->SetTitle("P_{T} [GeV/c]"); Graph_eff_graph3113->GetXaxis()->SetLabelFont(42); Graph_eff_graph3113->GetXaxis()->SetLabelOffset(0.014); Graph_eff_graph3113->GetXaxis()->SetLabelSize(0.05); Graph_eff_graph3113->GetXaxis()->SetTitleSize(0.055); Graph_eff_graph3113->GetXaxis()->SetTitleOffset(1.3); Graph_eff_graph3113->GetXaxis()->SetTitleFont(42); Graph_eff_graph3113->GetYaxis()->SetTitle("Efficiency"); Graph_eff_graph3113->GetYaxis()->SetLabelFont(42); Graph_eff_graph3113->GetYaxis()->SetLabelOffset(0.014); Graph_eff_graph3113->GetYaxis()->SetLabelSize(0.05); Graph_eff_graph3113->GetYaxis()->SetTitleSize(0.055); Graph_eff_graph3113->GetYaxis()->SetTitleOffset(1.6); Graph_eff_graph3113->GetYaxis()->SetTitleFont(42); Graph_eff_graph3113->GetZaxis()->SetLabelFont(42); Graph_eff_graph3113->GetZaxis()->SetLabelSize(0.035); Graph_eff_graph3113->GetZaxis()->SetTitleSize(0.035); Graph_eff_graph3113->GetZaxis()->SetTitleFont(42); grae->SetHistogram(Graph_eff_graph3113); TF1 *turnon_5003114 = new TF1("turnon_500","0.5*[2]*(1 + TMath::Erf((x - [0])/[1]))",535,950); turnon_5003114->SetFillColor(19); turnon_5003114->SetFillStyle(0); ci = TColor::GetColor("#0000ff"); turnon_5003114->SetLineColor(ci); turnon_5003114->SetLineWidth(2); turnon_5003114->SetChisquare(0.004643473); turnon_5003114->SetNDF(22); turnon_5003114->GetXaxis()->SetLabelFont(42); turnon_5003114->GetXaxis()->SetLabelSize(0.035); turnon_5003114->GetXaxis()->SetTitleSize(0.035); turnon_5003114->GetXaxis()->SetTitleFont(42); turnon_5003114->GetYaxis()->SetLabelFont(42); turnon_5003114->GetYaxis()->SetLabelSize(0.035); turnon_5003114->GetYaxis()->SetTitleSize(0.035); turnon_5003114->GetYaxis()->SetTitleFont(42); turnon_5003114->SetParameter(0,535.9758); turnon_5003114->SetParError(0,1.296166); turnon_5003114->SetParLimits(0,0,0); turnon_5003114->SetParameter(1,70.77021); turnon_5003114->SetParError(1,3.407131); turnon_5003114->SetParLimits(1,0,0); turnon_5003114->SetParameter(2,0.9860835); turnon_5003114->SetParError(2,0.00374297); turnon_5003114->SetParLimits(2,0,0); grae->GetListOfFunctions()->Add(turnon_5003114); grae->Draw("p"); TLegend *leg = new TLegend(0.74,0.17,0.94,0.3,NULL,"brNDC"); leg->SetBorderSize(1); leg->SetLineColor(1); leg->SetLineStyle(1); leg->SetLineWidth(1); leg->SetFillColor(0); leg->SetFillStyle(1001); TLegendEntry *entry=leg->AddEntry("eff_graph","AK4","LP"); ci = TColor::GetColor("#ff0000"); entry->SetLineColor(ci); entry->SetLineStyle(1); entry->SetLineWidth(3); ci = TColor::GetColor("#ff0000"); entry->SetMarkerColor(ci); entry->SetMarkerStyle(20); entry->SetMarkerSize(0.9); entry->SetTextFont(42); entry=leg->AddEntry("eff_graph","AK8","lpf"); entry->SetFillColor(19); entry->SetFillStyle(1001); ci = TColor::GetColor("#00ff00"); entry->SetLineColor(ci); entry->SetLineStyle(1); entry->SetLineWidth(3); ci = TColor::GetColor("#00ff00"); entry->SetMarkerColor(ci); entry->SetMarkerStyle(21); entry->SetMarkerSize(0.9); entry->SetTextFont(42); entry=leg->AddEntry("eff_graph","AK4-AK8","LP"); ci = TColor::GetColor("#0000ff"); entry->SetLineColor(ci); entry->SetLineStyle(1); entry->SetLineWidth(3); ci = TColor::GetColor("#0000ff"); entry->SetMarkerColor(ci); entry->SetMarkerStyle(22); entry->SetMarkerSize(0.9); entry->SetTextFont(42); leg->Draw(); TPaveText *pt = new TPaveText(0.15,0.9343728,0.85,0.995,"blNDC"); pt->SetName("title"); pt->SetBorderSize(0); pt->SetFillColor(0); pt->SetFillStyle(0); pt->SetTextFont(42); TText *AText = pt->AddText("HLT_PFJet450 Efficiency (GEN Jets)"); pt->Draw(); Eff_GEN_PT500->Modified(); Eff_GEN_PT500->cd(); Eff_GEN_PT500->SetSelected(Eff_GEN_PT500); }