void Eff_GEN_PT60() { //=========Macro generated from canvas: Eff_GEN_PT60/ //========= (Fri May 13 17:52:57 2016) by ROOT version6.06/01 TCanvas *Eff_GEN_PT60 = new TCanvas("Eff_GEN_PT60", "",0,0,600,600); Eff_GEN_PT60->Range(-187.013,-0.2142857,851.9481,1.214286); Eff_GEN_PT60->SetFillColor(0); Eff_GEN_PT60->SetBorderMode(0); Eff_GEN_PT60->SetBorderSize(10); Eff_GEN_PT60->SetGridx(); Eff_GEN_PT60->SetGridy(); Eff_GEN_PT60->SetLeftMargin(0.18); Eff_GEN_PT60->SetRightMargin(0.05); Eff_GEN_PT60->SetTopMargin(0.08); Eff_GEN_PT60->SetBottomMargin(0.15); Eff_GEN_PT60->SetFrameFillStyle(0); Eff_GEN_PT60->SetFrameLineStyle(0); Eff_GEN_PT60->SetFrameBorderMode(0); Eff_GEN_PT60->SetFrameBorderSize(10); Eff_GEN_PT60->SetFrameFillStyle(0); Eff_GEN_PT60->SetFrameLineStyle(0); Eff_GEN_PT60->SetFrameBorderMode(0); Eff_GEN_PT60->SetFrameBorderSize(10); Double_t eff_graph_fx3133[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_fy3133[136] = { 0, 0, 0, 2.587757e-05, 1.164619e-05, 0.000206659, 0.0007097392, 0.002922889, 0.01290342, 0.05197752, 0.1699808, 0.386318, 0.6337315, 0.8141146, 0.9139649, 0.9621284, 0.9837911, 0.9921469, 0.9958328, 0.9978718, 0.9988575, 0.9992676, 0.9995901, 0.9996824, 0.9998614, 0.9998401, 0.9999323, 0.9999704, 0.9999899, 1, 1, 1, 1, 0.9999886, 0.9999884, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0.9999847, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_felx3133[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_fely3133[136] = { 0, 0, 0, 1.67145e-05, 9.634268e-06, 4.825067e-05, 8.915657e-05, 0.0001759222, 0.0003549586, 0.0006732066, 0.001113921, 0.001417921, 0.001386574, 0.001117356, 0.0008038443, 0.0005502932, 0.000366961, 0.0002610828, 0.000193991, 0.0001422251, 0.0001074031, 8.890539e-05, 6.976211e-05, 6.3251e-05, 4.582091e-05, 4.894113e-05, 3.647704e-05, 2.877074e-05, 2.331169e-05, 1.910132e-05, 1.943114e-05, 1.999721e-05, 2.052606e-05, 2.612782e-05, 2.669068e-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, 3.518374e-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_fehx3133[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_fehy3133[136] = { 0.01960128, 0.0002181584, 4.169743e-05, 3.412968e-05, 2.678021e-05, 6.108261e-05, 0.0001011168, 0.0001868082, 0.0003647254, 0.0006814928, 0.001119734, 0.001419846, 0.001384369, 0.001112215, 0.0007971315, 0.0005427727, 0.0003590548, 0.0002528746, 0.0001855747, 0.0001335851, 9.852808e-05, 7.972357e-05, 6.020132e-05, 5.341502e-05, 3.538706e-05, 3.83953e-05, 2.497641e-05, 1.609745e-05, 8.386435e-06, 0, 0, 0, 0, 9.399566e-06, 9.602061e-06, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1.265754e-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}; TGraphAsymmErrors *grae = new TGraphAsymmErrors(136,eff_graph_fx3133,eff_graph_fy3133,eff_graph_felx3133,eff_graph_fehx3133,eff_graph_fely3133,eff_graph_fehy3133); grae->SetName("eff_graph"); grae->SetTitle("HLT_PFJet60 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_graph30033133 = new TH1F("Graph_Graph_eff_graph30033133","HLT_PFJet60 Efficiency (GEN Jets)",136,0,800); Graph_Graph_eff_graph30033133->SetMinimum(0); Graph_Graph_eff_graph30033133->SetMaximum(1.1); Graph_Graph_eff_graph30033133->SetDirectory(0); Graph_Graph_eff_graph30033133->SetStats(0); ci = TColor::GetColor("#000099"); Graph_Graph_eff_graph30033133->SetLineColor(ci); Graph_Graph_eff_graph30033133->GetXaxis()->SetTitle("P_{T} [GeV/c]"); Graph_Graph_eff_graph30033133->GetXaxis()->SetLabelFont(42); Graph_Graph_eff_graph30033133->GetXaxis()->SetLabelOffset(0.014); Graph_Graph_eff_graph30033133->GetXaxis()->SetLabelSize(0.05); Graph_Graph_eff_graph30033133->GetXaxis()->SetTitleSize(0.055); Graph_Graph_eff_graph30033133->GetXaxis()->SetTitleOffset(1.3); Graph_Graph_eff_graph30033133->GetXaxis()->SetTitleFont(42); Graph_Graph_eff_graph30033133->GetYaxis()->SetTitle("Efficiency"); Graph_Graph_eff_graph30033133->GetYaxis()->SetLabelFont(42); Graph_Graph_eff_graph30033133->GetYaxis()->SetLabelOffset(0.014); Graph_Graph_eff_graph30033133->GetYaxis()->SetLabelSize(0.05); Graph_Graph_eff_graph30033133->GetYaxis()->SetTitleSize(0.055); Graph_Graph_eff_graph30033133->GetYaxis()->SetTitleOffset(1.6); Graph_Graph_eff_graph30033133->GetYaxis()->SetTitleFont(42); Graph_Graph_eff_graph30033133->GetZaxis()->SetLabelFont(42); Graph_Graph_eff_graph30033133->GetZaxis()->SetLabelSize(0.035); Graph_Graph_eff_graph30033133->GetZaxis()->SetTitleSize(0.035); Graph_Graph_eff_graph30033133->GetZaxis()->SetTitleFont(42); grae->SetHistogram(Graph_Graph_eff_graph30033133); TF1 *turnon_603134 = new TF1("turnon_60","0.5*[2]*(1 + TMath::Erf((x - [0])/[1]))",57.5,102.5); turnon_603134->SetFillColor(19); turnon_603134->SetFillStyle(0); ci = TColor::GetColor("#ff0000"); turnon_603134->SetLineColor(ci); turnon_603134->SetLineWidth(2); turnon_603134->SetChisquare(0.0005587014); turnon_603134->SetNDF(7); turnon_603134->GetXaxis()->SetLabelFont(42); turnon_603134->GetXaxis()->SetLabelSize(0.035); turnon_603134->GetXaxis()->SetTitleSize(0.035); turnon_603134->GetXaxis()->SetTitleFont(42); turnon_603134->GetYaxis()->SetLabelFont(42); turnon_603134->GetYaxis()->SetLabelSize(0.035); turnon_603134->GetYaxis()->SetTitleSize(0.035); turnon_603134->GetYaxis()->SetTitleFont(42); turnon_603134->SetParameter(0,59.71467); turnon_603134->SetParError(0,0.145872); turnon_603134->SetParLimits(0,0,0); turnon_603134->SetParameter(1,12.16418); turnon_603134->SetParError(1,0.3906652); turnon_603134->SetParLimits(1,0,0); turnon_603134->SetParameter(2,0.9919888); turnon_603134->SetParError(2,0.003934432); turnon_603134->SetParLimits(2,0,0); grae->GetListOfFunctions()->Add(turnon_603134); grae->Draw("ap"); Double_t eff_graph_fx3135[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_fy3135[133] = { 0.0001956182, 0.0003352574, 0.0008986013, 0.002445775, 0.008573557, 0.03368625, 0.1064855, 0.2563048, 0.4616201, 0.6689198, 0.8186347, 0.9069287, 0.9557196, 0.9791839, 0.990201, 0.9954534, 0.9979959, 0.9988598, 0.9995182, 0.9997053, 0.9997647, 0.9998984, 0.9999252, 0.9999619, 0.9999806, 0.9999901, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_felx3135[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_fely3135[133] = { 7.213763e-05, 6.938687e-05, 0.0001078786, 0.0001770924, 0.0003276351, 0.0006279578, 0.001037387, 0.001406242, 0.001560221, 0.001436227, 0.001155536, 0.0008672258, 0.0006091345, 0.0004248757, 0.0002952647, 0.0002044991, 0.0001396107, 0.0001080621, 7.409223e-05, 6.074159e-05, 5.578822e-05, 4.077075e-05, 3.689325e-05, 3.00892e-05, 2.563559e-05, 2.281737e-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_fehx3135[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_fehy3135[133] = { 0.0001053463, 8.547608e-05, 0.0001216629, 0.0001903678, 0.0003402846, 0.0006393513, 0.001046317, 0.001411298, 0.001560971, 0.001433097, 0.001149855, 0.0008600706, 0.0006013015, 0.0004166364, 0.0002868313, 0.0001959118, 0.0001308012, 9.906803e-05, 6.474998e-05, 5.103711e-05, 4.585152e-05, 3.014733e-05, 2.588978e-05, 1.821281e-05, 1.255456e-05, 8.208601e-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}; grae = new TGraphAsymmErrors(133,eff_graph_fx3135,eff_graph_fy3135,eff_graph_felx3135,eff_graph_fehx3135,eff_graph_fely3135,eff_graph_fehy3135); grae->SetName("eff_graph"); grae->SetTitle("HLT_PFJet60 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_graph30233135 = new TH1F("Graph_Graph_eff_graph30233135","HLT_PFJet60 Efficiency (GEN Jets)",133,0,800); Graph_Graph_eff_graph30233135->SetMinimum(0); Graph_Graph_eff_graph30233135->SetMaximum(1.1); Graph_Graph_eff_graph30233135->SetDirectory(0); Graph_Graph_eff_graph30233135->SetStats(0); ci = TColor::GetColor("#000099"); Graph_Graph_eff_graph30233135->SetLineColor(ci); Graph_Graph_eff_graph30233135->GetXaxis()->SetTitle("P_{T} [GeV/c]"); Graph_Graph_eff_graph30233135->GetXaxis()->SetLabelFont(42); Graph_Graph_eff_graph30233135->GetXaxis()->SetLabelOffset(0.014); Graph_Graph_eff_graph30233135->GetXaxis()->SetLabelSize(0.05); Graph_Graph_eff_graph30233135->GetXaxis()->SetTitleSize(0.055); Graph_Graph_eff_graph30233135->GetXaxis()->SetTitleOffset(1.3); Graph_Graph_eff_graph30233135->GetXaxis()->SetTitleFont(42); Graph_Graph_eff_graph30233135->GetYaxis()->SetTitle("Efficiency"); Graph_Graph_eff_graph30233135->GetYaxis()->SetLabelFont(42); Graph_Graph_eff_graph30233135->GetYaxis()->SetLabelOffset(0.014); Graph_Graph_eff_graph30233135->GetYaxis()->SetLabelSize(0.05); Graph_Graph_eff_graph30233135->GetYaxis()->SetTitleSize(0.055); Graph_Graph_eff_graph30233135->GetYaxis()->SetTitleOffset(1.6); Graph_Graph_eff_graph30233135->GetYaxis()->SetTitleFont(42); Graph_Graph_eff_graph30233135->GetZaxis()->SetLabelFont(42); Graph_Graph_eff_graph30233135->GetZaxis()->SetLabelSize(0.035); Graph_Graph_eff_graph30233135->GetZaxis()->SetTitleSize(0.035); Graph_Graph_eff_graph30233135->GetZaxis()->SetTitleFont(42); grae->SetHistogram(Graph_Graph_eff_graph30233135); TF1 *turnon_603136 = new TF1("turnon_60","0.5*[2]*(1 + TMath::Erf((x - [0])/[1]))",57.5,102.5); turnon_603136->SetFillColor(19); turnon_603136->SetFillStyle(0); ci = TColor::GetColor("#00ff00"); turnon_603136->SetLineColor(ci); turnon_603136->SetLineWidth(2); turnon_603136->SetChisquare(0.0003936262); turnon_603136->SetNDF(7); turnon_603136->GetXaxis()->SetLabelFont(42); turnon_603136->GetXaxis()->SetLabelSize(0.035); turnon_603136->GetXaxis()->SetTitleSize(0.035); turnon_603136->GetXaxis()->SetTitleFont(42); turnon_603136->GetYaxis()->SetLabelFont(42); turnon_603136->GetYaxis()->SetLabelSize(0.035); turnon_603136->GetYaxis()->SetTitleSize(0.035); turnon_603136->GetYaxis()->SetTitleFont(42); turnon_603136->SetParameter(0,58.20358); turnon_603136->SetParError(0,0.1606404); turnon_603136->SetParLimits(0,0,0); turnon_603136->SetParameter(1,14.36791); turnon_603136->SetParError(1,0.4319951); turnon_603136->SetParLimits(1,0,0); turnon_603136->SetParameter(2,0.9928708); turnon_603136->SetParError(2,0.003473743); turnon_603136->SetParLimits(2,0,0); grae->GetListOfFunctions()->Add(turnon_603136); grae->Draw("p"); Double_t eff_graph_fx3137[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_fy3137[133] = { 2.794545e-05, 0, 0, 0.00010298, 0.0003282953, 0.00222639, 0.01063049, 0.04350298, 0.1282576, 0.2811882, 0.4699175, 0.6405035, 0.7755515, 0.8621591, 0.9176747, 0.9500471, 0.968997, 0.9808932, 0.9884116, 0.992641, 0.9957548, 0.9972119, 0.9986252, 0.9992103, 0.9995044, 0.9998214, 0.9998579, 0.9999376, 0.9998837, 0.9999891, 0.9999779, 0.9999887, 0.9999767, 0.9999882, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0.9999852, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_felx3137[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_fely3137[133] = { 2.311778e-05, 0, 0, 3.563528e-05, 6.396047e-05, 0.0001638257, 0.0003445713, 0.0006562202, 0.001044711, 0.001368752, 0.00149147, 0.001424805, 0.001225409, 0.001013017, 0.0008080452, 0.0006425615, 0.0005155774, 0.000410883, 0.0003254813, 0.0002643834, 0.0002047567, 0.0001695943, 0.0001229053, 9.649557e-05, 7.955379e-05, 5.279319e-05, 4.901033e-05, 3.728424e-05, 4.670665e-05, 2.496835e-05, 2.914591e-05, 2.597084e-05, 3.068695e-05, 2.714214e-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, 3.400879e-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_fehx3137[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_fehy3137[133] = { 6.425834e-05, 2.683513e-05, 2.397572e-05, 5.077992e-05, 7.781952e-05, 0.000176317, 0.0003557974, 0.000665731, 0.001051986, 0.001372807, 0.001492006, 0.00142234, 0.00122069, 0.001006827, 0.0008009268, 0.0006348755, 0.0005074762, 0.0004024861, 0.0003168068, 0.0002554301, 0.0001955742, 0.0001601489, 0.0001131934, 8.647403e-05, 6.916331e-05, 4.170224e-05, 3.750783e-05, 2.476179e-05, 3.453678e-05, 8.982436e-06, 1.427371e-05, 9.343088e-06, 1.502843e-05, 9.764476e-06, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1.223484e-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}; grae = new TGraphAsymmErrors(133,eff_graph_fx3137,eff_graph_fy3137,eff_graph_felx3137,eff_graph_fehx3137,eff_graph_fely3137,eff_graph_fehy3137); grae->SetName("eff_graph"); grae->SetTitle("HLT_PFJet60 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_graph30433137 = new TH1F("Graph_Graph_eff_graph30433137","HLT_PFJet60 Efficiency (GEN Jets)",133,0,800); Graph_Graph_eff_graph30433137->SetMinimum(0); Graph_Graph_eff_graph30433137->SetMaximum(1.1); Graph_Graph_eff_graph30433137->SetDirectory(0); Graph_Graph_eff_graph30433137->SetStats(0); ci = TColor::GetColor("#000099"); Graph_Graph_eff_graph30433137->SetLineColor(ci); Graph_Graph_eff_graph30433137->GetXaxis()->SetTitle("P_{T} [GeV/c]"); Graph_Graph_eff_graph30433137->GetXaxis()->SetLabelFont(42); Graph_Graph_eff_graph30433137->GetXaxis()->SetLabelOffset(0.014); Graph_Graph_eff_graph30433137->GetXaxis()->SetLabelSize(0.05); Graph_Graph_eff_graph30433137->GetXaxis()->SetTitleSize(0.055); Graph_Graph_eff_graph30433137->GetXaxis()->SetTitleOffset(1.3); Graph_Graph_eff_graph30433137->GetXaxis()->SetTitleFont(42); Graph_Graph_eff_graph30433137->GetYaxis()->SetTitle("Efficiency"); Graph_Graph_eff_graph30433137->GetYaxis()->SetLabelFont(42); Graph_Graph_eff_graph30433137->GetYaxis()->SetLabelOffset(0.014); Graph_Graph_eff_graph30433137->GetYaxis()->SetLabelSize(0.05); Graph_Graph_eff_graph30433137->GetYaxis()->SetTitleSize(0.055); Graph_Graph_eff_graph30433137->GetYaxis()->SetTitleOffset(1.6); Graph_Graph_eff_graph30433137->GetYaxis()->SetTitleFont(42); Graph_Graph_eff_graph30433137->GetZaxis()->SetLabelFont(42); Graph_Graph_eff_graph30433137->GetZaxis()->SetLabelSize(0.035); Graph_Graph_eff_graph30433137->GetZaxis()->SetTitleSize(0.035); Graph_Graph_eff_graph30433137->GetZaxis()->SetTitleFont(42); grae->SetHistogram(Graph_Graph_eff_graph30433137); TF1 *turnon_603138 = new TF1("turnon_60","0.5*[2]*(1 + TMath::Erf((x - [0])/[1]))",67.5,127.5); turnon_603138->SetFillColor(19); turnon_603138->SetFillStyle(0); ci = TColor::GetColor("#0000ff"); turnon_603138->SetLineColor(ci); turnon_603138->SetLineWidth(2); turnon_603138->SetChisquare(0.0008764823); turnon_603138->SetNDF(10); turnon_603138->GetXaxis()->SetLabelFont(42); turnon_603138->GetXaxis()->SetLabelSize(0.035); turnon_603138->GetXaxis()->SetTitleSize(0.035); turnon_603138->GetXaxis()->SetTitleFont(42); turnon_603138->GetYaxis()->SetLabelFont(42); turnon_603138->GetYaxis()->SetLabelSize(0.035); turnon_603138->GetYaxis()->SetTitleSize(0.035); turnon_603138->GetYaxis()->SetTitleFont(42); turnon_603138->SetParameter(0,67.94273); turnon_603138->SetParError(0,0.248693); turnon_603138->SetParLimits(0,0,0); turnon_603138->SetParameter(1,18.16979); turnon_603138->SetParError(1,0.6564867); turnon_603138->SetParLimits(1,0,0); turnon_603138->SetParameter(2,0.9896374); turnon_603138->SetParError(2,0.003719755); turnon_603138->SetParLimits(2,0,0); grae->GetListOfFunctions()->Add(turnon_603138); 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_PFJet60 Efficiency (GEN Jets)"); pt->Draw(); Eff_GEN_PT60->Modified(); Eff_GEN_PT60->cd(); Eff_GEN_PT60->SetSelected(Eff_GEN_PT60); }