void Eff_GEN_PT40() { //=========Macro generated from canvas: Eff_GEN_PT40/ //========= (Fri May 13 17:52:57 2016) by ROOT version6.06/01 TCanvas *Eff_GEN_PT40 = new TCanvas("Eff_GEN_PT40", "",0,0,600,600); Eff_GEN_PT40->Range(-187.013,-0.2142857,851.9481,1.214286); Eff_GEN_PT40->SetFillColor(0); Eff_GEN_PT40->SetBorderMode(0); Eff_GEN_PT40->SetBorderSize(10); Eff_GEN_PT40->SetGridx(); Eff_GEN_PT40->SetGridy(); Eff_GEN_PT40->SetLeftMargin(0.18); Eff_GEN_PT40->SetRightMargin(0.05); Eff_GEN_PT40->SetTopMargin(0.08); Eff_GEN_PT40->SetBottomMargin(0.15); Eff_GEN_PT40->SetFrameFillStyle(0); Eff_GEN_PT40->SetFrameLineStyle(0); Eff_GEN_PT40->SetFrameBorderMode(0); Eff_GEN_PT40->SetFrameBorderSize(10); Eff_GEN_PT40->SetFrameFillStyle(0); Eff_GEN_PT40->SetFrameLineStyle(0); Eff_GEN_PT40->SetFrameBorderMode(0); Eff_GEN_PT40->SetFrameBorderSize(10); Double_t eff_graph_fx3121[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_fy3121[136] = { 0, 0, 0.0007474349, 0.002173716, 0.006009433, 0.02892078, 0.1378922, 0.3997237, 0.6943818, 0.8742308, 0.9537221, 0.9834715, 0.9933165, 0.9975136, 0.9988061, 0.9994508, 0.9997091, 0.9998441, 0.9998838, 0.9999832, 0.9999829, 0.9999826, 1, 1, 0.9999815, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_felx3121[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_fely3121[136] = { 0, 0, 0.000129416, 0.0001673837, 0.0002637375, 0.0005681277, 0.001158789, 0.001601201, 0.001455424, 0.00101298, 0.0006306018, 0.0003787936, 0.0002418754, 0.0001504803, 0.000106359, 7.498212e-05, 5.700044e-05, 4.45964e-05, 4.009466e-05, 2.218883e-05, 2.249058e-05, 2.299764e-05, 1.640343e-05, 1.670408e-05, 2.43767e-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, 2.057492e-05, 2.143991e-05, 2.245233e-05, 2.31116e-05, 2.391374e-05, 2.505237e-05, 2.596319e-05, 2.683513e-05, 2.797781e-05, 2.90529e-05, 2.997093e-05, 3.069704e-05, 3.212508e-05, 3.339e-05, 3.429436e-05, 3.527881e-05, 3.659507e-05, 3.773055e-05, 3.891078e-05, 4.035919e-05, 4.17466e-05, 4.335088e-05, 4.45553e-05, 4.566828e-05, 4.731862e-05, 4.870309e-05, 5.090347e-05, 5.188911e-05, 2.737419e-05, 2.894191e-05, 3.09047e-05, 3.263012e-05, 3.475861e-05, 3.665481e-05, 3.867699e-05, 4.096902e-05, 4.335496e-05, 4.634308e-05, 4.855409e-05, 5.167356e-05, 5.463634e-05, 5.778669e-05, 6.145153e-05, 6.473144e-05, 6.771718e-05, 7.0978e-05, 7.427392e-05, 7.8926e-05, 8.388901e-05, 8.797805e-05, 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_fehx3121[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_fehy3121[136] = { 0.01960128, 0.0002181584, 0.0001540056, 0.0001807645, 0.000275498, 0.000579054, 0.001166987, 0.00160334, 0.001451567, 0.001006074, 0.0006225862, 0.0003705381, 0.0002336217, 0.0001421359, 9.797969e-05, 6.642387e-05, 4.825017e-05, 3.54498e-05, 3.068431e-05, 1.086654e-05, 1.101431e-05, 1.126264e-05, 0, 0, 1.193802e-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, 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, 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}; TGraphAsymmErrors *grae = new TGraphAsymmErrors(136,eff_graph_fx3121,eff_graph_fy3121,eff_graph_felx3121,eff_graph_fehx3121,eff_graph_fely3121,eff_graph_fehy3121); grae->SetName("eff_graph"); grae->SetTitle("HLT_PFJet40 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_Graph_eff_graph30013121 = new TH1F("Graph_Graph_eff_graph30013121","HLT_PFJet40 Efficiency (GEN Jets)",136,0,800); Graph_Graph_eff_graph30013121->SetMinimum(0); Graph_Graph_eff_graph30013121->SetMaximum(1.1); Graph_Graph_eff_graph30013121->SetDirectory(0); Graph_Graph_eff_graph30013121->SetStats(0); ci = TColor::GetColor("#000099"); Graph_Graph_eff_graph30013121->SetLineColor(ci); Graph_Graph_eff_graph30013121->GetXaxis()->SetTitle("P_{T} [GeV/c]"); Graph_Graph_eff_graph30013121->GetXaxis()->SetLabelFont(42); Graph_Graph_eff_graph30013121->GetXaxis()->SetLabelOffset(0.014); Graph_Graph_eff_graph30013121->GetXaxis()->SetLabelSize(0.05); Graph_Graph_eff_graph30013121->GetXaxis()->SetTitleSize(0.055); Graph_Graph_eff_graph30013121->GetXaxis()->SetTitleOffset(1.3); Graph_Graph_eff_graph30013121->GetXaxis()->SetTitleFont(42); Graph_Graph_eff_graph30013121->GetYaxis()->SetTitle("Efficiency"); Graph_Graph_eff_graph30013121->GetYaxis()->SetLabelFont(42); Graph_Graph_eff_graph30013121->GetYaxis()->SetLabelOffset(0.014); Graph_Graph_eff_graph30013121->GetYaxis()->SetLabelSize(0.05); Graph_Graph_eff_graph30013121->GetYaxis()->SetTitleSize(0.055); Graph_Graph_eff_graph30013121->GetYaxis()->SetTitleOffset(1.6); Graph_Graph_eff_graph30013121->GetYaxis()->SetTitleFont(42); Graph_Graph_eff_graph30013121->GetZaxis()->SetLabelFont(42); Graph_Graph_eff_graph30013121->GetZaxis()->SetLabelSize(0.035); Graph_Graph_eff_graph30013121->GetZaxis()->SetTitleSize(0.035); Graph_Graph_eff_graph30013121->GetZaxis()->SetTitleFont(42); grae->SetHistogram(Graph_Graph_eff_graph30013121); TF1 *turnon_403122 = new TF1("turnon_40","0.5*[2]*(1 + TMath::Erf((x - [0])/[1]))",37.5,72.5); turnon_403122->SetFillColor(19); turnon_403122->SetFillStyle(0); ci = TColor::GetColor("#ff0000"); turnon_403122->SetLineColor(ci); turnon_403122->SetLineWidth(2); turnon_403122->SetChisquare(0.00044654); turnon_403122->SetNDF(5); turnon_403122->GetXaxis()->SetLabelFont(42); turnon_403122->GetXaxis()->SetLabelSize(0.035); turnon_403122->GetXaxis()->SetTitleSize(0.035); turnon_403122->GetXaxis()->SetTitleFont(42); turnon_403122->GetYaxis()->SetLabelFont(42); turnon_403122->GetYaxis()->SetLabelSize(0.035); turnon_403122->GetYaxis()->SetTitleSize(0.035); turnon_403122->GetYaxis()->SetTitleFont(42); turnon_403122->SetParameter(0,39.09244); turnon_403122->SetParError(0,0.135934); turnon_403122->SetParLimits(0,0,0); turnon_403122->SetParameter(1,9.8434); turnon_403122->SetParError(1,0.3658726); turnon_403122->SetParLimits(1,0,0); turnon_403122->SetParameter(2,0.9919156); turnon_403122->SetParError(2,0.00470617); turnon_403122->SetParLimits(2,0,0); grae->GetListOfFunctions()->Add(turnon_403122); grae->Draw("ap"); Double_t eff_graph_fx3123[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_fy3123[133] = { 0.04809412, 0.07498105, 0.1575157, 0.329935, 0.5809437, 0.7958739, 0.9118865, 0.964931, 0.9855674, 0.9947643, 0.9977888, 0.9991165, 0.9995392, 0.9998638, 0.9998729, 0.9999661, 1, 0.9999741, 1, 1, 0.9999909, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_felx3123[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_fely3123[133] = { 0.001132313, 0.00100654, 0.00131665, 0.001691186, 0.001760598, 0.001411689, 0.0009625525, 0.0006014235, 0.0003818679, 0.000228617, 0.000149023, 9.689941e-05, 7.160998e-05, 4.325441e-05, 4.202998e-05, 2.682696e-05, 1.576704e-05, 2.520611e-05, 1.61257e-05, 1.644167e-05, 2.081384e-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, 2.205584e-05, 2.274975e-05, 2.35642e-05, 2.466471e-05, 2.546861e-05, 2.655833e-05, 2.739333e-05, 2.840078e-05, 2.933996e-05, 3.034238e-05, 3.133445e-05, 3.265501e-05, 3.385543e-05, 3.450907e-05, 3.562905e-05, 3.686916e-05, 3.78913e-05, 3.921245e-05, 4.078839e-05, 4.217118e-05, 4.359107e-05, 4.430973e-05, 4.594523e-05, 4.765052e-05, 4.891531e-05, 2.583567e-05, 2.719225e-05, 2.901947e-05, 3.07406e-05, 3.244953e-05, 3.440653e-05, 3.641771e-05, 3.859105e-05, 4.045408e-05, 4.337948e-05, 4.567848e-05, 4.839073e-05, 5.106159e-05, 5.414941e-05, 5.722627e-05, 6.036152e-05, 6.372981e-05, 6.677161e-05, 7.0113e-05, 7.326598e-05, 7.780196e-05, 8.230634e-05, 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_fehx3123[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_fehy3123[133] = { 0.001157882, 0.00101902, 0.001325615, 0.001695581, 0.001758547, 0.001404498, 0.0009532012, 0.0005917287, 0.0003722867, 0.0002192871, 0.000139901, 8.773208e-05, 6.250271e-05, 3.368069e-05, 3.245922e-05, 1.623814e-05, 0, 1.410297e-05, 0, 0, 7.487815e-06, 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, 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}; grae = new TGraphAsymmErrors(133,eff_graph_fx3123,eff_graph_fy3123,eff_graph_felx3123,eff_graph_fehx3123,eff_graph_fely3123,eff_graph_fehy3123); grae->SetName("eff_graph"); grae->SetTitle("HLT_PFJet40 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_Graph_eff_graph30213123 = new TH1F("Graph_Graph_eff_graph30213123","HLT_PFJet40 Efficiency (GEN Jets)",133,0,800); Graph_Graph_eff_graph30213123->SetMinimum(0); Graph_Graph_eff_graph30213123->SetMaximum(1.1); Graph_Graph_eff_graph30213123->SetDirectory(0); Graph_Graph_eff_graph30213123->SetStats(0); ci = TColor::GetColor("#000099"); Graph_Graph_eff_graph30213123->SetLineColor(ci); Graph_Graph_eff_graph30213123->GetXaxis()->SetTitle("P_{T} [GeV/c]"); Graph_Graph_eff_graph30213123->GetXaxis()->SetLabelFont(42); Graph_Graph_eff_graph30213123->GetXaxis()->SetLabelOffset(0.014); Graph_Graph_eff_graph30213123->GetXaxis()->SetLabelSize(0.05); Graph_Graph_eff_graph30213123->GetXaxis()->SetTitleSize(0.055); Graph_Graph_eff_graph30213123->GetXaxis()->SetTitleOffset(1.3); Graph_Graph_eff_graph30213123->GetXaxis()->SetTitleFont(42); Graph_Graph_eff_graph30213123->GetYaxis()->SetTitle("Efficiency"); Graph_Graph_eff_graph30213123->GetYaxis()->SetLabelFont(42); Graph_Graph_eff_graph30213123->GetYaxis()->SetLabelOffset(0.014); Graph_Graph_eff_graph30213123->GetYaxis()->SetLabelSize(0.05); Graph_Graph_eff_graph30213123->GetYaxis()->SetTitleSize(0.055); Graph_Graph_eff_graph30213123->GetYaxis()->SetTitleOffset(1.6); Graph_Graph_eff_graph30213123->GetYaxis()->SetTitleFont(42); Graph_Graph_eff_graph30213123->GetZaxis()->SetLabelFont(42); Graph_Graph_eff_graph30213123->GetZaxis()->SetLabelSize(0.035); Graph_Graph_eff_graph30213123->GetZaxis()->SetTitleSize(0.035); Graph_Graph_eff_graph30213123->GetZaxis()->SetTitleFont(42); grae->SetHistogram(Graph_Graph_eff_graph30213123); TF1 *turnon_403124 = new TF1("turnon_40","0.5*[2]*(1 + TMath::Erf((x - [0])/[1]))",32.5,67.5); turnon_403124->SetFillColor(19); turnon_403124->SetFillStyle(0); ci = TColor::GetColor("#00ff00"); turnon_403124->SetLineColor(ci); turnon_403124->SetLineWidth(2); turnon_403124->SetChisquare(0.0002529252); turnon_403124->SetNDF(5); turnon_403124->GetXaxis()->SetLabelFont(42); turnon_403124->GetXaxis()->SetLabelSize(0.035); turnon_403124->GetXaxis()->SetTitleSize(0.035); turnon_403124->GetXaxis()->SetTitleFont(42); turnon_403124->GetYaxis()->SetLabelFont(42); turnon_403124->GetYaxis()->SetLabelSize(0.035); turnon_403124->GetYaxis()->SetTitleSize(0.035); turnon_403124->GetYaxis()->SetTitleFont(42); turnon_403124->SetParameter(0,35.835); turnon_403124->SetParError(0,0.1067851); turnon_403124->SetParLimits(0,0,0); turnon_403124->SetParameter(1,11.28999); turnon_403124->SetParError(1,0.2733852); turnon_403124->SetParLimits(1,0,0); turnon_403124->SetParameter(2,0.9906682); turnon_403124->SetParError(2,0.003894288); turnon_403124->SetParLimits(2,0,0); grae->GetListOfFunctions()->Add(turnon_403124); grae->Draw("p"); Double_t eff_graph_fx3125[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_fy3125[133] = { 0.0007265817, 0.00170544, 0.005990675, 0.03128017, 0.1216081, 0.3129893, 0.544085, 0.734052, 0.8564528, 0.9260716, 0.9622581, 0.9818406, 0.9911593, 0.995464, 0.9978808, 0.9989058, 0.999666, 0.9997581, 0.9999036, 0.9999643, 1, 0.9999815, 0.9999719, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_felx3125[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_fely3125[133] = { 0.0001415388, 0.0001573318, 0.0002784538, 0.0006249027, 0.00116288, 0.001616784, 0.00167925, 0.001428059, 0.001102557, 0.0008036843, 0.0005764886, 0.0004035675, 0.0002819947, 0.0002046215, 0.0001425218, 0.0001050102, 6.249347e-05, 5.488039e-05, 3.868247e-05, 2.824503e-05, 1.666386e-05, 2.43524e-05, 2.729037e-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, 2.205584e-05, 2.274975e-05, 2.35642e-05, 2.466471e-05, 2.546861e-05, 2.655833e-05, 2.739333e-05, 2.840078e-05, 2.933996e-05, 3.034238e-05, 3.133445e-05, 3.265501e-05, 3.385543e-05, 3.450907e-05, 3.562905e-05, 3.686916e-05, 3.78913e-05, 3.921245e-05, 4.078839e-05, 4.217118e-05, 4.359107e-05, 4.430973e-05, 4.594523e-05, 4.765052e-05, 4.891531e-05, 2.583567e-05, 2.719225e-05, 2.901947e-05, 3.07406e-05, 3.244953e-05, 3.440653e-05, 3.641771e-05, 3.859105e-05, 4.045408e-05, 4.337948e-05, 4.567848e-05, 4.839073e-05, 5.106159e-05, 5.414941e-05, 5.722627e-05, 6.036152e-05, 6.372981e-05, 6.677161e-05, 7.0113e-05, 7.326598e-05, 7.780196e-05, 8.230634e-05, 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_fehx3125[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_fehy3125[133] = { 0.0001721874, 0.0001725317, 0.0002916221, 0.0006370942, 0.001172488, 0.001621327, 0.001678252, 0.001423203, 0.001095583, 0.0007957698, 0.0005682143, 0.0003950445, 0.0002734813, 0.0001960052, 0.0001338135, 9.61729e-05, 5.324777e-05, 4.54288e-05, 2.860311e-05, 1.709651e-05, 0, 1.192612e-05, 1.526916e-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, 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, 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_fx3125,eff_graph_fy3125,eff_graph_felx3125,eff_graph_fehx3125,eff_graph_fely3125,eff_graph_fehy3125); grae->SetName("eff_graph"); grae->SetTitle("HLT_PFJet40 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_Graph_eff_graph30413125 = new TH1F("Graph_Graph_eff_graph30413125","HLT_PFJet40 Efficiency (GEN Jets)",133,0,800); Graph_Graph_eff_graph30413125->SetMinimum(0); Graph_Graph_eff_graph30413125->SetMaximum(1.1); Graph_Graph_eff_graph30413125->SetDirectory(0); Graph_Graph_eff_graph30413125->SetStats(0); ci = TColor::GetColor("#000099"); Graph_Graph_eff_graph30413125->SetLineColor(ci); Graph_Graph_eff_graph30413125->GetXaxis()->SetTitle("P_{T} [GeV/c]"); Graph_Graph_eff_graph30413125->GetXaxis()->SetLabelFont(42); Graph_Graph_eff_graph30413125->GetXaxis()->SetLabelOffset(0.014); Graph_Graph_eff_graph30413125->GetXaxis()->SetLabelSize(0.05); Graph_Graph_eff_graph30413125->GetXaxis()->SetTitleSize(0.055); Graph_Graph_eff_graph30413125->GetXaxis()->SetTitleOffset(1.3); Graph_Graph_eff_graph30413125->GetXaxis()->SetTitleFont(42); Graph_Graph_eff_graph30413125->GetYaxis()->SetTitle("Efficiency"); Graph_Graph_eff_graph30413125->GetYaxis()->SetLabelFont(42); Graph_Graph_eff_graph30413125->GetYaxis()->SetLabelOffset(0.014); Graph_Graph_eff_graph30413125->GetYaxis()->SetLabelSize(0.05); Graph_Graph_eff_graph30413125->GetYaxis()->SetTitleSize(0.055); Graph_Graph_eff_graph30413125->GetYaxis()->SetTitleOffset(1.6); Graph_Graph_eff_graph30413125->GetYaxis()->SetTitleFont(42); Graph_Graph_eff_graph30413125->GetZaxis()->SetLabelFont(42); Graph_Graph_eff_graph30413125->GetZaxis()->SetLabelSize(0.035); Graph_Graph_eff_graph30413125->GetZaxis()->SetTitleSize(0.035); Graph_Graph_eff_graph30413125->GetZaxis()->SetTitleFont(42); grae->SetHistogram(Graph_Graph_eff_graph30413125); TF1 *turnon_403126 = new TF1("turnon_40","0.5*[2]*(1 + TMath::Erf((x - [0])/[1]))",42.5,92.5); turnon_403126->SetFillColor(19); turnon_403126->SetFillStyle(0); ci = TColor::GetColor("#0000ff"); turnon_403126->SetLineColor(ci); turnon_403126->SetLineWidth(2); turnon_403126->SetChisquare(0.001245843); turnon_403126->SetNDF(8); turnon_403126->GetXaxis()->SetLabelFont(42); turnon_403126->GetXaxis()->SetLabelSize(0.035); turnon_403126->GetXaxis()->SetTitleSize(0.035); turnon_403126->GetXaxis()->SetTitleFont(42); turnon_403126->GetYaxis()->SetLabelFont(42); turnon_403126->GetYaxis()->SetLabelSize(0.035); turnon_403126->GetYaxis()->SetTitleSize(0.035); turnon_403126->GetYaxis()->SetTitleFont(42); turnon_403126->SetParameter(0,46.63721); turnon_403126->SetParError(0,0.2022164); turnon_403126->SetParLimits(0,0,0); turnon_403126->SetParameter(1,13.49078); turnon_403126->SetParError(1,0.5316919); turnon_403126->SetParLimits(1,0,0); turnon_403126->SetParameter(2,0.989251); turnon_403126->SetParError(2,0.005386469); turnon_403126->SetParLimits(2,0,0); grae->GetListOfFunctions()->Add(turnon_403126); 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.9341608,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_PFJet40 Efficiency (GEN Jets)"); pt->Draw(); Eff_GEN_PT40->Modified(); Eff_GEN_PT40->cd(); Eff_GEN_PT40->SetSelected(Eff_GEN_PT40); }