示例#1
0
void ttbar_nJet()
{
//=========Macro generated from canvas: c1/c1
//=========  (Sun Dec 11 15:16:19 2016) by ROOT version6.06/01
   TCanvas *c1 = new TCanvas("c1", "c1",1,1,1200,1416);
   gStyle->SetOptStat(0);
   gStyle->SetOptTitle(0);
   c1->SetHighLightColor(2);
   c1->Range(0,0,1,1);
   c1->SetFillColor(0);
   c1->SetBorderMode(0);
   c1->SetBorderSize(2);
   c1->SetTickx(1);
   c1->SetTicky(1);
   c1->SetLeftMargin(0.15);
   c1->SetRightMargin(0.05);
   c1->SetTopMargin(0.07);
   c1->SetBottomMargin(0.13);
   c1->SetFrameFillStyle(0);
   c1->SetFrameBorderMode(0);
  
// ------------>Primitives in pad: pad1
   TPad *pad1 = new TPad("pad1", "pad1",0,0.3,1,1);
   pad1->Draw();
   pad1->cd();
   pad1->Range(-2.1875,0,9.0625,0.5878968);
   pad1->SetFillColor(0);
   pad1->SetBorderMode(0);
   pad1->SetBorderSize(2);
   pad1->SetTickx(1);
   pad1->SetTicky(1);
   pad1->SetLeftMargin(0.15);
   pad1->SetRightMargin(0.05);
   pad1->SetTopMargin(0.07);
   pad1->SetBottomMargin(0);
   pad1->SetFrameFillStyle(0);
   pad1->SetFrameBorderMode(0);
   pad1->SetFrameFillStyle(0);
   pad1->SetFrameBorderMode(0);
   
   THStack *h = new THStack();
   h->SetName("h");
   h->SetTitle("");
   h->SetMinimum(0);
   h->SetMaximum(0.5207086);
   
   TH1F *h_stack_19 = new TH1F("h_stack_19","",9,-0.5,8.5);
   h_stack_19->SetMinimum(0);
   h_stack_19->SetMaximum(0.546744);
   h_stack_19->SetDirectory(0);
   h_stack_19->SetStats(0);

   Int_t ci;      // for color index setting
   TColor *color; // for color definition with alpha
   ci = TColor::GetColor("#000099");
   h_stack_19->SetLineColor(ci);
   h_stack_19->GetXaxis()->SetLabelFont(42);
   h_stack_19->GetXaxis()->SetLabelOffset(0.007);
   h_stack_19->GetXaxis()->SetTitleSize(0.05);
   h_stack_19->GetXaxis()->SetTickLength(0.025);
   h_stack_19->GetXaxis()->SetTitleFont(42);
   h_stack_19->GetYaxis()->SetTitle("a.u.");
   h_stack_19->GetYaxis()->SetLabelFont(42);
   h_stack_19->GetYaxis()->SetLabelOffset(0.007);
   h_stack_19->GetYaxis()->SetTitleSize(0.05);
   h_stack_19->GetYaxis()->SetTickLength(0.025);
   h_stack_19->GetYaxis()->SetTitleOffset(1.5);
   h_stack_19->GetYaxis()->SetTitleFont(42);
   h_stack_19->GetZaxis()->SetLabelFont(42);
   h_stack_19->GetZaxis()->SetLabelOffset(0.007);
   h_stack_19->GetZaxis()->SetTitleSize(0.05);
   h_stack_19->GetZaxis()->SetTickLength(0.025);
   h_stack_19->GetZaxis()->SetTitleFont(42);
   h->SetHistogram(h_stack_19);
   
   
   TH1D *h_nJet_QCD__217 = new TH1D("h_nJet_QCD__217","",9,-0.5,8.5);
   h_nJet_QCD__217->SetBinContent(2,0.001991738);
   h_nJet_QCD__217->SetBinContent(3,0.0005078625);
   h_nJet_QCD__217->SetBinContent(4,0.006489724);
   h_nJet_QCD__217->SetBinContent(5,0.001899386);
   h_nJet_QCD__217->SetBinContent(6,0.000696849);
   h_nJet_QCD__217->SetBinError(2,0.001424948);
   h_nJet_QCD__217->SetBinError(3,0.0005078625);
   h_nJet_QCD__217->SetBinError(4,0.00246407);
   h_nJet_QCD__217->SetBinError(5,0.001037545);
   h_nJet_QCD__217->SetBinError(6,0.0004566736);
   h_nJet_QCD__217->SetEntries(25);
   h_nJet_QCD__217->SetStats(0);

   ci = TColor::GetColor("#cccccc");
   h_nJet_QCD__217->SetFillColor(ci);
   h_nJet_QCD__217->GetXaxis()->SetTitle("N_{jet}");
   h_nJet_QCD__217->GetXaxis()->SetLabelFont(42);
   h_nJet_QCD__217->GetXaxis()->SetLabelOffset(0.007);
   h_nJet_QCD__217->GetXaxis()->SetTitleSize(0.05);
   h_nJet_QCD__217->GetXaxis()->SetTickLength(0.025);
   h_nJet_QCD__217->GetXaxis()->SetTitleFont(42);
   h_nJet_QCD__217->GetYaxis()->SetTitle("a.u.");
   h_nJet_QCD__217->GetYaxis()->SetLabelFont(42);
   h_nJet_QCD__217->GetYaxis()->SetLabelOffset(0.007);
   h_nJet_QCD__217->GetYaxis()->SetTitleSize(0.05);
   h_nJet_QCD__217->GetYaxis()->SetTickLength(0.025);
   h_nJet_QCD__217->GetYaxis()->SetTitleFont(42);
   h_nJet_QCD__217->GetZaxis()->SetLabelFont(42);
   h_nJet_QCD__217->GetZaxis()->SetLabelOffset(0.007);
   h_nJet_QCD__217->GetZaxis()->SetTitleSize(0.05);
   h_nJet_QCD__217->GetZaxis()->SetTickLength(0.025);
   h_nJet_QCD__217->GetZaxis()->SetTitleFont(42);
   h->Add(h_nJet_QCD,"");
   
   TH1D *h_nJet_Diboson__218 = new TH1D("h_nJet_Diboson__218","",9,-0.5,8.5);
   h_nJet_Diboson__218->SetBinContent(2,0.009906449);
   h_nJet_Diboson__218->SetBinContent(3,0.01358602);
   h_nJet_Diboson__218->SetBinContent(4,0.008915388);
   h_nJet_Diboson__218->SetBinContent(5,0.003026678);
   h_nJet_Diboson__218->SetBinContent(6,0.001043565);
   h_nJet_Diboson__218->SetBinContent(7,0.0001748174);
   h_nJet_Diboson__218->SetBinContent(9,0.0001402611);
   h_nJet_Diboson__218->SetBinError(2,0.001411368);
   h_nJet_Diboson__218->SetBinError(3,0.001644099);
   h_nJet_Diboson__218->SetBinError(4,0.001329375);
   h_nJet_Diboson__218->SetBinError(5,0.0007635958);
   h_nJet_Diboson__218->SetBinError(6,0.0004304521);
   h_nJet_Diboson__218->SetBinError(7,0.0001249106);
   h_nJet_Diboson__218->SetBinError(9,0.0001402611);
   h_nJet_Diboson__218->SetEntries(227);
   h_nJet_Diboson__218->SetStats(0);

   ci = TColor::GetColor("#9966cc");
   h_nJet_Diboson__218->SetFillColor(ci);
   h_nJet_Diboson__218->GetXaxis()->SetTitle("N_{jet}");
   h_nJet_Diboson__218->GetXaxis()->SetLabelFont(42);
   h_nJet_Diboson__218->GetXaxis()->SetLabelOffset(0.007);
   h_nJet_Diboson__218->GetXaxis()->SetTitleSize(0.05);
   h_nJet_Diboson__218->GetXaxis()->SetTickLength(0.025);
   h_nJet_Diboson__218->GetXaxis()->SetTitleFont(42);
   h_nJet_Diboson__218->GetYaxis()->SetTitle("a.u.");
   h_nJet_Diboson__218->GetYaxis()->SetLabelFont(42);
   h_nJet_Diboson__218->GetYaxis()->SetLabelOffset(0.007);
   h_nJet_Diboson__218->GetYaxis()->SetTitleSize(0.05);
   h_nJet_Diboson__218->GetYaxis()->SetTickLength(0.025);
   h_nJet_Diboson__218->GetYaxis()->SetTitleFont(42);
   h_nJet_Diboson__218->GetZaxis()->SetLabelFont(42);
   h_nJet_Diboson__218->GetZaxis()->SetLabelOffset(0.007);
   h_nJet_Diboson__218->GetZaxis()->SetTitleSize(0.05);
   h_nJet_Diboson__218->GetZaxis()->SetTickLength(0.025);
   h_nJet_Diboson__218->GetZaxis()->SetTitleFont(42);
   h->Add(h_nJet_Diboson,"");
   
   TH1D *h_nJet_ZpLjets__219 = new TH1D("h_nJet_ZpLjets__219","",9,-0.5,8.5);
   h_nJet_ZpLjets__219->SetBinContent(2,0.008808307);
   h_nJet_ZpLjets__219->SetBinContent(3,0.01602806);
   h_nJet_ZpLjets__219->SetBinContent(4,0.01236436);
   h_nJet_ZpLjets__219->SetBinContent(5,0.006259341);
   h_nJet_ZpLjets__219->SetBinContent(6,0.002572435);
   h_nJet_ZpLjets__219->SetBinContent(7,0.0009920883);
   h_nJet_ZpLjets__219->SetBinContent(8,0.0002993959);
   h_nJet_ZpLjets__219->SetBinContent(9,8.98201e-05);
   h_nJet_ZpLjets__219->SetBinError(2,0.0003706893);
   h_nJet_ZpLjets__219->SetBinError(3,0.0003944594);
   h_nJet_ZpLjets__219->SetBinError(4,0.0003001856);
   h_nJet_ZpLjets__219->SetBinError(5,0.0001834367);
   h_nJet_ZpLjets__219->SetBinError(6,0.0001013424);
   h_nJet_ZpLjets__219->SetBinError(7,5.882736e-05);
   h_nJet_ZpLjets__219->SetBinError(8,2.500891e-05);
   h_nJet_ZpLjets__219->SetBinError(9,7.251011e-06);
   h_nJet_ZpLjets__219->SetEntries(24915);
   h_nJet_ZpLjets__219->SetStats(0);

   ci = TColor::GetColor("#3399cc");
   h_nJet_ZpLjets__219->SetFillColor(ci);
   h_nJet_ZpLjets__219->GetXaxis()->SetTitle("N_{jet}");
   h_nJet_ZpLjets__219->GetXaxis()->SetLabelFont(42);
   h_nJet_ZpLjets__219->GetXaxis()->SetLabelOffset(0.007);
   h_nJet_ZpLjets__219->GetXaxis()->SetTitleSize(0.05);
   h_nJet_ZpLjets__219->GetXaxis()->SetTickLength(0.025);
   h_nJet_ZpLjets__219->GetXaxis()->SetTitleFont(42);
   h_nJet_ZpLjets__219->GetYaxis()->SetTitle("a.u.");
   h_nJet_ZpLjets__219->GetYaxis()->SetLabelFont(42);
   h_nJet_ZpLjets__219->GetYaxis()->SetLabelOffset(0.007);
   h_nJet_ZpLjets__219->GetYaxis()->SetTitleSize(0.05);
   h_nJet_ZpLjets__219->GetYaxis()->SetTickLength(0.025);
   h_nJet_ZpLjets__219->GetYaxis()->SetTitleFont(42);
   h_nJet_ZpLjets__219->GetZaxis()->SetLabelFont(42);
   h_nJet_ZpLjets__219->GetZaxis()->SetLabelOffset(0.007);
   h_nJet_ZpLjets__219->GetZaxis()->SetTitleSize(0.05);
   h_nJet_ZpLjets__219->GetZaxis()->SetTickLength(0.025);
   h_nJet_ZpLjets__219->GetZaxis()->SetTitleFont(42);
   h->Add(h_nJet_Z+jets,"");
   
   TH1D *h_nJet_WpLjets__220 = new TH1D("h_nJet_WpLjets__220","",9,-0.5,8.5);
   h_nJet_WpLjets__220->SetBinContent(2,0.01228717);
   h_nJet_WpLjets__220->SetBinContent(3,0.01478108);
   h_nJet_WpLjets__220->SetBinContent(4,0.01095229);
   h_nJet_WpLjets__220->SetBinContent(5,0.004774536);
   h_nJet_WpLjets__220->SetBinContent(6,0.00183733);
   h_nJet_WpLjets__220->SetBinContent(7,0.0008017153);
   h_nJet_WpLjets__220->SetBinContent(8,0.0001693615);
   h_nJet_WpLjets__220->SetBinContent(9,7.928654e-05);
   h_nJet_WpLjets__220->SetBinError(2,0.0009957224);
   h_nJet_WpLjets__220->SetBinError(3,0.0009641816);
   h_nJet_WpLjets__220->SetBinError(4,0.0007772887);
   h_nJet_WpLjets__220->SetBinError(5,0.0004513384);
   h_nJet_WpLjets__220->SetBinError(6,0.0002602176);
   h_nJet_WpLjets__220->SetBinError(7,0.0001551598);
   h_nJet_WpLjets__220->SetBinError(8,2.724934e-05);
   h_nJet_WpLjets__220->SetBinError(9,1.806879e-05);
   h_nJet_WpLjets__220->SetEntries(3309);
   h_nJet_WpLjets__220->SetStats(0);

   ci = TColor::GetColor("#66cc66");
   h_nJet_WpLjets__220->SetFillColor(ci);
   h_nJet_WpLjets__220->GetXaxis()->SetTitle("N_{jet}");
   h_nJet_WpLjets__220->GetXaxis()->SetLabelFont(42);
   h_nJet_WpLjets__220->GetXaxis()->SetLabelOffset(0.007);
   h_nJet_WpLjets__220->GetXaxis()->SetTitleSize(0.05);
   h_nJet_WpLjets__220->GetXaxis()->SetTickLength(0.025);
   h_nJet_WpLjets__220->GetXaxis()->SetTitleFont(42);
   h_nJet_WpLjets__220->GetYaxis()->SetTitle("a.u.");
   h_nJet_WpLjets__220->GetYaxis()->SetLabelFont(42);
   h_nJet_WpLjets__220->GetYaxis()->SetLabelOffset(0.007);
   h_nJet_WpLjets__220->GetYaxis()->SetTitleSize(0.05);
   h_nJet_WpLjets__220->GetYaxis()->SetTickLength(0.025);
   h_nJet_WpLjets__220->GetYaxis()->SetTitleFont(42);
   h_nJet_WpLjets__220->GetZaxis()->SetLabelFont(42);
   h_nJet_WpLjets__220->GetZaxis()->SetLabelOffset(0.007);
   h_nJet_WpLjets__220->GetZaxis()->SetTitleSize(0.05);
   h_nJet_WpLjets__220->GetZaxis()->SetTickLength(0.025);
   h_nJet_WpLjets__220->GetZaxis()->SetTitleFont(42);
   h->Add(h_nJet_W+jets,"");
   
   TH1D *h_nJet_TopsPoPLFcP__221 = new TH1D("h_nJet_TopsPoPLFcP__221","",9,-0.5,8.5);
   h_nJet_TopsPoPLFcP__221->SetBinContent(2,0.008309954);
   h_nJet_TopsPoPLFcP__221->SetBinContent(3,0.04226496);
   h_nJet_TopsPoPLFcP__221->SetBinContent(4,0.08832035);
   h_nJet_TopsPoPLFcP__221->SetBinContent(5,0.08533392);
   h_nJet_TopsPoPLFcP__221->SetBinContent(6,0.05734558);
   h_nJet_TopsPoPLFcP__221->SetBinContent(7,0.02841211);
   h_nJet_TopsPoPLFcP__221->SetBinContent(8,0.01180029);
   h_nJet_TopsPoPLFcP__221->SetBinContent(9,0.006291982);
   h_nJet_TopsPoPLFcP__221->SetBinError(2,0.0003851356);
   h_nJet_TopsPoPLFcP__221->SetBinError(3,0.0007306422);
   h_nJet_TopsPoPLFcP__221->SetBinError(4,0.001088888);
   h_nJet_TopsPoPLFcP__221->SetBinError(5,0.0009551542);
   h_nJet_TopsPoPLFcP__221->SetBinError(6,0.0007663072);
   h_nJet_TopsPoPLFcP__221->SetBinError(7,0.0005284013);
   h_nJet_TopsPoPLFcP__221->SetBinError(8,0.0003199885);
   h_nJet_TopsPoPLFcP__221->SetBinError(9,0.0002275074);
   h_nJet_TopsPoPLFcP__221->SetEntries(45754);
   h_nJet_TopsPoPLFcP__221->SetStats(0);

   ci = TColor::GetColor("#cc33cc");
   h_nJet_TopsPoPLFcP__221->SetFillColor(ci);
   h_nJet_TopsPoPLFcP__221->GetXaxis()->SetTitle("N_{jet}");
   h_nJet_TopsPoPLFcP__221->GetXaxis()->SetLabelFont(42);
   h_nJet_TopsPoPLFcP__221->GetXaxis()->SetLabelOffset(0.007);
   h_nJet_TopsPoPLFcP__221->GetXaxis()->SetTitleSize(0.05);
   h_nJet_TopsPoPLFcP__221->GetXaxis()->SetTickLength(0.025);
   h_nJet_TopsPoPLFcP__221->GetXaxis()->SetTitleFont(42);
   h_nJet_TopsPoPLFcP__221->GetYaxis()->SetTitle("a.u.");
   h_nJet_TopsPoPLFcP__221->GetYaxis()->SetLabelFont(42);
   h_nJet_TopsPoPLFcP__221->GetYaxis()->SetLabelOffset(0.007);
   h_nJet_TopsPoPLFcP__221->GetYaxis()->SetTitleSize(0.05);
   h_nJet_TopsPoPLFcP__221->GetYaxis()->SetTickLength(0.025);
   h_nJet_TopsPoPLFcP__221->GetYaxis()->SetTitleFont(42);
   h_nJet_TopsPoPLFcP__221->GetZaxis()->SetLabelFont(42);
   h_nJet_TopsPoPLFcP__221->GetZaxis()->SetLabelOffset(0.007);
   h_nJet_TopsPoPLFcP__221->GetZaxis()->SetTitleSize(0.05);
   h_nJet_TopsPoPLFcP__221->GetZaxis()->SetTickLength(0.025);
   h_nJet_TopsPoPLFcP__221->GetZaxis()->SetTitleFont(42);
   h->Add(h_nJet_Top (LF),"");
   
   TH1D *h_nJet_TopsPoPHFcP__222 = new TH1D("h_nJet_TopsPoPHFcP__222","",9,-0.5,8.5);
   h_nJet_TopsPoPHFcP__222->SetBinContent(2,0.07376031);
   h_nJet_TopsPoPHFcP__222->SetBinContent(3,0.1364258);
   h_nJet_TopsPoPHFcP__222->SetBinContent(4,0.1333122);
   h_nJet_TopsPoPHFcP__222->SetBinContent(5,0.09566011);
   h_nJet_TopsPoPHFcP__222->SetBinContent(6,0.05315604);
   h_nJet_TopsPoPHFcP__222->SetBinContent(7,0.02411419);
   h_nJet_TopsPoPHFcP__222->SetBinContent(8,0.009464359);
   h_nJet_TopsPoPHFcP__222->SetBinContent(9,0.004552595);
   h_nJet_TopsPoPHFcP__222->SetBinError(2,0.00103096);
   h_nJet_TopsPoPHFcP__222->SetBinError(3,0.001340864);
   h_nJet_TopsPoPHFcP__222->SetBinError(4,0.001254557);
   h_nJet_TopsPoPHFcP__222->SetBinError(5,0.001028784);
   h_nJet_TopsPoPHFcP__222->SetBinError(6,0.0007477547);
   h_nJet_TopsPoPHFcP__222->SetBinError(7,0.0004712842);
   h_nJet_TopsPoPHFcP__222->SetBinError(8,0.0003185909);
   h_nJet_TopsPoPHFcP__222->SetBinError(9,0.0001812819);
   h_nJet_TopsPoPHFcP__222->SetEntries(77950);
   h_nJet_TopsPoPHFcP__222->SetStats(0);

   ci = TColor::GetColor("#ff9900");
   h_nJet_TopsPoPHFcP__222->SetFillColor(ci);
   h_nJet_TopsPoPHFcP__222->GetXaxis()->SetTitle("N_{jet}");
   h_nJet_TopsPoPHFcP__222->GetXaxis()->SetLabelFont(42);
   h_nJet_TopsPoPHFcP__222->GetXaxis()->SetLabelOffset(0.007);
   h_nJet_TopsPoPHFcP__222->GetXaxis()->SetTitleSize(0.05);
   h_nJet_TopsPoPHFcP__222->GetXaxis()->SetTickLength(0.025);
   h_nJet_TopsPoPHFcP__222->GetXaxis()->SetTitleFont(42);
   h_nJet_TopsPoPHFcP__222->GetYaxis()->SetTitle("a.u.");
   h_nJet_TopsPoPHFcP__222->GetYaxis()->SetLabelFont(42);
   h_nJet_TopsPoPHFcP__222->GetYaxis()->SetLabelOffset(0.007);
   h_nJet_TopsPoPHFcP__222->GetYaxis()->SetTitleSize(0.05);
   h_nJet_TopsPoPHFcP__222->GetYaxis()->SetTickLength(0.025);
   h_nJet_TopsPoPHFcP__222->GetYaxis()->SetTitleFont(42);
   h_nJet_TopsPoPHFcP__222->GetZaxis()->SetLabelFont(42);
   h_nJet_TopsPoPHFcP__222->GetZaxis()->SetLabelOffset(0.007);
   h_nJet_TopsPoPHFcP__222->GetZaxis()->SetTitleSize(0.05);
   h_nJet_TopsPoPHFcP__222->GetZaxis()->SetTickLength(0.025);
   h_nJet_TopsPoPHFcP__222->GetZaxis()->SetTitleFont(42);
   h->Add(h_nJet_Top (HF),"");
   h->Draw("hist");
   
   TH1D *hsum__223 = new TH1D("hsum__223","",9,-0.5,8.5);
   hsum__223->SetBinContent(2,0.1150639);
   hsum__223->SetBinContent(3,0.2235937);
   hsum__223->SetBinContent(4,0.2603543);
   hsum__223->SetBinContent(5,0.196954);
   hsum__223->SetBinContent(6,0.1166518);
   hsum__223->SetBinContent(7,0.05449491);
   hsum__223->SetBinContent(8,0.0217334);
   hsum__223->SetBinContent(9,0.01115394);
   hsum__223->SetBinError(2,0.002522403);
   hsum__223->SetBinError(3,0.002525467);
   hsum__223->SetBinError(4,0.00336047);
   hsum__223->SetBinError(5,0.001966634);
   hsum__223->SetBinError(6,0.00127208);
   hsum__223->SetBinError(7,0.0007378717);
   hsum__223->SetBinError(8,0.0004530571);
   hsum__223->SetBinError(9,0.0003235352);
   hsum__223->SetEntries(43);
   hsum__223->SetStats(0);

   ci = 1198;
   color = new TColor(ci, 0, 0, 0, " ", 0.99);
   hsum__223->SetFillColor(ci);
   hsum__223->SetFillStyle(3003);
   hsum__223->SetLineWidth(0);
   hsum__223->GetXaxis()->SetTitle("N_{jet}");
   hsum__223->GetXaxis()->SetLabelFont(42);
   hsum__223->GetXaxis()->SetLabelOffset(0.007);
   hsum__223->GetXaxis()->SetTitleSize(0.05);
   hsum__223->GetXaxis()->SetTickLength(0.025);
   hsum__223->GetXaxis()->SetTitleFont(42);
   hsum__223->GetYaxis()->SetTitle("a.u.");
   hsum__223->GetYaxis()->SetLabelFont(42);
   hsum__223->GetYaxis()->SetLabelOffset(0.007);
   hsum__223->GetYaxis()->SetTitleSize(0.05);
   hsum__223->GetYaxis()->SetTickLength(0.025);
   hsum__223->GetYaxis()->SetTitleFont(42);
   hsum__223->GetZaxis()->SetLabelFont(42);
   hsum__223->GetZaxis()->SetLabelOffset(0.007);
   hsum__223->GetZaxis()->SetTitleSize(0.05);
   hsum__223->GetZaxis()->SetTickLength(0.025);
   hsum__223->GetZaxis()->SetTitleFont(42);
   hsum__223->Draw("e2 same");
   
   TH1D *h_nJet_Data__224 = new TH1D("h_nJet_Data__224","",9,-0.5,8.5);
   h_nJet_Data__224->SetBinContent(2,0.1095355);
   h_nJet_Data__224->SetBinContent(3,0.2408367);
   h_nJet_Data__224->SetBinContent(4,0.2713182);
   h_nJet_Data__224->SetBinContent(5,0.1982945);
   h_nJet_Data__224->SetBinContent(6,0.1091115);
   h_nJet_Data__224->SetBinContent(7,0.04494488);
   h_nJet_Data__224->SetBinContent(8,0.017243);
   h_nJet_Data__224->SetBinContent(9,0.008715726);
   h_nJet_Data__224->SetBinError(2,0.00227166);
   h_nJet_Data__224->SetBinError(3,0.003368428);
   h_nJet_Data__224->SetBinError(4,0.003575241);
   h_nJet_Data__224->SetBinError(5,0.003056478);
   h_nJet_Data__224->SetBinError(6,0.002267259);
   h_nJet_Data__224->SetBinError(7,0.001455144);
   h_nJet_Data__224->SetBinError(8,0.0009013063);
   h_nJet_Data__224->SetBinError(9,0.0006407929);
   h_nJet_Data__224->SetEntries(21226);
   h_nJet_Data__224->SetStats(0);
   h_nJet_Data__224->SetLineWidth(3);
   h_nJet_Data__224->SetMarkerStyle(20);
   h_nJet_Data__224->SetMarkerSize(2);
   h_nJet_Data__224->GetXaxis()->SetTitle("N_{jet}");
   h_nJet_Data__224->GetXaxis()->SetLabelFont(42);
   h_nJet_Data__224->GetXaxis()->SetLabelOffset(0.007);
   h_nJet_Data__224->GetXaxis()->SetTitleSize(0.05);
   h_nJet_Data__224->GetXaxis()->SetTickLength(0.025);
   h_nJet_Data__224->GetXaxis()->SetTitleFont(42);
   h_nJet_Data__224->GetYaxis()->SetTitle("a.u.");
   h_nJet_Data__224->GetYaxis()->SetLabelFont(42);
   h_nJet_Data__224->GetYaxis()->SetLabelOffset(0.007);
   h_nJet_Data__224->GetYaxis()->SetTitleSize(0.05);
   h_nJet_Data__224->GetYaxis()->SetTickLength(0.025);
   h_nJet_Data__224->GetYaxis()->SetTitleFont(42);
   h_nJet_Data__224->GetZaxis()->SetLabelFont(42);
   h_nJet_Data__224->GetZaxis()->SetLabelOffset(0.007);
   h_nJet_Data__224->GetZaxis()->SetTitleSize(0.05);
   h_nJet_Data__224->GetZaxis()->SetTickLength(0.025);
   h_nJet_Data__224->GetZaxis()->SetTitleFont(42);
   h_nJet_Data__224->Draw("elp same");
   
   TLegend *leg = new TLegend(0.6,0.55,0.88,0.9,NULL,"brNDC");
   leg->SetBorderSize(0);
   leg->SetLineColor(1);
   leg->SetLineStyle(1);
   leg->SetLineWidth(1);
   leg->SetFillColor(0);
   leg->SetFillStyle(0);
   TLegendEntry *entry=leg->AddEntry("h_nJet_Data","Data","ELP");
   entry->SetLineColor(1);
   entry->SetLineStyle(1);
   entry->SetLineWidth(3);
   entry->SetMarkerColor(1);
   entry->SetMarkerStyle(20);
   entry->SetMarkerSize(2);
   entry->SetTextFont(42);
   entry=leg->AddEntry("h_nJet_Top (HF)","Top (HF)","F");

   ci = TColor::GetColor("#ff9900");
   entry->SetFillColor(ci);
   entry->SetFillStyle(1001);
   entry->SetLineColor(1);
   entry->SetLineStyle(1);
   entry->SetLineWidth(1);
   entry->SetMarkerColor(1);
   entry->SetMarkerStyle(21);
   entry->SetMarkerSize(1);
   entry->SetTextFont(42);
   entry=leg->AddEntry("h_nJet_Top (LF)","Top (LF)","F");

   ci = TColor::GetColor("#cc33cc");
   entry->SetFillColor(ci);
   entry->SetFillStyle(1001);
   entry->SetLineColor(1);
   entry->SetLineStyle(1);
   entry->SetLineWidth(1);
   entry->SetMarkerColor(1);
   entry->SetMarkerStyle(21);
   entry->SetMarkerSize(1);
   entry->SetTextFont(42);
   entry=leg->AddEntry("h_nJet_W+jets","W+jets","F");

   ci = TColor::GetColor("#66cc66");
   entry->SetFillColor(ci);
   entry->SetFillStyle(1001);
   entry->SetLineColor(1);
   entry->SetLineStyle(1);
   entry->SetLineWidth(1);
   entry->SetMarkerColor(1);
   entry->SetMarkerStyle(21);
   entry->SetMarkerSize(1);
   entry->SetTextFont(42);
   entry=leg->AddEntry("h_nJet_Z+jets","Z+jets","F");

   ci = TColor::GetColor("#3399cc");
   entry->SetFillColor(ci);
   entry->SetFillStyle(1001);
   entry->SetLineColor(1);
   entry->SetLineStyle(1);
   entry->SetLineWidth(1);
   entry->SetMarkerColor(1);
   entry->SetMarkerStyle(21);
   entry->SetMarkerSize(1);
   entry->SetTextFont(42);
   entry=leg->AddEntry("h_nJet_Diboson","Diboson","F");

   ci = TColor::GetColor("#9966cc");
   entry->SetFillColor(ci);
   entry->SetFillStyle(1001);
   entry->SetLineColor(1);
   entry->SetLineStyle(1);
   entry->SetLineWidth(1);
   entry->SetMarkerColor(1);
   entry->SetMarkerStyle(21);
   entry->SetMarkerSize(1);
   entry->SetTextFont(42);
   entry=leg->AddEntry("h_nJet_QCD","QCD","F");

   ci = TColor::GetColor("#cccccc");
   entry->SetFillColor(ci);
   entry->SetFillStyle(1001);
   entry->SetLineColor(1);
   entry->SetLineStyle(1);
   entry->SetLineWidth(1);
   entry->SetMarkerColor(1);
   entry->SetMarkerStyle(21);
   entry->SetMarkerSize(1);
   entry->SetTextFont(42);
   leg->Draw();
   
   leg = new TLegend(0.6,0.55,0.88,0.9,NULL,"brNDC");
   leg->SetBorderSize(0);
   leg->SetLineColor(1);
   leg->SetLineStyle(1);
   leg->SetLineWidth(1);
   leg->SetFillColor(0);
   leg->SetFillStyle(0);
   entry=leg->AddEntry("h_nJet_Data","Data","ELP");
   entry->SetLineColor(1);
   entry->SetLineStyle(1);
   entry->SetLineWidth(3);
   entry->SetMarkerColor(1);
   entry->SetMarkerStyle(20);
   entry->SetMarkerSize(2);
   entry->SetTextFont(42);
   entry=leg->AddEntry("h_nJet_Top (HF)","Top (HF)","F");

   ci = TColor::GetColor("#ff9900");
   entry->SetFillColor(ci);
   entry->SetFillStyle(1001);
   entry->SetLineColor(1);
   entry->SetLineStyle(1);
   entry->SetLineWidth(1);
   entry->SetMarkerColor(1);
   entry->SetMarkerStyle(21);
   entry->SetMarkerSize(1);
   entry->SetTextFont(42);
   entry=leg->AddEntry("h_nJet_Top (LF)","Top (LF)","F");

   ci = TColor::GetColor("#cc33cc");
   entry->SetFillColor(ci);
   entry->SetFillStyle(1001);
   entry->SetLineColor(1);
   entry->SetLineStyle(1);
   entry->SetLineWidth(1);
   entry->SetMarkerColor(1);
   entry->SetMarkerStyle(21);
   entry->SetMarkerSize(1);
   entry->SetTextFont(42);
   entry=leg->AddEntry("h_nJet_W+jets","W+jets","F");

   ci = TColor::GetColor("#66cc66");
   entry->SetFillColor(ci);
   entry->SetFillStyle(1001);
   entry->SetLineColor(1);
   entry->SetLineStyle(1);
   entry->SetLineWidth(1);
   entry->SetMarkerColor(1);
   entry->SetMarkerStyle(21);
   entry->SetMarkerSize(1);
   entry->SetTextFont(42);
   entry=leg->AddEntry("h_nJet_Z+jets","Z+jets","F");

   ci = TColor::GetColor("#3399cc");
   entry->SetFillColor(ci);
   entry->SetFillStyle(1001);
   entry->SetLineColor(1);
   entry->SetLineStyle(1);
   entry->SetLineWidth(1);
   entry->SetMarkerColor(1);
   entry->SetMarkerStyle(21);
   entry->SetMarkerSize(1);
   entry->SetTextFont(42);
   entry=leg->AddEntry("h_nJet_Diboson","Diboson","F");

   ci = TColor::GetColor("#9966cc");
   entry->SetFillColor(ci);
   entry->SetFillStyle(1001);
   entry->SetLineColor(1);
   entry->SetLineStyle(1);
   entry->SetLineWidth(1);
   entry->SetMarkerColor(1);
   entry->SetMarkerStyle(21);
   entry->SetMarkerSize(1);
   entry->SetTextFont(42);
   entry=leg->AddEntry("h_nJet_QCD","QCD","F");

   ci = TColor::GetColor("#cccccc");
   entry->SetFillColor(ci);
   entry->SetFillStyle(1001);
   entry->SetLineColor(1);
   entry->SetLineStyle(1);
   entry->SetLineWidth(1);
   entry->SetMarkerColor(1);
   entry->SetMarkerStyle(21);
   entry->SetMarkerSize(1);
   entry->SetTextFont(42);
   leg->Draw();
   TLatex *   tex = new TLatex(0.18,0.85,"CMS");
tex->SetNDC();
   tex->SetTextSize(0.06);
   tex->SetLineWidth(2);
   tex->Draw();
      tex = new TLatex(0.28,0.85,"Preliminary");
tex->SetNDC();
   tex->SetTextFont(52);
   tex->SetTextSize(0.06);
   tex->SetLineWidth(2);
   tex->Draw();
      tex = new TLatex(0.9,0.94,"36.6 fb^{-1} (13 TeV)");
tex->SetNDC();
   tex->SetTextAlign(31);
   tex->SetTextFont(42);
   tex->SetTextSize(0.04);
   tex->SetLineWidth(2);
   tex->Draw();
   pad1->Modified();
   c1->cd();
  
// ------------>Primitives in pad: pad2
   TPad *pad2 = new TPad("pad2", "pad2",0,0.05,1,0.3);
   pad2->Draw();
   pad2->cd();
   pad2->Range(-2.1875,-0.8914286,9.0625,0.48);
   pad2->SetFillColor(0);
   pad2->SetBorderMode(0);
   pad2->SetBorderSize(2);
   pad2->SetGridy();
   pad2->SetTickx(1);
   pad2->SetTicky(1);
   pad2->SetLeftMargin(0.15);
   pad2->SetRightMargin(0.05);
   pad2->SetTopMargin(0);
   pad2->SetBottomMargin(0.3);
   pad2->SetFrameFillStyle(0);
   pad2->SetFrameBorderMode(0);
   pad2->SetFrameFillStyle(0);
   pad2->SetFrameBorderMode(0);
   
   TH1D *ratio__225 = new TH1D("ratio__225","",9,-0.5,8.5);
   ratio__225->SetBinContent(1,-999);
   ratio__225->SetBinContent(2,-0.04804683);
   ratio__225->SetBinContent(3,0.07711744);
   ratio__225->SetBinContent(4,0.0421114);
   ratio__225->SetBinContent(5,0.006806612);
   ratio__225->SetBinContent(6,-0.06463963);
   ratio__225->SetBinContent(7,-0.1752464);
   ratio__225->SetBinContent(8,-0.2066128);
   ratio__225->SetBinContent(9,-0.2185969);
   ratio__225->SetBinError(1,0.0001);
   ratio__225->SetBinError(2,0.0001);
   ratio__225->SetBinError(3,0.0001);
   ratio__225->SetBinError(4,0.0001);
   ratio__225->SetBinError(5,0.0001);
   ratio__225->SetBinError(6,0.0001);
   ratio__225->SetBinError(7,0.0001);
   ratio__225->SetBinError(8,0.0001);
   ratio__225->SetBinError(9,0.0001);
   ratio__225->SetMinimum(-0.48);
   ratio__225->SetMaximum(0.48);
   ratio__225->SetEntries(21235);
   ratio__225->SetStats(0);
   ratio__225->SetLineWidth(3);
   ratio__225->SetMarkerStyle(20);
   ratio__225->SetMarkerSize(2);
   ratio__225->GetXaxis()->SetTitle("N_{jet}");
   ratio__225->GetXaxis()->SetLabelFont(43);
   ratio__225->GetXaxis()->SetLabelOffset(0.007);
   ratio__225->GetXaxis()->SetLabelSize(30);
   ratio__225->GetXaxis()->SetTitleSize(40);
   ratio__225->GetXaxis()->SetTickLength(0.025);
   ratio__225->GetXaxis()->SetTitleOffset(5);
   ratio__225->GetXaxis()->SetTitleFont(43);
   ratio__225->GetYaxis()->SetTitle("#frac{Data-Exp}{Exp}");
   ratio__225->GetYaxis()->SetNdivisions(5);
   ratio__225->GetYaxis()->SetLabelFont(43);
   ratio__225->GetYaxis()->SetLabelOffset(0.007);
   ratio__225->GetYaxis()->SetLabelSize(30);
   ratio__225->GetYaxis()->SetTitleSize(40);
   ratio__225->GetYaxis()->SetTickLength(0.025);
   ratio__225->GetYaxis()->SetTitleOffset(2.5);
   ratio__225->GetYaxis()->SetTitleFont(43);
   ratio__225->GetZaxis()->SetLabelFont(42);
   ratio__225->GetZaxis()->SetLabelOffset(0.007);
   ratio__225->GetZaxis()->SetTitleSize(0.05);
   ratio__225->GetZaxis()->SetTickLength(0.025);
   ratio__225->GetZaxis()->SetTitleFont(42);
   ratio__225->Draw("elp");
   
   TH1D *zero__226 = new TH1D("zero__226","",9,-0.5,8.5);
   zero__226->SetBinError(2,0.00227166);
   zero__226->SetBinError(3,0.003368428);
   zero__226->SetBinError(4,0.003575241);
   zero__226->SetBinError(5,0.003056478);
   zero__226->SetBinError(6,0.002267259);
   zero__226->SetBinError(7,0.001455144);
   zero__226->SetBinError(8,0.0009013063);
   zero__226->SetBinError(9,0.0006407929);
   zero__226->SetEntries(21235);
   zero__226->SetStats(0);
   zero__226->SetLineWidth(3);
   zero__226->SetMarkerStyle(20);
   zero__226->SetMarkerSize(2);
   zero__226->GetXaxis()->SetTitle("N_{jet}");
   zero__226->GetXaxis()->SetLabelFont(42);
   zero__226->GetXaxis()->SetLabelOffset(0.007);
   zero__226->GetXaxis()->SetTitleSize(0.05);
   zero__226->GetXaxis()->SetTickLength(0.025);
   zero__226->GetXaxis()->SetTitleFont(42);
   zero__226->GetYaxis()->SetTitle("a.u.");
   zero__226->GetYaxis()->SetLabelFont(42);
   zero__226->GetYaxis()->SetLabelOffset(0.007);
   zero__226->GetYaxis()->SetTitleSize(0.05);
   zero__226->GetYaxis()->SetTickLength(0.025);
   zero__226->GetYaxis()->SetTitleFont(42);
   zero__226->GetZaxis()->SetLabelFont(42);
   zero__226->GetZaxis()->SetLabelOffset(0.007);
   zero__226->GetZaxis()->SetTitleSize(0.05);
   zero__226->GetZaxis()->SetTickLength(0.025);
   zero__226->GetZaxis()->SetTitleFont(42);
   zero__226->Draw("hist same");
   
   TH1D *sumratioup__227 = new TH1D("sumratioup__227","",9,-0.5,8.5);
   sumratioup__227->SetBinContent(2,0.02192175);
   sumratioup__227->SetBinContent(3,0.01129489);
   sumratioup__227->SetBinContent(4,0.0129073);
   sumratioup__227->SetBinContent(5,0.009985248);
   sumratioup__227->SetBinContent(6,0.01090493);
   sumratioup__227->SetBinContent(7,0.01354019);
   sumratioup__227->SetBinContent(8,0.02084612);
   sumratioup__227->SetBinContent(9,0.02900635);
   sumratioup__227->SetBinError(2,0.002522403);
   sumratioup__227->SetBinError(3,0.002525467);
   sumratioup__227->SetBinError(4,0.00336047);
   sumratioup__227->SetBinError(5,0.001966634);
   sumratioup__227->SetBinError(6,0.00127208);
   sumratioup__227->SetBinError(7,0.0007378717);
   sumratioup__227->SetBinError(8,0.0004530571);
   sumratioup__227->SetBinError(9,0.0003235352);
   sumratioup__227->SetEntries(52);
   sumratioup__227->SetStats(0);

   ci = 1198;
   color = new TColor(ci, 0, 0, 0, " ", 0.99);
   sumratioup__227->SetFillColor(ci);
   sumratioup__227->SetFillStyle(3003);
   sumratioup__227->GetXaxis()->SetTitle("N_{jet}");
   sumratioup__227->GetXaxis()->SetLabelFont(42);
   sumratioup__227->GetXaxis()->SetLabelOffset(0.007);
   sumratioup__227->GetXaxis()->SetTitleSize(0.05);
   sumratioup__227->GetXaxis()->SetTickLength(0.025);
   sumratioup__227->GetXaxis()->SetTitleFont(42);
   sumratioup__227->GetYaxis()->SetTitle("a.u.");
   sumratioup__227->GetYaxis()->SetLabelFont(42);
   sumratioup__227->GetYaxis()->SetLabelOffset(0.007);
   sumratioup__227->GetYaxis()->SetTitleSize(0.05);
   sumratioup__227->GetYaxis()->SetTickLength(0.025);
   sumratioup__227->GetYaxis()->SetTitleFont(42);
   sumratioup__227->GetZaxis()->SetLabelFont(42);
   sumratioup__227->GetZaxis()->SetLabelOffset(0.007);
   sumratioup__227->GetZaxis()->SetTitleSize(0.05);
   sumratioup__227->GetZaxis()->SetTickLength(0.025);
   sumratioup__227->GetZaxis()->SetTitleFont(42);
   sumratioup__227->Draw("hist same");
   
   TH1D *sumratiodown__228 = new TH1D("sumratiodown__228","",9,-0.5,8.5);
   sumratiodown__228->SetBinContent(2,-0.02192175);
   sumratiodown__228->SetBinContent(3,-0.01129489);
   sumratiodown__228->SetBinContent(4,-0.0129073);
   sumratiodown__228->SetBinContent(5,-0.009985248);
   sumratiodown__228->SetBinContent(6,-0.01090493);
   sumratiodown__228->SetBinContent(7,-0.01354019);
   sumratiodown__228->SetBinContent(8,-0.02084612);
   sumratiodown__228->SetBinContent(9,-0.02900635);
   sumratiodown__228->SetBinError(2,0.002522403);
   sumratiodown__228->SetBinError(3,0.002525467);
   sumratiodown__228->SetBinError(4,0.00336047);
   sumratiodown__228->SetBinError(5,0.001966634);
   sumratiodown__228->SetBinError(6,0.00127208);
   sumratiodown__228->SetBinError(7,0.0007378717);
   sumratiodown__228->SetBinError(8,0.0004530571);
   sumratiodown__228->SetBinError(9,0.0003235352);
   sumratiodown__228->SetEntries(52);
   sumratiodown__228->SetStats(0);

   ci = 1198;
   color = new TColor(ci, 0, 0, 0, " ", 0.99);
   sumratiodown__228->SetFillColor(ci);
   sumratiodown__228->SetFillStyle(3003);
   sumratiodown__228->GetXaxis()->SetTitle("N_{jet}");
   sumratiodown__228->GetXaxis()->SetLabelFont(42);
   sumratiodown__228->GetXaxis()->SetLabelOffset(0.007);
   sumratiodown__228->GetXaxis()->SetTitleSize(0.05);
   sumratiodown__228->GetXaxis()->SetTickLength(0.025);
   sumratiodown__228->GetXaxis()->SetTitleFont(42);
   sumratiodown__228->GetYaxis()->SetTitle("a.u.");
   sumratiodown__228->GetYaxis()->SetLabelFont(42);
   sumratiodown__228->GetYaxis()->SetLabelOffset(0.007);
   sumratiodown__228->GetYaxis()->SetTitleSize(0.05);
   sumratiodown__228->GetYaxis()->SetTickLength(0.025);
   sumratiodown__228->GetYaxis()->SetTitleFont(42);
   sumratiodown__228->GetZaxis()->SetLabelFont(42);
   sumratiodown__228->GetZaxis()->SetLabelOffset(0.007);
   sumratiodown__228->GetZaxis()->SetTitleSize(0.05);
   sumratiodown__228->GetZaxis()->SetTickLength(0.025);
   sumratiodown__228->GetZaxis()->SetTitleFont(42);
   sumratiodown__228->Draw("hist same");
   
   Double_t Graph0_fx1019[9] = {
   0,
   1,
   2,
   3,
   4,
   5,
   6,
   7,
   8};
   Double_t Graph0_fy1019[9] = {
   -999,
   -0.04804683,
   0.07711744,
   0.0421114,
   0.006806612,
   -0.06463963,
   -0.1752464,
   -0.2066128,
   -0.2185969};
   Double_t Graph0_fex1019[9] = {
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0};
   Double_t Graph0_fey1019[9] = {
   0,
   0.01974259,
   0.01506495,
   0.01373222,
   0.01551874,
   0.01943612,
   0.02670239,
   0.04147102,
   0.0574499};
   TGraphErrors *gre = new TGraphErrors(9,Graph0_fx1019,Graph0_fy1019,Graph0_fex1019,Graph0_fey1019);
   gre->SetName("Graph0");
   gre->SetTitle("Graph");
   gre->SetFillColor(1);
   gre->SetLineWidth(3);
   
   TH1F *Graph_Graph1019 = new TH1F("Graph_Graph1019","Graph",100,0,8.8);
   Graph_Graph1019->SetMinimum(-1098.909);
   Graph_Graph1019->SetMaximum(100.0014);
   Graph_Graph1019->SetDirectory(0);
   Graph_Graph1019->SetStats(0);

   ci = TColor::GetColor("#000099");
   Graph_Graph1019->SetLineColor(ci);
   Graph_Graph1019->GetXaxis()->SetLabelFont(42);
   Graph_Graph1019->GetXaxis()->SetLabelOffset(0.007);
   Graph_Graph1019->GetXaxis()->SetTitleSize(0.05);
   Graph_Graph1019->GetXaxis()->SetTickLength(0.025);
   Graph_Graph1019->GetXaxis()->SetTitleFont(42);
   Graph_Graph1019->GetYaxis()->SetLabelFont(42);
   Graph_Graph1019->GetYaxis()->SetLabelOffset(0.007);
   Graph_Graph1019->GetYaxis()->SetTitleSize(0.05);
   Graph_Graph1019->GetYaxis()->SetTickLength(0.025);
   Graph_Graph1019->GetYaxis()->SetTitleFont(42);
   Graph_Graph1019->GetZaxis()->SetLabelFont(42);
   Graph_Graph1019->GetZaxis()->SetLabelOffset(0.007);
   Graph_Graph1019->GetZaxis()->SetTitleSize(0.05);
   Graph_Graph1019->GetZaxis()->SetTickLength(0.025);
   Graph_Graph1019->GetZaxis()->SetTitleFont(42);
   gre->SetHistogram(Graph_Graph1019);
   
   gre->Draw("pe0");
   pad2->Modified();
   c1->cd();
   c1->Modified();
   c1->cd();
   c1->SetSelected(c1);
}
void paraPull_alpha_EL_EFF_Iso_TotalCorrUncertainty_2TeV_2Lep_plots_All()
{
//=========Macro generated from canvas: c1/alpha_EL_EFF_Iso_TotalCorrUncertainty
//=========  (Sun Nov 22 20:14:54 2015) by ROOT version6.02/12
    TCanvas *c1 = new TCanvas("c1", "alpha_EL_EFF_Iso_TotalCorrUncertainty",0,22,1000,600);
    gStyle->SetOptStat(0);
    c1->Range(-4.125,-0.9750892,37.125,1.047955);
    c1->SetFillColor(0);
    c1->SetBorderMode(0);
    c1->SetBorderSize(2);
    c1->SetGridx();
    c1->SetGridy();
    c1->SetFrameBorderMode(0);
    c1->SetFrameBorderMode(0);

    TH1F *NuisanceParameterFreed9 = new TH1F("NuisanceParameterFreed9","alpha_EL_EFF_Iso_TotalCorrUncertainty",33,0,33);
    NuisanceParameterFreed9->SetMinimum(-0.7727848);
    NuisanceParameterFreed9->SetMaximum(0.8456503);
    NuisanceParameterFreed9->SetStats(0);

    Int_t ci;      // for color index setting
    TColor *color; // for color definition with alpha
    ci = TColor::GetColor("#000099");
    NuisanceParameterFreed9->SetLineColor(ci);
    NuisanceParameterFreed9->GetXaxis()->SetBinLabel(1,"XS_ttbar");
    NuisanceParameterFreed9->GetXaxis()->SetBinLabel(2,"EG_SCALE_ALL");
    NuisanceParameterFreed9->GetXaxis()->SetBinLabel(3,"FT_EFF_Eigen_C_0");
    NuisanceParameterFreed9->GetXaxis()->SetBinLabel(4,"Luminosity");
    NuisanceParameterFreed9->GetXaxis()->SetBinLabel(5,"XS_st");
    NuisanceParameterFreed9->GetXaxis()->SetBinLabel(6,"FT_EFF_Eigen_B_1");
    NuisanceParameterFreed9->GetXaxis()->SetBinLabel(7,"XS_Zc");
    NuisanceParameterFreed9->GetXaxis()->SetBinLabel(8,"MUONS_ID");
    NuisanceParameterFreed9->GetXaxis()->SetBinLabel(9,"FT_EFF_Eigen_C_1");
    NuisanceParameterFreed9->GetXaxis()->SetBinLabel(10,"FT_EFF_Eigen_C_3");
    NuisanceParameterFreed9->GetXaxis()->SetBinLabel(11,"MUON_EFF_TrigSystUncertainty");
    NuisanceParameterFreed9->GetXaxis()->SetBinLabel(12,"XS_Zl");
    NuisanceParameterFreed9->GetXaxis()->SetBinLabel(13,"EL_EFF_ID_TotalCorrUncertainty");
    NuisanceParameterFreed9->GetXaxis()->SetBinLabel(14,"FT_EFF_Eigen_B_0");
    NuisanceParameterFreed9->GetXaxis()->SetBinLabel(15,"FT_EFF_Eigen_B_2");
    NuisanceParameterFreed9->GetXaxis()->SetBinLabel(16,"EL_EFF_Reco_TotalCorrUncertainty");
    NuisanceParameterFreed9->GetXaxis()->SetBinLabel(17,"MUONS_SCALE");
    NuisanceParameterFreed9->GetXaxis()->SetBinLabel(18,"MUON_ISO_STAT");
    NuisanceParameterFreed9->GetXaxis()->SetBinLabel(19,"FT_EFF_extrapolation");
    NuisanceParameterFreed9->GetXaxis()->SetBinLabel(20,"MUON_EFF_STAT");
    NuisanceParameterFreed9->GetXaxis()->SetBinLabel(21,"MUON_EFF_SYS");
    NuisanceParameterFreed9->GetXaxis()->SetBinLabel(22,"MUON_EFF_TrigStatUncertainty");
    NuisanceParameterFreed9->GetXaxis()->SetBinLabel(23,"FT_EFF_Eigen_Light_1");
    NuisanceParameterFreed9->GetXaxis()->SetBinLabel(24,"FT_EFF_Eigen_Light_2");
    NuisanceParameterFreed9->GetXaxis()->SetBinLabel(25,"EG_RESOLUTION_ALL");
    NuisanceParameterFreed9->GetXaxis()->SetBinLabel(26,"XS_diboson");
    NuisanceParameterFreed9->GetXaxis()->SetBinLabel(27,"FT_EFF_Eigen_Light_4");
    NuisanceParameterFreed9->GetXaxis()->SetBinLabel(28,"FT_EFF_Eigen_Light_3");
    NuisanceParameterFreed9->GetXaxis()->SetBinLabel(29,"MUON_ISO_SYS");
    NuisanceParameterFreed9->GetXaxis()->SetBinLabel(30,"XS_Zb");
    NuisanceParameterFreed9->GetXaxis()->SetBinLabel(31,"MUONS_MS");
    NuisanceParameterFreed9->GetXaxis()->SetBinLabel(32,"FT_EFF_Eigen_C_2");
    NuisanceParameterFreed9->GetXaxis()->SetBinLabel(33,"FT_EFF_Eigen_Light_0");
    NuisanceParameterFreed9->GetXaxis()->SetLabelFont(42);
    NuisanceParameterFreed9->GetXaxis()->SetLabelSize(0.035);
    NuisanceParameterFreed9->GetXaxis()->SetTitleSize(0.035);
    NuisanceParameterFreed9->GetXaxis()->SetTitleFont(42);
    NuisanceParameterFreed9->GetYaxis()->SetTitle("#theta_{fit} - #theta_{initial}/#Delta#theta");
    NuisanceParameterFreed9->GetYaxis()->SetLabelFont(42);
    NuisanceParameterFreed9->GetYaxis()->SetLabelSize(0.035);
    NuisanceParameterFreed9->GetYaxis()->SetTitleSize(0.035);
    NuisanceParameterFreed9->GetYaxis()->SetTitleFont(42);
    NuisanceParameterFreed9->GetZaxis()->SetLabelFont(42);
    NuisanceParameterFreed9->GetZaxis()->SetLabelSize(0.035);
    NuisanceParameterFreed9->GetZaxis()->SetTitleSize(0.035);
    NuisanceParameterFreed9->GetZaxis()->SetTitleFont(42);
    NuisanceParameterFreed9->Draw("hist");

    Double_t _fx1009[35] = {
        1.22802e-312,
        0.5,
        1.5,
        2.5,
        3.5,
        4.5,
        5.5,
        6.5,
        7.5,
        8.5,
        9.5,
        10.5,
        11.5,
        12.5,
        13.5,
        14.5,
        15.5,
        16.5,
        17.5,
        18.5,
        19.5,
        20.5,
        21.5,
        22.5,
        23.5,
        24.5,
        25.5,
        26.5,
        27.5,
        28.5,
        29.5,
        30.5,
        31.5,
        32.5,
        0
    };
    Double_t _fy1009[35] = {
        1.22802e-312,
        -0.7727848,
        -0.3922476,
        -0.2907829,
        -0.2050988,
        -0.1826652,
        -0.1278621,
        -0.1246447,
        -0.1083822,
        -0.06587814,
        -0.05693349,
        -0.05334209,
        -0.04676047,
        -0.03729371,
        -0.03207689,
        -0.03107143,
        -0.01702517,
        -0.001380258,
        0.0001641211,
        0.01041877,
        0.01060027,
        0.01810894,
        0.01987367,
        0.02024918,
        0.02038876,
        0.02749887,
        0.0401174,
        0.04268003,
        0.04584905,
        0.05094516,
        0.05434531,
        0.05598196,
        0.05756905,
        0.8456503,
        0
    };
    Double_t _fex1009[35] = {
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0
    };
    Double_t _fey1009[35] = {
        0,
        0,
        0.6107702,
        1.073131,
        1.266362,
        0.9365976,
        0.9916527,
        0.9863054,
        0.9267238,
        0.7691165,
        0.9864524,
        0.9937947,
        0.9917419,
        0.9970684,
        0.9817834,
        0.9376065,
        0.9926703,
        0.9925594,
        1.005011,
        0.9933467,
        0.9551198,
        0.9932276,
        0.9929662,
        0.9927806,
        0.9913159,
        0.9909915,
        1.097968,
        0.9870135,
        0.9931711,
        0.9930639,
        0.9855126,
        0.7540343,
        0.738039,
        0.9909039,
        0.7858475
    };
    TGraphErrors *gre = new TGraphErrors(35,_fx1009,_fy1009,_fex1009,_fey1009);
    gre->SetName("");
    gre->SetTitle("");
    gre->SetFillColor(1);
    gre->SetMarkerStyle(20);
    gre->SetMarkerSize(1.2);

    TH1F *Graph_Graph1009 = new TH1F("Graph_Graph1009","",100,0,35.75);
    Graph_Graph1009->SetMinimum(-1.802262);
    Graph_Graph1009->SetMaximum(2.167356);
    Graph_Graph1009->SetDirectory(0);
    Graph_Graph1009->SetStats(0);

    ci = TColor::GetColor("#000099");
    Graph_Graph1009->SetLineColor(ci);
    Graph_Graph1009->GetXaxis()->SetLabelFont(42);
    Graph_Graph1009->GetXaxis()->SetLabelSize(0.035);
    Graph_Graph1009->GetXaxis()->SetTitleSize(0.035);
    Graph_Graph1009->GetXaxis()->SetTitleFont(42);
    Graph_Graph1009->GetYaxis()->SetLabelFont(42);
    Graph_Graph1009->GetYaxis()->SetLabelSize(0.035);
    Graph_Graph1009->GetYaxis()->SetTitleSize(0.035);
    Graph_Graph1009->GetYaxis()->SetTitleFont(42);
    Graph_Graph1009->GetZaxis()->SetLabelFont(42);
    Graph_Graph1009->GetZaxis()->SetLabelSize(0.035);
    Graph_Graph1009->GetZaxis()->SetTitleSize(0.035);
    Graph_Graph1009->GetZaxis()->SetTitleFont(42);
    gre->SetHistogram(Graph_Graph1009);

    gre->Draw("p");

    TLegend *leg = new TLegend(0.1,0.4,0.4,0.95,NULL,"brNDC");
    leg->SetBorderSize(0);
    leg->SetTextFont(72);
    leg->SetTextSize(0.015);
    leg->SetLineColor(1);
    leg->SetLineStyle(1);
    leg->SetLineWidth(1);
    leg->SetFillColor(0);
    leg->SetFillStyle(0);
    leg->Draw();

    TPaveText *pt = new TPaveText(0.2068675,0.9341608,0.7931325,0.995,"blNDC");
    pt->SetName("title");
    pt->SetBorderSize(0);
    pt->SetFillColor(0);
    pt->SetFillStyle(0);
    pt->SetTextFont(42);
    TText *AText = pt->AddText("alpha_EL_EFF_Iso_TotalCorrUncertainty");
    pt->Draw();
    c1->Modified();
    c1->cd();
    c1->SetSelected(c1);
}
void paraPull_alpha_MUON_ISO_SYS_2TeV_2Lep_plots_All()
{
//=========Macro generated from canvas: c1/alpha_MUON_ISO_SYS
//=========  (Sun Nov 22 20:21:56 2015) by ROOT version6.02/12
   TCanvas *c1 = new TCanvas("c1", "alpha_MUON_ISO_SYS",0,22,1000,600);
   gStyle->SetOptStat(0);
   c1->Range(-4.125,-0.9777052,37.125,1.049159);
   c1->SetFillColor(0);
   c1->SetBorderMode(0);
   c1->SetBorderSize(2);
   c1->SetGridx();
   c1->SetGridy();
   c1->SetFrameBorderMode(0);
   c1->SetFrameBorderMode(0);
   
   TH1F *NuisanceParameterFreed33 = new TH1F("NuisanceParameterFreed33","alpha_MUON_ISO_SYS",33,0,33);
   NuisanceParameterFreed33->SetMinimum(-0.7750188);
   NuisanceParameterFreed33->SetMaximum(0.8464727);
   NuisanceParameterFreed33->SetStats(0);

   Int_t ci;      // for color index setting
   TColor *color; // for color definition with alpha
   ci = TColor::GetColor("#000099");
   NuisanceParameterFreed33->SetLineColor(ci);
   NuisanceParameterFreed33->GetXaxis()->SetBinLabel(1,"XS_ttbar");
   NuisanceParameterFreed33->GetXaxis()->SetBinLabel(2,"EG_SCALE_ALL");
   NuisanceParameterFreed33->GetXaxis()->SetBinLabel(3,"FT_EFF_Eigen_C_0");
   NuisanceParameterFreed33->GetXaxis()->SetBinLabel(4,"Luminosity");
   NuisanceParameterFreed33->GetXaxis()->SetBinLabel(5,"XS_st");
   NuisanceParameterFreed33->GetXaxis()->SetBinLabel(6,"FT_EFF_Eigen_B_1");
   NuisanceParameterFreed33->GetXaxis()->SetBinLabel(7,"XS_Zc");
   NuisanceParameterFreed33->GetXaxis()->SetBinLabel(8,"MUONS_ID");
   NuisanceParameterFreed33->GetXaxis()->SetBinLabel(9,"FT_EFF_Eigen_C_1");
   NuisanceParameterFreed33->GetXaxis()->SetBinLabel(10,"FT_EFF_Eigen_C_3");
   NuisanceParameterFreed33->GetXaxis()->SetBinLabel(11,"MUON_EFF_TrigSystUncertainty");
   NuisanceParameterFreed33->GetXaxis()->SetBinLabel(12,"XS_Zl");
   NuisanceParameterFreed33->GetXaxis()->SetBinLabel(13,"EL_EFF_ID_TotalCorrUncertainty");
   NuisanceParameterFreed33->GetXaxis()->SetBinLabel(14,"FT_EFF_Eigen_B_0");
   NuisanceParameterFreed33->GetXaxis()->SetBinLabel(15,"FT_EFF_Eigen_B_2");
   NuisanceParameterFreed33->GetXaxis()->SetBinLabel(16,"EL_EFF_Iso_TotalCorrUncertainty");
   NuisanceParameterFreed33->GetXaxis()->SetBinLabel(17,"EL_EFF_Reco_TotalCorrUncertainty");
   NuisanceParameterFreed33->GetXaxis()->SetBinLabel(18,"MUONS_SCALE");
   NuisanceParameterFreed33->GetXaxis()->SetBinLabel(19,"MUON_ISO_STAT");
   NuisanceParameterFreed33->GetXaxis()->SetBinLabel(20,"FT_EFF_extrapolation");
   NuisanceParameterFreed33->GetXaxis()->SetBinLabel(21,"MUON_EFF_STAT");
   NuisanceParameterFreed33->GetXaxis()->SetBinLabel(22,"MUON_EFF_SYS");
   NuisanceParameterFreed33->GetXaxis()->SetBinLabel(23,"MUON_EFF_TrigStatUncertainty");
   NuisanceParameterFreed33->GetXaxis()->SetBinLabel(24,"FT_EFF_Eigen_Light_2");
   NuisanceParameterFreed33->GetXaxis()->SetBinLabel(25,"FT_EFF_Eigen_Light_1");
   NuisanceParameterFreed33->GetXaxis()->SetBinLabel(26,"EG_RESOLUTION_ALL");
   NuisanceParameterFreed33->GetXaxis()->SetBinLabel(27,"XS_diboson");
   NuisanceParameterFreed33->GetXaxis()->SetBinLabel(28,"FT_EFF_Eigen_Light_4");
   NuisanceParameterFreed33->GetXaxis()->SetBinLabel(29,"FT_EFF_Eigen_Light_3");
   NuisanceParameterFreed33->GetXaxis()->SetBinLabel(30,"MUONS_MS");
   NuisanceParameterFreed33->GetXaxis()->SetBinLabel(31,"XS_Zb");
   NuisanceParameterFreed33->GetXaxis()->SetBinLabel(32,"FT_EFF_Eigen_C_2");
   NuisanceParameterFreed33->GetXaxis()->SetBinLabel(33,"FT_EFF_Eigen_Light_0");
   NuisanceParameterFreed33->GetXaxis()->SetLabelFont(42);
   NuisanceParameterFreed33->GetXaxis()->SetLabelSize(0.035);
   NuisanceParameterFreed33->GetXaxis()->SetTitleSize(0.035);
   NuisanceParameterFreed33->GetXaxis()->SetTitleFont(42);
   NuisanceParameterFreed33->GetYaxis()->SetTitle("#theta_{fit} - #theta_{initial}/#Delta#theta");
   NuisanceParameterFreed33->GetYaxis()->SetLabelFont(42);
   NuisanceParameterFreed33->GetYaxis()->SetLabelSize(0.035);
   NuisanceParameterFreed33->GetYaxis()->SetTitleSize(0.035);
   NuisanceParameterFreed33->GetYaxis()->SetTitleFont(42);
   NuisanceParameterFreed33->GetZaxis()->SetLabelFont(42);
   NuisanceParameterFreed33->GetZaxis()->SetLabelSize(0.035);
   NuisanceParameterFreed33->GetZaxis()->SetTitleSize(0.035);
   NuisanceParameterFreed33->GetZaxis()->SetTitleFont(42);
   NuisanceParameterFreed33->Draw("hist");
   
   Double_t _fx1033[35] = {
   1.22802e-312,
   0.5,
   1.5,
   2.5,
   3.5,
   4.5,
   5.5,
   6.5,
   7.5,
   8.5,
   9.5,
   10.5,
   11.5,
   12.5,
   13.5,
   14.5,
   15.5,
   16.5,
   17.5,
   18.5,
   19.5,
   20.5,
   21.5,
   22.5,
   23.5,
   24.5,
   25.5,
   26.5,
   27.5,
   28.5,
   29.5,
   30.5,
   31.5,
   32.5,
   0};
   Double_t _fy1033[35] = {
   1.22802e-312,
   -0.7750188,
   -0.3925669,
   -0.2928498,
   -0.2070924,
   -0.1830524,
   -0.1280032,
   -0.1262679,
   -0.1096289,
   -0.06558224,
   -0.05681625,
   -0.05340132,
   -0.04752113,
   -0.03756,
   -0.03159065,
   -0.03113199,
   -0.02395544,
   -0.01709673,
   -0.001375576,
   0.0001640258,
   0.01017132,
   0.01056379,
   0.01803238,
   0.01953954,
   0.02015159,
   0.02033505,
   0.0231812,
   0.04061694,
   0.04275862,
   0.04588616,
   0.04795404,
   0.05347781,
   0.05730227,
   0.8464727,
   0};
   Double_t _fex1033[35] = {
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0};
   Double_t _fey1033[35] = {
   0,
   0,
   0.6105177,
   1.072963,
   1.274131,
   0.9350411,
   0.9915346,
   0.9862834,
   0.9243374,
   0.769056,
   0.9864216,
   0.9937953,
   0.9917567,
   0.9969205,
   0.9819024,
   0.9371645,
   0.9926625,
   0.9931845,
   0.9925671,
   1.004991,
   0.9933467,
   0.9551202,
   0.9932281,
   0.9929675,
   0.9926546,
   0.9909755,
   0.9913131,
   1.098392,
   0.9868992,
   0.9931708,
   0.9930622,
   0.7376817,
   0.7516033,
   0.9909095,
   0.7841002};
   TGraphErrors *gre = new TGraphErrors(35,_fx1033,_fy1033,_fex1033,_fey1033);
   gre->SetName("");
   gre->SetTitle("");
   gre->SetFillColor(1);
   gre->SetMarkerStyle(20);
   gre->SetMarkerSize(1.2);
   
   TH1F *Graph_Graph1033 = new TH1F("Graph_Graph1033","",100,0,35.75);
   Graph_Graph1033->SetMinimum(-1.813084);
   Graph_Graph1033->SetMaximum(2.169243);
   Graph_Graph1033->SetDirectory(0);
   Graph_Graph1033->SetStats(0);

   ci = TColor::GetColor("#000099");
   Graph_Graph1033->SetLineColor(ci);
   Graph_Graph1033->GetXaxis()->SetLabelFont(42);
   Graph_Graph1033->GetXaxis()->SetLabelSize(0.035);
   Graph_Graph1033->GetXaxis()->SetTitleSize(0.035);
   Graph_Graph1033->GetXaxis()->SetTitleFont(42);
   Graph_Graph1033->GetYaxis()->SetLabelFont(42);
   Graph_Graph1033->GetYaxis()->SetLabelSize(0.035);
   Graph_Graph1033->GetYaxis()->SetTitleSize(0.035);
   Graph_Graph1033->GetYaxis()->SetTitleFont(42);
   Graph_Graph1033->GetZaxis()->SetLabelFont(42);
   Graph_Graph1033->GetZaxis()->SetLabelSize(0.035);
   Graph_Graph1033->GetZaxis()->SetTitleSize(0.035);
   Graph_Graph1033->GetZaxis()->SetTitleFont(42);
   gre->SetHistogram(Graph_Graph1033);
   
   gre->Draw("p");
   
   TLegend *leg = new TLegend(0.1,0.4,0.4,0.95,NULL,"brNDC");
   leg->SetBorderSize(0);
   leg->SetTextFont(72);
   leg->SetTextSize(0.015);
   leg->SetLineColor(1);
   leg->SetLineStyle(1);
   leg->SetLineWidth(1);
   leg->SetFillColor(0);
   leg->SetFillStyle(0);
   leg->Draw();
   
   TPaveText *pt = new TPaveText(0.3293574,0.9341608,0.6706426,0.995,"blNDC");
   pt->SetName("title");
   pt->SetBorderSize(0);
   pt->SetFillColor(0);
   pt->SetFillStyle(0);
   pt->SetTextFont(42);
   TText *AText = pt->AddText("alpha_MUON_ISO_SYS");
   pt->Draw();
   c1->Modified();
   c1->cd();
   c1->SetSelected(c1);
}
void paraPull_alpha_EL_EFF_ID_TotalCorrUncertainty_2TeV_2Lep_plots_All()
{
//=========Macro generated from canvas: c1/alpha_EL_EFF_ID_TotalCorrUncertainty
//=========  (Sun Nov 22 20:14:37 2015) by ROOT version6.02/12
   TCanvas *c1 = new TCanvas("c1", "alpha_EL_EFF_ID_TotalCorrUncertainty",0,22,1000,600);
   gStyle->SetOptStat(0);
   c1->Range(-4.125,-0.9743504,37.125,1.055419);
   c1->SetFillColor(0);
   c1->SetBorderMode(0);
   c1->SetBorderSize(2);
   c1->SetGridx();
   c1->SetGridy();
   c1->SetFrameBorderMode(0);
   c1->SetFrameBorderMode(0);
   
   TH1F *NuisanceParameterFreed8 = new TH1F("NuisanceParameterFreed8","alpha_EL_EFF_ID_TotalCorrUncertainty",33,0,33);
   NuisanceParameterFreed8->SetMinimum(-0.7713735);
   NuisanceParameterFreed8->SetMaximum(0.8524417);
   NuisanceParameterFreed8->SetStats(0);

   Int_t ci;      // for color index setting
   TColor *color; // for color definition with alpha
   ci = TColor::GetColor("#000099");
   NuisanceParameterFreed8->SetLineColor(ci);
   NuisanceParameterFreed8->GetXaxis()->SetBinLabel(1,"XS_ttbar");
   NuisanceParameterFreed8->GetXaxis()->SetBinLabel(2,"EG_SCALE_ALL");
   NuisanceParameterFreed8->GetXaxis()->SetBinLabel(3,"FT_EFF_Eigen_C_0");
   NuisanceParameterFreed8->GetXaxis()->SetBinLabel(4,"Luminosity");
   NuisanceParameterFreed8->GetXaxis()->SetBinLabel(5,"XS_st");
   NuisanceParameterFreed8->GetXaxis()->SetBinLabel(6,"FT_EFF_Eigen_B_1");
   NuisanceParameterFreed8->GetXaxis()->SetBinLabel(7,"XS_Zc");
   NuisanceParameterFreed8->GetXaxis()->SetBinLabel(8,"MUONS_ID");
   NuisanceParameterFreed8->GetXaxis()->SetBinLabel(9,"FT_EFF_Eigen_C_1");
   NuisanceParameterFreed8->GetXaxis()->SetBinLabel(10,"FT_EFF_Eigen_C_3");
   NuisanceParameterFreed8->GetXaxis()->SetBinLabel(11,"MUON_EFF_TrigSystUncertainty");
   NuisanceParameterFreed8->GetXaxis()->SetBinLabel(12,"XS_Zl");
   NuisanceParameterFreed8->GetXaxis()->SetBinLabel(13,"FT_EFF_Eigen_B_2");
   NuisanceParameterFreed8->GetXaxis()->SetBinLabel(14,"FT_EFF_Eigen_B_0");
   NuisanceParameterFreed8->GetXaxis()->SetBinLabel(15,"EL_EFF_Iso_TotalCorrUncertainty");
   NuisanceParameterFreed8->GetXaxis()->SetBinLabel(16,"EL_EFF_Reco_TotalCorrUncertainty");
   NuisanceParameterFreed8->GetXaxis()->SetBinLabel(17,"MUONS_SCALE");
   NuisanceParameterFreed8->GetXaxis()->SetBinLabel(18,"MUON_ISO_STAT");
   NuisanceParameterFreed8->GetXaxis()->SetBinLabel(19,"FT_EFF_extrapolation");
   NuisanceParameterFreed8->GetXaxis()->SetBinLabel(20,"MUON_EFF_STAT");
   NuisanceParameterFreed8->GetXaxis()->SetBinLabel(21,"MUON_EFF_SYS");
   NuisanceParameterFreed8->GetXaxis()->SetBinLabel(22,"MUON_EFF_TrigStatUncertainty");
   NuisanceParameterFreed8->GetXaxis()->SetBinLabel(23,"FT_EFF_Eigen_Light_1");
   NuisanceParameterFreed8->GetXaxis()->SetBinLabel(24,"FT_EFF_Eigen_Light_2");
   NuisanceParameterFreed8->GetXaxis()->SetBinLabel(25,"EG_RESOLUTION_ALL");
   NuisanceParameterFreed8->GetXaxis()->SetBinLabel(26,"XS_diboson");
   NuisanceParameterFreed8->GetXaxis()->SetBinLabel(27,"FT_EFF_Eigen_Light_4");
   NuisanceParameterFreed8->GetXaxis()->SetBinLabel(28,"FT_EFF_Eigen_Light_3");
   NuisanceParameterFreed8->GetXaxis()->SetBinLabel(29,"XS_Zb");
   NuisanceParameterFreed8->GetXaxis()->SetBinLabel(30,"MUON_ISO_SYS");
   NuisanceParameterFreed8->GetXaxis()->SetBinLabel(31,"MUONS_MS");
   NuisanceParameterFreed8->GetXaxis()->SetBinLabel(32,"FT_EFF_Eigen_C_2");
   NuisanceParameterFreed8->GetXaxis()->SetBinLabel(33,"FT_EFF_Eigen_Light_0");
   NuisanceParameterFreed8->GetXaxis()->SetLabelFont(42);
   NuisanceParameterFreed8->GetXaxis()->SetLabelSize(0.035);
   NuisanceParameterFreed8->GetXaxis()->SetTitleSize(0.035);
   NuisanceParameterFreed8->GetXaxis()->SetTitleFont(42);
   NuisanceParameterFreed8->GetYaxis()->SetTitle("#theta_{fit} - #theta_{initial}/#Delta#theta");
   NuisanceParameterFreed8->GetYaxis()->SetLabelFont(42);
   NuisanceParameterFreed8->GetYaxis()->SetLabelSize(0.035);
   NuisanceParameterFreed8->GetYaxis()->SetTitleSize(0.035);
   NuisanceParameterFreed8->GetYaxis()->SetTitleFont(42);
   NuisanceParameterFreed8->GetZaxis()->SetLabelFont(42);
   NuisanceParameterFreed8->GetZaxis()->SetLabelSize(0.035);
   NuisanceParameterFreed8->GetZaxis()->SetTitleSize(0.035);
   NuisanceParameterFreed8->GetZaxis()->SetTitleFont(42);
   NuisanceParameterFreed8->Draw("hist");
   
   Double_t _fx1008[35] = {
   1.22802e-312,
   0.5,
   1.5,
   2.5,
   3.5,
   4.5,
   5.5,
   6.5,
   7.5,
   8.5,
   9.5,
   10.5,
   11.5,
   12.5,
   13.5,
   14.5,
   15.5,
   16.5,
   17.5,
   18.5,
   19.5,
   20.5,
   21.5,
   22.5,
   23.5,
   24.5,
   25.5,
   26.5,
   27.5,
   28.5,
   29.5,
   30.5,
   31.5,
   32.5,
   0};
   Double_t _fy1008[35] = {
   1.22802e-312,
   -0.7713735,
   -0.3899354,
   -0.3036947,
   -0.2144597,
   -0.1822852,
   -0.1271717,
   -0.1262838,
   -0.1089001,
   -0.06510495,
   -0.05658069,
   -0.05333853,
   -0.04823432,
   -0.03094169,
   -0.0282085,
   -0.02399783,
   -0.01768,
   -0.001370611,
   0.0001636388,
   0.008968656,
   0.01057696,
   0.01792821,
   0.0190094,
   0.0198579,
   0.02078815,
   0.0255602,
   0.0402092,
   0.04242855,
   0.04568782,
   0.04772397,
   0.0479579,
   0.05526914,
   0.05676117,
   0.8524417,
   0};
   Double_t _fex1008[35] = {
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0};
   Double_t _fey1008[35] = {
   0,
   0,
   0.6107841,
   1.074473,
   1.240982,
   0.9349467,
   0.9916171,
   0.986318,
   0.9243028,
   0.7695058,
   0.9864285,
   0.9937932,
   0.9917505,
   0.9970093,
   0.9926694,
   0.9377343,
   0.9931843,
   0.9925541,
   1.00499,
   0.9933467,
   0.955117,
   0.9932276,
   0.9929649,
   0.9927283,
   0.9913194,
   0.9909852,
   1.098207,
   0.9869476,
   0.9931703,
   0.9930636,
   0.7490083,
   0.9854599,
   0.7384358,
   0.9909053,
   0.7843565};
   TGraphErrors *gre = new TGraphErrors(35,_fx1008,_fy1008,_fex1008,_fey1008);
   gre->SetName("");
   gre->SetTitle("");
   gre->SetFillColor(1);
   gre->SetMarkerStyle(20);
   gre->SetMarkerSize(1.2);
   
   TH1F *Graph_Graph1008 = new TH1F("Graph_Graph1008","",100,0,35.75);
   Graph_Graph1008->SetMinimum(-1.785321);
   Graph_Graph1008->SetMaximum(2.173226);
   Graph_Graph1008->SetDirectory(0);
   Graph_Graph1008->SetStats(0);

   ci = TColor::GetColor("#000099");
   Graph_Graph1008->SetLineColor(ci);
   Graph_Graph1008->GetXaxis()->SetLabelFont(42);
   Graph_Graph1008->GetXaxis()->SetLabelSize(0.035);
   Graph_Graph1008->GetXaxis()->SetTitleSize(0.035);
   Graph_Graph1008->GetXaxis()->SetTitleFont(42);
   Graph_Graph1008->GetYaxis()->SetLabelFont(42);
   Graph_Graph1008->GetYaxis()->SetLabelSize(0.035);
   Graph_Graph1008->GetYaxis()->SetTitleSize(0.035);
   Graph_Graph1008->GetYaxis()->SetTitleFont(42);
   Graph_Graph1008->GetZaxis()->SetLabelFont(42);
   Graph_Graph1008->GetZaxis()->SetLabelSize(0.035);
   Graph_Graph1008->GetZaxis()->SetTitleSize(0.035);
   Graph_Graph1008->GetZaxis()->SetTitleFont(42);
   gre->SetHistogram(Graph_Graph1008);
   
   gre->Draw("p");
   
   TLegend *leg = new TLegend(0.1,0.4,0.4,0.95,NULL,"brNDC");
   leg->SetBorderSize(0);
   leg->SetTextFont(72);
   leg->SetTextSize(0.015);
   leg->SetLineColor(1);
   leg->SetLineStyle(1);
   leg->SetLineWidth(1);
   leg->SetFillColor(0);
   leg->SetFillStyle(0);
   leg->Draw();
   
   TPaveText *pt = new TPaveText(0.2133936,0.9341608,0.7866064,0.995,"blNDC");
   pt->SetName("title");
   pt->SetBorderSize(0);
   pt->SetFillColor(0);
   pt->SetFillStyle(0);
   pt->SetTextFont(42);
   TText *AText = pt->AddText("alpha_EL_EFF_ID_TotalCorrUncertainty");
   pt->Draw();
   c1->Modified();
   c1->cd();
   c1->SetSelected(c1);
}
void ttbar_looseLep2Pt_logy()
{
//=========Macro generated from canvas: c1/c1
//=========  (Sun Dec 11 15:16:17 2016) by ROOT version6.06/01
   TCanvas *c1 = new TCanvas("c1", "c1",1,1,1200,1416);
   gStyle->SetOptStat(0);
   gStyle->SetOptTitle(0);
   c1->SetHighLightColor(2);
   c1->Range(0,0,1,1);
   c1->SetFillColor(0);
   c1->SetBorderMode(0);
   c1->SetBorderSize(2);
   c1->SetTickx(1);
   c1->SetTicky(1);
   c1->SetLeftMargin(0.15);
   c1->SetRightMargin(0.05);
   c1->SetTopMargin(0.07);
   c1->SetBottomMargin(0.13);
   c1->SetFrameFillStyle(0);
   c1->SetFrameBorderMode(0);
  
// ------------>Primitives in pad: pad1
   TPad *pad1 = new TPad("pad1", "pad1",0,0.3,1,1);
   pad1->Draw();
   pad1->cd();
   pad1->Range(-93.75,-6.459411,531.25,2.538922);
   pad1->SetFillColor(0);
   pad1->SetBorderMode(0);
   pad1->SetBorderSize(2);
   pad1->SetLogy();
   pad1->SetTickx(1);
   pad1->SetTicky(1);
   pad1->SetLeftMargin(0.15);
   pad1->SetRightMargin(0.05);
   pad1->SetTopMargin(0.07);
   pad1->SetBottomMargin(0);
   pad1->SetFrameFillStyle(0);
   pad1->SetFrameBorderMode(0);
   pad1->SetFrameFillStyle(0);
   pad1->SetFrameBorderMode(0);
   
   THStack *h = new THStack();
   h->SetName("h");
   h->SetTitle("");
   h->SetMinimum(1.61613e-06);
   h->SetMaximum(32.94396);
   
   TH1F *h_stack_8 = new TH1F("h_stack_8","",20,0,500);
   h_stack_8->SetMinimum(3.472076e-07);
   h_stack_8->SetMaximum(81.10342);
   h_stack_8->SetDirectory(0);
   h_stack_8->SetStats(0);

   Int_t ci;      // for color index setting
   TColor *color; // for color definition with alpha
   ci = TColor::GetColor("#000099");
   h_stack_8->SetLineColor(ci);
   h_stack_8->GetXaxis()->SetLabelFont(42);
   h_stack_8->GetXaxis()->SetLabelOffset(0.007);
   h_stack_8->GetXaxis()->SetTitleSize(0.05);
   h_stack_8->GetXaxis()->SetTickLength(0.025);
   h_stack_8->GetXaxis()->SetTitleFont(42);
   h_stack_8->GetYaxis()->SetTitle("a.u./25 GeV");
   h_stack_8->GetYaxis()->SetLabelFont(42);
   h_stack_8->GetYaxis()->SetLabelOffset(0.007);
   h_stack_8->GetYaxis()->SetTitleSize(0.05);
   h_stack_8->GetYaxis()->SetTickLength(0.025);
   h_stack_8->GetYaxis()->SetTitleOffset(1.5);
   h_stack_8->GetYaxis()->SetTitleFont(42);
   h_stack_8->GetZaxis()->SetLabelFont(42);
   h_stack_8->GetZaxis()->SetLabelOffset(0.007);
   h_stack_8->GetZaxis()->SetTitleSize(0.05);
   h_stack_8->GetZaxis()->SetTickLength(0.025);
   h_stack_8->GetZaxis()->SetTitleFont(42);
   h->SetHistogram(h_stack_8);
   
   
   TH1D *h_looseLep2Pt_QCD__85 = new TH1D("h_looseLep2Pt_QCD__85","",20,0,500);
   h_looseLep2Pt_QCD__85->SetBinContent(1,0.004168645);
   h_looseLep2Pt_QCD__85->SetBinContent(2,0.004299542);
   h_looseLep2Pt_QCD__85->SetBinContent(3,0.001765161);
   h_looseLep2Pt_QCD__85->SetBinContent(4,0.0008868067);
   h_looseLep2Pt_QCD__85->SetBinContent(6,0.0004026872);
   h_looseLep2Pt_QCD__85->SetBinContent(7,6.27175e-05);
   h_looseLep2Pt_QCD__85->SetBinError(1,0.001669574);
   h_looseLep2Pt_QCD__85->SetBinError(2,0.002080688);
   h_looseLep2Pt_QCD__85->SetBinError(3,0.001425843);
   h_looseLep2Pt_QCD__85->SetBinError(4,0.0005754946);
   h_looseLep2Pt_QCD__85->SetBinError(6,0.0004026872);
   h_looseLep2Pt_QCD__85->SetBinError(7,4.443558e-05);
   h_looseLep2Pt_QCD__85->SetEntries(25);
   h_looseLep2Pt_QCD__85->SetStats(0);

   ci = TColor::GetColor("#cccccc");
   h_looseLep2Pt_QCD__85->SetFillColor(ci);
   h_looseLep2Pt_QCD__85->GetXaxis()->SetTitle("Sub-leading lep p_{T} [GeV]");
   h_looseLep2Pt_QCD__85->GetXaxis()->SetLabelFont(42);
   h_looseLep2Pt_QCD__85->GetXaxis()->SetLabelOffset(0.007);
   h_looseLep2Pt_QCD__85->GetXaxis()->SetTitleSize(0.05);
   h_looseLep2Pt_QCD__85->GetXaxis()->SetTickLength(0.025);
   h_looseLep2Pt_QCD__85->GetXaxis()->SetTitleFont(42);
   h_looseLep2Pt_QCD__85->GetYaxis()->SetTitle("a.u./25 GeV");
   h_looseLep2Pt_QCD__85->GetYaxis()->SetLabelFont(42);
   h_looseLep2Pt_QCD__85->GetYaxis()->SetLabelOffset(0.007);
   h_looseLep2Pt_QCD__85->GetYaxis()->SetTitleSize(0.05);
   h_looseLep2Pt_QCD__85->GetYaxis()->SetTickLength(0.025);
   h_looseLep2Pt_QCD__85->GetYaxis()->SetTitleFont(42);
   h_looseLep2Pt_QCD__85->GetZaxis()->SetLabelFont(42);
   h_looseLep2Pt_QCD__85->GetZaxis()->SetLabelOffset(0.007);
   h_looseLep2Pt_QCD__85->GetZaxis()->SetTitleSize(0.05);
   h_looseLep2Pt_QCD__85->GetZaxis()->SetTickLength(0.025);
   h_looseLep2Pt_QCD__85->GetZaxis()->SetTitleFont(42);
   h->Add(h_looseLep2Pt_QCD,"");
   
   TH1D *h_looseLep2Pt_Diboson__86 = new TH1D("h_looseLep2Pt_Diboson__86","",20,0,500);
   h_looseLep2Pt_Diboson__86->SetBinContent(1,0.01174144);
   h_looseLep2Pt_Diboson__86->SetBinContent(2,0.01187664);
   h_looseLep2Pt_Diboson__86->SetBinContent(3,0.004759406);
   h_looseLep2Pt_Diboson__86->SetBinContent(4,0.002930753);
   h_looseLep2Pt_Diboson__86->SetBinContent(5,0.00175143);
   h_looseLep2Pt_Diboson__86->SetBinContent(6,0.0008561466);
   h_looseLep2Pt_Diboson__86->SetBinContent(7,0.000727361);
   h_looseLep2Pt_Diboson__86->SetBinContent(8,0.0006566697);
   h_looseLep2Pt_Diboson__86->SetBinContent(9,0.0001931429);
   h_looseLep2Pt_Diboson__86->SetBinContent(10,0.0004155724);
   h_looseLep2Pt_Diboson__86->SetBinContent(11,0.0002518857);
   h_looseLep2Pt_Diboson__86->SetBinContent(14,0.0002218985);
   h_looseLep2Pt_Diboson__86->SetBinContent(15,0.0002412745);
   h_looseLep2Pt_Diboson__86->SetBinContent(19,0.0001695579);
   h_looseLep2Pt_Diboson__86->SetBinError(1,0.001495699);
   h_looseLep2Pt_Diboson__86->SetBinError(2,0.001560382);
   h_looseLep2Pt_Diboson__86->SetBinError(3,0.0009896295);
   h_looseLep2Pt_Diboson__86->SetBinError(4,0.0007445459);
   h_looseLep2Pt_Diboson__86->SetBinError(5,0.0005817517);
   h_looseLep2Pt_Diboson__86->SetBinError(6,0.00038167);
   h_looseLep2Pt_Diboson__86->SetBinError(7,0.0003371659);
   h_looseLep2Pt_Diboson__86->SetBinError(8,0.0003965161);
   h_looseLep2Pt_Diboson__86->SetBinError(9,0.0001370432);
   h_looseLep2Pt_Diboson__86->SetBinError(10,0.0002946848);
   h_looseLep2Pt_Diboson__86->SetBinError(11,0.0002518857);
   h_looseLep2Pt_Diboson__86->SetBinError(14,0.0002218985);
   h_looseLep2Pt_Diboson__86->SetBinError(15,0.0002412745);
   h_looseLep2Pt_Diboson__86->SetBinError(19,0.0001695579);
   h_looseLep2Pt_Diboson__86->SetEntries(227);
   h_looseLep2Pt_Diboson__86->SetStats(0);

   ci = TColor::GetColor("#9966cc");
   h_looseLep2Pt_Diboson__86->SetFillColor(ci);
   h_looseLep2Pt_Diboson__86->GetXaxis()->SetTitle("Sub-leading lep p_{T} [GeV]");
   h_looseLep2Pt_Diboson__86->GetXaxis()->SetLabelFont(42);
   h_looseLep2Pt_Diboson__86->GetXaxis()->SetLabelOffset(0.007);
   h_looseLep2Pt_Diboson__86->GetXaxis()->SetTitleSize(0.05);
   h_looseLep2Pt_Diboson__86->GetXaxis()->SetTickLength(0.025);
   h_looseLep2Pt_Diboson__86->GetXaxis()->SetTitleFont(42);
   h_looseLep2Pt_Diboson__86->GetYaxis()->SetTitle("a.u./25 GeV");
   h_looseLep2Pt_Diboson__86->GetYaxis()->SetLabelFont(42);
   h_looseLep2Pt_Diboson__86->GetYaxis()->SetLabelOffset(0.007);
   h_looseLep2Pt_Diboson__86->GetYaxis()->SetTitleSize(0.05);
   h_looseLep2Pt_Diboson__86->GetYaxis()->SetTickLength(0.025);
   h_looseLep2Pt_Diboson__86->GetYaxis()->SetTitleFont(42);
   h_looseLep2Pt_Diboson__86->GetZaxis()->SetLabelFont(42);
   h_looseLep2Pt_Diboson__86->GetZaxis()->SetLabelOffset(0.007);
   h_looseLep2Pt_Diboson__86->GetZaxis()->SetTitleSize(0.05);
   h_looseLep2Pt_Diboson__86->GetZaxis()->SetTickLength(0.025);
   h_looseLep2Pt_Diboson__86->GetZaxis()->SetTitleFont(42);
   h->Add(h_looseLep2Pt_Diboson,"");
   
   TH1D *h_looseLep2Pt_ZpLjets__87 = new TH1D("h_looseLep2Pt_ZpLjets__87","",20,0,500);
   h_looseLep2Pt_ZpLjets__87->SetBinContent(1,0.02667925);
   h_looseLep2Pt_ZpLjets__87->SetBinContent(2,0.01473475);
   h_looseLep2Pt_ZpLjets__87->SetBinContent(3,0.003756899);
   h_looseLep2Pt_ZpLjets__87->SetBinContent(4,0.001254256);
   h_looseLep2Pt_ZpLjets__87->SetBinContent(5,0.0004467979);
   h_looseLep2Pt_ZpLjets__87->SetBinContent(6,0.0002317029);
   h_looseLep2Pt_ZpLjets__87->SetBinContent(7,0.0001188745);
   h_looseLep2Pt_ZpLjets__87->SetBinContent(8,5.180996e-05);
   h_looseLep2Pt_ZpLjets__87->SetBinContent(9,3.953698e-05);
   h_looseLep2Pt_ZpLjets__87->SetBinContent(10,5.25799e-05);
   h_looseLep2Pt_ZpLjets__87->SetBinContent(11,8.216096e-06);
   h_looseLep2Pt_ZpLjets__87->SetBinContent(12,1.278228e-05);
   h_looseLep2Pt_ZpLjets__87->SetBinContent(13,9.580175e-06);
   h_looseLep2Pt_ZpLjets__87->SetBinContent(14,1.588075e-06);
   h_looseLep2Pt_ZpLjets__87->SetBinContent(15,1.177547e-05);
   h_looseLep2Pt_ZpLjets__87->SetBinContent(16,1.223887e-06);
   h_looseLep2Pt_ZpLjets__87->SetBinContent(17,7.306459e-07);
   h_looseLep2Pt_ZpLjets__87->SetBinContent(20,1.45491e-06);
   h_looseLep2Pt_ZpLjets__87->SetBinError(1,0.0005258423);
   h_looseLep2Pt_ZpLjets__87->SetBinError(2,0.0003466748);
   h_looseLep2Pt_ZpLjets__87->SetBinError(3,0.0001526343);
   h_looseLep2Pt_ZpLjets__87->SetBinError(4,8.095507e-05);
   h_looseLep2Pt_ZpLjets__87->SetBinError(5,4.333559e-05);
   h_looseLep2Pt_ZpLjets__87->SetBinError(6,3.359842e-05);
   h_looseLep2Pt_ZpLjets__87->SetBinError(7,2.459211e-05);
   h_looseLep2Pt_ZpLjets__87->SetBinError(8,1.436585e-05);
   h_looseLep2Pt_ZpLjets__87->SetBinError(9,1.618837e-05);
   h_looseLep2Pt_ZpLjets__87->SetBinError(10,2.012392e-05);
   h_looseLep2Pt_ZpLjets__87->SetBinError(11,3.870226e-06);
   h_looseLep2Pt_ZpLjets__87->SetBinError(12,6.226944e-06);
   h_looseLep2Pt_ZpLjets__87->SetBinError(13,5.393688e-06);
   h_looseLep2Pt_ZpLjets__87->SetBinError(14,6.993857e-07);
   h_looseLep2Pt_ZpLjets__87->SetBinError(15,7.943273e-06);
   h_looseLep2Pt_ZpLjets__87->SetBinError(16,7.962562e-07);
   h_looseLep2Pt_ZpLjets__87->SetBinError(17,5.208535e-07);
   h_looseLep2Pt_ZpLjets__87->SetBinError(20,1.161384e-06);
   h_looseLep2Pt_ZpLjets__87->SetEntries(24915);
   h_looseLep2Pt_ZpLjets__87->SetStats(0);

   ci = TColor::GetColor("#3399cc");
   h_looseLep2Pt_ZpLjets__87->SetFillColor(ci);
   h_looseLep2Pt_ZpLjets__87->GetXaxis()->SetTitle("Sub-leading lep p_{T} [GeV]");
   h_looseLep2Pt_ZpLjets__87->GetXaxis()->SetLabelFont(42);
   h_looseLep2Pt_ZpLjets__87->GetXaxis()->SetLabelOffset(0.007);
   h_looseLep2Pt_ZpLjets__87->GetXaxis()->SetTitleSize(0.05);
   h_looseLep2Pt_ZpLjets__87->GetXaxis()->SetTickLength(0.025);
   h_looseLep2Pt_ZpLjets__87->GetXaxis()->SetTitleFont(42);
   h_looseLep2Pt_ZpLjets__87->GetYaxis()->SetTitle("a.u./25 GeV");
   h_looseLep2Pt_ZpLjets__87->GetYaxis()->SetLabelFont(42);
   h_looseLep2Pt_ZpLjets__87->GetYaxis()->SetLabelOffset(0.007);
   h_looseLep2Pt_ZpLjets__87->GetYaxis()->SetTitleSize(0.05);
   h_looseLep2Pt_ZpLjets__87->GetYaxis()->SetTickLength(0.025);
   h_looseLep2Pt_ZpLjets__87->GetYaxis()->SetTitleFont(42);
   h_looseLep2Pt_ZpLjets__87->GetZaxis()->SetLabelFont(42);
   h_looseLep2Pt_ZpLjets__87->GetZaxis()->SetLabelOffset(0.007);
   h_looseLep2Pt_ZpLjets__87->GetZaxis()->SetTitleSize(0.05);
   h_looseLep2Pt_ZpLjets__87->GetZaxis()->SetTickLength(0.025);
   h_looseLep2Pt_ZpLjets__87->GetZaxis()->SetTitleFont(42);
   h->Add(h_looseLep2Pt_Z+jets,"");
   
   TH1D *h_looseLep2Pt_WpLjets__88 = new TH1D("h_looseLep2Pt_WpLjets__88","",20,0,500);
   h_looseLep2Pt_WpLjets__88->SetBinContent(1,0.02932453);
   h_looseLep2Pt_WpLjets__88->SetBinContent(2,0.006497682);
   h_looseLep2Pt_WpLjets__88->SetBinContent(3,0.002693998);
   h_looseLep2Pt_WpLjets__88->SetBinContent(4,0.001997142);
   h_looseLep2Pt_WpLjets__88->SetBinContent(5,0.001838293);
   h_looseLep2Pt_WpLjets__88->SetBinContent(6,0.0008665013);
   h_looseLep2Pt_WpLjets__88->SetBinContent(7,0.001024588);
   h_looseLep2Pt_WpLjets__88->SetBinContent(8,0.0007202847);
   h_looseLep2Pt_WpLjets__88->SetBinContent(9,0.0001418163);
   h_looseLep2Pt_WpLjets__88->SetBinContent(10,0.0002837216);
   h_looseLep2Pt_WpLjets__88->SetBinContent(11,0.0001795552);
   h_looseLep2Pt_WpLjets__88->SetBinContent(12,1.395914e-05);
   h_looseLep2Pt_WpLjets__88->SetBinContent(13,1.974067e-05);
   h_looseLep2Pt_WpLjets__88->SetBinContent(14,5.586989e-06);
   h_looseLep2Pt_WpLjets__88->SetBinContent(15,4.838904e-05);
   h_looseLep2Pt_WpLjets__88->SetBinContent(16,8.80718e-06);
   h_looseLep2Pt_WpLjets__88->SetBinContent(17,2.15012e-06);
   h_looseLep2Pt_WpLjets__88->SetBinContent(18,3.517553e-06);
   h_looseLep2Pt_WpLjets__88->SetBinContent(19,3.815246e-07);
   h_looseLep2Pt_WpLjets__88->SetBinContent(20,1.212912e-05);
   h_looseLep2Pt_WpLjets__88->SetBinError(1,0.001351271);
   h_looseLep2Pt_WpLjets__88->SetBinError(2,0.0006213388);
   h_looseLep2Pt_WpLjets__88->SetBinError(3,0.0004390932);
   h_looseLep2Pt_WpLjets__88->SetBinError(4,0.0003469893);
   h_looseLep2Pt_WpLjets__88->SetBinError(5,0.0003545163);
   h_looseLep2Pt_WpLjets__88->SetBinError(6,0.0002163202);
   h_looseLep2Pt_WpLjets__88->SetBinError(7,0.0002255816);
   h_looseLep2Pt_WpLjets__88->SetBinError(8,0.0001927611);
   h_looseLep2Pt_WpLjets__88->SetBinError(9,6.565621e-05);
   h_looseLep2Pt_WpLjets__88->SetBinError(10,0.0001456303);
   h_looseLep2Pt_WpLjets__88->SetBinError(11,9.307131e-05);
   h_looseLep2Pt_WpLjets__88->SetBinError(12,4.209394e-06);
   h_looseLep2Pt_WpLjets__88->SetBinError(13,1.131021e-05);
   h_looseLep2Pt_WpLjets__88->SetBinError(14,3.172661e-06);
   h_looseLep2Pt_WpLjets__88->SetBinError(15,4.146079e-05);
   h_looseLep2Pt_WpLjets__88->SetBinError(16,5.369418e-06);
   h_looseLep2Pt_WpLjets__88->SetBinError(17,8.346041e-07);
   h_looseLep2Pt_WpLjets__88->SetBinError(18,2.861137e-06);
   h_looseLep2Pt_WpLjets__88->SetBinError(19,2.949137e-07);
   h_looseLep2Pt_WpLjets__88->SetBinError(20,6.047119e-06);
   h_looseLep2Pt_WpLjets__88->SetEntries(3309);
   h_looseLep2Pt_WpLjets__88->SetStats(0);

   ci = TColor::GetColor("#66cc66");
   h_looseLep2Pt_WpLjets__88->SetFillColor(ci);
   h_looseLep2Pt_WpLjets__88->GetXaxis()->SetTitle("Sub-leading lep p_{T} [GeV]");
   h_looseLep2Pt_WpLjets__88->GetXaxis()->SetLabelFont(42);
   h_looseLep2Pt_WpLjets__88->GetXaxis()->SetLabelOffset(0.007);
   h_looseLep2Pt_WpLjets__88->GetXaxis()->SetTitleSize(0.05);
   h_looseLep2Pt_WpLjets__88->GetXaxis()->SetTickLength(0.025);
   h_looseLep2Pt_WpLjets__88->GetXaxis()->SetTitleFont(42);
   h_looseLep2Pt_WpLjets__88->GetYaxis()->SetTitle("a.u./25 GeV");
   h_looseLep2Pt_WpLjets__88->GetYaxis()->SetLabelFont(42);
   h_looseLep2Pt_WpLjets__88->GetYaxis()->SetLabelOffset(0.007);
   h_looseLep2Pt_WpLjets__88->GetYaxis()->SetTitleSize(0.05);
   h_looseLep2Pt_WpLjets__88->GetYaxis()->SetTickLength(0.025);
   h_looseLep2Pt_WpLjets__88->GetYaxis()->SetTitleFont(42);
   h_looseLep2Pt_WpLjets__88->GetZaxis()->SetLabelFont(42);
   h_looseLep2Pt_WpLjets__88->GetZaxis()->SetLabelOffset(0.007);
   h_looseLep2Pt_WpLjets__88->GetZaxis()->SetTitleSize(0.05);
   h_looseLep2Pt_WpLjets__88->GetZaxis()->SetTickLength(0.025);
   h_looseLep2Pt_WpLjets__88->GetZaxis()->SetTitleFont(42);
   h->Add(h_looseLep2Pt_W+jets,"");
   
   TH1D *h_looseLep2Pt_TopsPoPLFcP__89 = new TH1D("h_looseLep2Pt_TopsPoPLFcP__89","",20,0,500);
   h_looseLep2Pt_TopsPoPLFcP__89->SetBinContent(1,0.09566986);
   h_looseLep2Pt_TopsPoPLFcP__89->SetBinContent(2,0.1184424);
   h_looseLep2Pt_TopsPoPLFcP__89->SetBinContent(3,0.0578968);
   h_looseLep2Pt_TopsPoPLFcP__89->SetBinContent(4,0.02776582);
   h_looseLep2Pt_TopsPoPLFcP__89->SetBinContent(5,0.01352875);
   h_looseLep2Pt_TopsPoPLFcP__89->SetBinContent(6,0.006884179);
   h_looseLep2Pt_TopsPoPLFcP__89->SetBinContent(7,0.003658057);
   h_looseLep2Pt_TopsPoPLFcP__89->SetBinContent(8,0.001948227);
   h_looseLep2Pt_TopsPoPLFcP__89->SetBinContent(9,0.001021047);
   h_looseLep2Pt_TopsPoPLFcP__89->SetBinContent(10,0.000535609);
   h_looseLep2Pt_TopsPoPLFcP__89->SetBinContent(11,0.000252071);
   h_looseLep2Pt_TopsPoPLFcP__89->SetBinContent(12,0.0001040926);
   h_looseLep2Pt_TopsPoPLFcP__89->SetBinContent(13,0.0002597359);
   h_looseLep2Pt_TopsPoPLFcP__89->SetBinContent(14,4.685411e-05);
   h_looseLep2Pt_TopsPoPLFcP__89->SetBinContent(15,2.316069e-05);
   h_looseLep2Pt_TopsPoPLFcP__89->SetBinContent(16,7.098286e-06);
   h_looseLep2Pt_TopsPoPLFcP__89->SetBinContent(17,1.098163e-05);
   h_looseLep2Pt_TopsPoPLFcP__89->SetBinContent(18,5.405239e-06);
   h_looseLep2Pt_TopsPoPLFcP__89->SetBinContent(19,1.254191e-05);
   h_looseLep2Pt_TopsPoPLFcP__89->SetBinContent(20,6.416628e-06);
   h_looseLep2Pt_TopsPoPLFcP__89->SetBinError(1,0.001032897);
   h_looseLep2Pt_TopsPoPLFcP__89->SetBinError(2,0.001159746);
   h_looseLep2Pt_TopsPoPLFcP__89->SetBinError(3,0.0008366751);
   h_looseLep2Pt_TopsPoPLFcP__89->SetBinError(4,0.0005883119);
   h_looseLep2Pt_TopsPoPLFcP__89->SetBinError(5,0.0003798421);
   h_looseLep2Pt_TopsPoPLFcP__89->SetBinError(6,0.0002961909);
   h_looseLep2Pt_TopsPoPLFcP__89->SetBinError(7,0.0002252512);
   h_looseLep2Pt_TopsPoPLFcP__89->SetBinError(8,0.0001593319);
   h_looseLep2Pt_TopsPoPLFcP__89->SetBinError(9,9.938102e-05);
   h_looseLep2Pt_TopsPoPLFcP__89->SetBinError(10,9.688184e-05);
   h_looseLep2Pt_TopsPoPLFcP__89->SetBinError(11,3.857011e-05);
   h_looseLep2Pt_TopsPoPLFcP__89->SetBinError(12,2.361438e-05);
   h_looseLep2Pt_TopsPoPLFcP__89->SetBinError(13,0.0001125534);
   h_looseLep2Pt_TopsPoPLFcP__89->SetBinError(14,1.684722e-05);
   h_looseLep2Pt_TopsPoPLFcP__89->SetBinError(15,1.087063e-05);
   h_looseLep2Pt_TopsPoPLFcP__89->SetBinError(16,7.098286e-06);
   h_looseLep2Pt_TopsPoPLFcP__89->SetBinError(17,7.125221e-06);
   h_looseLep2Pt_TopsPoPLFcP__89->SetBinError(18,3.836305e-06);
   h_looseLep2Pt_TopsPoPLFcP__89->SetBinError(19,8.954834e-06);
   h_looseLep2Pt_TopsPoPLFcP__89->SetBinError(20,4.538739e-06);
   h_looseLep2Pt_TopsPoPLFcP__89->SetEntries(45754);
   h_looseLep2Pt_TopsPoPLFcP__89->SetStats(0);

   ci = TColor::GetColor("#cc33cc");
   h_looseLep2Pt_TopsPoPLFcP__89->SetFillColor(ci);
   h_looseLep2Pt_TopsPoPLFcP__89->GetXaxis()->SetTitle("Sub-leading lep p_{T} [GeV]");
   h_looseLep2Pt_TopsPoPLFcP__89->GetXaxis()->SetLabelFont(42);
   h_looseLep2Pt_TopsPoPLFcP__89->GetXaxis()->SetLabelOffset(0.007);
   h_looseLep2Pt_TopsPoPLFcP__89->GetXaxis()->SetTitleSize(0.05);
   h_looseLep2Pt_TopsPoPLFcP__89->GetXaxis()->SetTickLength(0.025);
   h_looseLep2Pt_TopsPoPLFcP__89->GetXaxis()->SetTitleFont(42);
   h_looseLep2Pt_TopsPoPLFcP__89->GetYaxis()->SetTitle("a.u./25 GeV");
   h_looseLep2Pt_TopsPoPLFcP__89->GetYaxis()->SetLabelFont(42);
   h_looseLep2Pt_TopsPoPLFcP__89->GetYaxis()->SetLabelOffset(0.007);
   h_looseLep2Pt_TopsPoPLFcP__89->GetYaxis()->SetTitleSize(0.05);
   h_looseLep2Pt_TopsPoPLFcP__89->GetYaxis()->SetTickLength(0.025);
   h_looseLep2Pt_TopsPoPLFcP__89->GetYaxis()->SetTitleFont(42);
   h_looseLep2Pt_TopsPoPLFcP__89->GetZaxis()->SetLabelFont(42);
   h_looseLep2Pt_TopsPoPLFcP__89->GetZaxis()->SetLabelOffset(0.007);
   h_looseLep2Pt_TopsPoPLFcP__89->GetZaxis()->SetTitleSize(0.05);
   h_looseLep2Pt_TopsPoPLFcP__89->GetZaxis()->SetTickLength(0.025);
   h_looseLep2Pt_TopsPoPLFcP__89->GetZaxis()->SetTitleFont(42);
   h->Add(h_looseLep2Pt_Top (LF),"");
   
   TH1D *h_looseLep2Pt_TopsPoPHFcP__90 = new TH1D("h_looseLep2Pt_TopsPoPHFcP__90","",20,0,500);
   h_looseLep2Pt_TopsPoPHFcP__90->SetBinContent(1,0.1041412);
   h_looseLep2Pt_TopsPoPHFcP__90->SetBinContent(2,0.1735886);
   h_looseLep2Pt_TopsPoPHFcP__90->SetBinContent(3,0.1116258);
   h_looseLep2Pt_TopsPoPHFcP__90->SetBinContent(4,0.06454315);
   h_looseLep2Pt_TopsPoPHFcP__90->SetBinContent(5,0.03441357);
   h_looseLep2Pt_TopsPoPHFcP__90->SetBinContent(6,0.01992067);
   h_looseLep2Pt_TopsPoPHFcP__90->SetBinContent(7,0.01014646);
   h_looseLep2Pt_TopsPoPHFcP__90->SetBinContent(8,0.005947886);
   h_looseLep2Pt_TopsPoPHFcP__90->SetBinContent(9,0.002876054);
   h_looseLep2Pt_TopsPoPHFcP__90->SetBinContent(10,0.001475723);
   h_looseLep2Pt_TopsPoPHFcP__90->SetBinContent(11,0.0007236292);
   h_looseLep2Pt_TopsPoPHFcP__90->SetBinContent(12,0.0004357554);
   h_looseLep2Pt_TopsPoPHFcP__90->SetBinContent(13,0.0002249375);
   h_looseLep2Pt_TopsPoPHFcP__90->SetBinContent(14,0.0001475853);
   h_looseLep2Pt_TopsPoPHFcP__90->SetBinContent(15,0.0001020681);
   h_looseLep2Pt_TopsPoPHFcP__90->SetBinContent(16,6.402955e-05);
   h_looseLep2Pt_TopsPoPHFcP__90->SetBinContent(17,1.980568e-05);
   h_looseLep2Pt_TopsPoPHFcP__90->SetBinContent(18,2.33998e-05);
   h_looseLep2Pt_TopsPoPHFcP__90->SetBinContent(20,2.517288e-05);
   h_looseLep2Pt_TopsPoPHFcP__90->SetBinError(1,0.001126128);
   h_looseLep2Pt_TopsPoPHFcP__90->SetBinError(2,0.001474884);
   h_looseLep2Pt_TopsPoPHFcP__90->SetBinError(3,0.001116875);
   h_looseLep2Pt_TopsPoPHFcP__90->SetBinError(4,0.0008934187);
   h_looseLep2Pt_TopsPoPHFcP__90->SetBinError(5,0.0006246887);
   h_looseLep2Pt_TopsPoPHFcP__90->SetBinError(6,0.0005076532);
   h_looseLep2Pt_TopsPoPHFcP__90->SetBinError(7,0.0003555866);
   h_looseLep2Pt_TopsPoPHFcP__90->SetBinError(8,0.000286312);
   h_looseLep2Pt_TopsPoPHFcP__90->SetBinError(9,0.0001737097);
   h_looseLep2Pt_TopsPoPHFcP__90->SetBinError(10,0.0001517557);
   h_looseLep2Pt_TopsPoPHFcP__90->SetBinError(11,6.387877e-05);
   h_looseLep2Pt_TopsPoPHFcP__90->SetBinError(12,5.265571e-05);
   h_looseLep2Pt_TopsPoPHFcP__90->SetBinError(13,3.442087e-05);
   h_looseLep2Pt_TopsPoPHFcP__90->SetBinError(14,2.732865e-05);
   h_looseLep2Pt_TopsPoPHFcP__90->SetBinError(15,2.352865e-05);
   h_looseLep2Pt_TopsPoPHFcP__90->SetBinError(16,1.915664e-05);
   h_looseLep2Pt_TopsPoPHFcP__90->SetBinError(17,1.063003e-05);
   h_looseLep2Pt_TopsPoPHFcP__90->SetBinError(18,1.102394e-05);
   h_looseLep2Pt_TopsPoPHFcP__90->SetBinError(20,1.216417e-05);
   h_looseLep2Pt_TopsPoPHFcP__90->SetEntries(77950);
   h_looseLep2Pt_TopsPoPHFcP__90->SetStats(0);

   ci = TColor::GetColor("#ff9900");
   h_looseLep2Pt_TopsPoPHFcP__90->SetFillColor(ci);
   h_looseLep2Pt_TopsPoPHFcP__90->GetXaxis()->SetTitle("Sub-leading lep p_{T} [GeV]");
   h_looseLep2Pt_TopsPoPHFcP__90->GetXaxis()->SetLabelFont(42);
   h_looseLep2Pt_TopsPoPHFcP__90->GetXaxis()->SetLabelOffset(0.007);
   h_looseLep2Pt_TopsPoPHFcP__90->GetXaxis()->SetTitleSize(0.05);
   h_looseLep2Pt_TopsPoPHFcP__90->GetXaxis()->SetTickLength(0.025);
   h_looseLep2Pt_TopsPoPHFcP__90->GetXaxis()->SetTitleFont(42);
   h_looseLep2Pt_TopsPoPHFcP__90->GetYaxis()->SetTitle("a.u./25 GeV");
   h_looseLep2Pt_TopsPoPHFcP__90->GetYaxis()->SetLabelFont(42);
   h_looseLep2Pt_TopsPoPHFcP__90->GetYaxis()->SetLabelOffset(0.007);
   h_looseLep2Pt_TopsPoPHFcP__90->GetYaxis()->SetTitleSize(0.05);
   h_looseLep2Pt_TopsPoPHFcP__90->GetYaxis()->SetTickLength(0.025);
   h_looseLep2Pt_TopsPoPHFcP__90->GetYaxis()->SetTitleFont(42);
   h_looseLep2Pt_TopsPoPHFcP__90->GetZaxis()->SetLabelFont(42);
   h_looseLep2Pt_TopsPoPHFcP__90->GetZaxis()->SetLabelOffset(0.007);
   h_looseLep2Pt_TopsPoPHFcP__90->GetZaxis()->SetTitleSize(0.05);
   h_looseLep2Pt_TopsPoPHFcP__90->GetZaxis()->SetTickLength(0.025);
   h_looseLep2Pt_TopsPoPHFcP__90->GetZaxis()->SetTitleFont(42);
   h->Add(h_looseLep2Pt_Top (HF),"");
   h->Draw("hist");
   
   TH1D *hsum__91 = new TH1D("hsum__91","",20,0,500);
   hsum__91->SetBinContent(1,0.271725);
   hsum__91->SetBinContent(2,0.3294396);
   hsum__91->SetBinContent(3,0.1824981);
   hsum__91->SetBinContent(4,0.09937792);
   hsum__91->SetBinContent(5,0.05197885);
   hsum__91->SetBinContent(6,0.02916189);
   hsum__91->SetBinContent(7,0.01573805);
   hsum__91->SetBinContent(8,0.009324878);
   hsum__91->SetBinContent(9,0.004271597);
   hsum__91->SetBinContent(10,0.002763206);
   hsum__91->SetBinContent(11,0.001415357);
   hsum__91->SetBinContent(12,0.0005665895);
   hsum__91->SetBinContent(13,0.0005139942);
   hsum__91->SetBinContent(14,0.000423513);
   hsum__91->SetBinContent(15,0.0004266677);
   hsum__91->SetBinContent(16,8.11589e-05);
   hsum__91->SetBinContent(17,3.366807e-05);
   hsum__91->SetBinContent(18,3.232259e-05);
   hsum__91->SetBinContent(19,0.0001824813);
   hsum__91->SetBinContent(20,4.517354e-05);
   hsum__91->SetBinError(1,0.003076049);
   hsum__91->SetBinError(2,0.003284904);
   hsum__91->SetBinError(3,0.002275067);
   hsum__91->SetBinError(4,0.001468607);
   hsum__91->SetBinError(5,0.001000255);
   hsum__91->SetBinError(6,0.0008373727);
   hsum__91->SetBinError(7,0.0005867939);
   hsum__91->SetBinError(8,0.0005494993);
   hsum__91->SetBinError(9,0.0002518041);
   hsum__91->SetBinError(10,0.0003753241);
   hsum__91->SetBinError(11,0.0002787325);
   hsum__91->SetBinError(12,5.819584e-05);
   hsum__91->SetBinError(13,0.0001183642);
   hsum__91->SetBinError(14,0.0002242324);
   hsum__91->SetBinError(15,0.0002463072);
   hsum__91->SetBinError(16,2.113829e-05);
   hsum__91->SetBinError(17,1.283488e-05);
   hsum__91->SetBinError(18,1.201793e-05);
   hsum__91->SetBinError(19,0.0001697944);
   hsum__91->SetBinError(20,1.436954e-05);
   hsum__91->SetEntries(65);
   hsum__91->SetStats(0);

   ci = 1187;
   color = new TColor(ci, 0, 0, 0, " ", 0.99);
   hsum__91->SetFillColor(ci);
   hsum__91->SetFillStyle(3003);
   hsum__91->SetLineWidth(0);
   hsum__91->GetXaxis()->SetTitle("Sub-leading lep p_{T} [GeV]");
   hsum__91->GetXaxis()->SetLabelFont(42);
   hsum__91->GetXaxis()->SetLabelOffset(0.007);
   hsum__91->GetXaxis()->SetTitleSize(0.05);
   hsum__91->GetXaxis()->SetTickLength(0.025);
   hsum__91->GetXaxis()->SetTitleFont(42);
   hsum__91->GetYaxis()->SetTitle("a.u./25 GeV");
   hsum__91->GetYaxis()->SetLabelFont(42);
   hsum__91->GetYaxis()->SetLabelOffset(0.007);
   hsum__91->GetYaxis()->SetTitleSize(0.05);
   hsum__91->GetYaxis()->SetTickLength(0.025);
   hsum__91->GetYaxis()->SetTitleFont(42);
   hsum__91->GetZaxis()->SetLabelFont(42);
   hsum__91->GetZaxis()->SetLabelOffset(0.007);
   hsum__91->GetZaxis()->SetTitleSize(0.05);
   hsum__91->GetZaxis()->SetTickLength(0.025);
   hsum__91->GetZaxis()->SetTitleFont(42);
   hsum__91->Draw("e2 same");
   
   TH1D *h_looseLep2Pt_Data__92 = new TH1D("h_looseLep2Pt_Data__92","",20,0,500);
   h_looseLep2Pt_Data__92->SetBinContent(1,0.2915764);
   h_looseLep2Pt_Data__92->SetBinContent(2,0.3247432);
   h_looseLep2Pt_Data__92->SetBinContent(3,0.1760106);
   h_looseLep2Pt_Data__92->SetBinContent(4,0.0916329);
   h_looseLep2Pt_Data__92->SetBinContent(5,0.04946763);
   h_looseLep2Pt_Data__92->SetBinContent(6,0.02920946);
   h_looseLep2Pt_Data__92->SetBinContent(7,0.01620654);
   h_looseLep2Pt_Data__92->SetBinContent(8,0.008904174);
   h_looseLep2Pt_Data__92->SetBinContent(9,0.004805427);
   h_looseLep2Pt_Data__92->SetBinContent(10,0.002732498);
   h_looseLep2Pt_Data__92->SetBinContent(11,0.001837369);
   h_looseLep2Pt_Data__92->SetBinContent(12,0.001177801);
   h_looseLep2Pt_Data__92->SetBinContent(13,0.0008951286);
   h_looseLep2Pt_Data__92->SetBinContent(14,0.0002826722);
   h_looseLep2Pt_Data__92->SetBinContent(15,0.0001413361);
   h_looseLep2Pt_Data__92->SetBinContent(16,0.0001884481);
   h_looseLep2Pt_Data__92->SetBinContent(17,0.0001413361);
   h_looseLep2Pt_Data__92->SetBinContent(20,4.711203e-05);
   h_looseLep2Pt_Data__92->SetBinError(1,0.003706313);
   h_looseLep2Pt_Data__92->SetBinError(2,0.003911434);
   h_looseLep2Pt_Data__92->SetBinError(3,0.002879621);
   h_looseLep2Pt_Data__92->SetBinError(4,0.002077742);
   h_looseLep2Pt_Data__92->SetBinError(5,0.001526604);
   h_looseLep2Pt_Data__92->SetBinError(6,0.00117308);
   h_looseLep2Pt_Data__92->SetBinError(7,0.000873798);
   h_looseLep2Pt_Data__92->SetBinError(8,0.0006476834);
   h_looseLep2Pt_Data__92->SetBinError(9,0.0004758082);
   h_looseLep2Pt_Data__92->SetBinError(10,0.0003587945);
   h_looseLep2Pt_Data__92->SetBinError(11,0.0002942145);
   h_looseLep2Pt_Data__92->SetBinError(12,0.0002355602);
   h_looseLep2Pt_Data__92->SetBinError(13,0.0002053566);
   h_looseLep2Pt_Data__92->SetBinError(14,0.0001154004);
   h_looseLep2Pt_Data__92->SetBinError(15,8.160043e-05);
   h_looseLep2Pt_Data__92->SetBinError(16,9.422406e-05);
   h_looseLep2Pt_Data__92->SetBinError(17,8.160043e-05);
   h_looseLep2Pt_Data__92->SetBinError(20,4.711203e-05);
   h_looseLep2Pt_Data__92->SetEntries(21226);
   h_looseLep2Pt_Data__92->SetStats(0);
   h_looseLep2Pt_Data__92->SetLineWidth(3);
   h_looseLep2Pt_Data__92->SetMarkerStyle(20);
   h_looseLep2Pt_Data__92->SetMarkerSize(2);
   h_looseLep2Pt_Data__92->GetXaxis()->SetTitle("Sub-leading lep p_{T} [GeV]");
   h_looseLep2Pt_Data__92->GetXaxis()->SetLabelFont(42);
   h_looseLep2Pt_Data__92->GetXaxis()->SetLabelOffset(0.007);
   h_looseLep2Pt_Data__92->GetXaxis()->SetTitleSize(0.05);
   h_looseLep2Pt_Data__92->GetXaxis()->SetTickLength(0.025);
   h_looseLep2Pt_Data__92->GetXaxis()->SetTitleFont(42);
   h_looseLep2Pt_Data__92->GetYaxis()->SetTitle("a.u./25 GeV");
   h_looseLep2Pt_Data__92->GetYaxis()->SetLabelFont(42);
   h_looseLep2Pt_Data__92->GetYaxis()->SetLabelOffset(0.007);
   h_looseLep2Pt_Data__92->GetYaxis()->SetTitleSize(0.05);
   h_looseLep2Pt_Data__92->GetYaxis()->SetTickLength(0.025);
   h_looseLep2Pt_Data__92->GetYaxis()->SetTitleFont(42);
   h_looseLep2Pt_Data__92->GetZaxis()->SetLabelFont(42);
   h_looseLep2Pt_Data__92->GetZaxis()->SetLabelOffset(0.007);
   h_looseLep2Pt_Data__92->GetZaxis()->SetTitleSize(0.05);
   h_looseLep2Pt_Data__92->GetZaxis()->SetTickLength(0.025);
   h_looseLep2Pt_Data__92->GetZaxis()->SetTitleFont(42);
   h_looseLep2Pt_Data__92->Draw("elp same");
   
   TLegend *leg = new TLegend(0.6,0.55,0.88,0.9,NULL,"brNDC");
   leg->SetBorderSize(0);
   leg->SetLineColor(1);
   leg->SetLineStyle(1);
   leg->SetLineWidth(1);
   leg->SetFillColor(0);
   leg->SetFillStyle(0);
   TLegendEntry *entry=leg->AddEntry("h_looseLep2Pt_Data","Data","ELP");
   entry->SetLineColor(1);
   entry->SetLineStyle(1);
   entry->SetLineWidth(3);
   entry->SetMarkerColor(1);
   entry->SetMarkerStyle(20);
   entry->SetMarkerSize(2);
   entry->SetTextFont(42);
   entry=leg->AddEntry("h_looseLep2Pt_Top (HF)","Top (HF)","F");

   ci = TColor::GetColor("#ff9900");
   entry->SetFillColor(ci);
   entry->SetFillStyle(1001);
   entry->SetLineColor(1);
   entry->SetLineStyle(1);
   entry->SetLineWidth(1);
   entry->SetMarkerColor(1);
   entry->SetMarkerStyle(21);
   entry->SetMarkerSize(1);
   entry->SetTextFont(42);
   entry=leg->AddEntry("h_looseLep2Pt_Top (LF)","Top (LF)","F");

   ci = TColor::GetColor("#cc33cc");
   entry->SetFillColor(ci);
   entry->SetFillStyle(1001);
   entry->SetLineColor(1);
   entry->SetLineStyle(1);
   entry->SetLineWidth(1);
   entry->SetMarkerColor(1);
   entry->SetMarkerStyle(21);
   entry->SetMarkerSize(1);
   entry->SetTextFont(42);
   entry=leg->AddEntry("h_looseLep2Pt_W+jets","W+jets","F");

   ci = TColor::GetColor("#66cc66");
   entry->SetFillColor(ci);
   entry->SetFillStyle(1001);
   entry->SetLineColor(1);
   entry->SetLineStyle(1);
   entry->SetLineWidth(1);
   entry->SetMarkerColor(1);
   entry->SetMarkerStyle(21);
   entry->SetMarkerSize(1);
   entry->SetTextFont(42);
   entry=leg->AddEntry("h_looseLep2Pt_Z+jets","Z+jets","F");

   ci = TColor::GetColor("#3399cc");
   entry->SetFillColor(ci);
   entry->SetFillStyle(1001);
   entry->SetLineColor(1);
   entry->SetLineStyle(1);
   entry->SetLineWidth(1);
   entry->SetMarkerColor(1);
   entry->SetMarkerStyle(21);
   entry->SetMarkerSize(1);
   entry->SetTextFont(42);
   entry=leg->AddEntry("h_looseLep2Pt_Diboson","Diboson","F");

   ci = TColor::GetColor("#9966cc");
   entry->SetFillColor(ci);
   entry->SetFillStyle(1001);
   entry->SetLineColor(1);
   entry->SetLineStyle(1);
   entry->SetLineWidth(1);
   entry->SetMarkerColor(1);
   entry->SetMarkerStyle(21);
   entry->SetMarkerSize(1);
   entry->SetTextFont(42);
   entry=leg->AddEntry("h_looseLep2Pt_QCD","QCD","F");

   ci = TColor::GetColor("#cccccc");
   entry->SetFillColor(ci);
   entry->SetFillStyle(1001);
   entry->SetLineColor(1);
   entry->SetLineStyle(1);
   entry->SetLineWidth(1);
   entry->SetMarkerColor(1);
   entry->SetMarkerStyle(21);
   entry->SetMarkerSize(1);
   entry->SetTextFont(42);
   leg->Draw();
   
   leg = new TLegend(0.6,0.55,0.88,0.9,NULL,"brNDC");
   leg->SetBorderSize(0);
   leg->SetLineColor(1);
   leg->SetLineStyle(1);
   leg->SetLineWidth(1);
   leg->SetFillColor(0);
   leg->SetFillStyle(0);
   entry=leg->AddEntry("h_looseLep2Pt_Data","Data","ELP");
   entry->SetLineColor(1);
   entry->SetLineStyle(1);
   entry->SetLineWidth(3);
   entry->SetMarkerColor(1);
   entry->SetMarkerStyle(20);
   entry->SetMarkerSize(2);
   entry->SetTextFont(42);
   entry=leg->AddEntry("h_looseLep2Pt_Top (HF)","Top (HF)","F");

   ci = TColor::GetColor("#ff9900");
   entry->SetFillColor(ci);
   entry->SetFillStyle(1001);
   entry->SetLineColor(1);
   entry->SetLineStyle(1);
   entry->SetLineWidth(1);
   entry->SetMarkerColor(1);
   entry->SetMarkerStyle(21);
   entry->SetMarkerSize(1);
   entry->SetTextFont(42);
   entry=leg->AddEntry("h_looseLep2Pt_Top (LF)","Top (LF)","F");

   ci = TColor::GetColor("#cc33cc");
   entry->SetFillColor(ci);
   entry->SetFillStyle(1001);
   entry->SetLineColor(1);
   entry->SetLineStyle(1);
   entry->SetLineWidth(1);
   entry->SetMarkerColor(1);
   entry->SetMarkerStyle(21);
   entry->SetMarkerSize(1);
   entry->SetTextFont(42);
   entry=leg->AddEntry("h_looseLep2Pt_W+jets","W+jets","F");

   ci = TColor::GetColor("#66cc66");
   entry->SetFillColor(ci);
   entry->SetFillStyle(1001);
   entry->SetLineColor(1);
   entry->SetLineStyle(1);
   entry->SetLineWidth(1);
   entry->SetMarkerColor(1);
   entry->SetMarkerStyle(21);
   entry->SetMarkerSize(1);
   entry->SetTextFont(42);
   entry=leg->AddEntry("h_looseLep2Pt_Z+jets","Z+jets","F");

   ci = TColor::GetColor("#3399cc");
   entry->SetFillColor(ci);
   entry->SetFillStyle(1001);
   entry->SetLineColor(1);
   entry->SetLineStyle(1);
   entry->SetLineWidth(1);
   entry->SetMarkerColor(1);
   entry->SetMarkerStyle(21);
   entry->SetMarkerSize(1);
   entry->SetTextFont(42);
   entry=leg->AddEntry("h_looseLep2Pt_Diboson","Diboson","F");

   ci = TColor::GetColor("#9966cc");
   entry->SetFillColor(ci);
   entry->SetFillStyle(1001);
   entry->SetLineColor(1);
   entry->SetLineStyle(1);
   entry->SetLineWidth(1);
   entry->SetMarkerColor(1);
   entry->SetMarkerStyle(21);
   entry->SetMarkerSize(1);
   entry->SetTextFont(42);
   entry=leg->AddEntry("h_looseLep2Pt_QCD","QCD","F");

   ci = TColor::GetColor("#cccccc");
   entry->SetFillColor(ci);
   entry->SetFillStyle(1001);
   entry->SetLineColor(1);
   entry->SetLineStyle(1);
   entry->SetLineWidth(1);
   entry->SetMarkerColor(1);
   entry->SetMarkerStyle(21);
   entry->SetMarkerSize(1);
   entry->SetTextFont(42);
   leg->Draw();
   TLatex *   tex = new TLatex(0.18,0.85,"CMS");
tex->SetNDC();
   tex->SetTextSize(0.06);
   tex->SetLineWidth(2);
   tex->Draw();
      tex = new TLatex(0.28,0.85,"Preliminary");
tex->SetNDC();
   tex->SetTextFont(52);
   tex->SetTextSize(0.06);
   tex->SetLineWidth(2);
   tex->Draw();
      tex = new TLatex(0.9,0.94,"36.6 fb^{-1} (13 TeV)");
tex->SetNDC();
   tex->SetTextAlign(31);
   tex->SetTextFont(42);
   tex->SetTextSize(0.04);
   tex->SetLineWidth(2);
   tex->Draw();
   pad1->Modified();
   c1->cd();
  
// ------------>Primitives in pad: pad2
   TPad *pad2 = new TPad("pad2", "pad2",0,0.05,1,0.3);
   pad2->Draw();
   pad2->cd();
   pad2->Range(-93.75,-0.8914286,531.25,0.48);
   pad2->SetFillColor(0);
   pad2->SetBorderMode(0);
   pad2->SetBorderSize(2);
   pad2->SetGridy();
   pad2->SetTickx(1);
   pad2->SetTicky(1);
   pad2->SetLeftMargin(0.15);
   pad2->SetRightMargin(0.05);
   pad2->SetTopMargin(0);
   pad2->SetBottomMargin(0.3);
   pad2->SetFrameFillStyle(0);
   pad2->SetFrameBorderMode(0);
   pad2->SetFrameFillStyle(0);
   pad2->SetFrameBorderMode(0);
   
   TH1D *ratio__93 = new TH1D("ratio__93","",20,0,500);
   ratio__93->SetBinContent(1,0.07305694);
   ratio__93->SetBinContent(2,-0.01425564);
   ratio__93->SetBinContent(3,-0.03554857);
   ratio__93->SetBinContent(4,-0.07793492);
   ratio__93->SetBinContent(5,-0.04831219);
   ratio__93->SetBinContent(6,0.00163126);
   ratio__93->SetBinContent(7,0.02976763);
   ratio__93->SetBinContent(8,-0.04511625);
   ratio__93->SetBinContent(9,0.1249721);
   ratio__93->SetBinContent(10,-0.01111317);
   ratio__93->SetBinContent(11,0.2981665);
   ratio__93->SetBinContent(12,1.078755);
   ratio__93->SetBinContent(13,0.741515);
   ratio__93->SetBinContent(14,-0.3325537);
   ratio__93->SetBinContent(15,-0.6687443);
   ratio__93->SetBinContent(16,1.321965);
   ratio__93->SetBinContent(17,3.197927);
   ratio__93->SetBinContent(18,-999);
   ratio__93->SetBinContent(19,-999);
   ratio__93->SetBinContent(20,0.04291213);
   ratio__93->SetBinError(1,0.0001);
   ratio__93->SetBinError(2,0.0001);
   ratio__93->SetBinError(3,0.0001);
   ratio__93->SetBinError(4,0.0001);
   ratio__93->SetBinError(5,0.0001);
   ratio__93->SetBinError(6,0.0001);
   ratio__93->SetBinError(7,0.0001);
   ratio__93->SetBinError(8,0.0001);
   ratio__93->SetBinError(9,0.0001);
   ratio__93->SetBinError(10,0.0001);
   ratio__93->SetBinError(11,0.0001);
   ratio__93->SetBinError(12,0.0001);
   ratio__93->SetBinError(13,0.0001);
   ratio__93->SetBinError(14,0.0001);
   ratio__93->SetBinError(15,0.0001);
   ratio__93->SetBinError(16,0.0001);
   ratio__93->SetBinError(17,0.0001);
   ratio__93->SetBinError(18,0.0001);
   ratio__93->SetBinError(19,0.0001);
   ratio__93->SetBinError(20,0.0001);
   ratio__93->SetMinimum(-0.48);
   ratio__93->SetMaximum(0.48);
   ratio__93->SetEntries(21246);
   ratio__93->SetStats(0);
   ratio__93->SetLineWidth(3);
   ratio__93->SetMarkerStyle(20);
   ratio__93->SetMarkerSize(2);
   ratio__93->GetXaxis()->SetTitle("Sub-leading lep p_{T} [GeV]");
   ratio__93->GetXaxis()->SetLabelFont(43);
   ratio__93->GetXaxis()->SetLabelOffset(0.007);
   ratio__93->GetXaxis()->SetLabelSize(30);
   ratio__93->GetXaxis()->SetTitleSize(40);
   ratio__93->GetXaxis()->SetTickLength(0.025);
   ratio__93->GetXaxis()->SetTitleOffset(5);
   ratio__93->GetXaxis()->SetTitleFont(43);
   ratio__93->GetYaxis()->SetTitle("#frac{Data-Exp}{Exp}");
   ratio__93->GetYaxis()->SetNdivisions(5);
   ratio__93->GetYaxis()->SetLabelFont(43);
   ratio__93->GetYaxis()->SetLabelOffset(0.007);
   ratio__93->GetYaxis()->SetLabelSize(30);
   ratio__93->GetYaxis()->SetTitleSize(40);
   ratio__93->GetYaxis()->SetTickLength(0.025);
   ratio__93->GetYaxis()->SetTitleOffset(2.5);
   ratio__93->GetYaxis()->SetTitleFont(43);
   ratio__93->GetZaxis()->SetLabelFont(42);
   ratio__93->GetZaxis()->SetLabelOffset(0.007);
   ratio__93->GetZaxis()->SetTitleSize(0.05);
   ratio__93->GetZaxis()->SetTickLength(0.025);
   ratio__93->GetZaxis()->SetTitleFont(42);
   ratio__93->Draw("elp");
   
   TH1D *zero__94 = new TH1D("zero__94","",20,0,500);
   zero__94->SetBinError(1,0.003706313);
   zero__94->SetBinError(2,0.003911434);
   zero__94->SetBinError(3,0.002879621);
   zero__94->SetBinError(4,0.002077742);
   zero__94->SetBinError(5,0.001526604);
   zero__94->SetBinError(6,0.00117308);
   zero__94->SetBinError(7,0.000873798);
   zero__94->SetBinError(8,0.0006476834);
   zero__94->SetBinError(9,0.0004758082);
   zero__94->SetBinError(10,0.0003587945);
   zero__94->SetBinError(11,0.0002942145);
   zero__94->SetBinError(12,0.0002355602);
   zero__94->SetBinError(13,0.0002053566);
   zero__94->SetBinError(14,0.0001154004);
   zero__94->SetBinError(15,8.160043e-05);
   zero__94->SetBinError(16,9.422406e-05);
   zero__94->SetBinError(17,8.160043e-05);
   zero__94->SetBinError(20,4.711203e-05);
   zero__94->SetEntries(21246);
   zero__94->SetStats(0);
   zero__94->SetLineWidth(3);
   zero__94->SetMarkerStyle(20);
   zero__94->SetMarkerSize(2);
   zero__94->GetXaxis()->SetTitle("Sub-leading lep p_{T} [GeV]");
   zero__94->GetXaxis()->SetLabelFont(42);
   zero__94->GetXaxis()->SetLabelOffset(0.007);
   zero__94->GetXaxis()->SetTitleSize(0.05);
   zero__94->GetXaxis()->SetTickLength(0.025);
   zero__94->GetXaxis()->SetTitleFont(42);
   zero__94->GetYaxis()->SetTitle("a.u./25 GeV");
   zero__94->GetYaxis()->SetLabelFont(42);
   zero__94->GetYaxis()->SetLabelOffset(0.007);
   zero__94->GetYaxis()->SetTitleSize(0.05);
   zero__94->GetYaxis()->SetTickLength(0.025);
   zero__94->GetYaxis()->SetTitleFont(42);
   zero__94->GetZaxis()->SetLabelFont(42);
   zero__94->GetZaxis()->SetLabelOffset(0.007);
   zero__94->GetZaxis()->SetTitleSize(0.05);
   zero__94->GetZaxis()->SetTickLength(0.025);
   zero__94->GetZaxis()->SetTitleFont(42);
   zero__94->Draw("hist same");
   
   TH1D *sumratioup__95 = new TH1D("sumratioup__95","",20,0,500);
   sumratioup__95->SetBinContent(1,0.01132045);
   sumratioup__95->SetBinContent(2,0.009971187);
   sumratioup__95->SetBinContent(3,0.01246625);
   sumratioup__95->SetBinContent(4,0.014778);
   sumratioup__95->SetBinContent(5,0.01924351);
   sumratioup__95->SetBinContent(6,0.02871463);
   sumratioup__95->SetBinContent(7,0.03728504);
   sumratioup__95->SetBinContent(8,0.05892831);
   sumratioup__95->SetBinContent(9,0.05894846);
   sumratioup__95->SetBinContent(10,0.1358292);
   sumratioup__95->SetBinContent(11,0.1969344);
   sumratioup__95->SetBinContent(12,0.1027125);
   sumratioup__95->SetBinContent(13,0.2302831);
   sumratioup__95->SetBinContent(14,0.5294582);
   sumratioup__95->SetBinContent(15,0.577281);
   sumratioup__95->SetBinContent(16,0.2604556);
   sumratioup__95->SetBinContent(17,0.3812182);
   sumratioup__95->SetBinContent(18,0.3718119);
   sumratioup__95->SetBinContent(19,0.9304757);
   sumratioup__95->SetBinContent(20,0.3180965);
   sumratioup__95->SetBinError(1,0.003076049);
   sumratioup__95->SetBinError(2,0.003284904);
   sumratioup__95->SetBinError(3,0.002275067);
   sumratioup__95->SetBinError(4,0.001468607);
   sumratioup__95->SetBinError(5,0.001000255);
   sumratioup__95->SetBinError(6,0.0008373727);
   sumratioup__95->SetBinError(7,0.0005867939);
   sumratioup__95->SetBinError(8,0.0005494993);
   sumratioup__95->SetBinError(9,0.0002518041);
   sumratioup__95->SetBinError(10,0.0003753241);
   sumratioup__95->SetBinError(11,0.0002787325);
   sumratioup__95->SetBinError(12,5.819584e-05);
   sumratioup__95->SetBinError(13,0.0001183642);
   sumratioup__95->SetBinError(14,0.0002242324);
   sumratioup__95->SetBinError(15,0.0002463072);
   sumratioup__95->SetBinError(16,2.113829e-05);
   sumratioup__95->SetBinError(17,1.283488e-05);
   sumratioup__95->SetBinError(18,1.201793e-05);
   sumratioup__95->SetBinError(19,0.0001697944);
   sumratioup__95->SetBinError(20,1.436954e-05);
   sumratioup__95->SetEntries(85);
   sumratioup__95->SetStats(0);

   ci = 1187;
   color = new TColor(ci, 0, 0, 0, " ", 0.99);
   sumratioup__95->SetFillColor(ci);
   sumratioup__95->SetFillStyle(3003);
   sumratioup__95->GetXaxis()->SetTitle("Sub-leading lep p_{T} [GeV]");
   sumratioup__95->GetXaxis()->SetLabelFont(42);
   sumratioup__95->GetXaxis()->SetLabelOffset(0.007);
   sumratioup__95->GetXaxis()->SetTitleSize(0.05);
   sumratioup__95->GetXaxis()->SetTickLength(0.025);
   sumratioup__95->GetXaxis()->SetTitleFont(42);
   sumratioup__95->GetYaxis()->SetTitle("a.u./25 GeV");
   sumratioup__95->GetYaxis()->SetLabelFont(42);
   sumratioup__95->GetYaxis()->SetLabelOffset(0.007);
   sumratioup__95->GetYaxis()->SetTitleSize(0.05);
   sumratioup__95->GetYaxis()->SetTickLength(0.025);
   sumratioup__95->GetYaxis()->SetTitleFont(42);
   sumratioup__95->GetZaxis()->SetLabelFont(42);
   sumratioup__95->GetZaxis()->SetLabelOffset(0.007);
   sumratioup__95->GetZaxis()->SetTitleSize(0.05);
   sumratioup__95->GetZaxis()->SetTickLength(0.025);
   sumratioup__95->GetZaxis()->SetTitleFont(42);
   sumratioup__95->Draw("hist same");
   
   TH1D *sumratiodown__96 = new TH1D("sumratiodown__96","",20,0,500);
   sumratiodown__96->SetBinContent(1,-0.01132045);
   sumratiodown__96->SetBinContent(2,-0.009971187);
   sumratiodown__96->SetBinContent(3,-0.01246625);
   sumratiodown__96->SetBinContent(4,-0.014778);
   sumratiodown__96->SetBinContent(5,-0.01924351);
   sumratiodown__96->SetBinContent(6,-0.02871463);
   sumratiodown__96->SetBinContent(7,-0.03728504);
   sumratiodown__96->SetBinContent(8,-0.05892831);
   sumratiodown__96->SetBinContent(9,-0.05894846);
   sumratiodown__96->SetBinContent(10,-0.1358292);
   sumratiodown__96->SetBinContent(11,-0.1969344);
   sumratiodown__96->SetBinContent(12,-0.1027125);
   sumratiodown__96->SetBinContent(13,-0.2302831);
   sumratiodown__96->SetBinContent(14,-0.5294582);
   sumratiodown__96->SetBinContent(15,-0.577281);
   sumratiodown__96->SetBinContent(16,-0.2604556);
   sumratiodown__96->SetBinContent(17,-0.3812182);
   sumratiodown__96->SetBinContent(18,-0.3718119);
   sumratiodown__96->SetBinContent(19,-0.9304757);
   sumratiodown__96->SetBinContent(20,-0.3180965);
   sumratiodown__96->SetBinError(1,0.003076049);
   sumratiodown__96->SetBinError(2,0.003284904);
   sumratiodown__96->SetBinError(3,0.002275067);
   sumratiodown__96->SetBinError(4,0.001468607);
   sumratiodown__96->SetBinError(5,0.001000255);
   sumratiodown__96->SetBinError(6,0.0008373727);
   sumratiodown__96->SetBinError(7,0.0005867939);
   sumratiodown__96->SetBinError(8,0.0005494993);
   sumratiodown__96->SetBinError(9,0.0002518041);
   sumratiodown__96->SetBinError(10,0.0003753241);
   sumratiodown__96->SetBinError(11,0.0002787325);
   sumratiodown__96->SetBinError(12,5.819584e-05);
   sumratiodown__96->SetBinError(13,0.0001183642);
   sumratiodown__96->SetBinError(14,0.0002242324);
   sumratiodown__96->SetBinError(15,0.0002463072);
   sumratiodown__96->SetBinError(16,2.113829e-05);
   sumratiodown__96->SetBinError(17,1.283488e-05);
   sumratiodown__96->SetBinError(18,1.201793e-05);
   sumratiodown__96->SetBinError(19,0.0001697944);
   sumratiodown__96->SetBinError(20,1.436954e-05);
   sumratiodown__96->SetEntries(85);
   sumratiodown__96->SetStats(0);

   ci = 1187;
   color = new TColor(ci, 0, 0, 0, " ", 0.99);
   sumratiodown__96->SetFillColor(ci);
   sumratiodown__96->SetFillStyle(3003);
   sumratiodown__96->GetXaxis()->SetTitle("Sub-leading lep p_{T} [GeV]");
   sumratiodown__96->GetXaxis()->SetLabelFont(42);
   sumratiodown__96->GetXaxis()->SetLabelOffset(0.007);
   sumratiodown__96->GetXaxis()->SetTitleSize(0.05);
   sumratiodown__96->GetXaxis()->SetTickLength(0.025);
   sumratiodown__96->GetXaxis()->SetTitleFont(42);
   sumratiodown__96->GetYaxis()->SetTitle("a.u./25 GeV");
   sumratiodown__96->GetYaxis()->SetLabelFont(42);
   sumratiodown__96->GetYaxis()->SetLabelOffset(0.007);
   sumratiodown__96->GetYaxis()->SetTitleSize(0.05);
   sumratiodown__96->GetYaxis()->SetTickLength(0.025);
   sumratiodown__96->GetYaxis()->SetTitleFont(42);
   sumratiodown__96->GetZaxis()->SetLabelFont(42);
   sumratiodown__96->GetZaxis()->SetLabelOffset(0.007);
   sumratiodown__96->GetZaxis()->SetTitleSize(0.05);
   sumratiodown__96->GetZaxis()->SetTickLength(0.025);
   sumratiodown__96->GetZaxis()->SetTitleFont(42);
   sumratiodown__96->Draw("hist same");
   
   Double_t Graph0_fx1008[20] = {
   12.5,
   37.5,
   62.5,
   87.5,
   112.5,
   137.5,
   162.5,
   187.5,
   212.5,
   237.5,
   262.5,
   287.5,
   312.5,
   337.5,
   362.5,
   387.5,
   412.5,
   437.5,
   462.5,
   487.5};
   Double_t Graph0_fy1008[20] = {
   0.07305694,
   -0.01425564,
   -0.03554857,
   -0.07793492,
   -0.04831219,
   0.00163126,
   0.02976763,
   -0.04511625,
   0.1249721,
   -0.01111317,
   0.2981665,
   1.078755,
   0.741515,
   -0.3325537,
   -0.6687443,
   1.321965,
   3.197927,
   -999,
   -999,
   0.04291213};
   Double_t Graph0_fex1008[20] = {
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0};
   Double_t Graph0_fey1008[20] = {
   0.01363994,
   0.01187299,
   0.01577891,
   0.02090748,
   0.02936972,
   0.04022648,
   0.05552135,
   0.06945757,
   0.1113888,
   0.1298472,
   0.207873,
   0.415751,
   0.3995309,
   0.2724838,
   0.1912505,
   1.160983,
   2.423674,
   0,
   0,
   1.042912};
   TGraphErrors *gre = new TGraphErrors(20,Graph0_fx1008,Graph0_fy1008,Graph0_fex1008,Graph0_fey1008);
   gre->SetName("Graph0");
   gre->SetTitle("Graph");
   gre->SetFillColor(1);
   gre->SetLineWidth(3);
   
   TH1F *Graph_Graph1008 = new TH1F("Graph_Graph1008","Graph",100,0,535);
   Graph_Graph1008->SetMinimum(-1099.462);
   Graph_Graph1008->SetMaximum(106.0838);
   Graph_Graph1008->SetDirectory(0);
   Graph_Graph1008->SetStats(0);

   ci = TColor::GetColor("#000099");
   Graph_Graph1008->SetLineColor(ci);
   Graph_Graph1008->GetXaxis()->SetLabelFont(42);
   Graph_Graph1008->GetXaxis()->SetLabelOffset(0.007);
   Graph_Graph1008->GetXaxis()->SetTitleSize(0.05);
   Graph_Graph1008->GetXaxis()->SetTickLength(0.025);
   Graph_Graph1008->GetXaxis()->SetTitleFont(42);
   Graph_Graph1008->GetYaxis()->SetLabelFont(42);
   Graph_Graph1008->GetYaxis()->SetLabelOffset(0.007);
   Graph_Graph1008->GetYaxis()->SetTitleSize(0.05);
   Graph_Graph1008->GetYaxis()->SetTickLength(0.025);
   Graph_Graph1008->GetYaxis()->SetTitleFont(42);
   Graph_Graph1008->GetZaxis()->SetLabelFont(42);
   Graph_Graph1008->GetZaxis()->SetLabelOffset(0.007);
   Graph_Graph1008->GetZaxis()->SetTitleSize(0.05);
   Graph_Graph1008->GetZaxis()->SetTickLength(0.025);
   Graph_Graph1008->GetZaxis()->SetTitleFont(42);
   gre->SetHistogram(Graph_Graph1008);
   
   gre->Draw("pe0");
   pad2->Modified();
   c1->cd();
   c1->Modified();
   c1->cd();
   c1->SetSelected(c1);
}
void paraPull_alpha_EG_RESOLUTION_ALL_2TeV_2Lep_plots_All()
{
//=========Macro generated from canvas: c1/alpha_EG_RESOLUTION_ALL
//=========  (Sun Nov 22 20:14:01 2015) by ROOT version6.02/12
   TCanvas *c1 = new TCanvas("c1", "alpha_EG_RESOLUTION_ALL",0,22,1000,600);
   gStyle->SetOptStat(0);
   c1->Range(-4.125,-0.9756355,37.125,1.049623);
   c1->SetFillColor(0);
   c1->SetBorderMode(0);
   c1->SetBorderSize(2);
   c1->SetGridx();
   c1->SetGridy();
   c1->SetFrameBorderMode(0);
   c1->SetFrameBorderMode(0);
   
   TH1F *NuisanceParameterFreed6 = new TH1F("NuisanceParameterFreed6","alpha_EG_RESOLUTION_ALL",33,0,33);
   NuisanceParameterFreed6->SetMinimum(-0.7731097);
   NuisanceParameterFreed6->SetMaximum(0.8470969);
   NuisanceParameterFreed6->SetStats(0);

   Int_t ci;      // for color index setting
   TColor *color; // for color definition with alpha
   ci = TColor::GetColor("#000099");
   NuisanceParameterFreed6->SetLineColor(ci);
   NuisanceParameterFreed6->GetXaxis()->SetBinLabel(1,"XS_ttbar");
   NuisanceParameterFreed6->GetXaxis()->SetBinLabel(2,"EG_SCALE_ALL");
   NuisanceParameterFreed6->GetXaxis()->SetBinLabel(3,"FT_EFF_Eigen_C_0");
   NuisanceParameterFreed6->GetXaxis()->SetBinLabel(4,"Luminosity");
   NuisanceParameterFreed6->GetXaxis()->SetBinLabel(5,"XS_st");
   NuisanceParameterFreed6->GetXaxis()->SetBinLabel(6,"FT_EFF_Eigen_B_1");
   NuisanceParameterFreed6->GetXaxis()->SetBinLabel(7,"XS_Zc");
   NuisanceParameterFreed6->GetXaxis()->SetBinLabel(8,"MUONS_ID");
   NuisanceParameterFreed6->GetXaxis()->SetBinLabel(9,"FT_EFF_Eigen_C_1");
   NuisanceParameterFreed6->GetXaxis()->SetBinLabel(10,"FT_EFF_Eigen_C_3");
   NuisanceParameterFreed6->GetXaxis()->SetBinLabel(11,"MUON_EFF_TrigSystUncertainty");
   NuisanceParameterFreed6->GetXaxis()->SetBinLabel(12,"XS_Zl");
   NuisanceParameterFreed6->GetXaxis()->SetBinLabel(13,"EL_EFF_ID_TotalCorrUncertainty");
   NuisanceParameterFreed6->GetXaxis()->SetBinLabel(14,"FT_EFF_Eigen_B_0");
   NuisanceParameterFreed6->GetXaxis()->SetBinLabel(15,"FT_EFF_Eigen_B_2");
   NuisanceParameterFreed6->GetXaxis()->SetBinLabel(16,"EL_EFF_Iso_TotalCorrUncertainty");
   NuisanceParameterFreed6->GetXaxis()->SetBinLabel(17,"EL_EFF_Reco_TotalCorrUncertainty");
   NuisanceParameterFreed6->GetXaxis()->SetBinLabel(18,"MUONS_SCALE");
   NuisanceParameterFreed6->GetXaxis()->SetBinLabel(19,"MUON_ISO_STAT");
   NuisanceParameterFreed6->GetXaxis()->SetBinLabel(20,"FT_EFF_extrapolation");
   NuisanceParameterFreed6->GetXaxis()->SetBinLabel(21,"MUON_EFF_STAT");
   NuisanceParameterFreed6->GetXaxis()->SetBinLabel(22,"MUON_EFF_SYS");
   NuisanceParameterFreed6->GetXaxis()->SetBinLabel(23,"MUON_EFF_TrigStatUncertainty");
   NuisanceParameterFreed6->GetXaxis()->SetBinLabel(24,"FT_EFF_Eigen_Light_1");
   NuisanceParameterFreed6->GetXaxis()->SetBinLabel(25,"FT_EFF_Eigen_Light_2");
   NuisanceParameterFreed6->GetXaxis()->SetBinLabel(26,"XS_diboson");
   NuisanceParameterFreed6->GetXaxis()->SetBinLabel(27,"FT_EFF_Eigen_Light_4");
   NuisanceParameterFreed6->GetXaxis()->SetBinLabel(28,"FT_EFF_Eigen_Light_3");
   NuisanceParameterFreed6->GetXaxis()->SetBinLabel(29,"MUON_ISO_SYS");
   NuisanceParameterFreed6->GetXaxis()->SetBinLabel(30,"XS_Zb");
   NuisanceParameterFreed6->GetXaxis()->SetBinLabel(31,"FT_EFF_Eigen_C_2");
   NuisanceParameterFreed6->GetXaxis()->SetBinLabel(32,"MUONS_MS");
   NuisanceParameterFreed6->GetXaxis()->SetBinLabel(33,"FT_EFF_Eigen_Light_0");
   NuisanceParameterFreed6->GetXaxis()->SetLabelFont(42);
   NuisanceParameterFreed6->GetXaxis()->SetLabelSize(0.035);
   NuisanceParameterFreed6->GetXaxis()->SetTitleSize(0.035);
   NuisanceParameterFreed6->GetXaxis()->SetTitleFont(42);
   NuisanceParameterFreed6->GetYaxis()->SetTitle("#theta_{fit} - #theta_{initial}/#Delta#theta");
   NuisanceParameterFreed6->GetYaxis()->SetLabelFont(42);
   NuisanceParameterFreed6->GetYaxis()->SetLabelSize(0.035);
   NuisanceParameterFreed6->GetYaxis()->SetTitleSize(0.035);
   NuisanceParameterFreed6->GetYaxis()->SetTitleFont(42);
   NuisanceParameterFreed6->GetZaxis()->SetLabelFont(42);
   NuisanceParameterFreed6->GetZaxis()->SetLabelSize(0.035);
   NuisanceParameterFreed6->GetZaxis()->SetTitleSize(0.035);
   NuisanceParameterFreed6->GetZaxis()->SetTitleFont(42);
   NuisanceParameterFreed6->Draw("hist");
   
   Double_t _fx1006[35] = {
   1.22802e-312,
   0.5,
   1.5,
   2.5,
   3.5,
   4.5,
   5.5,
   6.5,
   7.5,
   8.5,
   9.5,
   10.5,
   11.5,
   12.5,
   13.5,
   14.5,
   15.5,
   16.5,
   17.5,
   18.5,
   19.5,
   20.5,
   21.5,
   22.5,
   23.5,
   24.5,
   25.5,
   26.5,
   27.5,
   28.5,
   29.5,
   30.5,
   31.5,
   32.5,
   0};
   Double_t _fy1006[35] = {
   1.22802e-312,
   -0.7731097,
   -0.3921743,
   -0.293631,
   -0.2062229,
   -0.1827488,
   -0.1281174,
   -0.1245126,
   -0.1082091,
   -0.06576492,
   -0.05684313,
   -0.05332309,
   -0.04675272,
   -0.0376783,
   -0.03228676,
   -0.03112064,
   -0.02395027,
   -0.01716815,
   -0.001368855,
   0.0001639766,
   0.01020258,
   0.01060384,
   0.0180787,
   0.01974379,
   0.02028609,
   0.02046257,
   0.04020329,
   0.04266391,
   0.04578831,
   0.05049948,
   0.05319844,
   0.0574024,
   0.05790248,
   0.8470969,
   0};
   Double_t _fex1006[35] = {
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0};
   Double_t _fey1006[35] = {
   0,
   0,
   0.610768,
   1.073217,
   1.263173,
   0.9362314,
   0.9916222,
   0.9863048,
   0.9259827,
   0.7691218,
   0.9864552,
   0.9937942,
   0.9917457,
   0.9970139,
   0.9818237,
   0.9374371,
   0.9926691,
   0.9931835,
   0.9925618,
   1.004989,
   0.9933467,
   0.9550431,
   0.9932277,
   0.9929666,
   0.992751,
   0.9913074,
   0.9909922,
   0.9869917,
   0.9931709,
   0.9930627,
   0.9855153,
   0.7535663,
   0.9909032,
   0.7381565,
   0.7858726};
   TGraphErrors *gre = new TGraphErrors(35,_fx1006,_fy1006,_fex1006,_fey1006);
   gre->SetName("");
   gre->SetTitle("");
   gre->SetFillColor(1);
   gre->SetMarkerStyle(20);
   gre->SetMarkerSize(1.2);
   
   TH1F *Graph_Graph1006 = new TH1F("Graph_Graph1006","",100,0,35.75);
   Graph_Graph1006->SetMinimum(-1.774861);
   Graph_Graph1006->SetMaximum(1.890718);
   Graph_Graph1006->SetDirectory(0);
   Graph_Graph1006->SetStats(0);

   ci = TColor::GetColor("#000099");
   Graph_Graph1006->SetLineColor(ci);
   Graph_Graph1006->GetXaxis()->SetLabelFont(42);
   Graph_Graph1006->GetXaxis()->SetLabelSize(0.035);
   Graph_Graph1006->GetXaxis()->SetTitleSize(0.035);
   Graph_Graph1006->GetXaxis()->SetTitleFont(42);
   Graph_Graph1006->GetYaxis()->SetLabelFont(42);
   Graph_Graph1006->GetYaxis()->SetLabelSize(0.035);
   Graph_Graph1006->GetYaxis()->SetTitleSize(0.035);
   Graph_Graph1006->GetYaxis()->SetTitleFont(42);
   Graph_Graph1006->GetZaxis()->SetLabelFont(42);
   Graph_Graph1006->GetZaxis()->SetLabelSize(0.035);
   Graph_Graph1006->GetZaxis()->SetTitleSize(0.035);
   Graph_Graph1006->GetZaxis()->SetTitleFont(42);
   gre->SetHistogram(Graph_Graph1006);
   
   gre->Draw("p");
   
   TLegend *leg = new TLegend(0.1,0.4,0.4,0.95,NULL,"brNDC");
   leg->SetBorderSize(0);
   leg->SetTextFont(72);
   leg->SetTextSize(0.015);
   leg->SetLineColor(1);
   leg->SetLineStyle(1);
   leg->SetLineWidth(1);
   leg->SetFillColor(0);
   leg->SetFillStyle(0);
   leg->Draw();
   
   TPaveText *pt = new TPaveText(0.2831727,0.9341608,0.7168273,0.995,"blNDC");
   pt->SetName("title");
   pt->SetBorderSize(0);
   pt->SetFillColor(0);
   pt->SetFillStyle(0);
   pt->SetTextFont(42);
   TText *AText = pt->AddText("alpha_EG_RESOLUTION_ALL");
   pt->Draw();
   c1->Modified();
   c1->cd();
   c1->SetSelected(c1);
}
void paraPull_alpha_FT_EFF_Eigen_C_2_2TeV_2Lep_plots_All()
{
//=========Macro generated from canvas: c1/alpha_FT_EFF_Eigen_C_2
//=========  (Sun Nov 22 20:16:56 2015) by ROOT version6.02/12
   TCanvas *c1 = new TCanvas("c1", "alpha_FT_EFF_Eigen_C_2",0,22,1000,600);
   gStyle->SetOptStat(0);
   c1->Range(-4.125,-0.9729451,37.125,1.03984);
   c1->SetFillColor(0);
   c1->SetBorderMode(0);
   c1->SetBorderSize(2);
   c1->SetGridx();
   c1->SetGridy();
   c1->SetFrameBorderMode(0);
   c1->SetFrameBorderMode(0);
   
   TH1F *NuisanceParameterFreed16 = new TH1F("NuisanceParameterFreed16","alpha_FT_EFF_Eigen_C_2",33,0,33);
   NuisanceParameterFreed16->SetMinimum(-0.7716665);
   NuisanceParameterFreed16->SetMaximum(0.8385618);
   NuisanceParameterFreed16->SetStats(0);

   Int_t ci;      // for color index setting
   TColor *color; // for color definition with alpha
   ci = TColor::GetColor("#000099");
   NuisanceParameterFreed16->SetLineColor(ci);
   NuisanceParameterFreed16->GetXaxis()->SetBinLabel(1,"XS_ttbar");
   NuisanceParameterFreed16->GetXaxis()->SetBinLabel(2,"EG_SCALE_ALL");
   NuisanceParameterFreed16->GetXaxis()->SetBinLabel(3,"FT_EFF_Eigen_C_0");
   NuisanceParameterFreed16->GetXaxis()->SetBinLabel(4,"Luminosity");
   NuisanceParameterFreed16->GetXaxis()->SetBinLabel(5,"XS_st");
   NuisanceParameterFreed16->GetXaxis()->SetBinLabel(6,"FT_EFF_Eigen_B_1");
   NuisanceParameterFreed16->GetXaxis()->SetBinLabel(7,"XS_Zc");
   NuisanceParameterFreed16->GetXaxis()->SetBinLabel(8,"MUONS_ID");
   NuisanceParameterFreed16->GetXaxis()->SetBinLabel(9,"FT_EFF_Eigen_C_1");
   NuisanceParameterFreed16->GetXaxis()->SetBinLabel(10,"FT_EFF_Eigen_C_3");
   NuisanceParameterFreed16->GetXaxis()->SetBinLabel(11,"MUON_EFF_TrigSystUncertainty");
   NuisanceParameterFreed16->GetXaxis()->SetBinLabel(12,"XS_Zl");
   NuisanceParameterFreed16->GetXaxis()->SetBinLabel(13,"EL_EFF_ID_TotalCorrUncertainty");
   NuisanceParameterFreed16->GetXaxis()->SetBinLabel(14,"FT_EFF_Eigen_B_0");
   NuisanceParameterFreed16->GetXaxis()->SetBinLabel(15,"FT_EFF_Eigen_B_2");
   NuisanceParameterFreed16->GetXaxis()->SetBinLabel(16,"EL_EFF_Iso_TotalCorrUncertainty");
   NuisanceParameterFreed16->GetXaxis()->SetBinLabel(17,"EL_EFF_Reco_TotalCorrUncertainty");
   NuisanceParameterFreed16->GetXaxis()->SetBinLabel(18,"MUONS_SCALE");
   NuisanceParameterFreed16->GetXaxis()->SetBinLabel(19,"MUON_ISO_STAT");
   NuisanceParameterFreed16->GetXaxis()->SetBinLabel(20,"FT_EFF_extrapolation");
   NuisanceParameterFreed16->GetXaxis()->SetBinLabel(21,"MUON_EFF_STAT");
   NuisanceParameterFreed16->GetXaxis()->SetBinLabel(22,"MUON_EFF_SYS");
   NuisanceParameterFreed16->GetXaxis()->SetBinLabel(23,"FT_EFF_Eigen_Light_2");
   NuisanceParameterFreed16->GetXaxis()->SetBinLabel(24,"MUON_EFF_TrigStatUncertainty");
   NuisanceParameterFreed16->GetXaxis()->SetBinLabel(25,"FT_EFF_Eigen_Light_1");
   NuisanceParameterFreed16->GetXaxis()->SetBinLabel(26,"EG_RESOLUTION_ALL");
   NuisanceParameterFreed16->GetXaxis()->SetBinLabel(27,"XS_diboson");
   NuisanceParameterFreed16->GetXaxis()->SetBinLabel(28,"FT_EFF_Eigen_Light_4");
   NuisanceParameterFreed16->GetXaxis()->SetBinLabel(29,"FT_EFF_Eigen_Light_3");
   NuisanceParameterFreed16->GetXaxis()->SetBinLabel(30,"MUONS_MS");
   NuisanceParameterFreed16->GetXaxis()->SetBinLabel(31,"MUON_ISO_SYS");
   NuisanceParameterFreed16->GetXaxis()->SetBinLabel(32,"XS_Zb");
   NuisanceParameterFreed16->GetXaxis()->SetBinLabel(33,"FT_EFF_Eigen_Light_0");
   NuisanceParameterFreed16->GetXaxis()->SetLabelFont(42);
   NuisanceParameterFreed16->GetXaxis()->SetLabelSize(0.035);
   NuisanceParameterFreed16->GetXaxis()->SetTitleSize(0.035);
   NuisanceParameterFreed16->GetXaxis()->SetTitleFont(42);
   NuisanceParameterFreed16->GetYaxis()->SetTitle("#theta_{fit} - #theta_{initial}/#Delta#theta");
   NuisanceParameterFreed16->GetYaxis()->SetLabelFont(42);
   NuisanceParameterFreed16->GetYaxis()->SetLabelSize(0.035);
   NuisanceParameterFreed16->GetYaxis()->SetTitleSize(0.035);
   NuisanceParameterFreed16->GetYaxis()->SetTitleFont(42);
   NuisanceParameterFreed16->GetZaxis()->SetLabelFont(42);
   NuisanceParameterFreed16->GetZaxis()->SetLabelSize(0.035);
   NuisanceParameterFreed16->GetZaxis()->SetTitleSize(0.035);
   NuisanceParameterFreed16->GetZaxis()->SetTitleFont(42);
   NuisanceParameterFreed16->Draw("hist");
   
   Double_t _fx1016[35] = {
   1.22802e-312,
   0.5,
   1.5,
   2.5,
   3.5,
   4.5,
   5.5,
   6.5,
   7.5,
   8.5,
   9.5,
   10.5,
   11.5,
   12.5,
   13.5,
   14.5,
   15.5,
   16.5,
   17.5,
   18.5,
   19.5,
   20.5,
   21.5,
   22.5,
   23.5,
   24.5,
   25.5,
   26.5,
   27.5,
   28.5,
   29.5,
   30.5,
   31.5,
   32.5,
   0};
   Double_t _fy1016[35] = {
   1.22802e-312,
   -0.7716665,
   -0.3945796,
   -0.2718995,
   -0.1971903,
   -0.1829642,
   -0.1263037,
   -0.126037,
   -0.1109884,
   -0.06615239,
   -0.05768798,
   -0.05330585,
   -0.04475984,
   -0.03741536,
   -0.03431583,
   -0.03060626,
   -0.0238874,
   -0.01682264,
   -0.001395436,
   0.0001645141,
   0.009304257,
   0.01056628,
   0.01809831,
   0.01980358,
   0.02083574,
   0.02154463,
   0.02933361,
   0.03925985,
   0.0432392,
   0.04601425,
   0.0504996,
   0.05347244,
   0.0594588,
   0.8385618,
   0};
   Double_t _fex1016[35] = {
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0};
   Double_t _fey1016[35] = {
   0,
   0,
   0.6106976,
   1.071775,
   1.302912,
   0.9377662,
   0.9917154,
   0.9862853,
   0.9285057,
   0.7692815,
   0.9864575,
   0.9937975,
   0.9917326,
   0.9971741,
   0.9817143,
   0.9377042,
   0.9926714,
   0.9931825,
   0.9925538,
   1.005041,
   0.9933467,
   0.9550778,
   0.9932274,
   0.9929662,
   0.9909898,
   0.9928538,
   0.9913169,
   1.097904,
   0.9870737,
   0.9931716,
   0.993064,
   0.7378613,
   0.9854765,
   0.7558564,
   0.785907};
   TGraphErrors *gre = new TGraphErrors(35,_fx1016,_fy1016,_fex1016,_fey1016);
   gre->SetName("");
   gre->SetTitle("");
   gre->SetFillColor(1);
   gre->SetMarkerStyle(20);
   gre->SetMarkerSize(1.2);
   
   TH1F *Graph_Graph1016 = new TH1F("Graph_Graph1016","",100,0,35.75);
   Graph_Graph1016->SetMinimum(-1.809555);
   Graph_Graph1016->SetMaximum(1.90387);
   Graph_Graph1016->SetDirectory(0);
   Graph_Graph1016->SetStats(0);

   ci = TColor::GetColor("#000099");
   Graph_Graph1016->SetLineColor(ci);
   Graph_Graph1016->GetXaxis()->SetLabelFont(42);
   Graph_Graph1016->GetXaxis()->SetLabelSize(0.035);
   Graph_Graph1016->GetXaxis()->SetTitleSize(0.035);
   Graph_Graph1016->GetXaxis()->SetTitleFont(42);
   Graph_Graph1016->GetYaxis()->SetLabelFont(42);
   Graph_Graph1016->GetYaxis()->SetLabelSize(0.035);
   Graph_Graph1016->GetYaxis()->SetTitleSize(0.035);
   Graph_Graph1016->GetYaxis()->SetTitleFont(42);
   Graph_Graph1016->GetZaxis()->SetLabelFont(42);
   Graph_Graph1016->GetZaxis()->SetLabelSize(0.035);
   Graph_Graph1016->GetZaxis()->SetTitleSize(0.035);
   Graph_Graph1016->GetZaxis()->SetTitleFont(42);
   gre->SetHistogram(Graph_Graph1016);
   
   gre->Draw("p");
   
   TLegend *leg = new TLegend(0.1,0.4,0.4,0.95,NULL,"brNDC");
   leg->SetBorderSize(0);
   leg->SetTextFont(72);
   leg->SetTextSize(0.015);
   leg->SetLineColor(1);
   leg->SetLineStyle(1);
   leg->SetLineWidth(1);
   leg->SetFillColor(0);
   leg->SetFillStyle(0);
   leg->Draw();
   
   TPaveText *pt = new TPaveText(0.3082731,0.9341608,0.6917269,0.995,"blNDC");
   pt->SetName("title");
   pt->SetBorderSize(0);
   pt->SetFillColor(0);
   pt->SetFillStyle(0);
   pt->SetTextFont(42);
   TText *AText = pt->AddText("alpha_FT_EFF_Eigen_C_2");
   pt->Draw();
   c1->Modified();
   c1->cd();
   c1->SetSelected(c1);
}
示例#8
0
void apt_all(){
//=========Macro generated from canvas: MyCanvas/My Canvas
//=========  (Thu Dec  3 18:47:52 2009) by ROOT version5.25/04
   
   gROOT->Reset();
   gROOT->ProcessLine(".x rootlogon.C");

   gStyle->SetTitleYOffset(1.5);
   TCanvas *MyCanvas = new TCanvas("MyCanvas", "My Canvas",0,0,550,600);

   MyCanvas->SetLogx();

   double msize = 2;

   TH1D *hDist = new TH1D("hDist","hDist",20,9,10000);
   hDist->GetXaxis()->SetRange(1,20);
   hDist->SetMinimum(0.3);
   //hDist->SetMaximum(0.7);
   hDist->SetMaximum(0.6);  
   hDist->SetLineStyle(0);
   hDist->GetXaxis()->SetTitle("#sqrt{s} [GeV]");
   hDist->GetYaxis()->SetTitle("#LTp_{T}#GT [GeV/c]");
   hDist->GetXaxis()->CenterTitle();
   hDist->GetYaxis()->CenterTitle();
   hDist->GetYaxis()->SetNdivisions(510);
   hDist->Draw("");
   
   // Fit function                                                                                                                                 
   //TF1 *func = new TF1("func","0.426-0.0198*log(x^2)+0.00156*log(x^2)^2",18,100000); 
   //TF1 *func = new TF1("func","0.430-0.0207*log(x^2)+0.00161*log(x^2)^2",18,100000); 
   TF1 *func = new TF1("func","0.425-0.0197*log(x^2)+0.00156*log(x^2)^2",18,100000);
   func->SetLineColor(1);
   func->SetLineWidth(2.0);
   func->Draw("same");


   // ============================= ISR
   // OK, from http://www.slac.stanford.edu/spires/find/hep/www?j=NUPHA,B84,269

   TGraphErrors *gre = new TGraphErrors(4);
   gre->SetName("Graph");
   gre->SetTitle("Graph");

   gre->SetMarkerStyle(28);
   gre->SetMarkerSize(msize);

   gre->SetPoint(0,23.32,0.362);// plab = 289
   gre->SetPointError(0,0,0.004);  // errors are not verified! 
   gre->SetPoint(1,30.59,0.364);// plab = 498
   gre->SetPointError(1,0,0.00497238);
   gre->SetPoint(2,44.61,0.366); // plab = 1060
   gre->SetPointError(2,0,0.00478821);
   gre->SetPoint(3,53.06,0.368); // plab = 1500
   gre->SetPointError(3,0,0.00497238);

   
   TH1F *Graph1 = new TH1F("Graph1","Graph",100,19.03788,56.0634);
   Graph1->SetMinimum(0.3551011);
   Graph1->SetMaximum(0.374549);

   gre->SetHistogram(Graph1);
   gre->Draw("pz");

   TGraph* gre01 = gre->Clone("gre01");
   gre01->SetMarkerStyle(0);
   //   gre01->Draw("pzsame");

   // ============================= UA1  
   // OK, from  http://dx.doi.org/10.1016/0550-3213(90)90493-W

   gre = new TGraphErrors(7);
   gre->SetName("Graph");
   gre->SetTitle("Graph");

   gre->SetMarkerStyle(3);
   gre->SetMarkerSize(msize);
   gre->SetPoint(0,200,0.392);
   gre->SetPointError(0,0,0.003);
   gre->SetPoint(1,260,0.404);
   gre->SetPointError(1,0,0.004);
   gre->SetPoint(2,380,0.408);
   gre->SetPointError(2,0,0.004);
   gre->SetPoint(3,500,0.419);
   gre->SetPointError(3,0,0.004);
   gre->SetPoint(4,620,0.426);
   gre->SetPointError(4,0,0.004);
   gre->SetPoint(5,790,0.435);
   gre->SetPointError(5,0,0.004);
   gre->SetPoint(6,900,0.447);
   gre->SetPointError(6,0,0.003);
   
   TH1F *Graph2 = new TH1F("Graph2","Graph",100,131.4964,972.7974);
   Graph2->SetMinimum(0.3826521);
   Graph2->SetMaximum(0.4560221);

   gre->SetHistogram(Graph2);
   gre->Draw("pz");
   
   TGraph* gre02 = gre->Clone("gre02");
   gre02->SetMarkerStyle(0);
   //   gre02->Draw("pzsame");

   // ============================= E735?
   // OK, from https://twiki.cern.ch/twiki/pub/CMS/DNdEtaBib/e735numbers.pdf
   gre = new TGraphErrors(4);
   gre->SetName("Graph");
   gre->SetTitle("Graph");

   gre->SetMarkerStyle(22);
   gre->SetMarkerSize(msize);
   gre->SetPoint(0,300,0.393);
   gre->SetPointError(0,0,0.01);
   gre->SetPoint(1,540,0.430);
   gre->SetPointError(1,0,0.01);
   gre->SetPoint(2,900,0.448);
   gre->SetPointError(2,0,0.01);
   gre->SetPoint(3,1800,0.468);
   gre->SetPointError(3,0,0.01);

   TH1F *Graph3 = new TH1F("Graph3","Graph",100,148.0787,1967.778);
   Graph3->SetMinimum(0.3734073);
   Graph3->SetMaximum(0.4869985);

   gre->SetHistogram(Graph3);
   gre->Draw("pz");

   TGraph* gre03 = gre->Clone("gre03");
   gre03->SetMarkerStyle(0);
   gre03->Draw("pzsame");
   
   // ============================= CDF
   // OK, from http://www.slac.stanford.edu/spires/find/hep/www?j=PRLTA,61,1819

   gre = new TGraphErrors(2);
   gre->SetName("Graph");
   gre->SetTitle("Graph");

   gre->SetMarkerStyle(21);
   gre->SetMarkerSize(msize);

   gre->SetPoint(0,630,0.432);
   gre->SetPointError(0,0,0.004);
   gre->SetPoint(1,1800,0.495);
   gre->SetPointError(1,0,0.014);
   
   TH1F *Graph4 = new TH1F("Graph4","Graph",100,518.0436,1936.249);
   Graph4->SetMinimum(0.4196686);
   Graph4->SetMaximum(0.5173485);
   gre->SetHistogram(Graph4);
   
   gre->Draw("pz");
   
   TGraph* gre04 = gre->Clone("gre04");
   gre04->SetMarkerStyle(0);
   gre04->Draw("pzsame");

   // ============================= CMS?
   gre = new TGraphErrors(1);
   gre->SetName("Graph");
   gre->SetTitle("Graph");

   gre->SetMarkerStyle(20);
   gre->SetMarkerSize(msize);
   gre->SetMarkerColor(kRed+2);
   gre->SetLineColor(kRed+2);

   /*
   gre->SetPoint(0,900,0.44);
   gre->SetPointError(0,0,0.018);
   */
   
   //Now real measurement
   Float_t cmsSysError = 0.028;
   gre->SetPoint(0,900,0.46);
   //gre->SetPointError(0,0,0.46*cmsSysError);
   // updated to sqrt (0.01*0.01+0.46*0.46*0.028*0.028) , where 0.01 is stat err. 
   gre->SetPointError(0,0,0.0163); 
   gre->SetPoint(1,2360,0.50);
   //gre->SetPointError(1,0,0.50*cmsSysError);
   gre->SetPointError(1,0,0.0172);

   TGraph* greOnT = gre->Clone("greOnT");
   greOnT->SetMarkerStyle(0);
   greOnT->SetLineWidth(2);
   greOnT->Draw("PZsame");

   TGraph* greOnT2 = gre->Clone("cmsnsd05");
   gStyle->SetEndErrorSize(3);
   greOnT2->SetMarkerStyle(0);
   greOnT2->Draw("||");

   
   TH1F *Graph5 = new TH1F("Graph5","Graph",100,899.9,901.1);
   Graph5->SetMinimum(0.4184);
   Graph5->SetMaximum(0.4616);
   gre->SetHistogram(Graph5);
   gre->SetMarkerSize(msize*1.2);
   gre->Draw("pz");
   
   TGraph* gre05 = gre->Clone("gre05");
   gre05->SetMarkerStyle(0);
   //   gre05->Draw("pzsame");
   
   /*
   // Fit function
   //TF1 *func = new TF1("func","0.426-0.0198*log(x^2)+0.00156*log(x^2)^2",18,100000);
   //TF1 *func = new TF1("func","0.430-0.0207*log(x^2)+0.00161*log(x^2)^2",18,100000);  
   TF1 *func = new TF1("func","0.425-0.0197*log(x^2)+0.00156*log(x^2)^2",18,100000);  
   func->SetLineColor(1);
   func->SetLineWidth(1.5);
   func->Draw("same");
   */

   TLegend *leg = new TLegend(0.25,0.90-0.045*5,0.5,0.90,NULL,"brNDC");
   leg->SetBorderSize(0);
   leg->SetTextFont(62);
   leg->SetLineColor(1);
   leg->SetLineStyle(1);
   leg->SetLineWidth(1);
   leg->SetFillColor(0);
   leg->SetFillStyle(0);
   leg->SetTextSize(0.03);

   TLegendEntry *entry=leg->AddEntry("Graph1","ISR inel.","P");
   entry->SetMarkerStyle(28);
   entry->SetMarkerSize(msize);
   entry=leg->AddEntry("Graph2","UA1 NSD","P");
   entry->SetMarkerStyle(3);   
   entry->SetMarkerSize(msize);   

   entry=leg->AddEntry("Graph3","E735 NSD","P");
   entry->SetMarkerStyle(22);   
   entry->SetMarkerSize(msize); 

   entry=leg->AddEntry("Graph4","CDF NSD","P");
   entry->SetMarkerStyle(21);    
   entry->SetMarkerSize(msize);    

   entry=leg->AddEntry("Graph5","CMS NSD (|#eta|<2.4)","P");
   entry->SetMarkerStyle(20);  
   entry->SetMarkerColor(kRed+2);
   entry->SetMarkerSize(msize*1.0);  
   leg->Draw();  

   TLegend *leg2 = new TLegend(0.35,0.20,0.91,0.26,NULL,"brNDC");
   //TLegend *leg2 = new TLegend(0.411,0.18,0.91,0.33,NULL,"brNDC");     
   leg2->SetBorderSize(0);
   leg2->SetTextFont(62);
   leg2->SetTextSize(0.035);
   leg2->SetLineColor(1);
   leg2->SetLineStyle(1);
   leg2->SetLineWidth(1);
   leg2->SetFillColor(0);
   leg2->SetFillStyle(0);
   leg2->SetMargin(0.15);
   leg2->SetTextSize(0.03);

   //   TLegendEntry *entry=leg2->AddEntry("func","0.40 - 0.015 #times ln(s) + 0.001325 #times ln^{2}(s)","l");
   //TLegendEntry *entry=leg2->AddEntry("func","0.40 - 0.015 ln(s) + 0.001325 ln^{2}(s)","l");
   TLegendEntry *entry=leg2->AddEntry("func","0.425 - 0.0197 ln(s) + 0.00156 ln^{2}(s)","l");
   //TLegendEntry *entry=leg2->AddEntry("func","0.430 - 0.0207 ln(s) + 0.00161 ln^{2}(s)","l");


   entry->SetTextSize(0.03);
   entry->SetMarkerSize(0);
   leg2->Draw();

   printFinalCanvases(MyCanvas,"apt_all");

}
void paraPull_alpha_FT_EFF_extrapolation_2TeV_2Lep_plots_All()
{
//=========Macro generated from canvas: c1/alpha_FT_EFF_extrapolation
//=========  (Sun Nov 22 20:19:02 2015) by ROOT version6.02/12
   TCanvas *c1 = new TCanvas("c1", "alpha_FT_EFF_extrapolation",0,22,1000,600);
   gStyle->SetOptStat(0);
   c1->Range(-4.125,-0.9756589,37.125,1.048929);
   c1->SetFillColor(0);
   c1->SetBorderMode(0);
   c1->SetBorderSize(2);
   c1->SetGridx();
   c1->SetGridy();
   c1->SetFrameBorderMode(0);
   c1->SetFrameBorderMode(0);
   
   TH1F *NuisanceParameterFreed23 = new TH1F("NuisanceParameterFreed23","alpha_FT_EFF_extrapolation",33,0,33);
   NuisanceParameterFreed23->SetMinimum(-0.7732002);
   NuisanceParameterFreed23->SetMaximum(0.84647);
   NuisanceParameterFreed23->SetStats(0);

   Int_t ci;      // for color index setting
   TColor *color; // for color definition with alpha
   ci = TColor::GetColor("#000099");
   NuisanceParameterFreed23->SetLineColor(ci);
   NuisanceParameterFreed23->GetXaxis()->SetBinLabel(1,"XS_ttbar");
   NuisanceParameterFreed23->GetXaxis()->SetBinLabel(2,"EG_SCALE_ALL");
   NuisanceParameterFreed23->GetXaxis()->SetBinLabel(3,"FT_EFF_Eigen_C_0");
   NuisanceParameterFreed23->GetXaxis()->SetBinLabel(4,"Luminosity");
   NuisanceParameterFreed23->GetXaxis()->SetBinLabel(5,"XS_st");
   NuisanceParameterFreed23->GetXaxis()->SetBinLabel(6,"FT_EFF_Eigen_B_1");
   NuisanceParameterFreed23->GetXaxis()->SetBinLabel(7,"XS_Zc");
   NuisanceParameterFreed23->GetXaxis()->SetBinLabel(8,"MUONS_ID");
   NuisanceParameterFreed23->GetXaxis()->SetBinLabel(9,"FT_EFF_Eigen_C_1");
   NuisanceParameterFreed23->GetXaxis()->SetBinLabel(10,"FT_EFF_Eigen_C_3");
   NuisanceParameterFreed23->GetXaxis()->SetBinLabel(11,"MUON_EFF_TrigSystUncertainty");
   NuisanceParameterFreed23->GetXaxis()->SetBinLabel(12,"XS_Zl");
   NuisanceParameterFreed23->GetXaxis()->SetBinLabel(13,"EL_EFF_ID_TotalCorrUncertainty");
   NuisanceParameterFreed23->GetXaxis()->SetBinLabel(14,"FT_EFF_Eigen_B_0");
   NuisanceParameterFreed23->GetXaxis()->SetBinLabel(15,"FT_EFF_Eigen_B_2");
   NuisanceParameterFreed23->GetXaxis()->SetBinLabel(16,"EL_EFF_Iso_TotalCorrUncertainty");
   NuisanceParameterFreed23->GetXaxis()->SetBinLabel(17,"EL_EFF_Reco_TotalCorrUncertainty");
   NuisanceParameterFreed23->GetXaxis()->SetBinLabel(18,"MUONS_SCALE");
   NuisanceParameterFreed23->GetXaxis()->SetBinLabel(19,"MUON_ISO_STAT");
   NuisanceParameterFreed23->GetXaxis()->SetBinLabel(20,"MUON_EFF_STAT");
   NuisanceParameterFreed23->GetXaxis()->SetBinLabel(21,"MUON_EFF_SYS");
   NuisanceParameterFreed23->GetXaxis()->SetBinLabel(22,"MUON_EFF_TrigStatUncertainty");
   NuisanceParameterFreed23->GetXaxis()->SetBinLabel(23,"FT_EFF_Eigen_Light_1");
   NuisanceParameterFreed23->GetXaxis()->SetBinLabel(24,"FT_EFF_Eigen_Light_2");
   NuisanceParameterFreed23->GetXaxis()->SetBinLabel(25,"EG_RESOLUTION_ALL");
   NuisanceParameterFreed23->GetXaxis()->SetBinLabel(26,"XS_diboson");
   NuisanceParameterFreed23->GetXaxis()->SetBinLabel(27,"FT_EFF_Eigen_Light_4");
   NuisanceParameterFreed23->GetXaxis()->SetBinLabel(28,"FT_EFF_Eigen_Light_3");
   NuisanceParameterFreed23->GetXaxis()->SetBinLabel(29,"MUON_ISO_SYS");
   NuisanceParameterFreed23->GetXaxis()->SetBinLabel(30,"XS_Zb");
   NuisanceParameterFreed23->GetXaxis()->SetBinLabel(31,"MUONS_MS");
   NuisanceParameterFreed23->GetXaxis()->SetBinLabel(32,"FT_EFF_Eigen_C_2");
   NuisanceParameterFreed23->GetXaxis()->SetBinLabel(33,"FT_EFF_Eigen_Light_0");
   NuisanceParameterFreed23->GetXaxis()->SetLabelFont(42);
   NuisanceParameterFreed23->GetXaxis()->SetLabelSize(0.035);
   NuisanceParameterFreed23->GetXaxis()->SetTitleSize(0.035);
   NuisanceParameterFreed23->GetXaxis()->SetTitleFont(42);
   NuisanceParameterFreed23->GetYaxis()->SetTitle("#theta_{fit} - #theta_{initial}/#Delta#theta");
   NuisanceParameterFreed23->GetYaxis()->SetLabelFont(42);
   NuisanceParameterFreed23->GetYaxis()->SetLabelSize(0.035);
   NuisanceParameterFreed23->GetYaxis()->SetTitleSize(0.035);
   NuisanceParameterFreed23->GetYaxis()->SetTitleFont(42);
   NuisanceParameterFreed23->GetZaxis()->SetLabelFont(42);
   NuisanceParameterFreed23->GetZaxis()->SetLabelSize(0.035);
   NuisanceParameterFreed23->GetZaxis()->SetTitleSize(0.035);
   NuisanceParameterFreed23->GetZaxis()->SetTitleFont(42);
   NuisanceParameterFreed23->Draw("hist");
   
   Double_t _fx1023[35] = {
   1.22802e-312,
   0.5,
   1.5,
   2.5,
   3.5,
   4.5,
   5.5,
   6.5,
   7.5,
   8.5,
   9.5,
   10.5,
   11.5,
   12.5,
   13.5,
   14.5,
   15.5,
   16.5,
   17.5,
   18.5,
   19.5,
   20.5,
   21.5,
   22.5,
   23.5,
   24.5,
   25.5,
   26.5,
   27.5,
   28.5,
   29.5,
   30.5,
   31.5,
   32.5,
   0};
   Double_t _fy1023[35] = {
   1.22802e-312,
   -0.7732002,
   -0.3921591,
   -0.2934756,
   -0.2062307,
   -0.1826562,
   -0.1278773,
   -0.1247963,
   -0.108241,
   -0.06582277,
   -0.05689324,
   -0.05334169,
   -0.04681761,
   -0.03773949,
   -0.03194355,
   -0.03107318,
   -0.02396662,
   -0.01713834,
   -0.001377884,
   0.0001640769,
   0.01059417,
   0.01807268,
   0.01971767,
   0.02015498,
   0.02031121,
   0.0264387,
   0.04025057,
   0.04268968,
   0.0458893,
   0.05072166,
   0.05322667,
   0.05659235,
   0.05743463,
   0.84647,
   0};
   Double_t _fex1023[35] = {
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0};
   Double_t _fey1023[35] = {
   0,
   0,
   0.6107108,
   1.073202,
   1.262649,
   0.9362982,
   0.9916356,
   0.9862464,
   0.9262906,
   0.7691235,
   0.9864321,
   0.9937945,
   0.9917446,
   0.9970094,
   0.9817783,
   0.9372476,
   0.9926669,
   0.9931837,
   0.9925578,
   1.005003,
   0.9933467,
   0.9932277,
   0.9929663,
   0.9927589,
   0.9912906,
   0.9909611,
   1.097757,
   0.9869836,
   0.993171,
   0.9930564,
   0.9854803,
   0.753601,
   0.7380864,
   0.9908989,
   0.785308};
   TGraphErrors *gre = new TGraphErrors(35,_fx1023,_fy1023,_fex1023,_fey1023);
   gre->SetName("");
   gre->SetTitle("");
   gre->SetFillColor(1);
   gre->SetMarkerStyle(20);
   gre->SetMarkerSize(1.2);
   
   TH1F *Graph_Graph1023 = new TH1F("Graph_Graph1023","",100,0,35.75);
   Graph_Graph1023->SetMinimum(-1.799504);
   Graph_Graph1023->SetMaximum(2.167994);
   Graph_Graph1023->SetDirectory(0);
   Graph_Graph1023->SetStats(0);

   ci = TColor::GetColor("#000099");
   Graph_Graph1023->SetLineColor(ci);
   Graph_Graph1023->GetXaxis()->SetLabelFont(42);
   Graph_Graph1023->GetXaxis()->SetLabelSize(0.035);
   Graph_Graph1023->GetXaxis()->SetTitleSize(0.035);
   Graph_Graph1023->GetXaxis()->SetTitleFont(42);
   Graph_Graph1023->GetYaxis()->SetLabelFont(42);
   Graph_Graph1023->GetYaxis()->SetLabelSize(0.035);
   Graph_Graph1023->GetYaxis()->SetTitleSize(0.035);
   Graph_Graph1023->GetYaxis()->SetTitleFont(42);
   Graph_Graph1023->GetZaxis()->SetLabelFont(42);
   Graph_Graph1023->GetZaxis()->SetLabelSize(0.035);
   Graph_Graph1023->GetZaxis()->SetTitleSize(0.035);
   Graph_Graph1023->GetZaxis()->SetTitleFont(42);
   gre->SetHistogram(Graph_Graph1023);
   
   gre->Draw("p");
   
   TLegend *leg = new TLegend(0.1,0.4,0.4,0.95,NULL,"brNDC");
   leg->SetBorderSize(0);
   leg->SetTextFont(72);
   leg->SetTextSize(0.015);
   leg->SetLineColor(1);
   leg->SetLineStyle(1);
   leg->SetLineWidth(1);
   leg->SetFillColor(0);
   leg->SetFillStyle(0);
   leg->Draw();
   
   TPaveText *pt = new TPaveText(0.2917068,0.9341608,0.7082932,0.995,"blNDC");
   pt->SetName("title");
   pt->SetBorderSize(0);
   pt->SetFillColor(0);
   pt->SetFillStyle(0);
   pt->SetTextFont(42);
   TText *AText = pt->AddText("alpha_FT_EFF_extrapolation");
   pt->Draw();
   c1->Modified();
   c1->cd();
   c1->SetSelected(c1);
}
示例#10
0
void gyieldsp()
{
//=========Macro generated from canvas: c1/c1
//=========  (Fri Jul 31 19:31:43 2015) by ROOT version6.05/01
   TCanvas *c1 = new TCanvas("c1", "c1",0,23,600,600);
   gStyle->SetOptFit(1);
   gStyle->SetOptStat(0);
   gStyle->SetOptTitle(0);
   c1->Range(0,0,1,1);
   c1->SetFillColor(0);
   c1->SetBorderMode(0);
   c1->SetBorderSize(2);
   c1->SetTickx(1);
   c1->SetTicky(1);
   c1->SetLeftMargin(0.16);
   c1->SetRightMargin(0.04);
   c1->SetTopMargin(0.08);
   c1->SetBottomMargin(0.12);
   c1->SetFrameFillStyle(0);
   c1->SetFrameBorderMode(0);
  
// ------------>Primitives in pad: pad1
   TPad *pad1 = new TPad("pad1", "pad1",0,0.26,1,1);
   pad1->Draw();
   pad1->cd();
   pad1->Range(-3.5,-6.621622,2.75,158.9189);
   pad1->SetFillColor(0);
   pad1->SetBorderMode(0);
   pad1->SetBorderSize(2);
   pad1->SetTickx(1);
   pad1->SetTicky(1);
   pad1->SetLeftMargin(0.16);
   pad1->SetRightMargin(0.04);
   pad1->SetTopMargin(0.1142857);
   pad1->SetBottomMargin(0.04);
   pad1->SetFrameFillStyle(0);
   pad1->SetFrameBorderMode(0);
   pad1->SetFrameFillStyle(0);
   pad1->SetFrameBorderMode(0);
   
   Double_t Graph0_fx3021[10] = {
   2.2,
   1.75,
   1.25,
   0.75,
   0.25,
   -0.25,
   -0.75,
   -1.25,
   -1.75,
   -2.2};
   Double_t Graph0_fy3021[10] = {
   103.56,
   105.744,
   103.4081,
   100.0093,
   97.03688,
   94.36609,
   90.5471,
   82.43278,
   65.82142,
   43.43165};
   Double_t Graph0_felx3021[10] = {
   0.2,
   0.25,
   0.25,
   0.25,
   0.25,
   0.25,
   0.25,
   0.25,
   0.25,
   0.2};
   Double_t Graph0_fely3021[10] = {
   7.299733,
   7.206486,
   6.824632,
   6.594841,
   6.406375,
   6.079494,
   5.746822,
   5.225105,
   4.165823,
   2.787035};
   Double_t Graph0_fehx3021[10] = {
   0.2,
   0.25,
   0.25,
   0.25,
   0.25,
   0.25,
   0.25,
   0.25,
   0.25,
   0.2};
   Double_t Graph0_fehy3021[10] = {
   5.988963,
   6.218694,
   6.307709,
   6.368316,
   5.847823,
   5.655323,
   5.083818,
   4.561256,
   3.722445,
   2.542957};
   TGraphAsymmErrors *grae = new TGraphAsymmErrors(10,Graph0_fx3021,Graph0_fy3021,Graph0_felx3021,Graph0_fehx3021,Graph0_fely3021,Graph0_fehy3021);
   grae->SetName("Graph0");
   grae->SetTitle("Graph");

   Int_t ci;      // for color index setting
   TColor *color; // for color definition with alpha
   ci = TColor::GetColor("#ffff00");
   grae->SetFillColor(ci);

   ci = TColor::GetColor("#ff0000");
   grae->SetLineColor(ci);
   grae->SetLineWidth(4);
   grae->SetMarkerStyle(20);
   grae->SetMarkerSize(0);
   
   TH1F *Graph_Graph3021 = new TH1F("Graph_Graph3021","Graph",100,-2.5,2.5);
   Graph_Graph3021->SetMinimum(0);
   Graph_Graph3021->SetMaximum(140);
   Graph_Graph3021->SetDirectory(0);
   Graph_Graph3021->SetStats(0);
   Graph_Graph3021->SetLineStyle(0);
   Graph_Graph3021->SetMarkerStyle(20);
   Graph_Graph3021->GetXaxis()->SetNdivisions(505);
   Graph_Graph3021->GetXaxis()->SetLabelFont(42);
   Graph_Graph3021->GetXaxis()->SetLabelOffset(0.007);
   Graph_Graph3021->GetXaxis()->SetLabelSize(0);
   Graph_Graph3021->GetXaxis()->SetTitleSize(0.07142857);
   Graph_Graph3021->GetXaxis()->SetTitleOffset(1.1);
   Graph_Graph3021->GetXaxis()->SetTitleFont(42);
   Graph_Graph3021->GetYaxis()->SetTitle("d#sigma (W^{+}#rightarrow#font[12]{l}^{+}#nu) / d#eta_{lab} [nb]");
   Graph_Graph3021->GetYaxis()->SetLabelFont(42);
   Graph_Graph3021->GetYaxis()->SetLabelOffset(0.007);
   Graph_Graph3021->GetYaxis()->SetLabelSize(0.07142857);
   Graph_Graph3021->GetYaxis()->SetTitleSize(0.07142857);
   Graph_Graph3021->GetYaxis()->SetTitleOffset(1.05);
   Graph_Graph3021->GetYaxis()->SetTitleFont(42);
   Graph_Graph3021->GetZaxis()->SetLabelFont(42);
   Graph_Graph3021->GetZaxis()->SetLabelOffset(0.007);
   Graph_Graph3021->GetZaxis()->SetLabelSize(0.05);
   Graph_Graph3021->GetZaxis()->SetTitleSize(0.06);
   Graph_Graph3021->GetZaxis()->SetTitleFont(42);
   grae->SetHistogram(Graph_Graph3021);
   
   grae->Draw("a2");
   
   Double_t Graph1_fx3022[10] = {
   2.2,
   1.75,
   1.25,
   0.75,
   0.25,
   -0.25,
   -0.75,
   -1.25,
   -1.75,
   -2.2};
   Double_t Graph1_fy3022[10] = {
   103.56,
   105.744,
   103.4081,
   100.0093,
   97.03688,
   94.36609,
   90.5471,
   82.43278,
   65.82142,
   43.43165};
   Double_t Graph1_felx3022[10] = {
   0.2,
   0.25,
   0.25,
   0.25,
   0.25,
   0.25,
   0.25,
   0.25,
   0.25,
   0.2};
   Double_t Graph1_fely3022[10] = {
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0};
   Double_t Graph1_fehx3022[10] = {
   0.2,
   0.25,
   0.25,
   0.25,
   0.25,
   0.25,
   0.25,
   0.25,
   0.25,
   0.2};
   Double_t Graph1_fehy3022[10] = {
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0};
   grae = new TGraphAsymmErrors(10,Graph1_fx3022,Graph1_fy3022,Graph1_felx3022,Graph1_fehx3022,Graph1_fely3022,Graph1_fehy3022);
   grae->SetName("Graph1");
   grae->SetTitle("Graph");

   ci = TColor::GetColor("#ffff00");
   grae->SetFillColor(ci);

   ci = TColor::GetColor("#ff0000");
   grae->SetLineColor(ci);
   grae->SetLineWidth(4);
   grae->SetMarkerStyle(20);
   grae->SetMarkerSize(0);
   grae->Draw("z");
   
   Double_t Graph2_fx3023[10] = {
   2.2,
   1.75,
   1.25,
   0.75,
   0.25,
   -0.25,
   -0.75,
   -1.25,
   -1.75,
   -2.2};
   Double_t Graph2_fy3023[10] = {
   91.59545,
   95.26883,
   95.65156,
   95.47892,
   95.94693,
   96.02597,
   93.3635,
   84.56484,
   65.95871,
   42.11706};
   Double_t Graph2_felx3023[10] = {
   0.2,
   0.25,
   0.25,
   0.25,
   0.25,
   0.25,
   0.25,
   0.25,
   0.25,
   0.2};
   Double_t Graph2_fely3023[10] = {
   8.336985,
   8.261181,
   7.634488,
   6.438496,
   6.661149,
   6.164321,
   6.1019,
   4.954787,
   4.773841,
   2.599375};
   Double_t Graph2_fehx3023[10] = {
   0.2,
   0.25,
   0.25,
   0.25,
   0.25,
   0.25,
   0.25,
   0.25,
   0.25,
   0.2};
   Double_t Graph2_fehy3023[10] = {
   8.262572,
   7.14746,
   6.62492,
   6.725295,
   5.946212,
   5.838684,
   5.077774,
   5.257491,
   3.443198,
   2.602454};
   grae = new TGraphAsymmErrors(10,Graph2_fx3023,Graph2_fy3023,Graph2_felx3023,Graph2_fehx3023,Graph2_fely3023,Graph2_fehy3023);
   grae->SetName("Graph2");
   grae->SetTitle("Graph");

   ci = TColor::GetColor("#009900");
   grae->SetFillColor(ci);
   grae->SetFillStyle(3375);

   ci = TColor::GetColor("#009900");
   grae->SetLineColor(ci);
   grae->SetLineStyle(7);
   grae->SetLineWidth(4);
   grae->SetMarkerStyle(20);
   
   TH1F *Graph_Graph3023 = new TH1F("Graph_Graph3023","Graph",100,-2.88,2.88);
   Graph_Graph3023->SetMinimum(33.22782);
   Graph_Graph3023->SetMaximum(108.7062);
   Graph_Graph3023->SetDirectory(0);
   Graph_Graph3023->SetStats(0);
   Graph_Graph3023->SetLineStyle(0);
   Graph_Graph3023->SetMarkerStyle(20);
   Graph_Graph3023->GetXaxis()->SetLabelFont(42);
   Graph_Graph3023->GetXaxis()->SetLabelOffset(0.007);
   Graph_Graph3023->GetXaxis()->SetLabelSize(0.05);
   Graph_Graph3023->GetXaxis()->SetTitleSize(0.06);
   Graph_Graph3023->GetXaxis()->SetTitleOffset(1.1);
   Graph_Graph3023->GetXaxis()->SetTitleFont(42);
   Graph_Graph3023->GetYaxis()->SetLabelFont(42);
   Graph_Graph3023->GetYaxis()->SetLabelOffset(0.007);
   Graph_Graph3023->GetYaxis()->SetLabelSize(0.05);
   Graph_Graph3023->GetYaxis()->SetTitleSize(0.06);
   Graph_Graph3023->GetYaxis()->SetTitleOffset(1.5);
   Graph_Graph3023->GetYaxis()->SetTitleFont(42);
   Graph_Graph3023->GetZaxis()->SetLabelFont(42);
   Graph_Graph3023->GetZaxis()->SetLabelOffset(0.007);
   Graph_Graph3023->GetZaxis()->SetLabelSize(0.05);
   Graph_Graph3023->GetZaxis()->SetTitleSize(0.06);
   Graph_Graph3023->GetZaxis()->SetTitleFont(42);
   grae->SetHistogram(Graph_Graph3023);
   
   grae->Draw("2");
   
   Double_t Graph3_fx3024[10] = {
   2.2,
   1.75,
   1.25,
   0.75,
   0.25,
   -0.25,
   -0.75,
   -1.25,
   -1.75,
   -2.2};
   Double_t Graph3_fy3024[10] = {
   91.59545,
   95.26883,
   95.65156,
   95.47892,
   95.94693,
   96.02597,
   93.3635,
   84.56484,
   65.95871,
   42.11706};
   Double_t Graph3_felx3024[10] = {
   0.2,
   0.25,
   0.25,
   0.25,
   0.25,
   0.25,
   0.25,
   0.25,
   0.25,
   0.2};
   Double_t Graph3_fely3024[10] = {
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0};
   Double_t Graph3_fehx3024[10] = {
   0.2,
   0.25,
   0.25,
   0.25,
   0.25,
   0.25,
   0.25,
   0.25,
   0.25,
   0.2};
   Double_t Graph3_fehy3024[10] = {
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0};
   grae = new TGraphAsymmErrors(10,Graph3_fx3024,Graph3_fy3024,Graph3_felx3024,Graph3_fehx3024,Graph3_fely3024,Graph3_fehy3024);
   grae->SetName("Graph3");
   grae->SetTitle("Graph");

   ci = TColor::GetColor("#009900");
   grae->SetFillColor(ci);
   grae->SetFillStyle(3375);

   ci = TColor::GetColor("#009900");
   grae->SetLineColor(ci);
   grae->SetLineStyle(7);
   grae->SetLineWidth(4);
   grae->SetMarkerStyle(20);
   grae->Draw("z");
   
   Double_t Graph4_fx1011[10] = {
   2.2,
   1.75,
   1.25,
   0.75,
   0.25,
   -0.25,
   -0.75,
   -1.25,
   -1.75,
   -2.2};
   Double_t Graph4_fy1011[10] = {
   108.0732,
   102.2597,
   100.2246,
   101.796,
   105.3416,
   99.73788,
   98.62062,
   85.94448,
   62.90271,
   44.47931};
   Double_t Graph4_fex1011[10] = {
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0};
   Double_t Graph4_fey1011[10] = {
   6.667786,
   4.792637,
   3.765295,
   3.224798,
   3.479167,
   3.377478,
   3.07273,
   3.40604,
   2.800731,
   2.87761};
   TGraphErrors *gre = new TGraphErrors(10,Graph4_fx1011,Graph4_fy1011,Graph4_fex1011,Graph4_fey1011);
   gre->SetName("Graph4");
   gre->SetTitle("Graph");
   gre->SetFillColor(1);
   gre->SetFillStyle(0);
   gre->SetLineWidth(2);
   gre->SetMarkerStyle(20);
   gre->Draw("||");
   
   Double_t gyieldsp_exp_statonly_1_fx1012[10] = {
   2.2,
   1.75,
   1.25,
   0.75,
   0.25,
   -0.25,
   -0.75,
   -1.25,
   -1.75,
   -2.2};
   Double_t gyieldsp_exp_statonly_1_fy1012[10] = {
   108.0732,
   102.2597,
   100.2246,
   101.796,
   105.3416,
   99.73788,
   98.62062,
   85.94448,
   62.90271,
   44.47931};
   Double_t gyieldsp_exp_statonly_1_fex1012[10] = {
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0};
   Double_t gyieldsp_exp_statonly_1_fey1012[10] = {
   2.814265,
   2.293805,
   2.181326,
   2.056934,
   2.054972,
   2.059018,
   2.050204,
   2.01317,
   1.754638,
   1.667829};
   gre = new TGraphErrors(10,gyieldsp_exp_statonly_1_fx1012,gyieldsp_exp_statonly_1_fy1012,gyieldsp_exp_statonly_1_fex1012,gyieldsp_exp_statonly_1_fey1012);
   gre->SetName("gyieldsp_exp_statonly_1");
   gre->SetTitle("Graph");
   gre->SetFillColor(1);
   gre->SetLineWidth(2);
   gre->SetMarkerStyle(20);
   gre->SetMarkerSize(1.2);
   
   TH1F *Graph_gyieldsp_exp_statonly_11012 = new TH1F("Graph_gyieldsp_exp_statonly_11012","Graph",100,-2.64,2.64);
   Graph_gyieldsp_exp_statonly_11012->SetMinimum(36.00388);
   Graph_gyieldsp_exp_statonly_11012->SetMaximum(117.6951);
   Graph_gyieldsp_exp_statonly_11012->SetDirectory(0);
   Graph_gyieldsp_exp_statonly_11012->SetStats(0);
   Graph_gyieldsp_exp_statonly_11012->SetLineStyle(0);
   Graph_gyieldsp_exp_statonly_11012->SetMarkerStyle(20);
   Graph_gyieldsp_exp_statonly_11012->GetXaxis()->SetLabelFont(42);
   Graph_gyieldsp_exp_statonly_11012->GetXaxis()->SetLabelOffset(0.007);
   Graph_gyieldsp_exp_statonly_11012->GetXaxis()->SetLabelSize(0.05);
   Graph_gyieldsp_exp_statonly_11012->GetXaxis()->SetTitleSize(0.06);
   Graph_gyieldsp_exp_statonly_11012->GetXaxis()->SetTitleOffset(1.1);
   Graph_gyieldsp_exp_statonly_11012->GetXaxis()->SetTitleFont(42);
   Graph_gyieldsp_exp_statonly_11012->GetYaxis()->SetLabelFont(42);
   Graph_gyieldsp_exp_statonly_11012->GetYaxis()->SetLabelOffset(0.007);
   Graph_gyieldsp_exp_statonly_11012->GetYaxis()->SetLabelSize(0.05);
   Graph_gyieldsp_exp_statonly_11012->GetYaxis()->SetTitleSize(0.06);
   Graph_gyieldsp_exp_statonly_11012->GetYaxis()->SetTitleOffset(1.5);
   Graph_gyieldsp_exp_statonly_11012->GetYaxis()->SetTitleFont(42);
   Graph_gyieldsp_exp_statonly_11012->GetZaxis()->SetLabelFont(42);
   Graph_gyieldsp_exp_statonly_11012->GetZaxis()->SetLabelOffset(0.007);
   Graph_gyieldsp_exp_statonly_11012->GetZaxis()->SetLabelSize(0.05);
   Graph_gyieldsp_exp_statonly_11012->GetZaxis()->SetTitleSize(0.06);
   Graph_gyieldsp_exp_statonly_11012->GetZaxis()->SetTitleFont(42);
   gre->SetHistogram(Graph_gyieldsp_exp_statonly_11012);
   
   gre->Draw("pz");
   
   TLegend *leg = new TLegend(0.6,0.1,0.9,0.3142857,NULL,"brNDC");
   leg->SetBorderSize(0);
   leg->SetTextSize(0.05714286);
   leg->SetLineColor(1);
   leg->SetLineStyle(1);
   leg->SetLineWidth(1);
   leg->SetFillColor(0);
   leg->SetFillStyle(1001);
   TLegendEntry *entry=leg->AddEntry("Graph4","Data","p");
   entry->SetLineColor(1);
   entry->SetLineStyle(1);
   entry->SetLineWidth(1);
   entry->SetMarkerColor(1);
   entry->SetMarkerStyle(20);
   entry->SetMarkerSize(1);
   entry->SetTextFont(42);
   entry=leg->AddEntry("Graph0","CT10","lf");

   ci = TColor::GetColor("#ffff00");
   entry->SetFillColor(ci);
   entry->SetFillStyle(1001);

   ci = TColor::GetColor("#ff0000");
   entry->SetLineColor(ci);
   entry->SetLineStyle(1);
   entry->SetLineWidth(4);
   entry->SetMarkerColor(1);
   entry->SetMarkerStyle(21);
   entry->SetMarkerSize(1);
   entry->SetTextFont(42);
   entry=leg->AddEntry("Graph2","CT10+EPS09","lf");

   ci = TColor::GetColor("#009900");
   entry->SetFillColor(ci);
   entry->SetFillStyle(3375);

   ci = TColor::GetColor("#009900");
   entry->SetLineColor(ci);
   entry->SetLineStyle(7);
   entry->SetLineWidth(4);
   entry->SetMarkerColor(1);
   entry->SetMarkerStyle(21);
   entry->SetMarkerSize(1);
   entry->SetTextFont(42);
   leg->Draw();
   
   TPaveText *pt = new TPaveText(-2.35,125,-0.35,140,"br");
   pt->SetBorderSize(0);
   pt->SetFillColor(0);
   pt->SetFillStyle(0);
   pt->SetTextAlign(13);
   pt->SetTextFont(42);
   pt->SetTextSize(0.05714286);
   TText *AText = pt->AddText("Luminosity uncertainty: 3.5%");
   pt->Draw();
   
   pt = new TPaveText(0.27,0.2,0.5,0.3428571,"brNDC");
   pt->SetBorderSize(0);
   pt->SetFillColor(0);
   pt->SetFillStyle(0);
   pt->SetTextAlign(13);
   pt->SetTextFont(42);
   pt->SetTextSize(0.05714286);
   AText = pt->AddText("W^{+} #rightarrow #font[12]{l}^{+} + #nu");
   AText = pt->AddText("p_{T}^{#font[12]{l}} > 25 GeV/c");
   pt->Draw();
      tex = new TLatex(0.96,0.9177143," #sqrt{s_{NN}} = 5.02 TeV");
tex->SetNDC();
   tex->SetTextAlign(31);
   tex->SetTextFont(42);
   tex->SetTextSize(0.05714286);
   tex->SetLineWidth(2);
   tex->Draw();
      tex = new TLatex(0.16,0.9177143,"pPb 34.6 nb^{-1}");
tex->SetNDC();
   tex->SetTextFont(42);
   tex->SetTextSize(0.05714286);
   tex->SetLineWidth(2);
   tex->Draw();
      tex = new TLatex(0.924,0.8476571,"CMS");
tex->SetNDC();
   tex->SetTextAlign(33);
   tex->SetTextFont(61);
   tex->SetTextSize(0.06857143);
   tex->SetLineWidth(2);
   tex->Draw();
   
   TH1F *Graph_copy = new TH1F("Graph_copy","Graph",100,-2.5,2.5);
   Graph_copy->SetMinimum(0);
   Graph_copy->SetMaximum(140);
   Graph_copy->SetDirectory(0);
   Graph_copy->SetStats(0);
   Graph_copy->SetLineStyle(0);
   Graph_copy->SetMarkerStyle(20);
   Graph_copy->GetXaxis()->SetNdivisions(505);
   Graph_copy->GetXaxis()->SetLabelFont(42);
   Graph_copy->GetXaxis()->SetLabelOffset(0.007);
   Graph_copy->GetXaxis()->SetLabelSize(0);
   Graph_copy->GetXaxis()->SetTitleSize(0.07142857);
   Graph_copy->GetXaxis()->SetTitleOffset(1.1);
   Graph_copy->GetXaxis()->SetTitleFont(42);
   Graph_copy->GetYaxis()->SetTitle("d#sigma (W^{+}#rightarrow#font[12]{l}^{+}#nu) / d#eta_{lab} [nb]");
   Graph_copy->GetYaxis()->SetLabelFont(42);
   Graph_copy->GetYaxis()->SetLabelOffset(0.007);
   Graph_copy->GetYaxis()->SetLabelSize(0.07142857);
   Graph_copy->GetYaxis()->SetTitleSize(0.07142857);
   Graph_copy->GetYaxis()->SetTitleOffset(1.05);
   Graph_copy->GetYaxis()->SetTitleFont(42);
   Graph_copy->GetZaxis()->SetLabelFont(42);
   Graph_copy->GetZaxis()->SetLabelOffset(0.007);
   Graph_copy->GetZaxis()->SetLabelSize(0.05);
   Graph_copy->GetZaxis()->SetTitleSize(0.06);
   Graph_copy->GetZaxis()->SetTitleFont(42);
   Graph_copy->Draw("sameaxis");
   pad1->Modified();
   c1->cd();
  
// ------------>Primitives in pad: pad2
   TPad *pad2 = new TPad("pad2", "pad2",0,0,1,0.288);
   pad2->Draw();
   pad2->cd();
   pad2->Range(-3.5,0.35,2.75,1.35);
   pad2->SetFillColor(0);
   pad2->SetFillStyle(4000);
   pad2->SetBorderMode(0);
   pad2->SetBorderSize(2);
   pad2->SetTickx(1);
   pad2->SetTicky(1);
   pad2->SetLeftMargin(0.16);
   pad2->SetRightMargin(0.04);
   pad2->SetTopMargin(0);
   pad2->SetBottomMargin(0.4);
   pad2->SetFrameFillStyle(4000);
   pad2->SetFrameBorderMode(0);
   pad2->SetFrameFillStyle(4000);
   pad2->SetFrameBorderMode(0);
   
   TH1F *Graph = new TH1F("Graph","Graph",100,-2.5,2.5);
   Graph->SetMinimum(0.75);
   Graph->SetMaximum(1.35);
   Graph->SetDirectory(0);
   Graph->SetStats(0);
   Graph->SetLineStyle(0);
   Graph->SetMarkerStyle(20);
   Graph->GetXaxis()->SetTitle("#eta_{lab}");
   Graph->GetXaxis()->SetNdivisions(505);
   Graph->GetXaxis()->SetLabelFont(42);
   Graph->GetXaxis()->SetLabelOffset(0.007);
   Graph->GetXaxis()->SetLabelSize(0.1666667);
   Graph->GetXaxis()->SetTitleSize(0.1666667);
   Graph->GetXaxis()->SetTitleOffset(1.1);
   Graph->GetXaxis()->SetTitleFont(42);
   Graph->GetYaxis()->SetTitle("Ratio ");
   Graph->GetYaxis()->SetNdivisions(503);
   Graph->GetYaxis()->SetLabelFont(42);
   Graph->GetYaxis()->SetLabelOffset(0.007);
   Graph->GetYaxis()->SetLabelSize(0.1666667);
   Graph->GetYaxis()->SetTitleSize(0.1666667);
   Graph->GetYaxis()->SetTitleOffset(0.45);
   Graph->GetYaxis()->SetTitleFont(42);
   Graph->GetZaxis()->SetLabelFont(42);
   Graph->GetZaxis()->SetLabelOffset(0.007);
   Graph->GetZaxis()->SetLabelSize(0.05);
   Graph->GetZaxis()->SetTitleSize(0.06);
   Graph->GetZaxis()->SetTitleFont(42);
   Graph->Draw("");
   
   Double_t Graph0_fx1013[10] = {
   2.2,
   1.75,
   1.25,
   0.75,
   0.25,
   -0.25,
   -0.75,
   -1.25,
   -1.75,
   -2.2};
   Double_t Graph0_fy1013[10] = {
   1,
   1,
   1,
   1,
   1,
   1,
   1,
   1,
   1,
   1};
   Double_t Graph0_fex1013[10] = {
   0.2,
   0.25,
   0.25,
   0.25,
   0.25,
   0.25,
   0.25,
   0.25,
   0.25,
   0.2};
   Double_t Graph0_fey1013[10] = {
   0.0644708,
   0.06365122,
   0.06354681,
   0.06481966,
   0.06320752,
   0.0622177,
   0.05991862,
   0.05949606,
   0.06001632,
   0.06142499};
   gre = new TGraphErrors(10,Graph0_fx1013,Graph0_fy1013,Graph0_fex1013,Graph0_fey1013);
   gre->SetName("Graph0");
   gre->SetTitle("Graph");

   ci = TColor::GetColor("#ffff00");
   gre->SetFillColor(ci);

   ci = TColor::GetColor("#ff0000");
   gre->SetLineColor(ci);
   gre->SetLineWidth(4);
   gre->SetMarkerStyle(20);
   gre->SetMarkerSize(0);
   
   TH1F *Graph_Graph1013 = new TH1F("Graph_Graph1013","Graph",100,-2.88,2.88);
   Graph_Graph1013->SetMinimum(0.9222164);
   Graph_Graph1013->SetMaximum(1.077784);
   Graph_Graph1013->SetDirectory(0);
   Graph_Graph1013->SetStats(0);
   Graph_Graph1013->SetLineStyle(0);
   Graph_Graph1013->SetMarkerStyle(20);
   Graph_Graph1013->GetXaxis()->SetLabelFont(42);
   Graph_Graph1013->GetXaxis()->SetLabelOffset(0.007);
   Graph_Graph1013->GetXaxis()->SetLabelSize(0.05);
   Graph_Graph1013->GetXaxis()->SetTitleSize(0.06);
   Graph_Graph1013->GetXaxis()->SetTitleOffset(1.1);
   Graph_Graph1013->GetXaxis()->SetTitleFont(42);
   Graph_Graph1013->GetYaxis()->SetLabelFont(42);
   Graph_Graph1013->GetYaxis()->SetLabelOffset(0.007);
   Graph_Graph1013->GetYaxis()->SetLabelSize(0.05);
   Graph_Graph1013->GetYaxis()->SetTitleSize(0.06);
   Graph_Graph1013->GetYaxis()->SetTitleOffset(1.5);
   Graph_Graph1013->GetYaxis()->SetTitleFont(42);
   Graph_Graph1013->GetZaxis()->SetLabelFont(42);
   Graph_Graph1013->GetZaxis()->SetLabelOffset(0.007);
   Graph_Graph1013->GetZaxis()->SetLabelSize(0.05);
   Graph_Graph1013->GetZaxis()->SetTitleSize(0.06);
   Graph_Graph1013->GetZaxis()->SetTitleFont(42);
   gre->SetHistogram(Graph_Graph1013);
   
   gre->Draw("2");
   
   Double_t Graph1_fx1014[10] = {
   2.2,
   1.75,
   1.25,
   0.75,
   0.25,
   -0.25,
   -0.75,
   -1.25,
   -1.75,
   -2.2};
   Double_t Graph1_fy1014[10] = {
   1,
   1,
   1,
   1,
   1,
   1,
   1,
   1,
   1,
   1};
   Double_t Graph1_fex1014[10] = {
   0.2,
   0.25,
   0.25,
   0.25,
   0.25,
   0.25,
   0.25,
   0.25,
   0.25,
   0.2};
   Double_t Graph1_fey1014[10] = {
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0};
   gre = new TGraphErrors(10,Graph1_fx1014,Graph1_fy1014,Graph1_fex1014,Graph1_fey1014);
   gre->SetName("Graph1");
   gre->SetTitle("Graph");

   ci = TColor::GetColor("#ffff00");
   gre->SetFillColor(ci);

   ci = TColor::GetColor("#ff0000");
   gre->SetLineColor(ci);
   gre->SetLineWidth(4);
   gre->SetMarkerStyle(20);
   gre->SetMarkerSize(0);
   gre->Draw("z");
   
   Double_t Graph2_fx1015[10] = {
   2.2,
   1.75,
   1.25,
   0.75,
   0.25,
   -0.25,
   -0.75,
   -1.25,
   -1.75,
   -2.2};
   Double_t Graph2_fy1015[10] = {
   0.8844678,
   0.9009383,
   0.9249909,
   0.9547005,
   0.9887677,
   1.01759,
   1.031104,
   1.025864,
   1.002086,
   0.9697318};
   Double_t Graph2_fex1015[10] = {
   0.2,
   0.25,
   0.25,
   0.25,
   0.25,
   0.25,
   0.25,
   0.25,
   0.25,
   0.2};
   Double_t Graph2_fey1015[10] = {
   0.05296218,
   0.042007,
   0.03326947,
   0.02116912,
   0.0170915,
   0.01890429,
   0.01672622,
   0.01681633,
   0.01541551,
   0.01597539};
   gre = new TGraphErrors(10,Graph2_fx1015,Graph2_fy1015,Graph2_fex1015,Graph2_fey1015);
   gre->SetName("Graph2");
   gre->SetTitle("Graph");

   ci = TColor::GetColor("#009900");
   gre->SetFillColor(ci);
   gre->SetFillStyle(3375);

   ci = TColor::GetColor("#009900");
   gre->SetLineColor(ci);
   gre->SetLineStyle(7);
   gre->SetLineWidth(4);
   gre->SetMarkerStyle(20);
   
   TH1F *Graph_Graph1015 = new TH1F("Graph_Graph1015","Graph",100,-2.88,2.88);
   Graph_Graph1015->SetMinimum(0.8098732);
   Graph_Graph1015->SetMaximum(1.069463);
   Graph_Graph1015->SetDirectory(0);
   Graph_Graph1015->SetStats(0);
   Graph_Graph1015->SetLineStyle(0);
   Graph_Graph1015->SetMarkerStyle(20);
   Graph_Graph1015->GetXaxis()->SetLabelFont(42);
   Graph_Graph1015->GetXaxis()->SetLabelOffset(0.007);
   Graph_Graph1015->GetXaxis()->SetLabelSize(0.05);
   Graph_Graph1015->GetXaxis()->SetTitleSize(0.06);
   Graph_Graph1015->GetXaxis()->SetTitleOffset(1.1);
   Graph_Graph1015->GetXaxis()->SetTitleFont(42);
   Graph_Graph1015->GetYaxis()->SetLabelFont(42);
   Graph_Graph1015->GetYaxis()->SetLabelOffset(0.007);
   Graph_Graph1015->GetYaxis()->SetLabelSize(0.05);
   Graph_Graph1015->GetYaxis()->SetTitleSize(0.06);
   Graph_Graph1015->GetYaxis()->SetTitleOffset(1.5);
   Graph_Graph1015->GetYaxis()->SetTitleFont(42);
   Graph_Graph1015->GetZaxis()->SetLabelFont(42);
   Graph_Graph1015->GetZaxis()->SetLabelOffset(0.007);
   Graph_Graph1015->GetZaxis()->SetLabelSize(0.05);
   Graph_Graph1015->GetZaxis()->SetTitleSize(0.06);
   Graph_Graph1015->GetZaxis()->SetTitleFont(42);
   gre->SetHistogram(Graph_Graph1015);
   
   gre->Draw("2");
   
   Double_t Graph3_fx1016[10] = {
   2.2,
   1.75,
   1.25,
   0.75,
   0.25,
   -0.25,
   -0.75,
   -1.25,
   -1.75,
   -2.2};
   Double_t Graph3_fy1016[10] = {
   0.8844678,
   0.9009383,
   0.9249909,
   0.9547005,
   0.9887677,
   1.01759,
   1.031104,
   1.025864,
   1.002086,
   0.9697318};
   Double_t Graph3_fex1016[10] = {
   0.2,
   0.25,
   0.25,
   0.25,
   0.25,
   0.25,
   0.25,
   0.25,
   0.25,
   0.2};
   Double_t Graph3_fey1016[10] = {
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0};
   gre = new TGraphErrors(10,Graph3_fx1016,Graph3_fy1016,Graph3_fex1016,Graph3_fey1016);
   gre->SetName("Graph3");
   gre->SetTitle("Graph");

   ci = TColor::GetColor("#009900");
   gre->SetFillColor(ci);
   gre->SetFillStyle(3375);

   ci = TColor::GetColor("#009900");
   gre->SetLineColor(ci);
   gre->SetLineStyle(7);
   gre->SetLineWidth(4);
   gre->SetMarkerStyle(20);
   gre->Draw("z");
   
   Double_t Graph4_fx1017[10] = {
   2.2,
   1.75,
   1.25,
   0.75,
   0.25,
   -0.25,
   -0.75,
   -1.25,
   -1.75,
   -2.2};
   Double_t Graph4_fy1017[10] = {
   1.043581,
   0.9670498,
   0.9692137,
   1.017865,
   1.085583,
   1.056925,
   1.089164,
   1.042601,
   0.9556571,
   1.024122};
   Double_t Graph4_fex1017[10] = {
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0};
   Double_t Graph4_fey1017[10] = {
   0.06438575,
   0.04532301,
   0.03641199,
   0.03224499,
   0.03585407,
   0.03579123,
   0.03393516,
   0.041319,
   0.04255045,
   0.06625605};
   gre = new TGraphErrors(10,Graph4_fx1017,Graph4_fy1017,Graph4_fex1017,Graph4_fey1017);
   gre->SetName("Graph4");
   gre->SetTitle("Graph");
   gre->SetFillColor(1);
   gre->SetFillStyle(0);
   gre->SetLineWidth(2);
   gre->SetMarkerStyle(20);
   gre->Draw("||");
   
   Double_t Graph5_fx1018[10] = {
   2.2,
   1.75,
   1.25,
   0.75,
   0.25,
   -0.25,
   -0.75,
   -1.25,
   -1.75,
   -2.2};
   Double_t Graph5_fy1018[10] = {
   1.043581,
   0.9670498,
   0.9692137,
   1.017865,
   1.085583,
   1.056925,
   1.089164,
   1.042601,
   0.9556571,
   1.024122};
   Double_t Graph5_fex1018[10] = {
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0};
   Double_t Graph5_fey1018[10] = {
   0.02717523,
   0.02169205,
   0.02109434,
   0.02056743,
   0.02117723,
   0.02181947,
   0.02264241,
   0.02442196,
   0.02665755,
   0.03840124};
   gre = new TGraphErrors(10,Graph5_fx1018,Graph5_fy1018,Graph5_fex1018,Graph5_fey1018);
   gre->SetName("Graph5");
   gre->SetTitle("Graph");
   gre->SetFillColor(1);
   gre->SetLineWidth(2);
   gre->SetMarkerStyle(20);
   
   TH1F *Graph_Graph1018 = new TH1F("Graph_Graph1018","Graph",100,-2.64,2.64);
   Graph_Graph1018->SetMinimum(0.9107189);
   Graph_Graph1018->SetMaximum(1.130087);
   Graph_Graph1018->SetDirectory(0);
   Graph_Graph1018->SetStats(0);
   Graph_Graph1018->SetLineStyle(0);
   Graph_Graph1018->SetMarkerStyle(20);
   Graph_Graph1018->GetXaxis()->SetLabelFont(42);
   Graph_Graph1018->GetXaxis()->SetLabelOffset(0.007);
   Graph_Graph1018->GetXaxis()->SetLabelSize(0.05);
   Graph_Graph1018->GetXaxis()->SetTitleSize(0.06);
   Graph_Graph1018->GetXaxis()->SetTitleOffset(1.1);
   Graph_Graph1018->GetXaxis()->SetTitleFont(42);
   Graph_Graph1018->GetYaxis()->SetLabelFont(42);
   Graph_Graph1018->GetYaxis()->SetLabelOffset(0.007);
   Graph_Graph1018->GetYaxis()->SetLabelSize(0.05);
   Graph_Graph1018->GetYaxis()->SetTitleSize(0.06);
   Graph_Graph1018->GetYaxis()->SetTitleOffset(1.5);
   Graph_Graph1018->GetYaxis()->SetTitleFont(42);
   Graph_Graph1018->GetZaxis()->SetLabelFont(42);
   Graph_Graph1018->GetZaxis()->SetLabelOffset(0.007);
   Graph_Graph1018->GetZaxis()->SetLabelSize(0.05);
   Graph_Graph1018->GetZaxis()->SetTitleSize(0.06);
   Graph_Graph1018->GetZaxis()->SetTitleFont(42);
   gre->SetHistogram(Graph_Graph1018);
   
   gre->Draw("pz");
   
   TH1F *Graph_copy = new TH1F("Graph_copy","Graph",100,-2.5,2.5);
   Graph_copy->SetMinimum(0.75);
   Graph_copy->SetMaximum(1.35);
   Graph_copy->SetDirectory(0);
   Graph_copy->SetStats(0);
   Graph_copy->SetLineStyle(0);
   Graph_copy->SetMarkerStyle(20);
   Graph_copy->GetXaxis()->SetTitle("#eta_{lab}");
   Graph_copy->GetXaxis()->SetNdivisions(505);
   Graph_copy->GetXaxis()->SetLabelFont(42);
   Graph_copy->GetXaxis()->SetLabelOffset(0.007);
   Graph_copy->GetXaxis()->SetLabelSize(0.1666667);
   Graph_copy->GetXaxis()->SetTitleSize(0.1666667);
   Graph_copy->GetXaxis()->SetTitleOffset(1.1);
   Graph_copy->GetXaxis()->SetTitleFont(42);
   Graph_copy->GetYaxis()->SetTitle("Ratio ");
   Graph_copy->GetYaxis()->SetNdivisions(503);
   Graph_copy->GetYaxis()->SetLabelFont(42);
   Graph_copy->GetYaxis()->SetLabelOffset(0.007);
   Graph_copy->GetYaxis()->SetLabelSize(0.1666667);
   Graph_copy->GetYaxis()->SetTitleSize(0.1666667);
   Graph_copy->GetYaxis()->SetTitleOffset(0.45);
   Graph_copy->GetYaxis()->SetTitleFont(42);
   Graph_copy->GetZaxis()->SetLabelFont(42);
   Graph_copy->GetZaxis()->SetLabelOffset(0.007);
   Graph_copy->GetZaxis()->SetLabelSize(0.05);
   Graph_copy->GetZaxis()->SetTitleSize(0.06);
   Graph_copy->GetZaxis()->SetTitleFont(42);
   Graph_copy->Draw("sameaxis");
   pad2->Modified();
   c1->cd();
   c1->Modified();
   c1->cd();
   c1->SetSelected(c1);
}
void BSA_InCoherent_xB()
{
//=========Macro generated from canvas: c16/Incoherent channe
//=========  (Tue Aug 21 12:00:25 2018) by ROOT version6.09/01
   TCanvas *c16 = new TCanvas("c16", "Incoherent channe",0,0,1200,400);
   gStyle->SetOptFit(1);
   c16->Range(0,0,1,1);
   c16->SetFillColor(0);
   c16->SetBorderMode(0);
   c16->SetBorderSize(2);
   c16->SetLeftMargin(0.025);
   c16->SetRightMargin(0.02325581);
   c16->SetFrameBorderMode(0);
  
// ------------>Primitives in pad: c16_1
   TPad *c16_1 = new TPad("c16_1", "Incoherent channe_1",0,0,0.262936,0.9);
   c16_1->Draw();
   c16_1->cd();
   c16_1->Range(-29.34641,-0.4888889,350.2581,0.4);
   c16_1->SetFillColor(0);
   c16_1->SetBorderMode(0);
   c16_1->SetBorderSize(2);
   c16_1->SetGridx();
   c16_1->SetGridy();
   c16_1->SetRightMargin(0);
   c16_1->SetTopMargin(0);
   c16_1->SetFrameBorderMode(0);
   c16_1->SetFrameBorderMode(0);
   
   TMultiGraph *multigraph = new TMultiGraph();
   multigraph->SetName("");
   multigraph->SetTitle("0.12<x_{B}<0.21 ");
   
   Double_t Graph_fx1134[9] = {
   24.14331,
   62.70082,
   96.14623,
   141.7289,
   180.8857,
   220.5862,
   258.7856,
   303.3336,
   334.7288};
   Double_t Graph_fy1134[9] = {
   0.1330996,
   -0.03883743,
   0.1388413,
   0.2120595,
   0.03749243,
   -0.09129921,
   -0.1273289,
   -0.1643618,
   0.03103783};
   Double_t Graph_fex1134[9] = {
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0};
   Double_t Graph_fey1134[9] = {
   0.07077824,
   0.06445297,
   0.05939535,
   0.06833722,
   0.08559024,
   0.08401363,
   0.06136237,
   0.05845869,
   0.08718727};
   TGraphErrors *gre = new TGraphErrors(9,Graph_fx1134,Graph_fy1134,Graph_fex1134,Graph_fey1134);
   gre->SetName("Graph");
   gre->SetTitle("Graph");
   gre->SetFillColor(1);

   Int_t ci;      // for color index setting
   TColor *color; // for color definition with alpha
   ci = TColor::GetColor("#00ff00");
   gre->SetMarkerColor(ci);
   gre->SetMarkerStyle(21);
   
   TH1F *Graph_Graph1134 = new TH1F("Graph_Graph1134","Graph",100,0,365.7873);
   Graph_Graph1134->SetMinimum(-0.2731422);
   Graph_Graph1134->SetMaximum(0.3307184);
   Graph_Graph1134->SetDirectory(0);
   Graph_Graph1134->SetStats(0);

   ci = TColor::GetColor("#000099");
   Graph_Graph1134->SetLineColor(ci);
   Graph_Graph1134->GetXaxis()->SetLabelFont(42);
   Graph_Graph1134->GetXaxis()->SetLabelSize(0.035);
   Graph_Graph1134->GetXaxis()->SetTitleSize(0.035);
   Graph_Graph1134->GetXaxis()->SetTitleFont(42);
   Graph_Graph1134->GetYaxis()->SetLabelFont(42);
   Graph_Graph1134->GetYaxis()->SetLabelSize(0.035);
   Graph_Graph1134->GetYaxis()->SetTitleSize(0.035);
   Graph_Graph1134->GetYaxis()->SetTitleFont(42);
   Graph_Graph1134->GetZaxis()->SetLabelFont(42);
   Graph_Graph1134->GetZaxis()->SetLabelSize(0.035);
   Graph_Graph1134->GetZaxis()->SetTitleSize(0.035);
   Graph_Graph1134->GetZaxis()->SetTitleFont(42);
   gre->SetHistogram(Graph_Graph1134);
   
   
   TF1 *myfit1135 = new TF1("myfit","[0]*sin(x*3.1416/180.0)/(1 + [1]*cos(x*3.1416/180.0))",0,365.7873);
   myfit1135->SetFillColor(19);
   myfit1135->SetFillStyle(0);
   myfit1135->SetLineColor(2);
   myfit1135->SetLineWidth(2);
   myfit1135->SetChisquare(10.13595);
   myfit1135->SetNDF(7);
   myfit1135->GetXaxis()->SetLabelFont(42);
   myfit1135->GetXaxis()->SetLabelSize(0.035);
   myfit1135->GetXaxis()->SetTitleSize(0.035);
   myfit1135->GetXaxis()->SetTitleFont(42);
   myfit1135->GetYaxis()->SetLabelFont(42);
   myfit1135->GetYaxis()->SetLabelSize(0.035);
   myfit1135->GetYaxis()->SetTitleSize(0.035);
   myfit1135->GetYaxis()->SetTitleFont(42);
   myfit1135->SetParameter(0,0.1205343);
   myfit1135->SetParError(0,0.03387604);
   myfit1135->SetParLimits(0,0,0);
   myfit1135->SetParameter(1,0.6858633);
   myfit1135->SetParError(1,0.2646153);
   myfit1135->SetParLimits(1,0,0);
   gre->GetListOfFunctions()->Add(myfit1135);
   
   TPaveStats *ptstats = new TPaveStats(0.27,0.74,0.9,0.9,"brNDC");
   ptstats->SetName("stats");
   ptstats->SetBorderSize(1);
   ptstats->SetFillColor(0);
   ptstats->SetTextAlign(12);
   ptstats->SetTextFont(42);
   TText *AText = ptstats->AddText("#chi^{2} / ndf = 10.14 / 7");
   AText = ptstats->AddText("p0       = 0.1205 #pm 0.03388 ");
   AText = ptstats->AddText("p1       = 0.6859 #pm 0.2646 ");
   ptstats->SetOptStat(0);
   ptstats->SetOptFit(111);
   ptstats->Draw();
   gre->GetListOfFunctions()->Add(ptstats);
   ptstats->SetParent(gre->GetListOfFunctions());
   multigraph->Add(gre,"");
   multigraph->Draw("AP");
   multigraph->GetXaxis()->SetTitle("#phi [deg.]");
   multigraph->GetXaxis()->SetLabelFont(42);
   multigraph->GetXaxis()->SetLabelSize(0.035);
   multigraph->GetXaxis()->SetTitleSize(0.035);
   multigraph->GetXaxis()->SetTitleFont(42);
   multigraph->GetYaxis()->SetTitle("A_{LU}");
   multigraph->GetYaxis()->SetLabelFont(42);
   multigraph->GetYaxis()->SetLabelSize(0.035);
   multigraph->GetYaxis()->SetTitleSize(0.035);
   multigraph->GetYaxis()->SetTitleFont(42);
     gPad->Modified();  
   multigraph->GetYaxis()->SetRangeUser(-0.35, 0.35);  




   c16_1->Modified();
   c16->cd();
  
// ------------>Primitives in pad: c16_2
   TPad *c16_2 = new TPad("c16_2", "Incoherent channe_2",0.262936,0,0.5008721,0.9);
   c16_2->Draw();
   c16_2->cd();
   c16_2->Range(5.85529,-0.4888889,352.0975,0.4);
   c16_2->SetFillColor(0);
   c16_2->SetBorderMode(0);
   c16_2->SetBorderSize(2);
   c16_2->SetGridx();
   c16_2->SetGridy();
   c16_2->SetLeftMargin(0);
   c16_2->SetRightMargin(0);
   c16_2->SetTopMargin(0);
   c16_2->SetFrameBorderMode(0);
   c16_2->SetFrameBorderMode(0);
   
   multigraph = new TMultiGraph();
   multigraph->SetName("");
   multigraph->SetTitle("0.21<x_{B}<0.31 ");
   
   Double_t Graph_fx1137[9] = {
   21.59357,
   60.08662,
   95.00395,
   140.4897,
   181.0443,
   224.9978,
   260.1264,
   302.891,
   336.3592};
   Double_t Graph_fy1137[9] = {
   0.0984356,
   0.1891659,
   0.2419886,
   0.08897874,
   0.2077051,
   -0.3071227,
   -0.1933684,
   -0.2875592,
   -0.08265727};
   Double_t Graph_fex1137[9] = {
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0};
   Double_t Graph_fey1137[9] = {
   0.04446748,
   0.058618,
   0.06898028,
   0.1082398,
   0.135301,
   0.1152745,
   0.0716065,
   0.04680018,
   0.05547391};
   gre = new TGraphErrors(9,Graph_fx1137,Graph_fy1137,Graph_fex1137,Graph_fey1137);
   gre->SetName("Graph");
   gre->SetTitle("Graph");
   gre->SetFillColor(1);

   ci = TColor::GetColor("#00ff00");
   gre->SetMarkerColor(ci);
   gre->SetMarkerStyle(21);
   
   TH1F *Graph_Graph1137 = new TH1F("Graph_Graph1137","Graph",100,0,367.8358);
   Graph_Graph1137->SetMinimum(-0.4989376);
   Graph_Graph1137->SetMaximum(0.4195464);
   Graph_Graph1137->SetDirectory(0);
   Graph_Graph1137->SetStats(0);

   ci = TColor::GetColor("#000099");
   Graph_Graph1137->SetLineColor(ci);
   Graph_Graph1137->GetXaxis()->SetLabelFont(42);
   Graph_Graph1137->GetXaxis()->SetLabelSize(0.035);
   Graph_Graph1137->GetXaxis()->SetTitleSize(0.035);
   Graph_Graph1137->GetXaxis()->SetTitleFont(42);
   Graph_Graph1137->GetYaxis()->SetLabelFont(42);
   Graph_Graph1137->GetYaxis()->SetLabelSize(0.035);
   Graph_Graph1137->GetYaxis()->SetTitleSize(0.035);
   Graph_Graph1137->GetYaxis()->SetTitleFont(42);
   Graph_Graph1137->GetZaxis()->SetLabelFont(42);
   Graph_Graph1137->GetZaxis()->SetLabelSize(0.035);
   Graph_Graph1137->GetZaxis()->SetTitleSize(0.035);
   Graph_Graph1137->GetZaxis()->SetTitleFont(42);
   gre->SetHistogram(Graph_Graph1137);
   
   
   TF1 *myfit1138 = new TF1("myfit","[0]*sin(x*3.1416/180.0)/(1 + [1]*cos(x*3.1416/180.0))",0,367.8358);
   myfit1138->SetFillColor(19);
   myfit1138->SetFillStyle(0);
   myfit1138->SetLineColor(2);
   myfit1138->SetLineWidth(2);
   myfit1138->SetChisquare(7.336971);
   myfit1138->SetNDF(7);
   myfit1138->GetXaxis()->SetLabelFont(42);
   myfit1138->GetXaxis()->SetLabelSize(0.035);
   myfit1138->GetXaxis()->SetTitleSize(0.035);
   myfit1138->GetXaxis()->SetTitleFont(42);
   myfit1138->GetYaxis()->SetLabelFont(42);
   myfit1138->GetYaxis()->SetLabelSize(0.035);
   myfit1138->GetYaxis()->SetTitleSize(0.035);
   myfit1138->GetYaxis()->SetTitleFont(42);
   myfit1138->SetParameter(0,0.2508538);
   myfit1138->SetParError(0,0.03583101);
   myfit1138->SetParLimits(0,0,0);
   myfit1138->SetParameter(1,-0.1422748);
   myfit1138->SetParError(1,0.2426713);
   myfit1138->SetParLimits(1,0,0);
   gre->GetListOfFunctions()->Add(myfit1138);
   
   ptstats = new TPaveStats(0.27,0.74,0.9,0.9,"brNDC");
   ptstats->SetName("stats");
   ptstats->SetBorderSize(1);
   ptstats->SetFillColor(0);
   ptstats->SetTextAlign(12);
   ptstats->SetTextFont(42);
   AText = ptstats->AddText("#chi^{2} / ndf = 7.337 / 7");
   AText = ptstats->AddText("p0       = 0.2509 #pm 0.03583 ");
   AText = ptstats->AddText("p1       = -0.1423 #pm 0.2427 ");
   ptstats->SetOptStat(0);
   ptstats->SetOptFit(111);
   ptstats->Draw();
   gre->GetListOfFunctions()->Add(ptstats);
   ptstats->SetParent(gre->GetListOfFunctions());
   multigraph->Add(gre,"");
   multigraph->Draw("AP");
   multigraph->GetXaxis()->SetTitle("#phi [deg.]");
   multigraph->GetXaxis()->SetLabelFont(42);
   multigraph->GetXaxis()->SetLabelSize(0.035);
   multigraph->GetXaxis()->SetTitleSize(0.035);
   multigraph->GetXaxis()->SetTitleFont(42);
   multigraph->GetYaxis()->SetLabelFont(42);
   multigraph->GetYaxis()->SetLabelSize(0.035);
   multigraph->GetYaxis()->SetTitleSize(0.035);
   multigraph->GetYaxis()->SetTitleFont(42);
     gPad->Modified();  
   multigraph->GetYaxis()->SetRangeUser(-0.35, 0.35);  



   c16_2->Modified();
   c16->cd();
  
// ------------>Primitives in pad: c16_3
   TPad *c16_3 = new TPad("c16_3", "Incoherent channe_3",0.5008721,0,0.7388081,0.9);
   c16_3->Draw();
   c16_3->cd();
   c16_3->Range(4.159976,-0.4888889,357.6921,0.4);
   c16_3->SetFillColor(0);
   c16_3->SetBorderMode(0);
   c16_3->SetBorderSize(2);
   c16_3->SetGridx();
   c16_3->SetGridy();
   c16_3->SetLeftMargin(0);
   c16_3->SetRightMargin(0);
   c16_3->SetTopMargin(0);
   c16_3->SetFrameBorderMode(0);
   c16_3->SetFrameBorderMode(0);
   
   multigraph = new TMultiGraph();
   multigraph->SetName("");
   multigraph->SetTitle("0.31<x_{B}<0.39 ");
   
   Double_t Graph_fx1140[9] = {
   20.22962,
   57.37981,
   95.86069,
   135.3486,
   182.9227,
   229.5531,
   263.4275,
   301.2495,
   341.6225};
   Double_t Graph_fy1140[9] = {
   0.09662004,
   0.06965272,
   0.269744,
   -0.170935,
   -0.1509905,
   0.6309487,
   0.06270791,
   -0.2582676,
   -0.152689};
   Double_t Graph_fex1140[9] = {
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0};
   Double_t Graph_fey1140[9] = {
   0.05297617,
   0.09107484,
   0.121636,
   0.2287053,
   0.3066164,
   0.3879093,
   0.1400804,
   0.07623737,
   0.06739512};
   gre = new TGraphErrors(9,Graph_fx1140,Graph_fy1140,Graph_fex1140,Graph_fey1140);
   gre->SetName("Graph");
   gre->SetTitle("Graph");
   gre->SetFillColor(1);

   ci = TColor::GetColor("#00ff00");
   gre->SetMarkerColor(ci);
   gre->SetMarkerStyle(21);
   
   TH1F *Graph_Graph1140 = new TH1F("Graph_Graph1140","Graph",100,0,373.7618);
   Graph_Graph1140->SetMinimum(-0.6052533);
   Graph_Graph1140->SetMaximum(1.166504);
   Graph_Graph1140->SetDirectory(0);
   Graph_Graph1140->SetStats(0);

   ci = TColor::GetColor("#000099");
   Graph_Graph1140->SetLineColor(ci);
   Graph_Graph1140->GetXaxis()->SetLabelFont(42);
   Graph_Graph1140->GetXaxis()->SetLabelSize(0.035);
   Graph_Graph1140->GetXaxis()->SetTitleSize(0.035);
   Graph_Graph1140->GetXaxis()->SetTitleFont(42);
   Graph_Graph1140->GetYaxis()->SetLabelFont(42);
   Graph_Graph1140->GetYaxis()->SetLabelSize(0.035);
   Graph_Graph1140->GetYaxis()->SetTitleSize(0.035);
   Graph_Graph1140->GetYaxis()->SetTitleFont(42);
   Graph_Graph1140->GetZaxis()->SetLabelFont(42);
   Graph_Graph1140->GetZaxis()->SetLabelSize(0.035);
   Graph_Graph1140->GetZaxis()->SetTitleSize(0.035);
   Graph_Graph1140->GetZaxis()->SetTitleFont(42);
   gre->SetHistogram(Graph_Graph1140);
   
   
   TF1 *myfit1141 = new TF1("myfit","[0]*sin(x*3.1416/180.0)/(1 + [1]*cos(x*3.1416/180.0))",0,373.7618);
   myfit1141->SetFillColor(19);
   myfit1141->SetFillStyle(0);
   myfit1141->SetLineColor(2);
   myfit1141->SetLineWidth(2);
   myfit1141->SetChisquare(10.84482);
   myfit1141->SetNDF(7);
   myfit1141->GetXaxis()->SetLabelFont(42);
   myfit1141->GetXaxis()->SetLabelSize(0.035);
   myfit1141->GetXaxis()->SetTitleSize(0.035);
   myfit1141->GetXaxis()->SetTitleFont(42);
   myfit1141->GetYaxis()->SetLabelFont(42);
   myfit1141->GetYaxis()->SetLabelSize(0.035);
   myfit1141->GetYaxis()->SetTitleSize(0.035);
   myfit1141->GetYaxis()->SetTitleFont(42);
   myfit1141->SetParameter(0,0.124049);
   myfit1141->SetParError(0,0.05069177);
   myfit1141->SetParLimits(0,0,0);
   myfit1141->SetParameter(1,-0.6977989);
   myfit1141->SetParError(1,0.2049165);
   myfit1141->SetParLimits(1,0,0);
   gre->GetListOfFunctions()->Add(myfit1141);
   
   ptstats = new TPaveStats(0.27,0.74,0.9,0.9,"brNDC");
   ptstats->SetName("stats");
   ptstats->SetBorderSize(1);
   ptstats->SetFillColor(0);
   ptstats->SetTextAlign(12);
   ptstats->SetTextFont(42);
   AText = ptstats->AddText("#chi^{2} / ndf = 10.84 / 7");
   AText = ptstats->AddText("p0       = 0.124 #pm 0.05069 ");
   AText = ptstats->AddText("p1       = -0.6978 #pm 0.2049 ");
   ptstats->SetOptStat(0);
   ptstats->SetOptFit(111);
   ptstats->Draw();
   gre->GetListOfFunctions()->Add(ptstats);
   ptstats->SetParent(gre->GetListOfFunctions());
   multigraph->Add(gre,"");
   multigraph->Draw("AP");
   multigraph->GetXaxis()->SetTitle("#phi [deg.]");
   multigraph->GetXaxis()->SetLabelFont(42);
   multigraph->GetXaxis()->SetLabelSize(0.035);
   multigraph->GetXaxis()->SetTitleSize(0.035);
   multigraph->GetXaxis()->SetTitleFont(42);
   multigraph->GetYaxis()->SetLabelFont(42);
   multigraph->GetYaxis()->SetLabelSize(0.035);
   multigraph->GetYaxis()->SetTitleSize(0.035);
   multigraph->GetYaxis()->SetTitleFont(42);
     gPad->Modified();  
   multigraph->GetYaxis()->SetRangeUser(-0.35, 0.35);  




   c16_3->Modified();
   c16->cd();
  
// ------------>Primitives in pad: c16_4
   TPad *c16_4 = new TPad("c16_4", "Incoherent channe_4",0.7388081,0,0.9767442,0.9);
   c16_4->Draw();
   c16_4->cd();
   c16_4->Range(-17.15326,-0.4888889,360.2184,0.4);
   c16_4->SetFillColor(0);
   c16_4->SetBorderMode(0);
   c16_4->SetBorderSize(2);
   c16_4->SetGridx();
   c16_4->SetGridy();
   c16_4->SetLeftMargin(0);
   c16_4->SetRightMargin(0);
   c16_4->SetTopMargin(0);
   c16_4->SetFrameBorderMode(0);
   c16_4->SetFrameBorderMode(0);
   
   multigraph = new TMultiGraph();
   multigraph->SetName("");
   multigraph->SetTitle("0.39<x_{B}<0.60 ");
   
   Double_t Graph_fx1143[9] = {
   19.13311,
   55.36321,
   90.36243,
   127.5684,
   0,
   232.109,
   268.7816,
   302.6639,
   343.0651};
   Double_t Graph_fy1143[9] = {
   0.1307559,
   0.1996612,
   0.006608881,
   -2.830736,
   0,
   -2.034047,
   0.1276631,
   -0.2950426,
   -0.003784223};
   Double_t Graph_fex1143[9] = {
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0};
   Double_t Graph_fey1143[9] = {
   0.05218982,
   0.09871893,
   0.1820512,
   4.457049,
   0,
   1.502801,
   0.207584,
   0.0825667,
   0.06276702};
   gre = new TGraphErrors(9,Graph_fx1143,Graph_fy1143,Graph_fex1143,Graph_fey1143);
   gre->SetName("Graph");
   gre->SetTitle("Graph");
   gre->SetFillColor(1);

   ci = TColor::GetColor("#00ff00");
   gre->SetMarkerColor(ci);
   gre->SetMarkerStyle(21);
   
   TH1F *Graph_Graph1143 = new TH1F("Graph_Graph1143","Graph",100,0,377.3716);
   Graph_Graph1143->SetMinimum(-8.179195);
   Graph_Graph1143->SetMaximum(2.517722);
   Graph_Graph1143->SetDirectory(0);
   Graph_Graph1143->SetStats(0);

   ci = TColor::GetColor("#000099");
   Graph_Graph1143->SetLineColor(ci);
   Graph_Graph1143->GetXaxis()->SetLabelFont(42);
   Graph_Graph1143->GetXaxis()->SetLabelSize(0.035);
   Graph_Graph1143->GetXaxis()->SetTitleSize(0.035);
   Graph_Graph1143->GetXaxis()->SetTitleFont(42);
   Graph_Graph1143->GetYaxis()->SetLabelFont(42);
   Graph_Graph1143->GetYaxis()->SetLabelSize(0.035);
   Graph_Graph1143->GetYaxis()->SetTitleSize(0.035);
   Graph_Graph1143->GetYaxis()->SetTitleFont(42);
   Graph_Graph1143->GetZaxis()->SetLabelFont(42);
   Graph_Graph1143->GetZaxis()->SetLabelSize(0.035);
   Graph_Graph1143->GetZaxis()->SetTitleSize(0.035);
   Graph_Graph1143->GetZaxis()->SetTitleFont(42);
   gre->SetHistogram(Graph_Graph1143);
   
   
   TF1 *myfit1144 = new TF1("myfit","[0]*sin(x*3.1416/180.0)/(1 + [1]*cos(x*3.1416/180.0))",0,377.3716);
   myfit1144->SetFillColor(19);
   myfit1144->SetFillStyle(0);
   myfit1144->SetLineColor(2);
   myfit1144->SetLineWidth(2);
   myfit1144->SetChisquare(8.6938);
   myfit1144->SetNDF(7);
   myfit1144->GetXaxis()->SetLabelFont(42);
   myfit1144->GetXaxis()->SetLabelSize(0.035);
   myfit1144->GetXaxis()->SetTitleSize(0.035);
   myfit1144->GetXaxis()->SetTitleFont(42);
   myfit1144->GetYaxis()->SetLabelFont(42);
   myfit1144->GetYaxis()->SetLabelSize(0.035);
   myfit1144->GetYaxis()->SetTitleSize(0.035);
   myfit1144->GetYaxis()->SetTitleFont(42);
   myfit1144->SetParameter(0,0.1663497);
   myfit1144->SetParError(0,0.06722025);
   myfit1144->SetParLimits(0,0,0);
   myfit1144->SetParameter(1,-0.5093054);
   myfit1144->SetParError(1,0.2952021);
   myfit1144->SetParLimits(1,0,0);
   gre->GetListOfFunctions()->Add(myfit1144);
   
   ptstats = new TPaveStats(0.27,0.74,0.9,0.9,"brNDC");
   ptstats->SetName("stats");
   ptstats->SetBorderSize(1);
   ptstats->SetFillColor(0);
   ptstats->SetTextAlign(12);
   ptstats->SetTextFont(42);
   AText = ptstats->AddText("#chi^{2} / ndf = 8.694 / 7");
   AText = ptstats->AddText("p0       = 0.1663 #pm 0.06722 ");
   AText = ptstats->AddText("p1       = -0.5093 #pm 0.2952 ");
   ptstats->SetOptStat(0);
   ptstats->SetOptFit(111);
   ptstats->Draw();
   gre->GetListOfFunctions()->Add(ptstats);
   ptstats->SetParent(gre->GetListOfFunctions());
   multigraph->Add(gre,"");
   multigraph->Draw("AP");
   multigraph->GetXaxis()->SetTitle("#phi [deg.]");
   multigraph->GetXaxis()->SetLabelFont(42);
   multigraph->GetXaxis()->SetLabelSize(0.035);
   multigraph->GetXaxis()->SetTitleSize(0.035);
   multigraph->GetXaxis()->SetTitleFont(42);
   multigraph->GetYaxis()->SetLabelFont(42);
   multigraph->GetYaxis()->SetLabelSize(0.035);
   multigraph->GetYaxis()->SetTitleSize(0.035);
   multigraph->GetYaxis()->SetTitleFont(42);
    gPad->Modified();  
   multigraph->GetYaxis()->SetRangeUser(-0.35, 0.35);  

 


   c16_4->Modified();
   c16->cd();
   c16->Modified();
   c16->cd();
   c16->SetSelected(c16);
}
void calice_photonEff_vs_energy_reclustering_CLIC()
{
//=========Macro generated from canvas: c1/A Simple Graph Example
//=========  (Wed Mar  7 23:11:46 2018) by ROOT version6.08/00
   TCanvas *c1 = new TCanvas("c1", "A Simple Graph Example",110,116,800,700);
   gStyle->SetOptStat(0);
   gStyle->SetOptTitle(0);
   c1->SetHighLightColor(2);
   c1->Range(-25.0682,0.5027027,122.3918,1.043243);
   c1->SetFillColor(0);
   c1->SetBorderMode(0);
   c1->SetBorderSize(2);
   c1->SetTickx(1);
   c1->SetTicky(1);
   c1->SetPhi(150);
   c1->SetLeftMargin(0.17);
   c1->SetRightMargin(0.08);
   c1->SetTopMargin(0.08);
   c1->SetBottomMargin(0.18);
   c1->SetFrameLineWidth(2);
   c1->SetFrameBorderMode(0);
   c1->SetFrameLineWidth(2);
   c1->SetFrameBorderMode(0);
   
   Double_t Graph0_fx1001[5] = {
   5,
   10,
   20,
   50,
   100};
   Double_t Graph0_fy1001[5] = {
   0.9436152,
   0.9381309,
   0.9310415,
   0.9302012,
   0.9286163};
   Double_t Graph0_fex1001[5] = {
   0,
   0,
   0,
   0,
   0};
   Double_t Graph0_fey1001[5] = {
   0.004316943,
   0.004290463,
   0.00427937,
   0.004267022,
   0.004261721};
   TGraphErrors *gre = new TGraphErrors(5,Graph0_fx1001,Graph0_fy1001,Graph0_fex1001,Graph0_fey1001);
   gre->SetName("Graph0");
   gre->SetTitle("");
   gre->SetLineWidth(2);
   gre->SetMarkerStyle(24);
   gre->SetMarkerSize(1.2);
   
   TH1F *Graph_Graph1001 = new TH1F("Graph_Graph1001","",100,0,109.5);
   Graph_Graph1001->SetMinimum(0.6);
   Graph_Graph1001->SetMaximum(1);
   Graph_Graph1001->SetDirectory(0);
   Graph_Graph1001->SetStats(0);
   Graph_Graph1001->SetLineWidth(2);
   Graph_Graph1001->SetMarkerSize(1.2);
   Graph_Graph1001->GetXaxis()->SetTitle("Energy [GeV]");
   Graph_Graph1001->GetXaxis()->SetRange(1,101);
   Graph_Graph1001->GetXaxis()->SetNdivisions(506);
   Graph_Graph1001->GetXaxis()->SetLabelFont(42);
   Graph_Graph1001->GetXaxis()->SetLabelOffset(0.015);
   Graph_Graph1001->GetXaxis()->SetLabelSize(0.06);
   Graph_Graph1001->GetXaxis()->SetTitleSize(0.07);
   Graph_Graph1001->GetXaxis()->SetTitleFont(42);
   Graph_Graph1001->GetYaxis()->SetTitle("Efficiency [%]");
   Graph_Graph1001->GetYaxis()->SetNdivisions(506);
   Graph_Graph1001->GetYaxis()->SetLabelFont(42);
   Graph_Graph1001->GetYaxis()->SetLabelOffset(0.015);
   Graph_Graph1001->GetYaxis()->SetLabelSize(0.06);
   Graph_Graph1001->GetYaxis()->SetTitleSize(0.07);
   Graph_Graph1001->GetYaxis()->SetTitleOffset(1.2);
   Graph_Graph1001->GetYaxis()->SetTitleFont(42);
   Graph_Graph1001->GetZaxis()->SetLabelFont(42);
   Graph_Graph1001->GetZaxis()->SetLabelOffset(0.015);
   Graph_Graph1001->GetZaxis()->SetLabelSize(0.06);
   Graph_Graph1001->GetZaxis()->SetTitleSize(0.07);
   Graph_Graph1001->GetZaxis()->SetTitleOffset(1.2);
   Graph_Graph1001->GetZaxis()->SetTitleFont(42);
   gre->SetHistogram(Graph_Graph1001);
   
   gre->Draw("alp");
   
   Double_t Graph1_fx1002[5] = {
   5,
   10,
   20,
   50,
   100};
   Double_t Graph1_fy1002[5] = {
   0.9521913,
   0.9592196,
   0.9742399,
   0.9853568,
   0.984413};
   Double_t Graph1_fex1002[5] = {
   0,
   0,
   0,
   0,
   0};
   Double_t Graph1_fey1002[5] = {
   0.004346073,
   0.004361958,
   0.004426214,
   0.00445401,
   0.004450908};
   gre = new TGraphErrors(5,Graph1_fx1002,Graph1_fy1002,Graph1_fex1002,Graph1_fey1002);
   gre->SetName("Graph1");
   gre->SetTitle("");

   Int_t ci;      // for color index setting
   TColor *color; // for color definition with alpha
   ci = TColor::GetColor("#ff6666");
   gre->SetLineColor(ci);
   gre->SetLineWidth(2);

   ci = TColor::GetColor("#ff6666");
   gre->SetMarkerColor(ci);
   gre->SetMarkerStyle(25);
   gre->SetMarkerSize(1.2);
   
   TH1F *Graph_Graph1002 = new TH1F("Graph_Graph1002","",100,0,109.5);
   Graph_Graph1002->SetMinimum(0.9436486);
   Graph_Graph1002->SetMaximum(0.9940073);
   Graph_Graph1002->SetDirectory(0);
   Graph_Graph1002->SetStats(0);
   Graph_Graph1002->SetLineWidth(2);
   Graph_Graph1002->SetMarkerSize(1.2);
   Graph_Graph1002->GetXaxis()->SetNdivisions(506);
   Graph_Graph1002->GetXaxis()->SetLabelFont(42);
   Graph_Graph1002->GetXaxis()->SetLabelOffset(0.015);
   Graph_Graph1002->GetXaxis()->SetLabelSize(0.06);
   Graph_Graph1002->GetXaxis()->SetTitleSize(0.07);
   Graph_Graph1002->GetXaxis()->SetTitleFont(42);
   Graph_Graph1002->GetYaxis()->SetNdivisions(506);
   Graph_Graph1002->GetYaxis()->SetLabelFont(42);
   Graph_Graph1002->GetYaxis()->SetLabelOffset(0.015);
   Graph_Graph1002->GetYaxis()->SetLabelSize(0.06);
   Graph_Graph1002->GetYaxis()->SetTitleSize(0.07);
   Graph_Graph1002->GetYaxis()->SetTitleOffset(1.2);
   Graph_Graph1002->GetYaxis()->SetTitleFont(42);
   Graph_Graph1002->GetZaxis()->SetLabelFont(42);
   Graph_Graph1002->GetZaxis()->SetLabelOffset(0.015);
   Graph_Graph1002->GetZaxis()->SetLabelSize(0.06);
   Graph_Graph1002->GetZaxis()->SetTitleSize(0.07);
   Graph_Graph1002->GetZaxis()->SetTitleOffset(1.2);
   Graph_Graph1002->GetZaxis()->SetTitleFont(42);
   gre->SetHistogram(Graph_Graph1002);
   
   gre->Draw("lp");
   
   Double_t Graph2_fx1003[5] = {
   5,
   10,
   20,
   50,
   100};
   Double_t Graph2_fy1003[5] = {
   0.9534106,
   0.9601207,
   0.9752483,
   0.986959,
   0.9854677};
   Double_t Graph2_fex1003[5] = {
   0,
   0,
   0,
   0,
   0};
   Double_t Graph2_fey1003[5] = {
   0.004350213,
   0.00436501,
   0.004429635,
   0.004459428,
   0.004454475};
   gre = new TGraphErrors(5,Graph2_fx1003,Graph2_fy1003,Graph2_fex1003,Graph2_fey1003);
   gre->SetName("Graph2");
   gre->SetTitle("");

   ci = TColor::GetColor("#0000ff");
   gre->SetLineColor(ci);
   gre->SetLineWidth(2);

   ci = TColor::GetColor("#0000ff");
   gre->SetMarkerColor(ci);
   gre->SetMarkerStyle(26);
   gre->SetMarkerSize(1.2);
   
   TH1F *Graph_Graph1003 = new TH1F("Graph_Graph1003","",100,0,109.5);
   Graph_Graph1003->SetMinimum(0.9448246);
   Graph_Graph1003->SetMaximum(0.9956542);
   Graph_Graph1003->SetDirectory(0);
   Graph_Graph1003->SetStats(0);
   Graph_Graph1003->SetLineWidth(2);
   Graph_Graph1003->SetMarkerSize(1.2);
   Graph_Graph1003->GetXaxis()->SetNdivisions(506);
   Graph_Graph1003->GetXaxis()->SetLabelFont(42);
   Graph_Graph1003->GetXaxis()->SetLabelOffset(0.015);
   Graph_Graph1003->GetXaxis()->SetLabelSize(0.06);
   Graph_Graph1003->GetXaxis()->SetTitleSize(0.07);
   Graph_Graph1003->GetXaxis()->SetTitleFont(42);
   Graph_Graph1003->GetYaxis()->SetNdivisions(506);
   Graph_Graph1003->GetYaxis()->SetLabelFont(42);
   Graph_Graph1003->GetYaxis()->SetLabelOffset(0.015);
   Graph_Graph1003->GetYaxis()->SetLabelSize(0.06);
   Graph_Graph1003->GetYaxis()->SetTitleSize(0.07);
   Graph_Graph1003->GetYaxis()->SetTitleOffset(1.2);
   Graph_Graph1003->GetYaxis()->SetTitleFont(42);
   Graph_Graph1003->GetZaxis()->SetLabelFont(42);
   Graph_Graph1003->GetZaxis()->SetLabelOffset(0.015);
   Graph_Graph1003->GetZaxis()->SetLabelSize(0.06);
   Graph_Graph1003->GetZaxis()->SetTitleSize(0.07);
   Graph_Graph1003->GetZaxis()->SetTitleOffset(1.2);
   Graph_Graph1003->GetZaxis()->SetTitleFont(42);
   gre->SetHistogram(Graph_Graph1003);
   
   gre->Draw("lp");
   
   TLegend *leg = new TLegend(0.5,0.2,0.9,0.4,NULL,"brNDC");
   leg->SetBorderSize(0);
   leg->SetTextFont(62);
   leg->SetLineColor(1);
   leg->SetLineStyle(1);
   leg->SetLineWidth(2);
   leg->SetFillColor(0);
   leg->SetFillStyle(1001);
   TLegendEntry *entry=leg->AddEntry("Graph0","nominal efficiency","lp");
   entry->SetLineColor(1);
   entry->SetLineStyle(1);
   entry->SetLineWidth(2);
   entry->SetMarkerColor(1);
   entry->SetMarkerStyle(24);
   entry->SetMarkerSize(1.2);
   entry->SetTextFont(62);
   entry=leg->AddEntry("Graph1","photon cluster merging","lp");

   ci = TColor::GetColor("#ff6666");
   entry->SetLineColor(ci);
   entry->SetLineStyle(1);
   entry->SetLineWidth(2);

   ci = TColor::GetColor("#ff6666");
   entry->SetMarkerColor(ci);
   entry->SetMarkerStyle(25);
   entry->SetMarkerSize(1.2);
   entry->SetTextFont(62);
   entry=leg->AddEntry("Graph2","photon+neutral cluster merging","lp");

   ci = TColor::GetColor("#0000ff");
   entry->SetLineColor(ci);
   entry->SetLineStyle(1);
   entry->SetLineWidth(2);

   ci = TColor::GetColor("#0000ff");
   entry->SetMarkerColor(ci);
   entry->SetMarkerStyle(26);
   entry->SetMarkerSize(1.2);
   entry->SetTextFont(62);
   leg->Draw();
   c1->Modified();
   c1->cd();
   c1->SetSelected(c1);
}
示例#13
0
TCanvas* example_plot( int iPeriod, int iPos )
{ 
  //  if( iPos==0 ) relPosX = 0.12;

  int W = 800;
  int H = 600;

  int H_ref = 600; 
  int W_ref = 800; 

  // references for T, B, L, R
  float T = 0.08*H_ref;
  float B = 0.12*H_ref; 
  float L = 0.12*W_ref;
  float R = 0.04*W_ref;

  TString canvName = "FigExample_";
  canvName += W;
  canvName += "-";
  canvName += H;
  canvName += "_";  
  canvName += iPeriod;
  if( writeExtraText ) canvName += "-prelim";
  if( iPos%10==0 ) canvName += "-out";
  else if( iPos%10==1 ) canvName += "-left";
  else if( iPos%10==2 )  canvName += "-center";
  else if( iPos%10==3 )  canvName += "-right";

  TCanvas* canv = new TCanvas(canvName,canvName,50,50,W,H);
  canv->SetFillColor(0);
  canv->SetBorderMode(0);
  canv->SetFrameFillStyle(0);
  canv->SetFrameBorderMode(0);
  canv->SetLeftMargin( L/W );
  canv->SetRightMargin( R/W );
  canv->SetTopMargin( T/H );
  canv->SetBottomMargin( B/H );
  canv->SetTickx(0);
  canv->SetTicky(0);


  int histLineColor = kOrange+7;
  int histFillColor = kOrange-2;
  float markerSize  = 1.0;

  {
    TLatex latex;
				
    int n_ = 2;

    float x1_l = 0.92;
    float y1_l = 0.60;

    float dx_l = 0.30;
    float dy_l = 0.18;
    float x0_l = x1_l-dx_l;
    float y0_l = y1_l-dy_l;

    TPad* legend = new TPad("legend_0","legend_0",x0_l,y0_l,x1_l, y1_l );
    //    legend->SetFillColor( kGray );
    legend->Draw();
    legend->cd();
		
    float ar_l = dy_l/dx_l;
		
    float x_l[1];
    float ex_l[1];
    float y_l[1];
    float ey_l[1];
		
    //    float gap_ = 0.09/ar_l;
    float gap_ = 1./(n_+1);
		
    float bwx_ = 0.12;
    float bwy_ = gap_/1.5;
		
    x_l[0] = 1.2*bwx_;
    //    y_l[0] = 1-(1-0.10)/ar_l;
    y_l[0] = 1-gap_;
    ex_l[0] = 0;
    ey_l[0] = 0.04/ar_l;
		
    TGraph* gr_l = new TGraphErrors(1, x_l, y_l, ex_l, ey_l );
		
    gStyle->SetEndErrorSize(0);
    gr_l->SetMarkerSize(0.9);
    gr_l->Draw("0P");
		
    latex.SetTextFont(42);
    latex.SetTextAngle(0);
    latex.SetTextColor(kBlack);    
    latex.SetTextSize(0.25);    
    latex.SetTextAlign(12); 
		
    TLine line_;
    TBox  box_;
    float xx_ = x_l[0];
    float yy_ = y_l[0];
    latex.DrawLatex(xx_+1.*bwx_,yy_,"Data");
		
    yy_ -= gap_;
    box_.SetLineStyle( kSolid );
    box_.SetLineWidth( 1 );
    //		box_.SetLineColor( kBlack );
    box_.SetLineColor( histLineColor );
    box_.SetFillColor( histFillColor );
    box_.DrawBox( xx_-bwx_/2, yy_-bwy_/2, xx_+bwx_/2, yy_+bwy_/2 );
    box_.SetFillStyle(0);
    box_.DrawBox( xx_-bwx_/2, yy_-bwy_/2, xx_+bwx_/2, yy_+bwy_/2 );
    latex.DrawLatex(xx_+1.*bwx_,yy_,"Z #rightarrow e^{+}e^{-} (MC)");

    canv->cd();
  }

  {

   TGraphErrors *gre = new TGraphErrors(12);
   gre->SetName("Graph0");
   gre->SetTitle("");
   gre->SetFillColor(1);

   Int_t ci;      // for color index setting
   TColor *color; // for color definition with alpha
   ci = TColor::GetColor("#0000ff");
   gre->SetLineColor(ci);

   ci = TColor::GetColor("#0000ff");
   gre->SetMarkerColor(ci);
   gre->SetMarkerStyle(21);
   gre->SetPoint(0,0.1428571,0.943962);
   gre->SetPointError(0,0,0.00470259);
   gre->SetPoint(1,0.1714286,0.940484);
   gre->SetPointError(1,0,0.00447348);
   gre->SetPoint(2,0.2,0.935519);
   gre->SetPointError(2,0,0.00484668);
   gre->SetPoint(3,0.2285714,0.928495);
   gre->SetPointError(3,0,0.00504356);
   gre->SetPoint(4,0.2571429,0.931586);
   gre->SetPointError(4,0,0.00551296);
   gre->SetPoint(5,0.2857143,0.924183);
   gre->SetPointError(5,0,0.00521949);
   gre->SetPoint(6,0.3142857,0.925186);
   gre->SetPointError(6,0,0.00541335);
   gre->SetPoint(7,0.3428572,0.918469);
   gre->SetPointError(7,0,0.00520881);
   gre->SetPoint(8,0.3714286,0.926619);
   gre->SetPointError(8,0,0.00524148);
   gre->SetPoint(9,0.4,0.931496);
   gre->SetPointError(9,0,0.00526956);
   gre->SetPoint(10,0.4285714,0.932581);
   gre->SetPointError(10,0,0.00466349);
   gre->SetPoint(11,0.4571429,0.924199);
   gre->SetPointError(11,0,0.00348535);
   
   TH1F *Graph_Graph1 = new TH1F("Graph_Graph1","",100,0.1114286,0.4885714);
   Graph_Graph1->SetMinimum(0);
   Graph_Graph1->SetMaximum(1);
   Graph_Graph1->SetDirectory(0);
   Graph_Graph1->SetStats(0);

   ci = TColor::GetColor("#000099");
   Graph_Graph1->SetLineColor(ci);
   Graph_Graph1->GetXaxis()->SetTitle("Threshold (pC)");
   Graph_Graph1->GetXaxis()->CenterTitle(true);
   Graph_Graph1->GetXaxis()->SetLabelFont(42);
   Graph_Graph1->GetXaxis()->SetLabelSize(0.05);
   Graph_Graph1->GetXaxis()->SetTitleSize(0.05);
   Graph_Graph1->GetXaxis()->SetTitleFont(42);
   Graph_Graph1->GetYaxis()->SetTitle("Efficiency");
   Graph_Graph1->GetYaxis()->SetRange(0,1);
   Graph_Graph1->GetYaxis()->CenterTitle(true);
   Graph_Graph1->GetYaxis()->SetLabelFont(42);
   Graph_Graph1->GetYaxis()->SetLabelSize(0.05);
   Graph_Graph1->GetYaxis()->SetTitleSize(0.05);
   Graph_Graph1->GetYaxis()->SetTitleFont(42);
   Graph_Graph1->GetZaxis()->SetLabelFont(42);
   Graph_Graph1->GetZaxis()->SetLabelSize(0.035);
   Graph_Graph1->GetZaxis()->SetTitleSize(0.035);
   Graph_Graph1->GetZaxis()->SetTitleFont(42);
   gre->SetHistogram(Graph_Graph1);
   
   gre->Draw("ap");

  }

  TLegend *leg = new TLegend(0.55,0.35,0.70,0.50);
  leg->SetTextSize(0.035);
  leg->SetLineColor(1);
  leg->SetLineStyle(1);
  leg->SetLineWidth(1);
  leg->SetFillColor(0);
  leg->SetBorderSize(0);
  leg->SetHeader("GIF++ test beams 08.2015");
  leg->AddEntry(gre, "Low Resistivity Glass RPC", "p");
  leg->Draw();

  // writing the lumi information and the CMS "logo"
  CMS_lumi( canv, iPeriod, iPos );

  canv->Update();
  canv->RedrawAxis();
  canv->GetFrame()->Draw();

  canv->Print(canvName+".pdf",".pdf");
  canv->Print(canvName+".png",".png");

  return canv;
}
示例#14
0
void acceptance_cT()
{
//=========Macro generated from canvas: c/c
//=========  (Mon Oct 26 11:10:32 2015) by ROOT version6.02/05
   TCanvas *c = new TCanvas("c", "c",0,22,700,500);
   gStyle->SetOptStat(0);
   c->Range(-2.75,-0.025,22.75,0.225);
   c->SetFillColor(0);
   c->SetBorderMode(0);
   c->SetBorderSize(2);
   c->SetFrameBorderMode(0);
   c->SetFrameBorderMode(0);
   
   TH2F *dummy31 = new TH2F("dummy31","dummy3",400,-0.2,20.2,100,0,0.2);

   Int_t ci;      // for color index setting
   TColor *color; // for color definition with alpha
   ci = TColor::GetColor("#000099");
   dummy31->SetLineColor(ci);
   dummy31->GetXaxis()->SetTitle("c#tau [mm]");
   dummy31->GetXaxis()->SetLabelFont(42);
   dummy31->GetXaxis()->SetLabelSize(0.035);
   dummy31->GetXaxis()->SetTitleSize(0.035);
   dummy31->GetXaxis()->SetTitleFont(42);
   dummy31->GetYaxis()->SetTitle("#epsilon_{rec} = N_{rec}/N_{tot}");
   dummy31->GetYaxis()->SetLabelFont(42);
   dummy31->GetYaxis()->SetLabelSize(0.035);
   dummy31->GetYaxis()->SetTitleSize(0.035);
   dummy31->GetYaxis()->SetTitleFont(42);
   dummy31->GetZaxis()->SetLabelFont(42);
   dummy31->GetZaxis()->SetLabelSize(0.035);
   dummy31->GetZaxis()->SetTitleSize(0.035);
   dummy31->GetZaxis()->SetTitleFont(42);
   dummy31->Draw("");
   
   Double_t Graph0_fx1001[11] = {
   0,
   0.05,
   0.1,
   0.2,
   0.5,
   1,
   2,
   3,
   5,
   10,
   20};
   Double_t Graph0_fy1001[11] = {
   0.0865404,
   0.08294682,
   0.06949495,
   0.04645202,
   0.0157633,
   0.005542929,
   0.00155303,
   0.0009974747,
   0.0002651515,
   6.47017e-05,
   2.397917e-05};
   Double_t Graph0_fex1001[11] = {
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0};
   Double_t Graph0_fey1001[11] = {
   0.0009990599,
   0.0009899688,
   0.0009035941,
   0.000747844,
   0.0004493916,
   0.0002638154,
   0.0001399232,
   0.0001121687,
   5.785313e-05,
   1.3794e-05,
   9.063167e-06};
   TGraphErrors *gre = new TGraphErrors(11,Graph0_fx1001,Graph0_fy1001,Graph0_fex1001,Graph0_fey1001);
   gre->SetName("Graph0");
   gre->SetTitle("Graph");
   gre->SetFillColor(1);
   gre->SetMarkerStyle(7);
   gre->SetMarkerSize(5);
   
   TH1F *Graph_Graph1001 = new TH1F("Graph_Graph1001","Graph",100,0,22);
   Graph_Graph1001->SetMinimum(0);
   Graph_Graph1001->SetMaximum(0.09629192);
   Graph_Graph1001->SetDirectory(0);
   Graph_Graph1001->SetStats(0);

   ci = TColor::GetColor("#000099");
   Graph_Graph1001->SetLineColor(ci);
   Graph_Graph1001->GetXaxis()->SetLabelFont(42);
   Graph_Graph1001->GetXaxis()->SetLabelSize(0.035);
   Graph_Graph1001->GetXaxis()->SetTitleSize(0.035);
   Graph_Graph1001->GetXaxis()->SetTitleFont(42);
   Graph_Graph1001->GetYaxis()->SetLabelFont(42);
   Graph_Graph1001->GetYaxis()->SetLabelSize(0.035);
   Graph_Graph1001->GetYaxis()->SetTitleSize(0.035);
   Graph_Graph1001->GetYaxis()->SetTitleFont(42);
   Graph_Graph1001->GetZaxis()->SetLabelFont(42);
   Graph_Graph1001->GetZaxis()->SetLabelSize(0.035);
   Graph_Graph1001->GetZaxis()->SetTitleSize(0.035);
   Graph_Graph1001->GetZaxis()->SetTitleFont(42);
   gre->SetHistogram(Graph_Graph1001);
   
   gre->Draw(" pl");
   
   Double_t Graph1_fx1002[9] = {
   0,
   0.05,
   0.1,
   0.2,
   0.5,
   1,
   2,
   3,
   5};
   Double_t Graph1_fy1002[9] = {
   0.08208333,
   0.07862374,
   0.06748737,
   0.04597222,
   0.01659091,
   0.005892857,
   0.001868687,
   0.0009974747,
   0.0004419192};
   Double_t Graph1_fex1002[9] = {
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0};
   Double_t Graph1_fey1002[9] = {
   0.0009753636,
   0.000956385,
   0.000891407,
   0.0007441589,
   0.0004538785,
   0.0002733515,
   0.0001534615,
   0.0001121687,
   7.468147e-05};
   gre = new TGraphErrors(9,Graph1_fx1002,Graph1_fy1002,Graph1_fex1002,Graph1_fey1002);
   gre->SetName("Graph1");
   gre->SetTitle("Graph");
   gre->SetFillColor(1);
   gre->SetLineColor(2);
   gre->SetMarkerColor(2);
   gre->SetMarkerStyle(7);
   gre->SetMarkerSize(5);
   
   TH1F *Graph_Graph1002 = new TH1F("Graph_Graph1002","Graph",100,0,5.5);
   Graph_Graph1002->SetMinimum(0);
   Graph_Graph1002->SetMaximum(0.09132784);
   Graph_Graph1002->SetDirectory(0);
   Graph_Graph1002->SetStats(0);

   ci = TColor::GetColor("#000099");
   Graph_Graph1002->SetLineColor(ci);
   Graph_Graph1002->GetXaxis()->SetLabelFont(42);
   Graph_Graph1002->GetXaxis()->SetLabelSize(0.035);
   Graph_Graph1002->GetXaxis()->SetTitleSize(0.035);
   Graph_Graph1002->GetXaxis()->SetTitleFont(42);
   Graph_Graph1002->GetYaxis()->SetLabelFont(42);
   Graph_Graph1002->GetYaxis()->SetLabelSize(0.035);
   Graph_Graph1002->GetYaxis()->SetTitleSize(0.035);
   Graph_Graph1002->GetYaxis()->SetTitleFont(42);
   Graph_Graph1002->GetZaxis()->SetLabelFont(42);
   Graph_Graph1002->GetZaxis()->SetLabelSize(0.035);
   Graph_Graph1002->GetZaxis()->SetTitleSize(0.035);
   Graph_Graph1002->GetZaxis()->SetTitleFont(42);
   gre->SetHistogram(Graph_Graph1002);
   
   gre->Draw(" pl");
   
   Double_t Graph2_fx1003[6] = {
   0,
   0.1,
   0.2,
   0.5,
   2,
   5};
   Double_t Graph2_fy1003[6] = {
   0.0749858,
   0.0642268,
   0.04502717,
   0.01693182,
   0.002222281,
   0.0003815789};
   Double_t Graph2_fex1003[6] = {
   0,
   0,
   0,
   0,
   0,
   0};
   Double_t Graph2_fey1003[6] = {
   0.0009926071,
   0.0008800606,
   0.0007643529,
   0.0004584384,
   0.0001707546,
   7.084391e-05};
   gre = new TGraphErrors(6,Graph2_fx1003,Graph2_fy1003,Graph2_fex1003,Graph2_fey1003);
   gre->SetName("Graph2");
   gre->SetTitle("Graph");
   gre->SetFillColor(1);
   gre->SetLineColor(3);
   gre->SetMarkerColor(3);
   gre->SetMarkerStyle(7);
   gre->SetMarkerSize(5);
   
   TH1F *Graph_Graph1003 = new TH1F("Graph_Graph1003","Graph",100,0,5.5);
   Graph_Graph1003->SetMinimum(0);
   Graph_Graph1003->SetMaximum(0.08354517);
   Graph_Graph1003->SetDirectory(0);
   Graph_Graph1003->SetStats(0);

   ci = TColor::GetColor("#000099");
   Graph_Graph1003->SetLineColor(ci);
   Graph_Graph1003->GetXaxis()->SetLabelFont(42);
   Graph_Graph1003->GetXaxis()->SetLabelSize(0.035);
   Graph_Graph1003->GetXaxis()->SetTitleSize(0.035);
   Graph_Graph1003->GetXaxis()->SetTitleFont(42);
   Graph_Graph1003->GetYaxis()->SetLabelFont(42);
   Graph_Graph1003->GetYaxis()->SetLabelSize(0.035);
   Graph_Graph1003->GetYaxis()->SetTitleSize(0.035);
   Graph_Graph1003->GetYaxis()->SetTitleFont(42);
   Graph_Graph1003->GetZaxis()->SetLabelFont(42);
   Graph_Graph1003->GetZaxis()->SetLabelSize(0.035);
   Graph_Graph1003->GetZaxis()->SetTitleSize(0.035);
   Graph_Graph1003->GetZaxis()->SetTitleFont(42);
   gre->SetHistogram(Graph_Graph1003);
   
   gre->Draw(" pl");
   
   Double_t Graph3_fx1004[11] = {
   0,
   0.05,
   0.1,
   0.2,
   0.5,
   1,
   2,
   3,
   5,
   10,
   20};
   Double_t Graph3_fy1004[11] = {
   0.05958333,
   0.06207908,
   0.06051768,
   0.05941919,
   0.05516582,
   0.04303571,
   0.02356061,
   0.01513298,
   0.006989796,
   0.002367956,
   0.0007142042};
   Double_t Graph3_fex1004[11] = {
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0};
   Double_t Graph3_fey1004[11] = {
   0.0008541653,
   0.0008617826,
   0.000847272,
   0.0008400378,
   0.0008153701,
   0.0007247769,
   0.000538956,
   0.0004451866,
   0.0002975439,
   6.810597e-05,
   4.035479e-05};
   gre = new TGraphErrors(11,Graph3_fx1004,Graph3_fy1004,Graph3_fex1004,Graph3_fey1004);
   gre->SetName("Graph3");
   gre->SetTitle("Graph");
   gre->SetFillColor(1);
   gre->SetLineColor(4);
   gre->SetMarkerColor(4);
   gre->SetMarkerStyle(7);
   gre->SetMarkerSize(5);
   
   TH1F *Graph_Graph1004 = new TH1F("Graph_Graph1004","Graph",100,0,22);
   Graph_Graph1004->SetMinimum(0);
   Graph_Graph1004->SetMaximum(0.06916757);
   Graph_Graph1004->SetDirectory(0);
   Graph_Graph1004->SetStats(0);

   ci = TColor::GetColor("#000099");
   Graph_Graph1004->SetLineColor(ci);
   Graph_Graph1004->GetXaxis()->SetLabelFont(42);
   Graph_Graph1004->GetXaxis()->SetLabelSize(0.035);
   Graph_Graph1004->GetXaxis()->SetTitleSize(0.035);
   Graph_Graph1004->GetXaxis()->SetTitleFont(42);
   Graph_Graph1004->GetYaxis()->SetLabelFont(42);
   Graph_Graph1004->GetYaxis()->SetLabelSize(0.035);
   Graph_Graph1004->GetYaxis()->SetTitleSize(0.035);
   Graph_Graph1004->GetYaxis()->SetTitleFont(42);
   Graph_Graph1004->GetZaxis()->SetLabelFont(42);
   Graph_Graph1004->GetZaxis()->SetLabelSize(0.035);
   Graph_Graph1004->GetZaxis()->SetTitleSize(0.035);
   Graph_Graph1004->GetZaxis()->SetTitleFont(42);
   gre->SetHistogram(Graph_Graph1004);
   
   gre->Draw(" pl");
   
   Double_t Graph4_fx1005[9] = {
   0,
   0.05,
   0.1,
   0.2,
   0.5,
   1,
   2,
   3,
   5};
   Double_t Graph4_fy1005[9] = {
   0.1375897,
   0.137474,
   0.1364046,
   0.1359975,
   0.1364646,
   0.132096,
   0.1211862,
   0.1061111,
   0.07766414};
   Double_t Graph4_fex1005[9] = {
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0};
   Double_t Graph4_fey1005[9] = {
   0.001244048,
   0.001242555,
   0.00123208,
   0.001218037,
   0.001219797,
   0.001203145,
   0.001165513,
   0.001147773,
   0.0009510256};
   gre = new TGraphErrors(9,Graph4_fx1005,Graph4_fy1005,Graph4_fex1005,Graph4_fey1005);
   gre->SetName("Graph4");
   gre->SetTitle("Graph");
   gre->SetFillColor(1);
   gre->SetLineColor(6);
   gre->SetMarkerColor(6);
   gre->SetMarkerStyle(7);
   gre->SetMarkerSize(5);
   
   TH1F *Graph_Graph1005 = new TH1F("Graph_Graph1005","Graph",100,0,5.5);
   Graph_Graph1005->SetMinimum(0.07050106);
   Graph_Graph1005->SetMaximum(0.1450458);
   Graph_Graph1005->SetDirectory(0);
   Graph_Graph1005->SetStats(0);

   ci = TColor::GetColor("#000099");
   Graph_Graph1005->SetLineColor(ci);
   Graph_Graph1005->GetXaxis()->SetLabelFont(42);
   Graph_Graph1005->GetXaxis()->SetLabelSize(0.035);
   Graph_Graph1005->GetXaxis()->SetTitleSize(0.035);
   Graph_Graph1005->GetXaxis()->SetTitleFont(42);
   Graph_Graph1005->GetYaxis()->SetLabelFont(42);
   Graph_Graph1005->GetYaxis()->SetLabelSize(0.035);
   Graph_Graph1005->GetYaxis()->SetTitleSize(0.035);
   Graph_Graph1005->GetYaxis()->SetTitleFont(42);
   Graph_Graph1005->GetZaxis()->SetLabelFont(42);
   Graph_Graph1005->GetZaxis()->SetLabelSize(0.035);
   Graph_Graph1005->GetZaxis()->SetTitleSize(0.035);
   Graph_Graph1005->GetZaxis()->SetTitleFont(42);
   gre->SetHistogram(Graph_Graph1005);
   
   gre->Draw(" pl");
   
   TLegend *leg = new TLegend(0.5387931,0.5813953,0.887931,0.8816068,NULL,"brNDC");
   leg->SetBorderSize(0);
   leg->SetTextSize(0.045);
   leg->SetLineColor(1);
   leg->SetLineStyle(1);
   leg->SetLineWidth(1);
   leg->SetFillColor(0);
   leg->SetFillStyle(1001);
   TLegendEntry *entry=leg->AddEntry("Graph0","m_{#gamma D}=0.250 GeV","PL");
   entry->SetLineColor(1);
   entry->SetLineStyle(1);
   entry->SetLineWidth(1);
   entry->SetMarkerColor(1);
   entry->SetMarkerStyle(7);
   entry->SetMarkerSize(5);
   entry->SetTextFont(42);
   entry=leg->AddEntry("Graph1","m_{#gamma D}=0.275 GeV","PL");
   entry->SetLineColor(2);
   entry->SetLineStyle(1);
   entry->SetLineWidth(1);
   entry->SetMarkerColor(2);
   entry->SetMarkerStyle(7);
   entry->SetMarkerSize(5);
   entry->SetTextFont(42);
   entry=leg->AddEntry("Graph2","m_{#gamma D}=0.300 GeV","PL");
   entry->SetLineColor(3);
   entry->SetLineStyle(1);
   entry->SetLineWidth(1);
   entry->SetMarkerColor(3);
   entry->SetMarkerStyle(7);
   entry->SetMarkerSize(5);
   entry->SetTextFont(42);
   entry=leg->AddEntry("Graph3","m_{#gamma D}=2.000 GeV","PL");
   entry->SetLineColor(4);
   entry->SetLineStyle(1);
   entry->SetLineWidth(1);
   entry->SetMarkerColor(4);
   entry->SetMarkerStyle(7);
   entry->SetMarkerSize(5);
   entry->SetTextFont(42);
   entry=leg->AddEntry("Graph4","m_{#gamma D}=8.500 GeV","PL");
   entry->SetLineColor(6);
   entry->SetLineStyle(1);
   entry->SetLineWidth(1);
   entry->SetMarkerColor(6);
   entry->SetMarkerStyle(7);
   entry->SetMarkerSize(5);
   entry->SetTextFont(42);
   leg->Draw();
   
   TPaveText *pt = new TPaveText(0.4195977,0.9339831,0.5804023,0.995,"blNDC");
   pt->SetName("title");
   pt->SetBorderSize(0);
   pt->SetFillColor(0);
   pt->SetFillStyle(0);
   pt->SetTextFont(42);
   TText *AText = pt->AddText("dummy3");
   pt->Draw();
   c->Modified();
   c->cd();
   c->SetSelected(c);
}
示例#15
0
plot()
{
//=========Macro generated from canvas: FigExample/FigExample
//=========  (Wed Feb 10 18:30:48 2016) by ROOT version5.34/32
    TCanvas *FigExample = new TCanvas("FigExample", "FigExample",0,23,1366,720);
    gStyle->SetOptFit(1);
    gStyle->SetOptStat(0);
    gStyle->SetOptTitle(0);
    FigExample->Range(1.546456,-0.2025,6.412106,1.485);
    FigExample->SetFillColor(0);
    FigExample->SetBorderMode(0);
    FigExample->SetBorderSize(2);
    FigExample->SetLogx();
    FigExample->SetLeftMargin(0.12);
    FigExample->SetRightMargin(0.04);
    FigExample->SetTopMargin(0.08);
    FigExample->SetBottomMargin(0.12);
    FigExample->SetFrameFillStyle(0);
    FigExample->SetFrameBorderMode(0);
    FigExample->SetFrameFillStyle(0);
    FigExample->SetFrameBorderMode(0);

    TGraphErrors *gre = new TGraphErrors(6);
    gre->SetName("Graph0");
    gre->SetTitle("");
    gre->SetFillColor(1);
    gre->SetLineColor(4);
    gre->SetMarkerColor(4);
    gre->SetMarkerStyle(22);
    gre->SetMarkerSize(1.8);
    gre->SetPoint(0,1500000,0.192982);
    gre->SetPointError(0,0,0.118988);
    gre->SetPoint(1,681818.2,0.704545);
    gre->SetPointError(1,0,0.0473106);
    gre->SetPoint(2,217391.3,0.943028);
    gre->SetPointError(2,0,0.009242);
    gre->SetPoint(3,68181.82,0.973359);
    gre->SetPointError(3,0,0.00320719);
    gre->SetPoint(4,326.0869,0.967568);
    gre->SetPointError(4,0,0.0132405);
    gre->SetPoint(5,150,0.97559);
    gre->SetPointError(5,0,0.00223768);

    TH1F *Graph_Graph_Graph11 = new TH1F("Graph_Graph_Graph11","",100,135,1649985);
    Graph_Graph_Graph11->SetMinimum(0);
    Graph_Graph_Graph11->SetMaximum(1.35);
    Graph_Graph_Graph11->SetDirectory(0);
    Graph_Graph_Graph11->SetStats(0);

    Int_t ci;      // for color index setting
    TColor *color; // for color definition with alpha
    ci = TColor::GetColor("#000099");
    Graph_Graph_Graph11->SetLineColor(ci);
    Graph_Graph_Graph11->SetLineStyle(0);
    Graph_Graph_Graph11->SetMarkerStyle(20);
    Graph_Graph_Graph11->GetXaxis()->SetTitle("Cesium Source Rate ( N_{#gamma}.cm^{-2}.s^{-1} )");
    Graph_Graph_Graph11->GetXaxis()->CenterTitle(true);
    Graph_Graph_Graph11->GetXaxis()->SetLabelFont(42);
    Graph_Graph_Graph11->GetXaxis()->SetLabelOffset(0.007);
    Graph_Graph_Graph11->GetXaxis()->SetLabelSize(0.035);
    Graph_Graph_Graph11->GetXaxis()->SetTitleSize(0.045);
    Graph_Graph_Graph11->GetXaxis()->SetTitleOffset(1.1);
    Graph_Graph_Graph11->GetXaxis()->SetTitleFont(42);
    Graph_Graph_Graph11->GetYaxis()->SetTitle("#mu detection efficiency");
    Graph_Graph_Graph11->GetYaxis()->SetRange(0,1);
    Graph_Graph_Graph11->GetYaxis()->CenterTitle(true);
    Graph_Graph_Graph11->GetYaxis()->SetLabelFont(42);
    Graph_Graph_Graph11->GetYaxis()->SetLabelOffset(0.007);
    Graph_Graph_Graph11->GetYaxis()->SetLabelSize(0.035);
    Graph_Graph_Graph11->GetYaxis()->SetTitleSize(0.045);
    Graph_Graph_Graph11->GetYaxis()->SetTitleOffset(1.1);
    Graph_Graph_Graph11->GetYaxis()->SetTitleFont(42);
    Graph_Graph_Graph11->GetZaxis()->SetLabelFont(42);
    Graph_Graph_Graph11->GetZaxis()->SetLabelOffset(0.007);
    Graph_Graph_Graph11->GetZaxis()->SetLabelSize(0.035);
    Graph_Graph_Graph11->GetZaxis()->SetTitleSize(0.035);
    Graph_Graph_Graph11->GetZaxis()->SetTitleFont(42);
    gre->SetHistogram(Graph_Graph_Graph11);

    gre->Draw("ap");

    gre = new TGraphErrors(6);
    gre->SetName("Graph1");
    gre->SetTitle("");
    gre->SetFillColor(1);
    gre->SetLineColor(2);
    gre->SetMarkerColor(2);
    gre->SetMarkerStyle(3);
    gre->SetMarkerSize(1.8);
    gre->SetPoint(0,1500000,0);
    gre->SetPointError(0,0,0);
    gre->SetPoint(1,681818.2,0.0381356);
    gre->SetPointError(1,0,0.0638412);
    gre->SetPoint(2,217391.3,0.242259);
    gre->SetPointError(2,0,0.0371513);
    gre->SetPoint(3,68181.82,0.70679);
    gre->SetPointError(3,0,0.0113702);
    gre->SetPoint(4,326.0869,0.919075);
    gre->SetPointError(4,0,0.021681);
    gre->SetPoint(5,150,0.929634);
    gre->SetPointError(5,0,0.00395216);

    TH1F *Graph_Graph_Graph22 = new TH1F("Graph_Graph_Graph22","",100,135,1649985);
    Graph_Graph_Graph22->SetMinimum(-0.1223518);
    Graph_Graph_Graph22->SetMaximum(1.037402);
    Graph_Graph_Graph22->SetDirectory(0);
    Graph_Graph_Graph22->SetStats(0);

    ci = TColor::GetColor("#000099");
    Graph_Graph_Graph22->SetLineColor(ci);
    Graph_Graph_Graph22->SetLineStyle(0);
    Graph_Graph_Graph22->SetMarkerStyle(20);
    Graph_Graph_Graph22->GetXaxis()->SetTitle("Cesium Source Rate ( N_{#gamma}.cm^{-2}.s^{-1} )");
    Graph_Graph_Graph22->GetXaxis()->CenterTitle(true);
    Graph_Graph_Graph22->GetXaxis()->SetLabelFont(42);
    Graph_Graph_Graph22->GetXaxis()->SetLabelOffset(0.007);
    Graph_Graph_Graph22->GetXaxis()->SetLabelSize(0.035);
    Graph_Graph_Graph22->GetXaxis()->SetTitleSize(0.045);
    Graph_Graph_Graph22->GetXaxis()->SetTitleOffset(0.9);
    Graph_Graph_Graph22->GetXaxis()->SetTitleFont(42);
    Graph_Graph_Graph22->GetYaxis()->SetTitle("Efficiency");
    Graph_Graph_Graph22->GetYaxis()->CenterTitle(true);
    Graph_Graph_Graph22->GetYaxis()->SetLabelFont(42);
    Graph_Graph_Graph22->GetYaxis()->SetLabelOffset(0.007);
    Graph_Graph_Graph22->GetYaxis()->SetLabelSize(0.035);
    Graph_Graph_Graph22->GetYaxis()->SetTitleSize(0.045);
    Graph_Graph_Graph22->GetYaxis()->SetTitleOffset(1.25);
    Graph_Graph_Graph22->GetYaxis()->SetTitleFont(42);
    Graph_Graph_Graph22->GetZaxis()->SetLabelFont(42);
    Graph_Graph_Graph22->GetZaxis()->SetLabelOffset(0.007);
    Graph_Graph_Graph22->GetZaxis()->SetLabelSize(0.035);
    Graph_Graph_Graph22->GetZaxis()->SetTitleSize(0.035);
    Graph_Graph_Graph22->GetZaxis()->SetTitleFont(42);
    gre->SetHistogram(Graph_Graph_Graph22);

    gre->Draw("p&");

    TLegend *leg = new TLegend(0.15,0.15,0.3,0.3,NULL,"brNDC");
    leg->SetBorderSize(0);
    leg->SetTextFont(62);
    leg->SetTextSize(0.035);
    leg->SetLineColor(1);
    leg->SetLineStyle(1);
    leg->SetLineWidth(1);
    leg->SetFillColor(0);
    leg->SetFillStyle(1001);
    TLegendEntry *entry=leg->AddEntry("NULL","GIF++ test beams 08.2015","h");
    entry->SetLineColor(1);
    entry->SetLineStyle(1);
    entry->SetLineWidth(1);
    entry->SetMarkerColor(1);
    entry->SetMarkerStyle(21);
    entry->SetMarkerSize(1);
    entry->SetTextFont(62);
    entry=leg->AddEntry("Graph0","Low Resistive Glass RPC ~10^{10}#Omega","p");
    entry->SetFillStyle(1001);
    entry->SetLineColor(4);
    entry->SetLineStyle(1);
    entry->SetLineWidth(1);
    entry->SetMarkerColor(4);
    entry->SetMarkerStyle(22);
    entry->SetMarkerSize(1.8);
    entry->SetTextFont(42);
    entry=leg->AddEntry("Graph1","Float Glass RPC ~10^{12}-10^{13}#Omega","p");
    entry->SetFillStyle(1001);
    entry->SetLineColor(2);
    entry->SetLineStyle(1);
    entry->SetLineWidth(1);
    entry->SetMarkerColor(2);
    entry->SetMarkerStyle(3);
    entry->SetMarkerSize(1.8);
    entry->SetTextFont(42);
    leg->Draw();
    TLine *line = new TLine(0,1,1650000,1);
    line->SetLineStyle(2);
    line->Draw();

    TH1F *Graph_Graph1 = new TH1F("Graph_Graph1","",100,135,1649985);
    Graph_Graph1->SetMinimum(0);
    Graph_Graph1->SetMaximum(1.07149);
    Graph_Graph1->SetDirectory(0);
    Graph_Graph1->SetStats(0);

    ci = TColor::GetColor("#000099");
    Graph_Graph1->SetLineColor(ci);
    Graph_Graph1->SetLineStyle(0);
    Graph_Graph1->SetMarkerStyle(20);
    Graph_Graph1->GetXaxis()->SetTitle("Cesium Source Rate ( N_{#gamma}.cm^{-2}.s^{-1} )");
    Graph_Graph1->GetXaxis()->CenterTitle(true);
    Graph_Graph1->GetXaxis()->SetLabelFont(42);
    Graph_Graph1->GetXaxis()->SetLabelOffset(0.007);
    Graph_Graph1->GetXaxis()->SetLabelSize(0.035);
    Graph_Graph1->GetXaxis()->SetTitleSize(0.045);
    Graph_Graph1->GetXaxis()->SetTitleOffset(1.1);
    Graph_Graph1->GetXaxis()->SetTitleFont(42);
    Graph_Graph1->GetYaxis()->SetTitle("#mu detection efficiency");
    Graph_Graph1->GetYaxis()->SetRange(0,1);
    Graph_Graph1->GetYaxis()->CenterTitle(true);
    Graph_Graph1->GetYaxis()->SetLabelFont(42);
    Graph_Graph1->GetYaxis()->SetLabelOffset(0.007);
    Graph_Graph1->GetYaxis()->SetLabelSize(0.035);
    Graph_Graph1->GetYaxis()->SetTitleSize(0.045);
    Graph_Graph1->GetYaxis()->SetTitleOffset(1.1);
    Graph_Graph1->GetYaxis()->SetTitleFont(42);
    Graph_Graph1->GetZaxis()->SetLabelFont(42);
    Graph_Graph1->GetZaxis()->SetLabelOffset(0.007);
    Graph_Graph1->GetZaxis()->SetLabelSize(0.035);
    Graph_Graph1->GetZaxis()->SetTitleSize(0.035);
    Graph_Graph1->GetZaxis()->SetTitleFont(42);
    Graph_Graph1->Draw("sameaxis");
    TLatex *   tex = new TLatex(0.96,0.936," ");
    tex->SetNDC();
    tex->SetTextAlign(31);
    tex->SetTextFont(42);
    tex->SetTextSize(0.048);
    tex->SetLineWidth(2);
    tex->Draw();
    tex = new TLatex(0.1722,0.892,"Preliminary");
    tex->SetNDC();
    tex->SetTextAlign(13);
    tex->SetTextFont(52);
    tex->SetTextSize(0.0456);
    tex->SetLineWidth(2);
    tex->Draw();
    tex = new TLatex(0.1722,0.851872,"CMS gas mixture : 95.2% TFE, 4.5%CO_{2}, 0.3%SF_{6}");
    tex->SetNDC();
    tex->SetTextAlign(13);
    tex->SetTextFont(52);
    tex->SetTextSize(0.032);
    tex->SetLineWidth(2);
    tex->Draw();
    tex = new TLatex(0.1722,0.811744,"Threshold : 0.13pC");
    tex->SetNDC();
    tex->SetTextAlign(13);
    tex->SetTextFont(52);
    tex->SetTextSize(0.032);
    tex->SetLineWidth(2);
    tex->Draw();
    tex = new TLatex(0.1722,0.7635904,"Sensitivity to background with E_{#gamma} = 661.7 keV : 3.1 hits/1000 #gamma");
    tex->SetNDC();
    tex->SetTextAlign(13);
    tex->SetTextFont(52);
    tex->SetTextSize(0.032);
    tex->SetLineWidth(2);
    tex->Draw();

    TH1F *Graph_Graph1 = new TH1F("Graph_Graph1","",100,135,1649985);
    Graph_Graph1->SetMinimum(0);
    Graph_Graph1->SetMaximum(1.07149);
    Graph_Graph1->SetDirectory(0);
    Graph_Graph1->SetStats(0);

    ci = TColor::GetColor("#000099");
    Graph_Graph1->SetLineColor(ci);
    Graph_Graph1->SetLineStyle(0);
    Graph_Graph1->SetMarkerStyle(20);
    Graph_Graph1->GetXaxis()->SetTitle("Cesium Source Rate ( N_{#gamma}.cm^{-2}.s^{-1} )");
    Graph_Graph1->GetXaxis()->CenterTitle(true);
    Graph_Graph1->GetXaxis()->SetLabelFont(42);
    Graph_Graph1->GetXaxis()->SetLabelOffset(0.007);
    Graph_Graph1->GetXaxis()->SetLabelSize(0.035);
    Graph_Graph1->GetXaxis()->SetTitleSize(0.045);
    Graph_Graph1->GetXaxis()->SetTitleOffset(1.1);
    Graph_Graph1->GetXaxis()->SetTitleFont(42);
    Graph_Graph1->GetYaxis()->SetTitle("#mu detection efficiency");
    Graph_Graph1->GetYaxis()->SetRange(0,1);
    Graph_Graph1->GetYaxis()->CenterTitle(true);
    Graph_Graph1->GetYaxis()->SetLabelFont(42);
    Graph_Graph1->GetYaxis()->SetLabelOffset(0.007);
    Graph_Graph1->GetYaxis()->SetLabelSize(0.035);
    Graph_Graph1->GetYaxis()->SetTitleSize(0.045);
    Graph_Graph1->GetYaxis()->SetTitleOffset(1.1);
    Graph_Graph1->GetYaxis()->SetTitleFont(42);
    Graph_Graph1->GetZaxis()->SetLabelFont(42);
    Graph_Graph1->GetZaxis()->SetLabelOffset(0.007);
    Graph_Graph1->GetZaxis()->SetLabelSize(0.035);
    Graph_Graph1->GetZaxis()->SetTitleSize(0.035);
    Graph_Graph1->GetZaxis()->SetTitleFont(42);
    Graph_Graph1->Draw("sameaxis");
    FigExample->Modified();
    FigExample->cd();
    FigExample->SetSelected(FigExample);
}
示例#16
0
void RatioPlot()
{
//=========Macro generated from canvas: c/c
//=========  (Mon Feb  8 04:04:50 2016) by ROOT version6.02/05
   TCanvas *c = new TCanvas("c", "c",0,22,700,500);
   gStyle->SetOptStat(0);
   c->Range(-2.75,-0.125,22.75,1.125);
   c->SetFillColor(0);
   c->SetBorderMode(0);
   c->SetBorderSize(2);
   c->SetFrameBorderMode(0);
   c->SetFrameBorderMode(0);
   
   TH2F *dummy31 = new TH2F("dummy31","",400,-0.2,20.2,100,0,1);

   Int_t ci;      // for color index setting
   TColor *color; // for color definition with alpha
   ci = TColor::GetColor("#000099");
   dummy31->SetLineColor(ci);
   dummy31->GetXaxis()->SetTitle("c#tau [mm]");
   dummy31->GetXaxis()->SetLabelFont(42);
   dummy31->GetXaxis()->SetLabelSize(0.035);
   dummy31->GetXaxis()->SetTitleSize(0.035);
   dummy31->GetXaxis()->SetTitleFont(42);
   dummy31->GetYaxis()->SetTitle("#epsilon_{full}/#alpha_{gen}");
   dummy31->GetYaxis()->SetLabelFont(42);
   dummy31->GetYaxis()->SetLabelSize(0.035);
   dummy31->GetYaxis()->SetTitleSize(0.035);
   dummy31->GetYaxis()->SetTitleFont(42);
   dummy31->GetZaxis()->SetLabelFont(42);
   dummy31->GetZaxis()->SetLabelSize(0.035);
   dummy31->GetZaxis()->SetTitleSize(0.035);
   dummy31->GetZaxis()->SetTitleFont(42);
   dummy31->Draw("");
   
   Double_t Graph0_fx1001[11] = {
   0,
   0.05,
   0.1,
   0.2,
   0.5,
   1,
   2,
   3,
   5,
   10,
   20};
   Double_t Graph0_fy1001[11] = {
   0.6263773,
   0.6093359,
   0.6089716,
   0.6266389,
   0.6476112,
   0.687127,
   0.6566757,
   0.7160494,
   0.6727273,
   0.5,
   0.6363636};
   Double_t Graph0_fex1001[11] = {
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0};
   Double_t Graph0_fey1001[11] = {
   0.003617954,
   0.003452905,
   0.003812233,
   0.004599549,
   0.007938784,
   0.01353797,
   0.02478533,
   0.03542708,
   0.06326931,
   0.07537784,
   0.1450407};
   TGraphErrors *gre = new TGraphErrors(11,Graph0_fx1001,Graph0_fy1001,Graph0_fex1001,Graph0_fey1001);
   gre->SetName("Graph0");
   gre->SetTitle("Graph");
   gre->SetFillColor(1);
   gre->SetMarkerStyle(7);
   gre->SetMarkerSize(5);
   
   TH1F *Graph_Graph1001 = new TH1F("Graph_Graph1001","Graph",100,0,22);
   Graph_Graph1001->SetMinimum(0.3889439);
   Graph_Graph1001->SetMaximum(0.8170826);
   Graph_Graph1001->SetDirectory(0);
   Graph_Graph1001->SetStats(0);

   ci = TColor::GetColor("#000099");
   Graph_Graph1001->SetLineColor(ci);
   Graph_Graph1001->GetXaxis()->SetLabelFont(42);
   Graph_Graph1001->GetXaxis()->SetLabelSize(0.035);
   Graph_Graph1001->GetXaxis()->SetTitleSize(0.035);
   Graph_Graph1001->GetXaxis()->SetTitleFont(42);
   Graph_Graph1001->GetYaxis()->SetLabelFont(42);
   Graph_Graph1001->GetYaxis()->SetLabelSize(0.035);
   Graph_Graph1001->GetYaxis()->SetTitleSize(0.035);
   Graph_Graph1001->GetYaxis()->SetTitleFont(42);
   Graph_Graph1001->GetZaxis()->SetLabelFont(42);
   Graph_Graph1001->GetZaxis()->SetLabelSize(0.035);
   Graph_Graph1001->GetZaxis()->SetTitleSize(0.035);
   Graph_Graph1001->GetZaxis()->SetTitleFont(42);
   gre->SetHistogram(Graph_Graph1001);
   
   gre->Draw(" pl");
   
   Double_t Graph1_fx1002[9] = {
   0,
   0.05,
   0.1,
   0.2,
   0.5,
   1,
   2,
   3,
   5};
   Double_t Graph1_fy1002[9] = {
   0.6514658,
   0.6416856,
   0.6326761,
   0.6479022,
   0.6696315,
   0.7406897,
   0.7671233,
   0.8043478,
   0.8064516};
   Double_t Graph1_fex1002[9] = {
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0};
   Double_t Graph1_fey1002[9] = {
   0.004300009,
   0.004478815,
   0.003819988,
   0.004685294,
   0.009679864,
   0.01627643,
   0.02473456,
   0.0584905,
   0.07095828};
   gre = new TGraphErrors(9,Graph1_fx1002,Graph1_fy1002,Graph1_fex1002,Graph1_fey1002);
   gre->SetName("Graph1");
   gre->SetTitle("Graph");
   gre->SetFillColor(1);
   gre->SetLineColor(2);
   gre->SetMarkerColor(2);
   gre->SetMarkerStyle(7);
   gre->SetMarkerSize(5);
   
   TH1F *Graph_Graph1002 = new TH1F("Graph_Graph1002","Graph",100,0,5.5);
   Graph_Graph1002->SetMinimum(0.6040008);
   Graph_Graph1002->SetMaximum(0.9022653);
   Graph_Graph1002->SetDirectory(0);
   Graph_Graph1002->SetStats(0);

   ci = TColor::GetColor("#000099");
   Graph_Graph1002->SetLineColor(ci);
   Graph_Graph1002->GetXaxis()->SetLabelFont(42);
   Graph_Graph1002->GetXaxis()->SetLabelSize(0.035);
   Graph_Graph1002->GetXaxis()->SetTitleSize(0.035);
   Graph_Graph1002->GetXaxis()->SetTitleFont(42);
   Graph_Graph1002->GetYaxis()->SetLabelFont(42);
   Graph_Graph1002->GetYaxis()->SetLabelSize(0.035);
   Graph_Graph1002->GetYaxis()->SetTitleSize(0.035);
   Graph_Graph1002->GetYaxis()->SetTitleFont(42);
   Graph_Graph1002->GetZaxis()->SetLabelFont(42);
   Graph_Graph1002->GetZaxis()->SetLabelSize(0.035);
   Graph_Graph1002->GetZaxis()->SetTitleSize(0.035);
   Graph_Graph1002->GetZaxis()->SetTitleFont(42);
   gre->SetHistogram(Graph_Graph1002);
   
   gre->Draw(" pl");
   
   Double_t Graph2_fx1003[9] = {
   0,
   0.05,
   0.1,
   0.2,
   0.5,
   1,
   2,
   3,
   5};
   Double_t Graph2_fy1003[9] = {
   0.6723047,
   0.6589839,
   0.6429941,
   0.6576543,
   0.6838966,
   0.7941176,
   0.7376093,
   0.7065217,
   1};
   Double_t Graph2_fex1003[9] = {
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0};
   Double_t Graph2_fey1003[9] = {
   0.004903155,
   0.006039476,
   0.004282267,
   0.005308662,
   0.007835682,
   0.06934458,
   0.0237542,
   0.03356926,
   0};
   gre = new TGraphErrors(9,Graph2_fx1003,Graph2_fy1003,Graph2_fex1003,Graph2_fey1003);
   gre->SetName("Graph2");
   gre->SetTitle("Graph");
   gre->SetFillColor(1);
   gre->SetLineColor(3);
   gre->SetMarkerColor(3);
   gre->SetMarkerStyle(7);
   gre->SetMarkerSize(5);
   
   TH1F *Graph_Graph1003 = new TH1F("Graph_Graph1003","Graph",100,0,5.5);
   Graph_Graph1003->SetMinimum(0.602583);
   Graph_Graph1003->SetMaximum(1.036129);
   Graph_Graph1003->SetDirectory(0);
   Graph_Graph1003->SetStats(0);

   ci = TColor::GetColor("#000099");
   Graph_Graph1003->SetLineColor(ci);
   Graph_Graph1003->GetXaxis()->SetLabelFont(42);
   Graph_Graph1003->GetXaxis()->SetLabelSize(0.035);
   Graph_Graph1003->GetXaxis()->SetTitleSize(0.035);
   Graph_Graph1003->GetXaxis()->SetTitleFont(42);
   Graph_Graph1003->GetYaxis()->SetLabelFont(42);
   Graph_Graph1003->GetYaxis()->SetLabelSize(0.035);
   Graph_Graph1003->GetYaxis()->SetTitleSize(0.035);
   Graph_Graph1003->GetYaxis()->SetTitleFont(42);
   Graph_Graph1003->GetZaxis()->SetLabelFont(42);
   Graph_Graph1003->GetZaxis()->SetLabelSize(0.035);
   Graph_Graph1003->GetZaxis()->SetTitleSize(0.035);
   Graph_Graph1003->GetZaxis()->SetTitleFont(42);
   gre->SetHistogram(Graph_Graph1003);
   
   gre->Draw(" pl");
   
   Double_t Graph3_fx1004[9] = {
   0,
   0.05,
   0.1,
   0.2,
   0.5,
   1,
   2,
   3,
   5};
   Double_t Graph3_fy1004[9] = {
   0.6748178,
   0.6517303,
   0.6591389,
   0.653531,
   0.6774732,
   0.7201717,
   0.7198697,
   0.7260274,
   0.6923077};
   Double_t Graph3_fex1004[9] = {
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0};
   Double_t Graph3_fey1004[9] = {
   0.003921157,
   0.004304159,
   0.006041756,
   0.009399202,
   0.007217104,
   0.01315228,
   0.02562936,
   0.03691082,
   0.05225894};
   gre = new TGraphErrors(9,Graph3_fx1004,Graph3_fy1004,Graph3_fex1004,Graph3_fey1004);
   gre->SetName("Graph3");
   gre->SetTitle("Graph");
   gre->SetFillColor(1);
   gre->SetLineColor(7);
   gre->SetMarkerColor(7);
   gre->SetMarkerStyle(7);
   gre->SetMarkerSize(5);
   
   TH1F *Graph_Graph1004 = new TH1F("Graph_Graph1004","Graph",100,0,5.5);
   Graph_Graph1004->SetMinimum(0.6277598);
   Graph_Graph1004->SetMaximum(0.7752272);
   Graph_Graph1004->SetDirectory(0);
   Graph_Graph1004->SetStats(0);

   ci = TColor::GetColor("#000099");
   Graph_Graph1004->SetLineColor(ci);
   Graph_Graph1004->GetXaxis()->SetLabelFont(42);
   Graph_Graph1004->GetXaxis()->SetLabelSize(0.035);
   Graph_Graph1004->GetXaxis()->SetTitleSize(0.035);
   Graph_Graph1004->GetXaxis()->SetTitleFont(42);
   Graph_Graph1004->GetYaxis()->SetLabelFont(42);
   Graph_Graph1004->GetYaxis()->SetLabelSize(0.035);
   Graph_Graph1004->GetYaxis()->SetTitleSize(0.035);
   Graph_Graph1004->GetYaxis()->SetTitleFont(42);
   Graph_Graph1004->GetZaxis()->SetLabelFont(42);
   Graph_Graph1004->GetZaxis()->SetLabelSize(0.035);
   Graph_Graph1004->GetZaxis()->SetTitleSize(0.035);
   Graph_Graph1004->GetZaxis()->SetTitleFont(42);
   gre->SetHistogram(Graph_Graph1004);
   
   gre->Draw(" pl");
   
   Double_t Graph4_fx1005[9] = {
   0,
   0.05,
   0.1,
   0.2,
   0.5,
   1,
   2,
   3,
   5};
   Double_t Graph4_fy1005[9] = {
   0.6867879,
   0.6728068,
   0.6743687,
   0.6736553,
   0.6777217,
   0.7043302,
   0.7062147,
   0.738204,
   0.7375};
   Double_t Graph4_fex1005[9] = {
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0};
   Double_t Graph4_fey1005[9] = {
   0.004028779,
   0.003941647,
   0.004032707,
   0.004410025,
   0.005612004,
   0.0118701,
   0.01531129,
   0.0171509,
   0.0491927};
   gre = new TGraphErrors(9,Graph4_fx1005,Graph4_fy1005,Graph4_fex1005,Graph4_fey1005);
   gre->SetName("Graph4");
   gre->SetTitle("Graph");
   gre->SetFillColor(1);
   gre->SetLineColor(8);
   gre->SetMarkerColor(8);
   gre->SetMarkerStyle(7);
   gre->SetMarkerSize(5);
   
   TH1F *Graph_Graph1005 = new TH1F("Graph_Graph1005","Graph",100,0,5.5);
   Graph_Graph1005->SetMinimum(0.6570824);
   Graph_Graph1005->SetMaximum(0.7984755);
   Graph_Graph1005->SetDirectory(0);
   Graph_Graph1005->SetStats(0);

   ci = TColor::GetColor("#000099");
   Graph_Graph1005->SetLineColor(ci);
   Graph_Graph1005->GetXaxis()->SetLabelFont(42);
   Graph_Graph1005->GetXaxis()->SetLabelSize(0.035);
   Graph_Graph1005->GetXaxis()->SetTitleSize(0.035);
   Graph_Graph1005->GetXaxis()->SetTitleFont(42);
   Graph_Graph1005->GetYaxis()->SetLabelFont(42);
   Graph_Graph1005->GetYaxis()->SetLabelSize(0.035);
   Graph_Graph1005->GetYaxis()->SetTitleSize(0.035);
   Graph_Graph1005->GetYaxis()->SetTitleFont(42);
   Graph_Graph1005->GetZaxis()->SetLabelFont(42);
   Graph_Graph1005->GetZaxis()->SetLabelSize(0.035);
   Graph_Graph1005->GetZaxis()->SetTitleSize(0.035);
   Graph_Graph1005->GetZaxis()->SetTitleFont(42);
   gre->SetHistogram(Graph_Graph1005);
   
   gre->Draw(" pl");
   
   Double_t Graph5_fx1006[9] = {
   0,
   0.05,
   0.1,
   0.2,
   0.5,
   1,
   2,
   3,
   5};
   Double_t Graph5_fy1006[9] = {
   0.6756335,
   0.6781523,
   0.6774474,
   0.6698265,
   0.6754523,
   0.6925329,
   0.7143727,
   0.7442177,
   0.7108753};
   Double_t Graph5_fex1006[9] = {
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0};
   Double_t Graph5_fey1006[9] = {
   0.004360858,
   0.004526824,
   0.003976201,
   0.004215048,
   0.004947981,
   0.0066736,
   0.01114745,
   0.01609317,
   0.02334902};
   gre = new TGraphErrors(9,Graph5_fx1006,Graph5_fy1006,Graph5_fex1006,Graph5_fey1006);
   gre->SetName("Graph5");
   gre->SetTitle("Graph");
   gre->SetFillColor(1);
   gre->SetLineColor(9);
   gre->SetMarkerColor(9);
   gre->SetMarkerStyle(7);
   gre->SetMarkerSize(5);
   
   TH1F *Graph_Graph1006 = new TH1F("Graph_Graph1006","Graph",100,0,5.5);
   Graph_Graph1006->SetMinimum(0.6561415);
   Graph_Graph1006->SetMaximum(0.7697808);
   Graph_Graph1006->SetDirectory(0);
   Graph_Graph1006->SetStats(0);

   ci = TColor::GetColor("#000099");
   Graph_Graph1006->SetLineColor(ci);
   Graph_Graph1006->GetXaxis()->SetLabelFont(42);
   Graph_Graph1006->GetXaxis()->SetLabelSize(0.035);
   Graph_Graph1006->GetXaxis()->SetTitleSize(0.035);
   Graph_Graph1006->GetXaxis()->SetTitleFont(42);
   Graph_Graph1006->GetYaxis()->SetLabelFont(42);
   Graph_Graph1006->GetYaxis()->SetLabelSize(0.035);
   Graph_Graph1006->GetYaxis()->SetTitleSize(0.035);
   Graph_Graph1006->GetYaxis()->SetTitleFont(42);
   Graph_Graph1006->GetZaxis()->SetLabelFont(42);
   Graph_Graph1006->GetZaxis()->SetLabelSize(0.035);
   Graph_Graph1006->GetZaxis()->SetTitleSize(0.035);
   Graph_Graph1006->GetZaxis()->SetTitleFont(42);
   gre->SetHistogram(Graph_Graph1006);
   
   gre->Draw(" pl");
   
   Double_t Graph6_fx1007[8] = {
   0,
   0.05,
   0.1,
   0.2,
   1,
   2,
   3,
   5};
   Double_t Graph6_fy1007[8] = {
   0.6812023,
   0.6763509,
   0.6851705,
   0.6878941,
   0.6878173,
   0.7069583,
   0.7088734,
   0.7517162};
   Double_t Graph6_fex1007[8] = {
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0};
   Double_t Graph6_fey1007[8] = {
   0.004112248,
   0.004220682,
   0.01307915,
   0.004749901,
   0.006474723,
   0.009075961,
   0.01014285,
   0.0146132};
   gre = new TGraphErrors(8,Graph6_fx1007,Graph6_fy1007,Graph6_fex1007,Graph6_fey1007);
   gre->SetName("Graph6");
   gre->SetTitle("Graph");
   gre->SetFillColor(1);

   ci = TColor::GetColor("#ffcc00");
   gre->SetLineColor(ci);

   ci = TColor::GetColor("#ffcc00");
   gre->SetMarkerColor(ci);
   gre->SetMarkerStyle(7);
   gre->SetMarkerSize(5);
   
   TH1F *Graph_Graph1007 = new TH1F("Graph_Graph1007","Graph",100,0,5.5);
   Graph_Graph1007->SetMinimum(0.6626675);
   Graph_Graph1007->SetMaximum(0.7757533);
   Graph_Graph1007->SetDirectory(0);
   Graph_Graph1007->SetStats(0);

   ci = TColor::GetColor("#000099");
   Graph_Graph1007->SetLineColor(ci);
   Graph_Graph1007->GetXaxis()->SetLabelFont(42);
   Graph_Graph1007->GetXaxis()->SetLabelSize(0.035);
   Graph_Graph1007->GetXaxis()->SetTitleSize(0.035);
   Graph_Graph1007->GetXaxis()->SetTitleFont(42);
   Graph_Graph1007->GetYaxis()->SetLabelFont(42);
   Graph_Graph1007->GetYaxis()->SetLabelSize(0.035);
   Graph_Graph1007->GetYaxis()->SetTitleSize(0.035);
   Graph_Graph1007->GetYaxis()->SetTitleFont(42);
   Graph_Graph1007->GetZaxis()->SetLabelFont(42);
   Graph_Graph1007->GetZaxis()->SetLabelSize(0.035);
   Graph_Graph1007->GetZaxis()->SetTitleSize(0.035);
   Graph_Graph1007->GetZaxis()->SetTitleFont(42);
   gre->SetHistogram(Graph_Graph1007);
   
   gre->Draw(" pl");
   
   Double_t Graph7_fx1008[11] = {
   0,
   0.05,
   0.1,
   0.2,
   0.5,
   1,
   2,
   3,
   5,
   10,
   20};
   Double_t Graph7_fy1008[11] = {
   0.683087,
   0.693799,
   0.6853017,
   0.6814364,
   0.6712711,
   0.6809284,
   0.6746204,
   0.7442773,
   0.7352151,
   0.7230584,
   0.7238979};
   Double_t Graph7_fex1008[11] = {
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0};
   Double_t Graph7_fey1008[11] = {
   0.005684641,
   0.005503086,
   0.00555297,
   0.005606572,
   0.005852263,
   0.006621753,
   0.008908382,
   0.01115702,
   0.01617586,
   0.01097984,
   0.0215345};
   gre = new TGraphErrors(11,Graph7_fx1008,Graph7_fy1008,Graph7_fex1008,Graph7_fey1008);
   gre->SetName("Graph7");
   gre->SetTitle("Graph");
   gre->SetFillColor(1);
   gre->SetLineColor(4);
   gre->SetMarkerColor(4);
   gre->SetMarkerStyle(7);
   gre->SetMarkerSize(5);
   
   TH1F *Graph_Graph1008 = new TH1F("Graph_Graph1008","Graph",100,0,22);
   Graph_Graph1008->SetMinimum(0.6564173);
   Graph_Graph1008->SetMaximum(0.7644359);
   Graph_Graph1008->SetDirectory(0);
   Graph_Graph1008->SetStats(0);

   ci = TColor::GetColor("#000099");
   Graph_Graph1008->SetLineColor(ci);
   Graph_Graph1008->GetXaxis()->SetLabelFont(42);
   Graph_Graph1008->GetXaxis()->SetLabelSize(0.035);
   Graph_Graph1008->GetXaxis()->SetTitleSize(0.035);
   Graph_Graph1008->GetXaxis()->SetTitleFont(42);
   Graph_Graph1008->GetYaxis()->SetLabelFont(42);
   Graph_Graph1008->GetYaxis()->SetLabelSize(0.035);
   Graph_Graph1008->GetYaxis()->SetTitleSize(0.035);
   Graph_Graph1008->GetYaxis()->SetTitleFont(42);
   Graph_Graph1008->GetZaxis()->SetLabelFont(42);
   Graph_Graph1008->GetZaxis()->SetLabelSize(0.035);
   Graph_Graph1008->GetZaxis()->SetTitleSize(0.035);
   Graph_Graph1008->GetZaxis()->SetTitleFont(42);
   gre->SetHistogram(Graph_Graph1008);
   
   gre->Draw(" pl");
   
   Double_t Graph8_fx1009[9] = {
   0,
   0.05,
   0.1,
   0.2,
   0.5,
   1,
   2,
   3,
   5};
   Double_t Graph8_fy1009[9] = {
   0.6763273,
   0.6728698,
   0.6706598,
   0.6686953,
   0.6702438,
   0.6629484,
   0.6587852,
   0.6699412,
   0.6794829};
   Double_t Graph8_fex1009[9] = {
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0};
   Double_t Graph8_fey1009[9] = {
   0.003746493,
   0.00374542,
   0.003741634,
   0.003709151,
   0.003702686,
   0.003763241,
   0.003947963,
   0.004403951,
   0.004905311};
   gre = new TGraphErrors(9,Graph8_fx1009,Graph8_fy1009,Graph8_fex1009,Graph8_fey1009);
   gre->SetName("Graph8");
   gre->SetTitle("Graph");
   gre->SetFillColor(1);
   gre->SetLineColor(6);
   gre->SetMarkerColor(6);
   gre->SetMarkerStyle(7);
   gre->SetMarkerSize(5);
   
   TH1F *Graph_Graph1009 = new TH1F("Graph_Graph1009","Graph",100,0,5.5);
   Graph_Graph1009->SetMinimum(0.6518821);
   Graph_Graph1009->SetMaximum(0.6873433);
   Graph_Graph1009->SetDirectory(0);
   Graph_Graph1009->SetStats(0);

   ci = TColor::GetColor("#000099");
   Graph_Graph1009->SetLineColor(ci);
   Graph_Graph1009->GetXaxis()->SetLabelFont(42);
   Graph_Graph1009->GetXaxis()->SetLabelSize(0.035);
   Graph_Graph1009->GetXaxis()->SetTitleSize(0.035);
   Graph_Graph1009->GetXaxis()->SetTitleFont(42);
   Graph_Graph1009->GetYaxis()->SetLabelFont(42);
   Graph_Graph1009->GetYaxis()->SetLabelSize(0.035);
   Graph_Graph1009->GetYaxis()->SetTitleSize(0.035);
   Graph_Graph1009->GetYaxis()->SetTitleFont(42);
   Graph_Graph1009->GetZaxis()->SetLabelFont(42);
   Graph_Graph1009->GetZaxis()->SetLabelSize(0.035);
   Graph_Graph1009->GetZaxis()->SetTitleSize(0.035);
   Graph_Graph1009->GetZaxis()->SetTitleFont(42);
   gre->SetHistogram(Graph_Graph1009);
   
   gre->Draw(" pl");
   
   TLegend *leg = new TLegend(0.5,0.3,0.85,0.6,NULL,"brNDC");
   leg->SetBorderSize(0);
   leg->SetTextSize(0.045);
   leg->SetLineColor(1);
   leg->SetLineStyle(1);
   leg->SetLineWidth(1);
   leg->SetFillColor(0);
   leg->SetFillStyle(1001);
   TLegendEntry *entry=leg->AddEntry("Graph0","m_{#gamma D}=0.250 GeV","PL");
   entry->SetLineColor(1);
   entry->SetLineStyle(1);
   entry->SetLineWidth(1);
   entry->SetMarkerColor(1);
   entry->SetMarkerStyle(7);
   entry->SetMarkerSize(5);
   entry->SetTextFont(42);
   entry=leg->AddEntry("Graph1","m_{#gamma D}=0.275 GeV","PL");
   entry->SetLineColor(2);
   entry->SetLineStyle(1);
   entry->SetLineWidth(1);
   entry->SetMarkerColor(2);
   entry->SetMarkerStyle(7);
   entry->SetMarkerSize(5);
   entry->SetTextFont(42);
   entry=leg->AddEntry("Graph2","m_{#gamma D}=0.300 GeV","PL");
   entry->SetLineColor(3);
   entry->SetLineStyle(1);
   entry->SetLineWidth(1);
   entry->SetMarkerColor(3);
   entry->SetMarkerStyle(7);
   entry->SetMarkerSize(5);
   entry->SetTextFont(42);
   entry=leg->AddEntry("Graph3","m_{#gamma D}=0.400 GeV","PL");
   entry->SetLineColor(7);
   entry->SetLineStyle(1);
   entry->SetLineWidth(1);
   entry->SetMarkerColor(7);
   entry->SetMarkerStyle(7);
   entry->SetMarkerSize(5);
   entry->SetTextFont(42);
   entry=leg->AddEntry("Graph4","m_{#gamma D}=0.700 GeV","PL");
   entry->SetLineColor(8);
   entry->SetLineStyle(1);
   entry->SetLineWidth(1);
   entry->SetMarkerColor(8);
   entry->SetMarkerStyle(7);
   entry->SetMarkerSize(5);
   entry->SetTextFont(42);
   entry=leg->AddEntry("Graph5","m_{#gamma D}=1.000 GeV","PL");
   entry->SetLineColor(9);
   entry->SetLineStyle(1);
   entry->SetLineWidth(1);
   entry->SetMarkerColor(9);
   entry->SetMarkerStyle(7);
   entry->SetMarkerSize(5);
   entry->SetTextFont(42);
   entry=leg->AddEntry("Graph6","m_{#gamma D}=1.500 GeV","PL");

   ci = TColor::GetColor("#ffcc00");
   entry->SetLineColor(ci);
   entry->SetLineStyle(1);
   entry->SetLineWidth(1);

   ci = TColor::GetColor("#ffcc00");
   entry->SetMarkerColor(ci);
   entry->SetMarkerStyle(7);
   entry->SetMarkerSize(5);
   entry->SetTextFont(42);
   entry=leg->AddEntry("Graph7","m_{#gamma D}=2.000 GeV","PL");
   entry->SetLineColor(4);
   entry->SetLineStyle(1);
   entry->SetLineWidth(1);
   entry->SetMarkerColor(4);
   entry->SetMarkerStyle(7);
   entry->SetMarkerSize(5);
   entry->SetTextFont(42);
   entry=leg->AddEntry("Graph8","m_{#gamma D}=8.500 GeV","PL");
   entry->SetLineColor(6);
   entry->SetLineStyle(1);
   entry->SetLineWidth(1);
   entry->SetMarkerColor(6);
   entry->SetMarkerStyle(7);
   entry->SetMarkerSize(5);
   entry->SetTextFont(42);
   leg->Draw();
   c->Modified();
   c->cd();
   c->SetSelected(c);
}
void paraPull_alpha_MUONS_MS_2TeV_2Lep_plots_All()
{
//=========Macro generated from canvas: c1/alpha_MUONS_MS
//=========  (Sun Nov 22 20:19:53 2015) by ROOT version6.02/12
    TCanvas *c1 = new TCanvas("c1", "alpha_MUONS_MS",0,22,1000,600);
    gStyle->SetOptStat(0);
    c1->Range(-4.125,-1.009766,37.125,0.9890026);
    c1->SetFillColor(0);
    c1->SetBorderMode(0);
    c1->SetBorderSize(2);
    c1->SetGridx();
    c1->SetGridy();
    c1->SetFrameBorderMode(0);
    c1->SetFrameBorderMode(0);

    TH1F *NuisanceParameterFreed26 = new TH1F("NuisanceParameterFreed26","alpha_MUONS_MS",33,0,33);
    NuisanceParameterFreed26->SetMinimum(-0.8098895);
    NuisanceParameterFreed26->SetMaximum(0.7891257);
    NuisanceParameterFreed26->SetStats(0);

    Int_t ci;      // for color index setting
    TColor *color; // for color definition with alpha
    ci = TColor::GetColor("#000099");
    NuisanceParameterFreed26->SetLineColor(ci);
    NuisanceParameterFreed26->GetXaxis()->SetBinLabel(1,"XS_ttbar");
    NuisanceParameterFreed26->GetXaxis()->SetBinLabel(2,"FT_EFF_Eigen_C_0");
    NuisanceParameterFreed26->GetXaxis()->SetBinLabel(3,"EG_SCALE_ALL");
    NuisanceParameterFreed26->GetXaxis()->SetBinLabel(4,"Luminosity");
    NuisanceParameterFreed26->GetXaxis()->SetBinLabel(5,"XS_st");
    NuisanceParameterFreed26->GetXaxis()->SetBinLabel(6,"XS_Zc");
    NuisanceParameterFreed26->GetXaxis()->SetBinLabel(7,"MUONS_ID");
    NuisanceParameterFreed26->GetXaxis()->SetBinLabel(8,"FT_EFF_Eigen_B_1");
    NuisanceParameterFreed26->GetXaxis()->SetBinLabel(9,"FT_EFF_Eigen_C_1");
    NuisanceParameterFreed26->GetXaxis()->SetBinLabel(10,"EL_EFF_ID_TotalCorrUncertainty");
    NuisanceParameterFreed26->GetXaxis()->SetBinLabel(11,"FT_EFF_Eigen_C_3");
    NuisanceParameterFreed26->GetXaxis()->SetBinLabel(12,"XS_Zl");
    NuisanceParameterFreed26->GetXaxis()->SetBinLabel(13,"MUON_EFF_TrigSystUncertainty");
    NuisanceParameterFreed26->GetXaxis()->SetBinLabel(14,"FT_EFF_Eigen_B_0");
    NuisanceParameterFreed26->GetXaxis()->SetBinLabel(15,"FT_EFF_Eigen_B_2");
    NuisanceParameterFreed26->GetXaxis()->SetBinLabel(16,"EL_EFF_Iso_TotalCorrUncertainty");
    NuisanceParameterFreed26->GetXaxis()->SetBinLabel(17,"EL_EFF_Reco_TotalCorrUncertainty");
    NuisanceParameterFreed26->GetXaxis()->SetBinLabel(18,"MUONS_SCALE");
    NuisanceParameterFreed26->GetXaxis()->SetBinLabel(19,"MUON_ISO_STAT");
    NuisanceParameterFreed26->GetXaxis()->SetBinLabel(20,"FT_EFF_Eigen_Light_2");
    NuisanceParameterFreed26->GetXaxis()->SetBinLabel(21,"MUON_EFF_STAT");
    NuisanceParameterFreed26->GetXaxis()->SetBinLabel(22,"MUON_EFF_SYS");
    NuisanceParameterFreed26->GetXaxis()->SetBinLabel(23,"MUON_EFF_TrigStatUncertainty");
    NuisanceParameterFreed26->GetXaxis()->SetBinLabel(24,"EG_RESOLUTION_ALL");
    NuisanceParameterFreed26->GetXaxis()->SetBinLabel(25,"FT_EFF_Eigen_Light_1");
    NuisanceParameterFreed26->GetXaxis()->SetBinLabel(26,"XS_diboson");
    NuisanceParameterFreed26->GetXaxis()->SetBinLabel(27,"FT_EFF_Eigen_Light_4");
    NuisanceParameterFreed26->GetXaxis()->SetBinLabel(28,"FT_EFF_Eigen_Light_3");
    NuisanceParameterFreed26->GetXaxis()->SetBinLabel(29,"FT_EFF_extrapolation");
    NuisanceParameterFreed26->GetXaxis()->SetBinLabel(30,"FT_EFF_Eigen_C_2");
    NuisanceParameterFreed26->GetXaxis()->SetBinLabel(31,"XS_Zb");
    NuisanceParameterFreed26->GetXaxis()->SetBinLabel(32,"MUON_ISO_SYS");
    NuisanceParameterFreed26->GetXaxis()->SetBinLabel(33,"FT_EFF_Eigen_Light_0");
    NuisanceParameterFreed26->GetXaxis()->SetLabelFont(42);
    NuisanceParameterFreed26->GetXaxis()->SetLabelSize(0.035);
    NuisanceParameterFreed26->GetXaxis()->SetTitleSize(0.035);
    NuisanceParameterFreed26->GetXaxis()->SetTitleFont(42);
    NuisanceParameterFreed26->GetYaxis()->SetTitle("#theta_{fit} - #theta_{initial}/#Delta#theta");
    NuisanceParameterFreed26->GetYaxis()->SetLabelFont(42);
    NuisanceParameterFreed26->GetYaxis()->SetLabelSize(0.035);
    NuisanceParameterFreed26->GetYaxis()->SetTitleSize(0.035);
    NuisanceParameterFreed26->GetYaxis()->SetTitleFont(42);
    NuisanceParameterFreed26->GetZaxis()->SetLabelFont(42);
    NuisanceParameterFreed26->GetZaxis()->SetLabelSize(0.035);
    NuisanceParameterFreed26->GetZaxis()->SetTitleSize(0.035);
    NuisanceParameterFreed26->GetZaxis()->SetTitleFont(42);
    NuisanceParameterFreed26->Draw("hist");

    Double_t _fx1026[35] = {
        1.22802e-312,
        0.5,
        1.5,
        2.5,
        3.5,
        4.5,
        5.5,
        6.5,
        7.5,
        8.5,
        9.5,
        10.5,
        11.5,
        12.5,
        13.5,
        14.5,
        15.5,
        16.5,
        17.5,
        18.5,
        19.5,
        20.5,
        21.5,
        22.5,
        23.5,
        24.5,
        25.5,
        26.5,
        27.5,
        28.5,
        29.5,
        30.5,
        31.5,
        32.5,
        0
    };
    Double_t _fy1026[35] = {
        1.22802e-312,
        -0.8098895,
        -0.4037362,
        -0.3423096,
        -0.2252411,
        -0.1828675,
        -0.1571762,
        -0.149237,
        -0.1273548,
        -0.07358516,
        -0.06808801,
        -0.06198229,
        -0.06031006,
        -0.05293818,
        -0.03417267,
        -0.03238036,
        -0.02689891,
        -0.02542632,
        -0.001643063,
        0.0001603888,
        0.006036281,
        0.01053148,
        0.01679974,
        0.01757673,
        0.01965372,
        0.02264507,
        0.04078009,
        0.05097348,
        0.05337059,
        0.05443933,
        0.05852469,
        0.09383765,
        0.1011771,
        0.7891257,
        0
    };
    Double_t _fex1026[35] = {
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0
    };
    Double_t _fey1026[35] = {
        0,
        0,
        0.6078027,
        1.092912,
        1.104476,
        0.9336719,
        0.9913968,
        0.9144366,
        0.7275085,
        0.9893613,
        0.987145,
        0.9819155,
        0.9938071,
        0.9978833,
        0.9917251,
        0.9510144,
        0.9928258,
        0.9931704,
        0.9925399,
        1.005278,
        0.9933467,
        0.9908674,
        0.9932531,
        0.9930728,
        0.9918603,
        1.137459,
        0.9911371,
        0.9865638,
        0.9931418,
        0.9930512,
        0.9596104,
        0.9909946,
        0.753126,
        0.9864575,
        0.77864
    };
    TGraphErrors *gre = new TGraphErrors(35,_fx1026,_fy1026,_fex1026,_fey1026);
    gre->SetName("");
    gre->SetTitle("");
    gre->SetFillColor(1);
    gre->SetMarkerStyle(20);
    gre->SetMarkerSize(1.2);

    TH1F *Graph_Graph1026 = new TH1F("Graph_Graph1026","",100,0,35.75);
    Graph_Graph1026->SetMinimum(-1.756302);
    Graph_Graph1026->SetMaximum(2.096664);
    Graph_Graph1026->SetDirectory(0);
    Graph_Graph1026->SetStats(0);

    ci = TColor::GetColor("#000099");
    Graph_Graph1026->SetLineColor(ci);
    Graph_Graph1026->GetXaxis()->SetLabelFont(42);
    Graph_Graph1026->GetXaxis()->SetLabelSize(0.035);
    Graph_Graph1026->GetXaxis()->SetTitleSize(0.035);
    Graph_Graph1026->GetXaxis()->SetTitleFont(42);
    Graph_Graph1026->GetYaxis()->SetLabelFont(42);
    Graph_Graph1026->GetYaxis()->SetLabelSize(0.035);
    Graph_Graph1026->GetYaxis()->SetTitleSize(0.035);
    Graph_Graph1026->GetYaxis()->SetTitleFont(42);
    Graph_Graph1026->GetZaxis()->SetLabelFont(42);
    Graph_Graph1026->GetZaxis()->SetLabelSize(0.035);
    Graph_Graph1026->GetZaxis()->SetTitleSize(0.035);
    Graph_Graph1026->GetZaxis()->SetTitleFont(42);
    gre->SetHistogram(Graph_Graph1026);

    gre->Draw("p");

    TLegend *leg = new TLegend(0.1,0.4,0.4,0.95,NULL,"brNDC");
    leg->SetBorderSize(0);
    leg->SetTextFont(72);
    leg->SetTextSize(0.015);
    leg->SetLineColor(1);
    leg->SetLineStyle(1);
    leg->SetLineWidth(1);
    leg->SetFillColor(0);
    leg->SetFillStyle(0);
    leg->Draw();

    TPaveText *pt = new TPaveText(0.3599799,0.9341608,0.6400201,0.995,"blNDC");
    pt->SetName("title");
    pt->SetBorderSize(0);
    pt->SetFillColor(0);
    pt->SetFillStyle(0);
    pt->SetTextFont(42);
    TText *AText = pt->AddText("alpha_MUONS_MS");
    pt->Draw();
    c1->Modified();
    c1->cd();
    c1->SetSelected(c1);
}
示例#18
0
void DrawNCLUSTER()
{
  //=========Macro generated from canvas: r1/Energy
  //=========  (Fri Apr  6 17:14:48 2012) by ROOT version5.28/00g
  TCanvas *r1 = new TCanvas("r1", "Ncluster",12,24,550,741);
  gStyle->SetOptStat(0);
  gStyle->SetOptTitle(0);
  gStyle->SetFrameLineWidth(1);
  r1->Range(0,0,1,1);
  r1->SetFillColor(0);
  r1->SetBorderMode(0);
  r1->SetBorderSize(0);
  r1->SetTickx(1);
  r1->SetTicky(1);
  r1->SetLeftMargin(0.16);
  r1->SetRightMargin(0.01);
  r1->SetTopMargin(0.0256917);
  r1->SetBottomMargin(0.07692308);
  r1->SetFrameBorderMode();
  
  // ------------>Primitives in pad: r1_1
  TPad *r1_1 = new TPad("r1_1", "Energy_1",0.02,0.37,0.95,0.99);
  r1_1->Draw();
  r1_1->cd();
  r1_1->Range(-19,0.01,95,95);
  r1_1->SetFillColor(0);
  r1_1->SetBorderMode(0);
  r1_1->SetBorderSize(2);
  r1_1->SetTickx(1);
  r1_1->SetTicky(1);
  r1_1->SetLeftMargin(0.16);
  r1_1->SetRightMargin(0.01);
  r1_1->SetTopMargin(0.02);
  r1_1->SetBottomMargin(0);
  r1_1->SetFrameBorderMode(0);
  r1_1->SetFrameBorderMode(0);
   
  TH1D *he = new TH1D("he"," ",55,0,55);
  he->SetMinimum(0.01);
  he->SetMaximum(70);
  he->SetStats(0);
  he->GetXaxis()->SetTitle("E_{beam} [GeV]");
  he->GetXaxis()->SetLabelFont(43);
  he->GetXaxis()->SetLabelSize(0);
  he->GetXaxis()->SetTitleFont(43);
  he->GetXaxis()->SetTitleSize(0); 
  he->GetYaxis()->SetTitle("<N_{cluster}>");
  he->GetYaxis()->SetLabelFont(43);
  he->GetYaxis()->SetTitleSize(30);
  he->GetYaxis()->SetLabelSize(20);
  he->GetYaxis()->SetTitleFont(43);
  he->GetYaxis()->SetTitleOffset(1.7);
  he->GetZaxis()->SetLabelFont(42);
  he->GetZaxis()->SetTitleSize(0.05);
  he->GetZaxis()->SetTitleFont(42);
  he->Draw("");
   
  std::vector<result> resultData=readTXT(std::string("ncluster_augsep2012_electron.txt"));
  TGraphErrors *gre = new TGraphErrors(resultData.size());
  gre->SetName("Graph");
  gre->SetTitle("Graph");
  gre->SetLineColor(1);
  gre->SetFillStyle(1);
  gre->SetFillColor(1);
  gre->SetLineWidth(2);
  gre->SetMarkerColor(1);
  gre->SetMarkerStyle(34);
  gre->SetMarkerSize(1.2);
  for(unsigned int i=0; i<resultData.size(); i++){
    gre->SetPoint(i,resultData.at(i).ebeam,resultData.at(i).ncluster);
    gre->SetPointError(i,0,resultData.at(i).nclusterError);
  }

  TH1F *Graph_Graph3 = new TH1F("Graph_Graph3","Graph",100,0,87.5);
  Graph_Graph3->SetMinimum(0);
  Graph_Graph3->SetMaximum(1193.483);
  Graph_Graph3->SetDirectory(0);
  Graph_Graph3->SetStats(0);
  Graph_Graph3->GetXaxis()->SetLabelFont(42);
  Graph_Graph3->GetXaxis()->SetTitleSize(0.05);
  Graph_Graph3->GetXaxis()->SetTitleFont(42);
  Graph_Graph3->GetYaxis()->SetLabelFont(42);
  Graph_Graph3->GetYaxis()->SetTitleSize(0.05);
  Graph_Graph3->GetYaxis()->SetTitleFont(42);
  Graph_Graph3->GetZaxis()->SetLabelFont(42);
  Graph_Graph3->GetZaxis()->SetTitleSize(0.05);
  Graph_Graph3->GetZaxis()->SetTitleFont(42);
  gre->SetHistogram(Graph_Graph3);
   
  gre->Draw("p");
   
  std::vector<result> resultFTFP=readTXT(std::string("ncluster_ftfp_bert_hp_electron.txt"));
  gre = new TGraphErrors(resultFTFP.size());
  gre->SetName("Graph");
  gre->SetTitle("Graph");
  gre->SetFillColor(kRed-3);
  gre->SetMarkerColor(kRed-3);
  gre->SetLineWidth(2);
  gre->SetMarkerStyle(20);
  for(unsigned int i=0; i<resultFTFP.size(); i++){
    gre->SetPoint(i,resultFTFP.at(i).ebeam,resultFTFP.at(i).ncluster);
    gre->SetPointError(i,0,resultFTFP.at(i).nclusterError);
  }
   
  TH1F *Graph1 = new TH1F("Graph1","Graph",100,0,87.17072);
  Graph1->SetMinimum(2.655724);
  Graph1->SetMaximum(88.56778);
  Graph1->SetDirectory(0);
  Graph1->SetStats(0);
  Graph1->GetXaxis()->SetLabelFont(42);
  Graph1->GetXaxis()->SetTitleSize(0.05);
  Graph1->GetXaxis()->SetTitleFont(42);
  Graph1->GetYaxis()->SetLabelFont(42);
  Graph1->GetYaxis()->SetTitleSize(0.05);
  Graph1->GetYaxis()->SetTitleFont(42);
  Graph1->GetZaxis()->SetLabelFont(42);
  Graph1->GetZaxis()->SetTitleSize(0.05);
  Graph1->GetZaxis()->SetTitleFont(42);
  gre->SetHistogram(Graph1);
   
  gre->Draw("p");

  std::vector<result> resultQGSP=readTXT(std::string("ncluster_qgsp_bert_hp_electron.txt"));
  gre = new TGraphErrors(resultQGSP.size());
  gre->SetName("Graph");
  gre->SetTitle("Graph");
  gre->SetFillColor(kBlue-6);
  gre->SetMarkerColor(kBlue-6);
  gre->SetLineWidth(2);
  gre->SetMarkerStyle(25);
  for(unsigned int i=0; i<resultQGSP.size(); i++){
    gre->SetPoint(i,resultQGSP.at(i).ebeam,resultQGSP.at(i).ncluster);
    gre->SetPointError(i,0,resultQGSP.at(i).nclusterError);
  }

  TH1F *Graph_Graph2 = new TH1F("Graph_Graph2","Graph",100,0,87.5);
  Graph_Graph2->SetMinimum(0);
  Graph_Graph2->SetMaximum(1193.483);
  Graph_Graph2->SetDirectory(0);
  Graph_Graph2->SetStats(0);
  Graph_Graph2->GetXaxis()->SetLabelFont(42);
  Graph_Graph2->GetXaxis()->SetTitleSize(0.05);
  Graph_Graph2->GetXaxis()->SetTitleFont(42);
  Graph_Graph2->GetYaxis()->SetLabelFont(42);
  Graph_Graph2->GetYaxis()->SetTitleSize(0.05);
  Graph_Graph2->GetYaxis()->SetTitleFont(42);
  Graph_Graph2->GetZaxis()->SetLabelFont(42);
  Graph_Graph2->GetZaxis()->SetTitleSize(0.05);
  Graph_Graph2->GetZaxis()->SetTitleFont(42);
  gre->SetHistogram(Graph_Graph2);
   
  gre->Draw("p");

  TLegend *leg = new TLegend(0.15,0.7,0.75,0.9,NULL,"brNDC");
  leg->SetBorderSize(0);
  leg->SetTextFont(62);
  leg->SetLineColor(1);
  leg->SetLineStyle(1);
  leg->SetLineWidth(1);
  leg->SetFillColor(0);
  leg->SetFillStyle(0);
   
  TLegendEntry *entry=leg->AddEntry("Graph_Graph3","SDHCAL DATA (H6 Cern SPS)","p");
  entry->SetLineColor(1);
  entry->SetLineStyle(1);
  entry->SetLineWidth(1);
  entry->SetMarkerColor(1);
  entry->SetMarkerStyle(34);
  entry->SetMarkerSize(1.2);

  entry=leg->AddEntry("Graph1","FTFP_BERT_HP","p");
  entry->SetLineColor(kRed-3);
  entry->SetLineStyle(kRed-3);
  entry->SetLineWidth(kRed-3);
  entry->SetMarkerColor(kRed-3);
  entry->SetMarkerStyle(20);
  entry->SetMarkerSize(1.0);

  entry=leg->AddEntry("Graph_Graph2","QGSP_BERT_HP","p");
  entry->SetLineColor(kBlue-6);
  entry->SetLineStyle(kBlue-6);
  entry->SetLineWidth(kBlue-6);
  entry->SetMarkerColor(kBlue-6);
  entry->SetMarkerStyle(25);
  entry->SetMarkerSize(0.9);

  leg->Draw();

  TText *tex=new TText();
  tex->SetTextSize(0.05);
  tex->SetTextColor(kGray+2);
  //tex->DrawTextNDC(0.5,0.05,"SDHCAL Preliminary");
  tex->DrawTextNDC(0.3,0.05,"CALICE Fe-SDHCAL Preliminary");
  r1_1->Modified();
  r1->cd();
  
  // ------------>Primitives in pad: r1_2
  TPad *r1_2 = new TPad("r1_2", "Energy_2",0.02,0.0,0.95,0.38);
  r1_2->Draw();
  r1_2->cd();
  r1_2->Range(-19,-0.06545455,95,0.048);
  r1_2->SetFillColor(0);
  r1_2->SetBorderMode(0);
  r1_2->SetBorderSize(2);
  r1_2->SetTickx(1);
  r1_2->SetTicky(1);
  r1_2->SetLeftMargin(0.16);
  r1_2->SetRightMargin(0.01);
  r1_2->SetTopMargin(0.0);
  r1_2->SetBottomMargin(0.23);
  r1_2->SetFrameBorderMode(0);
  r1_2->SetFrameBorderMode(0);
   
  TH1D *hd = new TH1D("hd"," ",55,0,55);
  hd->SetMinimum(-0.20);
  hd->SetMaximum(0.20);
  hd->SetStats(0);
  hd->GetXaxis()->SetTitle("E_{beam} [GeV]");
  hd->GetXaxis()->SetLabelFont(43);
  hd->GetXaxis()->SetLabelSize(20);
  hd->GetXaxis()->SetTitleFont(43);
  hd->GetXaxis()->SetTitleSize(30);
  hd->GetXaxis()->SetTitleOffset(2.);
  hd->GetYaxis()->SetTitle("(#DeltaN_{cluster})/N_{data}");
  hd->GetYaxis()->SetLabelFont(43);
  hd->GetYaxis()->SetLabelSize(20);
  hd->GetYaxis()->SetTitleSize(30);
  hd->GetYaxis()->SetTitleOffset(1.7);
  hd->GetYaxis()->SetTitleFont(43);
  hd->GetYaxis()->SetNdivisions(505);
  hd->GetZaxis()->SetLabelFont(42);
  hd->GetZaxis()->SetTitleSize(0.05);
  hd->GetZaxis()->SetTitleFont(42);
  hd->Draw("");
   
  float deltaError;
  float delta;
  gre = new TGraphErrors(resultQGSP.size());
  gre->SetName("Graph");
  gre->SetTitle("Graph");
  for(unsigned int i=0; i<resultQGSP.size(); i++){
    delta=(resultQGSP.at(i).ncluster-resultData.at(i).ncluster)/resultData.at(i).ncluster;
    deltaError=1/resultData.at(i).ncluster*
      sqrt(pow(resultQGSP.at(i).nclusterError,2) +
	   pow(resultQGSP.at(i).ncluster/resultData.at(i).ncluster*resultData.at(i).nclusterError,2));
    gre->SetPoint(i,resultQGSP.at(i).ebeam,delta);
    gre->SetPointError(i,0,deltaError);
  }
  gre->SetLineWidth(2);
  gre->SetLineColor(kBlue-6);
  gre->SetMarkerColor(kBlue-6);
  gre->SetMarkerSize(1.0);
  gre->SetMarkerStyle(25);
   
  gre->Draw("p");
   
  gre = new TGraphErrors(resultFTFP.size());
  gre->SetName("Graph");
  gre->SetTitle("Graph");
  for(unsigned int i=0; i<resultFTFP.size(); i++){
    delta=(resultFTFP.at(i).ncluster-resultData.at(i).ncluster)/resultData.at(i).ncluster;
    deltaError=1/resultData.at(i).ncluster*
      sqrt(pow(resultFTFP.at(i).nclusterError,2) +
	   pow(resultFTFP.at(i).ncluster/resultData.at(i).ncluster*resultData.at(i).nclusterError,2));
    gre->SetPoint(i,resultFTFP.at(i).ebeam,delta);
    gre->SetPointError(i,0,deltaError);
  }
  gre->SetLineWidth(2);
  gre->SetLineColor(kRed-3);
  gre->SetMarkerColor(kRed-3);
  gre->SetMarkerSize(1.0);
  gre->SetMarkerStyle(20);
   
  gre->Draw("p");
   
   
  TF1 *lin1 = new TF1("lin1","0",-0.01,95);
  lin1->SetFillColor(19);
  lin1->SetFillStyle(0);
  lin1->SetLineWidth(1);
  lin1->SetLineStyle(1);
  lin1->SetLineColor(1);
  lin1->GetXaxis()->SetLabelFont(42);
  lin1->GetXaxis()->SetTitleSize(0.05);
  lin1->GetXaxis()->SetTitleFont(42);
  lin1->GetYaxis()->SetLabelFont(42);
  lin1->GetYaxis()->SetTitleSize(0.05);
  lin1->GetYaxis()->SetTitleFont(42);
  lin1->Draw("same");
   
  lin1 = new TF1("lin1","0.1",0.01,95);
  lin1->SetFillColor(1);
  lin1->SetFillStyle(0);
  lin1->SetLineWidth(1);
  lin1->SetLineStyle(2);
  lin1->SetLineColor(17);
  lin1->GetXaxis()->SetLabelFont(42);
  lin1->GetXaxis()->SetTitleSize(0.05);
  lin1->GetXaxis()->SetTitleFont(42);
  lin1->GetYaxis()->SetLabelFont(42);
  lin1->GetYaxis()->SetTitleSize(0.05);
  lin1->GetYaxis()->SetTitleFont(42);
  lin1->Draw("same");
   
  lin1 = new TF1("lin1","-0.1",0.01,95);
  lin1->SetFillColor(1);
  lin1->SetFillStyle(0);
  lin1->SetLineWidth(1);
  lin1->SetLineStyle(2);
  lin1->SetLineColor(17);
  lin1->GetXaxis()->SetLabelFont(42);
  lin1->GetXaxis()->SetTitleSize(0.05);
  lin1->GetXaxis()->SetTitleFont(42);
  lin1->GetYaxis()->SetLabelFont(42);
  lin1->GetYaxis()->SetTitleSize(0.05);
  lin1->GetYaxis()->SetTitleFont(42);
  lin1->Draw("same");

  r1_2->Modified();
  r1->cd();
  r1->Modified();
  r1->cd();
  r1->SetSelected(r1);
  r1->SaveAs("../plots/NCLUSTERELECTRON.pdf");
}
示例#19
0
文件: gch.C 项目: echapon/HIN-13-007
void gch()
{
//=========Macro generated from canvas: c1/c1
//=========  (Fri Jul 31 19:31:42 2015) by ROOT version6.05/01
   TCanvas *c1 = new TCanvas("c1", "c1",0,23,600,600);
   gStyle->SetOptFit(1);
   gStyle->SetOptStat(0);
   gStyle->SetOptTitle(0);
   c1->Range(-3.5,-0.52,2.75,0.48);
   c1->SetFillColor(0);
   c1->SetBorderMode(0);
   c1->SetBorderSize(2);
   c1->SetTickx(1);
   c1->SetTicky(1);
   c1->SetLeftMargin(0.16);
   c1->SetRightMargin(0.04);
   c1->SetTopMargin(0.08);
   c1->SetBottomMargin(0.12);
   c1->SetFrameFillStyle(0);
   c1->SetFrameBorderMode(0);
   c1->SetFrameFillStyle(0);
   c1->SetFrameBorderMode(0);
   
   Double_t Graph0_fx3005[10] = {
   2.2,
   1.75,
   1.25,
   0.75,
   0.25,
   -0.25,
   -0.75,
   -1.25,
   -1.75,
   -2.2};
   Double_t Graph0_fy3005[10] = {
   0.271569,
   0.242472,
   0.199083,
   0.16019,
   0.13243,
   0.113847,
   0.0953951,
   0.0586208,
   -0.0317606,
   -0.192653};
   Double_t Graph0_felx3005[10] = {
   0.2,
   0.25,
   0.25,
   0.25,
   0.25,
   0.25,
   0.25,
   0.25,
   0.25,
   0.2};
   Double_t Graph0_fely3005[10] = {
   0.01715884,
   0.01580552,
   0.01320277,
   0.01146985,
   0.01194889,
   0.007802394,
   0.006606392,
   0.008837154,
   0.01163919,
   0.01254774};
   Double_t Graph0_fehx3005[10] = {
   0.2,
   0.25,
   0.25,
   0.25,
   0.25,
   0.25,
   0.25,
   0.25,
   0.25,
   0.2};
   Double_t Graph0_fehy3005[10] = {
   0.01245998,
   0.01281843,
   0.01611579,
   0.0123205,
   0.009866819,
   0.007816985,
   0.006595391,
   0.007312196,
   0.009927339,
   0.01381436};
   TGraphAsymmErrors *grae = new TGraphAsymmErrors(10,Graph0_fx3005,Graph0_fy3005,Graph0_felx3005,Graph0_fehx3005,Graph0_fely3005,Graph0_fehy3005);
   grae->SetName("Graph0");
   grae->SetTitle("Graph");

   Int_t ci;      // for color index setting
   TColor *color; // for color definition with alpha
   ci = TColor::GetColor("#ffff00");
   grae->SetFillColor(ci);

   ci = TColor::GetColor("#ff0000");
   grae->SetLineColor(ci);
   grae->SetLineWidth(4);
   grae->SetMarkerStyle(20);
   grae->SetMarkerSize(0);
   
   TH1F *Graph_Graph3005 = new TH1F("Graph_Graph3005","Graph",100,-2.5,2.5);
   Graph_Graph3005->SetMinimum(-0.4);
   Graph_Graph3005->SetMaximum(0.4);
   Graph_Graph3005->SetDirectory(0);
   Graph_Graph3005->SetStats(0);
   Graph_Graph3005->SetLineStyle(0);
   Graph_Graph3005->SetMarkerStyle(20);
   Graph_Graph3005->GetXaxis()->SetTitle("#eta_{lab}");
   Graph_Graph3005->GetXaxis()->SetNdivisions(505);
   Graph_Graph3005->GetXaxis()->SetLabelFont(42);
   Graph_Graph3005->GetXaxis()->SetLabelOffset(0.007);
   Graph_Graph3005->GetXaxis()->SetLabelSize(0.05);
   Graph_Graph3005->GetXaxis()->SetTitleSize(0.05);
   Graph_Graph3005->GetXaxis()->SetTitleOffset(1.1);
   Graph_Graph3005->GetXaxis()->SetTitleFont(42);
   Graph_Graph3005->GetYaxis()->SetTitle("(N_{#font[12]{l}}^{+}#font[122]{-}N_{#font[12]{l}}^{#font[122]{-}})/(N_{#font[12]{l}}^{+}+N_{#font[12]{l}}^{#font[122]{-}})");
   Graph_Graph3005->GetYaxis()->SetLabelFont(42);
   Graph_Graph3005->GetYaxis()->SetLabelOffset(0.007);
   Graph_Graph3005->GetYaxis()->SetLabelSize(0.05);
   Graph_Graph3005->GetYaxis()->SetTitleSize(0.05);
   Graph_Graph3005->GetYaxis()->SetTitleOffset(1.5);
   Graph_Graph3005->GetYaxis()->SetTitleFont(42);
   Graph_Graph3005->GetZaxis()->SetLabelFont(42);
   Graph_Graph3005->GetZaxis()->SetLabelOffset(0.007);
   Graph_Graph3005->GetZaxis()->SetLabelSize(0.05);
   Graph_Graph3005->GetZaxis()->SetTitleSize(0.06);
   Graph_Graph3005->GetZaxis()->SetTitleFont(42);
   grae->SetHistogram(Graph_Graph3005);
   
   grae->Draw("a2");
   
   Double_t Graph1_fx3006[10] = {
   2.2,
   1.75,
   1.25,
   0.75,
   0.25,
   -0.25,
   -0.75,
   -1.25,
   -1.75,
   -2.2};
   Double_t Graph1_fy3006[10] = {
   0.271569,
   0.242472,
   0.199083,
   0.16019,
   0.13243,
   0.113847,
   0.0953951,
   0.0586208,
   -0.0317606,
   -0.192653};
   Double_t Graph1_felx3006[10] = {
   0.2,
   0.25,
   0.25,
   0.25,
   0.25,
   0.25,
   0.25,
   0.25,
   0.25,
   0.2};
   Double_t Graph1_fely3006[10] = {
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0};
   Double_t Graph1_fehx3006[10] = {
   0.2,
   0.25,
   0.25,
   0.25,
   0.25,
   0.25,
   0.25,
   0.25,
   0.25,
   0.2};
   Double_t Graph1_fehy3006[10] = {
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0};
   grae = new TGraphAsymmErrors(10,Graph1_fx3006,Graph1_fy3006,Graph1_felx3006,Graph1_fehx3006,Graph1_fely3006,Graph1_fehy3006);
   grae->SetName("Graph1");
   grae->SetTitle("Graph");

   ci = TColor::GetColor("#ffff00");
   grae->SetFillColor(ci);

   ci = TColor::GetColor("#ff0000");
   grae->SetLineColor(ci);
   grae->SetLineWidth(4);
   grae->SetMarkerStyle(20);
   grae->SetMarkerSize(0);
   grae->Draw("z");
   
   Double_t Graph2_fx3007[10] = {
   2.2,
   1.75,
   1.25,
   0.75,
   0.25,
   -0.25,
   -0.75,
   -1.25,
   -1.75,
   -2.2};
   Double_t Graph2_fy3007[10] = {
   0.263377,
   0.234428,
   0.19231,
   0.156091,
   0.13209,
   0.115851,
   0.0964275,
   0.0539073,
   -0.0465022,
   -0.215376};
   Double_t Graph2_felx3007[10] = {
   0.2,
   0.25,
   0.25,
   0.25,
   0.25,
   0.25,
   0.25,
   0.25,
   0.25,
   0.2};
   Double_t Graph2_fely3007[10] = {
   0.01234885,
   0.01640988,
   0.0211319,
   0.009310187,
   0.01446852,
   0.00468004,
   0.01648233,
   0.005510343,
   0.01817494,
   0.0125977};
   Double_t Graph2_fehx3007[10] = {
   0.2,
   0.25,
   0.25,
   0.25,
   0.25,
   0.25,
   0.25,
   0.25,
   0.25,
   0.2};
   Double_t Graph2_fehy3007[10] = {
   0.02248654,
   0.01201416,
   0.008815135,
   0.01600505,
   0.008127195,
   0.01693463,
   0.00469466,
   0.01880119,
   0.008619524,
   0.01691905};
   grae = new TGraphAsymmErrors(10,Graph2_fx3007,Graph2_fy3007,Graph2_felx3007,Graph2_fehx3007,Graph2_fely3007,Graph2_fehy3007);
   grae->SetName("Graph2");
   grae->SetTitle("Graph");

   ci = TColor::GetColor("#009900");
   grae->SetFillColor(ci);
   grae->SetFillStyle(3375);

   ci = TColor::GetColor("#009900");
   grae->SetLineColor(ci);
   grae->SetLineStyle(7);
   grae->SetLineWidth(4);
   grae->SetMarkerStyle(20);
   
   TH1F *Graph_Graph3007 = new TH1F("Graph_Graph3007","Graph",100,-2.88,2.88);
   Graph_Graph3007->SetMinimum(-0.2793574);
   Graph_Graph3007->SetMaximum(0.3372473);
   Graph_Graph3007->SetDirectory(0);
   Graph_Graph3007->SetStats(0);
   Graph_Graph3007->SetLineStyle(0);
   Graph_Graph3007->SetMarkerStyle(20);
   Graph_Graph3007->GetXaxis()->SetLabelFont(42);
   Graph_Graph3007->GetXaxis()->SetLabelOffset(0.007);
   Graph_Graph3007->GetXaxis()->SetLabelSize(0.05);
   Graph_Graph3007->GetXaxis()->SetTitleSize(0.06);
   Graph_Graph3007->GetXaxis()->SetTitleOffset(1.1);
   Graph_Graph3007->GetXaxis()->SetTitleFont(42);
   Graph_Graph3007->GetYaxis()->SetLabelFont(42);
   Graph_Graph3007->GetYaxis()->SetLabelOffset(0.007);
   Graph_Graph3007->GetYaxis()->SetLabelSize(0.05);
   Graph_Graph3007->GetYaxis()->SetTitleSize(0.06);
   Graph_Graph3007->GetYaxis()->SetTitleOffset(1.5);
   Graph_Graph3007->GetYaxis()->SetTitleFont(42);
   Graph_Graph3007->GetZaxis()->SetLabelFont(42);
   Graph_Graph3007->GetZaxis()->SetLabelOffset(0.007);
   Graph_Graph3007->GetZaxis()->SetLabelSize(0.05);
   Graph_Graph3007->GetZaxis()->SetTitleSize(0.06);
   Graph_Graph3007->GetZaxis()->SetTitleFont(42);
   grae->SetHistogram(Graph_Graph3007);
   
   grae->Draw("2");
   
   Double_t Graph3_fx3008[10] = {
   2.2,
   1.75,
   1.25,
   0.75,
   0.25,
   -0.25,
   -0.75,
   -1.25,
   -1.75,
   -2.2};
   Double_t Graph3_fy3008[10] = {
   0.263377,
   0.234428,
   0.19231,
   0.156091,
   0.13209,
   0.115851,
   0.0964275,
   0.0539073,
   -0.0465022,
   -0.215376};
   Double_t Graph3_felx3008[10] = {
   0.2,
   0.25,
   0.25,
   0.25,
   0.25,
   0.25,
   0.25,
   0.25,
   0.25,
   0.2};
   Double_t Graph3_fely3008[10] = {
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0};
   Double_t Graph3_fehx3008[10] = {
   0.2,
   0.25,
   0.25,
   0.25,
   0.25,
   0.25,
   0.25,
   0.25,
   0.25,
   0.2};
   Double_t Graph3_fehy3008[10] = {
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0};
   grae = new TGraphAsymmErrors(10,Graph3_fx3008,Graph3_fy3008,Graph3_felx3008,Graph3_fehx3008,Graph3_fely3008,Graph3_fehy3008);
   grae->SetName("Graph3");
   grae->SetTitle("Graph");

   ci = TColor::GetColor("#009900");
   grae->SetFillColor(ci);
   grae->SetFillStyle(3375);

   ci = TColor::GetColor("#009900");
   grae->SetLineColor(ci);
   grae->SetLineStyle(7);
   grae->SetLineWidth(4);
   grae->SetMarkerStyle(20);
   grae->Draw("z");
   
   Double_t Graph4_fx1003[10] = {
   2.2,
   1.75,
   1.25,
   0.75,
   0.25,
   -0.25,
   -0.75,
   -1.25,
   -1.75,
   -2.2};
   Double_t Graph4_fy1003[10] = {
   0.257652,
   0.265253,
   0.1771034,
   0.1405682,
   0.1581285,
   0.1047664,
   0.09752007,
   0.0006272976,
   -0.1246472,
   -0.2374407};
   Double_t Graph4_fex1003[10] = {
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0};
   Double_t Graph4_fey1003[10] = {
   0.04329624,
   0.03217318,
   0.02801475,
   0.02449562,
   0.0241582,
   0.02436489,
   0.02298849,
   0.02790282,
   0.03243437,
   0.04142841};
   TGraphErrors *gre = new TGraphErrors(10,Graph4_fx1003,Graph4_fy1003,Graph4_fex1003,Graph4_fey1003);
   gre->SetName("Graph4");
   gre->SetTitle("Graph");
   gre->SetFillColor(1);
   gre->SetFillStyle(0);
   gre->SetLineWidth(2);
   gre->SetMarkerStyle(20);
   gre->Draw("||");
   
   Double_t gch_exp_statonly_1_fx1004[10] = {
   2.2,
   1.75,
   1.25,
   0.75,
   0.25,
   -0.25,
   -0.75,
   -1.25,
   -1.75,
   -2.2};
   Double_t gch_exp_statonly_1_fy1004[10] = {
   0.257652,
   0.265253,
   0.1771034,
   0.1405682,
   0.1581285,
   0.1047664,
   0.09752007,
   0.0006272976,
   -0.1246472,
   -0.2374407};
   Double_t gch_exp_statonly_1_fex1004[10] = {
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0};
   Double_t gch_exp_statonly_1_fey1004[10] = {
   0.01963104,
   0.01666601,
   0.0164871,
   0.01492413,
   0.01459851,
   0.01543096,
   0.01519633,
   0.01658993,
   0.01884317,
   0.02283962};
   gre = new TGraphErrors(10,gch_exp_statonly_1_fx1004,gch_exp_statonly_1_fy1004,gch_exp_statonly_1_fex1004,gch_exp_statonly_1_fey1004);
   gre->SetName("gch_exp_statonly_1");
   gre->SetTitle("Graph");
   gre->SetFillColor(1);
   gre->SetLineWidth(2);
   gre->SetMarkerStyle(20);
   gre->SetMarkerSize(1.2);
   
   TH1F *Graph_gch_exp_statonly_11004 = new TH1F("Graph_gch_exp_statonly_11004","Graph",100,-2.64,2.64);
   Graph_gch_exp_statonly_11004->SetMinimum(-0.3145003);
   Graph_gch_exp_statonly_11004->SetMaximum(0.3361389);
   Graph_gch_exp_statonly_11004->SetDirectory(0);
   Graph_gch_exp_statonly_11004->SetStats(0);
   Graph_gch_exp_statonly_11004->SetLineStyle(0);
   Graph_gch_exp_statonly_11004->SetMarkerStyle(20);
   Graph_gch_exp_statonly_11004->GetXaxis()->SetLabelFont(42);
   Graph_gch_exp_statonly_11004->GetXaxis()->SetLabelOffset(0.007);
   Graph_gch_exp_statonly_11004->GetXaxis()->SetLabelSize(0.05);
   Graph_gch_exp_statonly_11004->GetXaxis()->SetTitleSize(0.06);
   Graph_gch_exp_statonly_11004->GetXaxis()->SetTitleOffset(1.1);
   Graph_gch_exp_statonly_11004->GetXaxis()->SetTitleFont(42);
   Graph_gch_exp_statonly_11004->GetYaxis()->SetLabelFont(42);
   Graph_gch_exp_statonly_11004->GetYaxis()->SetLabelOffset(0.007);
   Graph_gch_exp_statonly_11004->GetYaxis()->SetLabelSize(0.05);
   Graph_gch_exp_statonly_11004->GetYaxis()->SetTitleSize(0.06);
   Graph_gch_exp_statonly_11004->GetYaxis()->SetTitleOffset(1.5);
   Graph_gch_exp_statonly_11004->GetYaxis()->SetTitleFont(42);
   Graph_gch_exp_statonly_11004->GetZaxis()->SetLabelFont(42);
   Graph_gch_exp_statonly_11004->GetZaxis()->SetLabelOffset(0.007);
   Graph_gch_exp_statonly_11004->GetZaxis()->SetLabelSize(0.05);
   Graph_gch_exp_statonly_11004->GetZaxis()->SetTitleSize(0.06);
   Graph_gch_exp_statonly_11004->GetZaxis()->SetTitleFont(42);
   gre->SetHistogram(Graph_gch_exp_statonly_11004);
   
   gre->Draw("pz");
   
   TLegend *leg = new TLegend(0.6,0.15,0.9,0.3,NULL,"brNDC");
   leg->SetBorderSize(0);
   leg->SetTextSize(0.04);
   leg->SetLineColor(1);
   leg->SetLineStyle(1);
   leg->SetLineWidth(1);
   leg->SetFillColor(0);
   leg->SetFillStyle(1001);
   TLegendEntry *entry=leg->AddEntry("Graph4","Data","p");
   entry->SetLineColor(1);
   entry->SetLineStyle(1);
   entry->SetLineWidth(1);
   entry->SetMarkerColor(1);
   entry->SetMarkerStyle(20);
   entry->SetMarkerSize(1);
   entry->SetTextFont(42);
   entry=leg->AddEntry("Graph0","CT10","lf");

   ci = TColor::GetColor("#ffff00");
   entry->SetFillColor(ci);
   entry->SetFillStyle(1001);

   ci = TColor::GetColor("#ff0000");
   entry->SetLineColor(ci);
   entry->SetLineStyle(1);
   entry->SetLineWidth(4);
   entry->SetMarkerColor(1);
   entry->SetMarkerStyle(21);
   entry->SetMarkerSize(1);
   entry->SetTextFont(42);
   entry=leg->AddEntry("Graph2","CT10+EPS09","lf");

   ci = TColor::GetColor("#009900");
   entry->SetFillColor(ci);
   entry->SetFillStyle(3375);

   ci = TColor::GetColor("#009900");
   entry->SetLineColor(ci);
   entry->SetLineStyle(7);
   entry->SetLineWidth(4);
   entry->SetMarkerColor(1);
   entry->SetMarkerStyle(21);
   entry->SetMarkerSize(1);
   entry->SetTextFont(42);
   leg->Draw();
   
   TPaveText *pt = new TPaveText(0.6,0.4,0.9,0.5,"brNDC");
   pt->SetBorderSize(0);
   pt->SetFillColor(0);
   pt->SetFillStyle(0);
   pt->SetTextAlign(13);
   pt->SetTextFont(42);
   pt->SetTextSize(0.04);
   TText *AText = pt->AddText("W #rightarrow #font[12]{l} + #nu");
   AText = pt->AddText("p_{T}^{#font[12]{l}} > 25 GeV/c");
   pt->Draw();
      tex = new TLatex(0.96,0.9424," #sqrt{s_{NN}} = 5.02 TeV");
tex->SetNDC();
   tex->SetTextAlign(31);
   tex->SetTextFont(42);
   tex->SetTextSize(0.04);
   tex->SetLineWidth(2);
   tex->Draw();
      tex = new TLatex(0.16,0.9424,"pPb 34.6 nb^{-1}");
tex->SetNDC();
   tex->SetTextFont(42);
   tex->SetTextSize(0.04);
   tex->SetLineWidth(2);
   tex->Draw();
      tex = new TLatex(0.196,0.884,"CMS");
tex->SetNDC();
   tex->SetTextAlign(13);
   tex->SetTextFont(61);
   tex->SetTextSize(0.048);
   tex->SetLineWidth(2);
   tex->Draw();
   
   TH1F *Graph_copy = new TH1F("Graph_copy","Graph",100,-2.5,2.5);
   Graph_copy->SetMinimum(-0.4);
   Graph_copy->SetMaximum(0.4);
   Graph_copy->SetDirectory(0);
   Graph_copy->SetStats(0);
   Graph_copy->SetLineStyle(0);
   Graph_copy->SetMarkerStyle(20);
   Graph_copy->GetXaxis()->SetTitle("#eta_{lab}");
   Graph_copy->GetXaxis()->SetNdivisions(505);
   Graph_copy->GetXaxis()->SetLabelFont(42);
   Graph_copy->GetXaxis()->SetLabelOffset(0.007);
   Graph_copy->GetXaxis()->SetLabelSize(0.05);
   Graph_copy->GetXaxis()->SetTitleSize(0.05);
   Graph_copy->GetXaxis()->SetTitleOffset(1.1);
   Graph_copy->GetXaxis()->SetTitleFont(42);
   Graph_copy->GetYaxis()->SetTitle("(N_{#font[12]{l}}^{+}#font[122]{-}N_{#font[12]{l}}^{#font[122]{-}})/(N_{#font[12]{l}}^{+}+N_{#font[12]{l}}^{#font[122]{-}})");
   Graph_copy->GetYaxis()->SetLabelFont(42);
   Graph_copy->GetYaxis()->SetLabelOffset(0.007);
   Graph_copy->GetYaxis()->SetLabelSize(0.05);
   Graph_copy->GetYaxis()->SetTitleSize(0.05);
   Graph_copy->GetYaxis()->SetTitleOffset(1.5);
   Graph_copy->GetYaxis()->SetTitleFont(42);
   Graph_copy->GetZaxis()->SetLabelFont(42);
   Graph_copy->GetZaxis()->SetLabelOffset(0.007);
   Graph_copy->GetZaxis()->SetLabelSize(0.05);
   Graph_copy->GetZaxis()->SetTitleSize(0.06);
   Graph_copy->GetZaxis()->SetTitleFont(42);
   Graph_copy->Draw("sameaxis");
   c1->Modified();
   c1->cd();
   c1->SetSelected(c1);
}
void para_12TeV_2Lep_plots_All()
{
//=========Macro generated from canvas: c1/Parameter1
//=========  (Sun Nov 22 20:05:00 2015) by ROOT version6.02/12
    TCanvas *c1 = new TCanvas("c1", "Parameter1",0,22,1000,600);
    gStyle->SetOptStat(0);
    c1->Range(-4.375,-0.2745458,39.375,2.490986);
    c1->SetFillColor(0);
    c1->SetBorderMode(0);
    c1->SetBorderSize(2);
    c1->SetGridx();
    c1->SetGridy();
    c1->SetFrameBorderMode(0);
    c1->SetFrameBorderMode(0);

    TH1F *NuisanceParameterFreed2 = new TH1F("NuisanceParameterFreed2","Mu",35,0,35);
    NuisanceParameterFreed2->SetMinimum(0.00200744);
    NuisanceParameterFreed2->SetMaximum(2.214433);
    NuisanceParameterFreed2->SetStats(0);

    Int_t ci;      // for color index setting
    TColor *color; // for color definition with alpha
    ci = TColor::GetColor("#000099");
    NuisanceParameterFreed2->SetLineColor(ci);
    NuisanceParameterFreed2->GetXaxis()->SetBinLabel(1,"MUONS_MS");
    NuisanceParameterFreed2->GetXaxis()->SetBinLabel(2,"Luminosity");
    NuisanceParameterFreed2->GetXaxis()->SetBinLabel(3,"XS_Zb");
    NuisanceParameterFreed2->GetXaxis()->SetBinLabel(4,"FT_EFF_Eigen_C_2");
    NuisanceParameterFreed2->GetXaxis()->SetBinLabel(5,"MUON_EFF_TrigStatUncertainty");
    NuisanceParameterFreed2->GetXaxis()->SetBinLabel(6,"FT_EFF_Eigen_C_3");
    NuisanceParameterFreed2->GetXaxis()->SetBinLabel(7,"FT_EFF_Eigen_B_0");
    NuisanceParameterFreed2->GetXaxis()->SetBinLabel(8,"MUON_EFF_SYS");
    NuisanceParameterFreed2->GetXaxis()->SetBinLabel(9,"MUON_EFF_STAT");
    NuisanceParameterFreed2->GetXaxis()->SetBinLabel(10,"FT_EFF_Eigen_Light_3");
    NuisanceParameterFreed2->GetXaxis()->SetBinLabel(11,"FT_EFF_Eigen_Light_4");
    NuisanceParameterFreed2->GetXaxis()->SetBinLabel(12,"global");
    NuisanceParameterFreed2->GetXaxis()->SetBinLabel(13,"MUONS_SCALE");
    NuisanceParameterFreed2->GetXaxis()->SetBinLabel(14,"MUON_ISO_STAT");
    NuisanceParameterFreed2->GetXaxis()->SetBinLabel(15,"FT_EFF_Eigen_C_0");
    NuisanceParameterFreed2->GetXaxis()->SetBinLabel(16,"EL_EFF_Iso_TotalCorrUncertainty");
    NuisanceParameterFreed2->GetXaxis()->SetBinLabel(17,"FT_EFF_Eigen_B_1");
    NuisanceParameterFreed2->GetXaxis()->SetBinLabel(18,"XS_diboson");
    NuisanceParameterFreed2->GetXaxis()->SetBinLabel(19,"XS_st");
    NuisanceParameterFreed2->GetXaxis()->SetBinLabel(20,"MUON_EFF_TrigSystUncertainty");
    NuisanceParameterFreed2->GetXaxis()->SetBinLabel(21,"EG_RESOLUTION_ALL");
    NuisanceParameterFreed2->GetXaxis()->SetBinLabel(22,"FT_EFF_Eigen_B_2");
    NuisanceParameterFreed2->GetXaxis()->SetBinLabel(23,"MUONS_ID");
    NuisanceParameterFreed2->GetXaxis()->SetBinLabel(24,"EL_EFF_Reco_TotalCorrUncertainty");
    NuisanceParameterFreed2->GetXaxis()->SetBinLabel(25,"EG_SCALE_ALL");
    NuisanceParameterFreed2->GetXaxis()->SetBinLabel(26,"FT_EFF_extrapolation");
    NuisanceParameterFreed2->GetXaxis()->SetBinLabel(27,"FT_EFF_Eigen_Light_1");
    NuisanceParameterFreed2->GetXaxis()->SetBinLabel(28,"FT_EFF_Eigen_Light_2");
    NuisanceParameterFreed2->GetXaxis()->SetBinLabel(29,"FT_EFF_Eigen_C_1");
    NuisanceParameterFreed2->GetXaxis()->SetBinLabel(30,"MUON_ISO_SYS");
    NuisanceParameterFreed2->GetXaxis()->SetBinLabel(31,"FT_EFF_Eigen_Light_0");
    NuisanceParameterFreed2->GetXaxis()->SetBinLabel(32,"EL_EFF_ID_TotalCorrUncertainty");
    NuisanceParameterFreed2->GetXaxis()->SetBinLabel(33,"XS_Zl");
    NuisanceParameterFreed2->GetXaxis()->SetBinLabel(34,"XS_Zc");
    NuisanceParameterFreed2->GetXaxis()->SetBinLabel(35,"XS_ttbar");
    NuisanceParameterFreed2->GetXaxis()->SetLabelFont(42);
    NuisanceParameterFreed2->GetXaxis()->SetLabelSize(0.035);
    NuisanceParameterFreed2->GetXaxis()->SetTitleSize(0.035);
    NuisanceParameterFreed2->GetXaxis()->SetTitleFont(42);
    NuisanceParameterFreed2->GetYaxis()->SetTitle("#mu_{best}");
    NuisanceParameterFreed2->GetYaxis()->SetLabelFont(42);
    NuisanceParameterFreed2->GetYaxis()->SetLabelSize(0.035);
    NuisanceParameterFreed2->GetYaxis()->SetTitleSize(0.035);
    NuisanceParameterFreed2->GetYaxis()->SetTitleFont(42);
    NuisanceParameterFreed2->GetZaxis()->SetLabelFont(42);
    NuisanceParameterFreed2->GetZaxis()->SetLabelSize(0.035);
    NuisanceParameterFreed2->GetZaxis()->SetTitleSize(0.035);
    NuisanceParameterFreed2->GetZaxis()->SetTitleFont(42);
    NuisanceParameterFreed2->Draw("hist");

    Double_t _fx1002[37] = {
        0,
        0.5,
        1.5,
        2.5,
        3.5,
        4.5,
        5.5,
        6.5,
        7.5,
        8.5,
        9.5,
        10.5,
        11.5,
        12.5,
        13.5,
        14.5,
        15.5,
        16.5,
        17.5,
        18.5,
        19.5,
        20.5,
        21.5,
        22.5,
        23.5,
        24.5,
        25.5,
        26.5,
        27.5,
        28.5,
        29.5,
        30.5,
        31.5,
        32.5,
        33.5,
        34.5,
        0
    };
    Double_t _fy1002[37] = {
        0,
        0.00200744,
        2.065197,
        2.090439,
        2.097085,
        2.102307,
        2.102459,
        2.103994,
        2.109032,
        2.110826,
        2.110827,
        2.110944,
        2.111107,
        2.111297,
        2.111303,
        2.111389,
        2.11147,
        2.1115,
        2.112008,
        2.112152,
        2.112174,
        2.112884,
        2.113456,
        2.113847,
        2.114265,
        2.114548,
        2.11588,
        2.116422,
        2.117402,
        2.123061,
        2.129504,
        2.131184,
        2.133743,
        2.13776,
        2.138737,
        2.214433,
        0
    };
    Double_t _fex1002[37] = {
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0
    };
    Double_t _fey1002[37] = {
        0,
        0,
        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,
        10,
        10,
        10,
        10,
        10
    };
    TGraphErrors *gre = new TGraphErrors(37,_fx1002,_fy1002,_fex1002,_fey1002);
    gre->SetName("");
    gre->SetTitle("");
    gre->SetFillColor(1);
    gre->SetMarkerStyle(20);
    gre->SetMarkerSize(1.2);

    TH1F *Graph_Graph1002 = new TH1F("Graph_Graph1002","",100,0,37.95);
    Graph_Graph1002->SetMinimum(-12.22144);
    Graph_Graph1002->SetMaximum(14.43588);
    Graph_Graph1002->SetDirectory(0);
    Graph_Graph1002->SetStats(0);

    ci = TColor::GetColor("#000099");
    Graph_Graph1002->SetLineColor(ci);
    Graph_Graph1002->GetXaxis()->SetLabelFont(42);
    Graph_Graph1002->GetXaxis()->SetLabelSize(0.035);
    Graph_Graph1002->GetXaxis()->SetTitleSize(0.035);
    Graph_Graph1002->GetXaxis()->SetTitleFont(42);
    Graph_Graph1002->GetYaxis()->SetLabelFont(42);
    Graph_Graph1002->GetYaxis()->SetLabelSize(0.035);
    Graph_Graph1002->GetYaxis()->SetTitleSize(0.035);
    Graph_Graph1002->GetYaxis()->SetTitleFont(42);
    Graph_Graph1002->GetZaxis()->SetLabelFont(42);
    Graph_Graph1002->GetZaxis()->SetLabelSize(0.035);
    Graph_Graph1002->GetZaxis()->SetTitleSize(0.035);
    Graph_Graph1002->GetZaxis()->SetTitleFont(42);
    gre->SetHistogram(Graph_Graph1002);

    gre->Draw("p");

    TLegend *leg = new TLegend(0.1,0.4,0.4,0.95,NULL,"brNDC");
    leg->SetBorderSize(0);
    leg->SetTextFont(72);
    leg->SetTextSize(0.015);
    leg->SetLineColor(1);
    leg->SetLineStyle(1);
    leg->SetLineWidth(1);
    leg->SetFillColor(0);
    leg->SetFillStyle(0);
    TLegendEntry *entry=leg->AddEntry("","global","P");
    entry->SetLineColor(1);
    entry->SetLineStyle(1);
    entry->SetLineWidth(1);
    entry->SetMarkerColor(1);
    entry->SetMarkerStyle(20);
    entry->SetMarkerSize(1.2);
    entry->SetTextFont(72);
    leg->Draw();

    TPaveText *pt = new TPaveText(0.4694177,0.94,0.5305823,0.995,"blNDC");
    pt->SetName("title");
    pt->SetBorderSize(0);
    pt->SetFillColor(0);
    pt->SetFillStyle(0);
    pt->SetTextFont(42);
    TText *AText = pt->AddText("Mu");
    pt->Draw();
    c1->Modified();
    c1->cd();
    c1->SetSelected(c1);
}
void Pythia8_Dijet30_result_JER_akPu4PF_(abs(refeta)<2)&&(hiBin>60)_refpt()
{
//=========Macro generated from canvas: Can_result_3/
//=========  (Mon Apr 18 03:09:33 2016) by ROOT version6.02/13
   TCanvas *Can_result_3 = new TCanvas("Can_result_3", "",18,40,700,500);
   gStyle->SetOptFit(1);
   Can_result_3->Range(-2.301397,-0.01150186,237.5545,0.3828568);
   Can_result_3->SetFillColor(0);
   Can_result_3->SetBorderMode(0);
   Can_result_3->SetBorderSize(2);
   Can_result_3->SetFrameBorderMode(0);
   Can_result_3->SetFrameBorderMode(0);
   
   TMultiGraph *multigraph = new TMultiGraph();
   multigraph->SetName("name");
   multigraph->SetTitle("JER_akPu4PF");
   
   Double_t Graph_fx1007[11] = {
   45,
   55,
   65,
   75,
   85,
   95,
   105,
   115,
   130,
   150,
   180};
   Double_t Graph_fy1007[11] = {
   0.1976721,
   0.1639212,
   0.1562002,
   0.1480066,
   0.1479035,
   0.1333827,
   0.1160421,
   0.1205967,
   0.1105508,
   0.08141581,
   0.09210746};
   Double_t Graph_fex1007[11] = {
   5,
   5,
   5,
   5,
   5,
   5,
   5,
   5,
   10,
   10,
   20};
   Double_t Graph_fey1007[11] = {
   0.001003849,
   0.001317066,
   0.001658995,
   0.002251738,
   0.003095601,
   0.004152981,
   0.005688263,
   0.008277583,
   0.006320737,
   0.01258781,
   0.01599127};
   TGraphErrors *gre = new TGraphErrors(11,Graph_fx1007,Graph_fy1007,Graph_fex1007,Graph_fey1007);
   gre->SetName("Graph");
   gre->SetTitle("some title_0");
   gre->SetFillColor(1);
   gre->SetFillStyle(0);
   
   TH1F *Graph_Graph1007 = new TH1F("Graph_Graph1007","some title_0",100,24,216);
   Graph_Graph1007->SetMinimum(0.0558432);
   Graph_Graph1007->SetMaximum(0.2116608);
   Graph_Graph1007->SetDirectory(0);
   Graph_Graph1007->SetStats(0);

   Int_t ci;      // for color index setting
   TColor *color; // for color definition with alpha
   ci = TColor::GetColor("#000099");
   Graph_Graph1007->SetLineColor(ci);
   Graph_Graph1007->GetXaxis()->SetLabelFont(42);
   Graph_Graph1007->GetXaxis()->SetLabelSize(0.035);
   Graph_Graph1007->GetXaxis()->SetTitleSize(0.035);
   Graph_Graph1007->GetXaxis()->SetTitleFont(42);
   Graph_Graph1007->GetYaxis()->SetLabelFont(42);
   Graph_Graph1007->GetYaxis()->SetLabelSize(0.035);
   Graph_Graph1007->GetYaxis()->SetTitleSize(0.035);
   Graph_Graph1007->GetYaxis()->SetTitleFont(42);
   Graph_Graph1007->GetZaxis()->SetLabelFont(42);
   Graph_Graph1007->GetZaxis()->SetLabelSize(0.035);
   Graph_Graph1007->GetZaxis()->SetTitleSize(0.035);
   Graph_Graph1007->GetZaxis()->SetTitleFont(42);
   gre->SetHistogram(Graph_Graph1007);
   
   multigraph->Add(gre,"");
   
   Double_t Graph_fx1008[10] = {
   33.60148,
   40.66353,
   49.20982,
   59.5523,
   72.06846,
   87.21514,
   105.5452,
   127.7278,
   154.5724,
   187.059};
   Double_t Graph_fy1008[10] = {
   0.3165438,
   0.2200061,
   0.1916064,
   0.1736762,
   0.1550799,
   0.1417295,
   0.1352239,
   0.1191096,
   0.1233824,
   0.06176231};
   Double_t Graph_fex1008[10] = {
   3.19525,
   3.8668,
   4.67949,
   5.66299,
   6.85317,
   8.29351,
   10.03657,
   12.14595,
   14.6987,
   17.7879};
   Double_t Graph_fey1008[10] = {
   0.01253682,
   0.005719637,
   0.004019816,
   0.005043033,
   0.006710735,
   0.008656837,
   0.01379847,
   0.02334296,
   0.03556038,
   0.01948799};
   gre = new TGraphErrors(10,Graph_fx1008,Graph_fy1008,Graph_fex1008,Graph_fey1008);
   gre->SetName("Graph");
   gre->SetTitle("Graph");
   gre->SetFillColor(1);
   gre->SetFillStyle(0);
   gre->SetLineColor(2);
   gre->SetMarkerColor(2);
   
   TH1F *Graph_Graph1008 = new TH1F("Graph_Graph1008","Graph",100,12.96216,222.291);
   Graph_Graph1008->SetMinimum(0.01359369);
   Graph_Graph1008->SetMaximum(0.3577612);
   Graph_Graph1008->SetDirectory(0);
   Graph_Graph1008->SetStats(0);

   ci = TColor::GetColor("#000099");
   Graph_Graph1008->SetLineColor(ci);
   Graph_Graph1008->GetXaxis()->SetLabelFont(42);
   Graph_Graph1008->GetXaxis()->SetLabelSize(0.035);
   Graph_Graph1008->GetXaxis()->SetTitleSize(0.035);
   Graph_Graph1008->GetXaxis()->SetTitleFont(42);
   Graph_Graph1008->GetYaxis()->SetLabelFont(42);
   Graph_Graph1008->GetYaxis()->SetLabelSize(0.035);
   Graph_Graph1008->GetYaxis()->SetTitleSize(0.035);
   Graph_Graph1008->GetYaxis()->SetTitleFont(42);
   Graph_Graph1008->GetZaxis()->SetLabelFont(42);
   Graph_Graph1008->GetZaxis()->SetLabelSize(0.035);
   Graph_Graph1008->GetZaxis()->SetTitleSize(0.035);
   Graph_Graph1008->GetZaxis()->SetTitleFont(42);
   gre->SetHistogram(Graph_Graph1008);
   
   multigraph->Add(gre,"");
   multigraph->Draw("AP");
   multigraph->GetXaxis()->SetTitle("refpt");
   multigraph->GetXaxis()->SetLabelFont(42);
   multigraph->GetXaxis()->SetLabelSize(0.035);
   multigraph->GetXaxis()->SetTitleSize(0.035);
   multigraph->GetXaxis()->SetTitleFont(42);
   multigraph->GetYaxis()->SetTitle("#sigma_{Reco./Gen.}");
   multigraph->GetYaxis()->SetLabelFont(42);
   multigraph->GetYaxis()->SetLabelSize(0.035);
   multigraph->GetYaxis()->SetTitleSize(0.035);
   multigraph->GetYaxis()->SetTitleFont(42);
   
   TLegend *leg = new TLegend(0.65,0.7,0.85,0.85,NULL,"brNDC");
   leg->SetBorderSize(0);
   leg->SetLineColor(1);
   leg->SetLineStyle(1);
   leg->SetLineWidth(1);
   leg->SetFillColor(0);
   leg->SetFillStyle(1001);
   TLegendEntry *entry=leg->AddEntry("Graph","allJets","l");
   entry->SetLineColor(1);
   entry->SetLineStyle(1);
   entry->SetLineWidth(1);
   entry->SetMarkerColor(1);
   entry->SetMarkerStyle(21);
   entry->SetMarkerSize(1);
   entry->SetTextFont(42);
   entry=leg->AddEntry("Graph","from chris","l");
   entry->SetLineColor(2);
   entry->SetLineStyle(1);
   entry->SetLineWidth(1);
   entry->SetMarkerColor(1);
   entry->SetMarkerStyle(21);
   entry->SetMarkerSize(1);
   entry->SetTextFont(42);
   leg->Draw();
   TLatex *   tex = new TLatex(0.35,0.8,"#bf{#color[2]{|#eta_{jet}|<2.0}}");
tex->SetNDC();
   tex->SetTextFont(43);
   tex->SetTextSize(26);
   tex->SetLineWidth(2);
   tex->Draw();
      tex = new TLatex(0.17,0.25,"Centrality:30-100%");
tex->SetNDC();
   tex->SetTextFont(43);
   tex->SetTextSize(26);
   tex->SetLineWidth(2);
   tex->Draw();
   
   TPaveText *pt = new TPaveText(0.3743391,0.9365254,0.6256609,0.995,"blNDC");
   pt->SetName("title");
   pt->SetBorderSize(0);
   pt->SetFillColor(0);
   pt->SetFillStyle(0);
   pt->SetTextFont(42);
   AText = pt->AddText("JER_akPu4PF");
   pt->Draw();
   Can_result_3->Modified();
   Can_result_3->cd();
   Can_result_3->SetSelected(Can_result_3);
}
void Pythia8_Dijet30_result_JER_akPu4PF_((abs(refeta)<2)&&(hiBin>60))&&(refpt>30)_refeta()
{
//=========Macro generated from canvas: Can_result_3/
//=========  (Mon Apr 18 04:08:04 2016) by ROOT version6.02/13
   TCanvas *Can_result_3 = new TCanvas("Can_result_3", "",18,40,700,500);
   gStyle->SetOptFit(1);
   Can_result_3->Range(-2.75,0.1715425,2.75,0.2926317);
   Can_result_3->SetFillColor(0);
   Can_result_3->SetBorderMode(0);
   Can_result_3->SetBorderSize(2);
   Can_result_3->SetFrameBorderMode(0);
   Can_result_3->SetFrameBorderMode(0);
   
   TMultiGraph *multigraph = new TMultiGraph();
   multigraph->SetName("name");
   multigraph->SetTitle("JER_akPu4PF");
   
   Double_t Graph_fx1007[9] = {
   -1.8,
   -1.4,
   -1,
   -0.6,
   -0.2,
   0.2,
   0.6,
   1,
   1.6};
   Double_t Graph_fy1007[9] = {
   0.2213775,
   0.2313726,
   0.212349,
   0.1992318,
   0.2015521,
   0.2047929,
   0.2065286,
   0.2141753,
   0.2298097};
   Double_t Graph_fex1007[9] = {
   0.2,
   0.2,
   0.2,
   0.2,
   0.2,
   0.2,
   0.2,
   0.2,
   0.4};
   Double_t Graph_fey1007[9] = {
   0.001529502,
   0.001378741,
   0.001274153,
   0.001286487,
   0.00132694,
   0.001354738,
   0.001397823,
   0.001305814,
   0.001034891};
   TGraphErrors *gre = new TGraphErrors(9,Graph_fx1007,Graph_fy1007,Graph_fex1007,Graph_fey1007);
   gre->SetName("Graph");
   gre->SetTitle("some title_0");
   gre->SetFillColor(1);
   gre->SetFillStyle(0);
   
   TH1F *Graph_Graph1007 = new TH1F("Graph_Graph1007","some title_0",100,-2.4,2.4);
   Graph_Graph1007->SetMinimum(0.1944648);
   Graph_Graph1007->SetMaximum(0.236232);
   Graph_Graph1007->SetDirectory(0);
   Graph_Graph1007->SetStats(0);

   Int_t ci;      // for color index setting
   TColor *color; // for color definition with alpha
   ci = TColor::GetColor("#000099");
   Graph_Graph1007->SetLineColor(ci);
   Graph_Graph1007->GetXaxis()->SetLabelFont(42);
   Graph_Graph1007->GetXaxis()->SetLabelSize(0.035);
   Graph_Graph1007->GetXaxis()->SetTitleSize(0.035);
   Graph_Graph1007->GetXaxis()->SetTitleFont(42);
   Graph_Graph1007->GetYaxis()->SetLabelFont(42);
   Graph_Graph1007->GetYaxis()->SetLabelSize(0.035);
   Graph_Graph1007->GetYaxis()->SetTitleSize(0.035);
   Graph_Graph1007->GetYaxis()->SetTitleFont(42);
   Graph_Graph1007->GetZaxis()->SetLabelFont(42);
   Graph_Graph1007->GetZaxis()->SetLabelSize(0.035);
   Graph_Graph1007->GetZaxis()->SetTitleSize(0.035);
   Graph_Graph1007->GetZaxis()->SetTitleFont(42);
   gre->SetHistogram(Graph_Graph1007);
   
   multigraph->Add(gre,"");
   
   Double_t Graph_fx1008[20] = {
   -1.9,
   -1.7,
   -1.5,
   -1.2,
   -0.9,
   -0.7,
   -0.5,
   -0.3,
   -0.1,
   0.1,
   0.3,
   0.5,
   0.7,
   0.9,
   1.1,
   1.3,
   1.5,
   1.7,
   1.9,
   1};
   Double_t Graph_fy1008[20] = {
   0.2311591,
   0.2477474,
   0.2655955,
   0.2576075,
   0.2220231,
   0.206768,
   0.2064983,
   0.2020811,
   0.19917,
   0.2115871,
   0.1952014,
   0.1965805,
   0.2158946,
   0.2003286,
   0.213619,
   0.213695,
   0.2466632,
   0.2597152,
   0.2553281,
   0.2344014};
   Double_t Graph_fex1008[20] = {
   0.1,
   0.1,
   0.1,
   0.2,
   0.1,
   0.1,
   0.1,
   0.1,
   0.1,
   0.1,
   0.1,
   0.1,
   0.1,
   0.1,
   0.1,
   0.1,
   0.1,
   0.1,
   0.1,
   -1};
   Double_t Graph_fey1008[20] = {
   0.009894431,
   0.01000488,
   0.01052403,
   0.009913006,
   0.008527985,
   0.007570562,
   0.007309829,
   0.007320613,
   0.00699798,
   0.00776784,
   0.007146697,
   0.00713059,
   0.007530691,
   0.007364154,
   0.007896077,
   0.007855752,
   0.009496669,
   0.01034782,
   0.01046585,
   0.009252961};
   gre = new TGraphErrors(20,Graph_fx1008,Graph_fy1008,Graph_fex1008,Graph_fey1008);
   gre->SetName("Graph");
   gre->SetTitle("Graph");
   gre->SetFillColor(1);
   gre->SetFillStyle(0);
   gre->SetLineColor(2);
   gre->SetMarkerColor(2);
   
   TH1F *Graph_Graph1008 = new TH1F("Graph_Graph1008","Graph",100,-2.4,2.4);
   Graph_Graph1008->SetMinimum(0.1792482);
   Graph_Graph1008->SetMaximum(0.284926);
   Graph_Graph1008->SetDirectory(0);
   Graph_Graph1008->SetStats(0);

   ci = TColor::GetColor("#000099");
   Graph_Graph1008->SetLineColor(ci);
   Graph_Graph1008->GetXaxis()->SetLabelFont(42);
   Graph_Graph1008->GetXaxis()->SetLabelSize(0.035);
   Graph_Graph1008->GetXaxis()->SetTitleSize(0.035);
   Graph_Graph1008->GetXaxis()->SetTitleFont(42);
   Graph_Graph1008->GetYaxis()->SetLabelFont(42);
   Graph_Graph1008->GetYaxis()->SetLabelSize(0.035);
   Graph_Graph1008->GetYaxis()->SetTitleSize(0.035);
   Graph_Graph1008->GetYaxis()->SetTitleFont(42);
   Graph_Graph1008->GetZaxis()->SetLabelFont(42);
   Graph_Graph1008->GetZaxis()->SetLabelSize(0.035);
   Graph_Graph1008->GetZaxis()->SetTitleSize(0.035);
   Graph_Graph1008->GetZaxis()->SetTitleFont(42);
   gre->SetHistogram(Graph_Graph1008);
   
   multigraph->Add(gre,"");
   multigraph->Draw("AP");
   multigraph->GetXaxis()->SetTitle("refeta");
   multigraph->GetXaxis()->SetLabelFont(42);
   multigraph->GetXaxis()->SetLabelSize(0.035);
   multigraph->GetXaxis()->SetTitleSize(0.035);
   multigraph->GetXaxis()->SetTitleFont(42);
   multigraph->GetYaxis()->SetTitle("#sigma_{Reco./Gen.}");
   multigraph->GetYaxis()->SetLabelFont(42);
   multigraph->GetYaxis()->SetLabelSize(0.035);
   multigraph->GetYaxis()->SetTitleSize(0.035);
   multigraph->GetYaxis()->SetTitleFont(42);
   
   TLegend *leg = new TLegend(0.68,0.7,0.88,0.85,NULL,"brNDC");
   leg->SetBorderSize(0);
   leg->SetLineColor(1);
   leg->SetLineStyle(1);
   leg->SetLineWidth(1);
   leg->SetFillColor(0);
   leg->SetFillStyle(1001);
   TLegendEntry *entry=leg->AddEntry("Graph","allJets","l");
   entry->SetLineColor(1);
   entry->SetLineStyle(1);
   entry->SetLineWidth(1);
   entry->SetMarkerColor(1);
   entry->SetMarkerStyle(21);
   entry->SetMarkerSize(1);
   entry->SetTextFont(42);
   entry=leg->AddEntry("Graph","from chris","l");
   entry->SetLineColor(2);
   entry->SetLineStyle(1);
   entry->SetLineWidth(1);
   entry->SetMarkerColor(1);
   entry->SetMarkerStyle(21);
   entry->SetMarkerSize(1);
   entry->SetTextFont(42);
   leg->Draw();
   TLatex *   tex = new TLatex(0.35,0.8,"#bf{#color[2]{|#eta_{jet}|<2.0 & refpt>30}}");
tex->SetNDC();
   tex->SetTextFont(43);
   tex->SetTextSize(24);
   tex->SetLineWidth(2);
   tex->Draw();
      tex = new TLatex(0.17,0.17,"Centrality:30-100%");
tex->SetNDC();
   tex->SetTextFont(43);
   tex->SetTextSize(24);
   tex->SetLineWidth(2);
   tex->Draw();
   
   TPaveText *pt = new TPaveText(0.3743391,0.9365254,0.6256609,0.995,"blNDC");
   pt->SetName("title");
   pt->SetBorderSize(0);
   pt->SetFillColor(0);
   pt->SetFillStyle(0);
   pt->SetTextFont(42);
   AText = pt->AddText("JER_akPu4PF");
   pt->Draw();
   Can_result_3->Modified();
   Can_result_3->cd();
   Can_result_3->SetSelected(Can_result_3);
}
示例#23
0
plot()
{
//=========Macro generated from canvas: FigExample/FigExample
//=========  (Thu Feb 11 11:37:37 2016) by ROOT version5.34/32
   TCanvas *FigExample = new TCanvas("FigExample", "FigExample",1,23,1364,719);
   gStyle->SetOptFit(1);
   gStyle->SetOptStat(0);
   gStyle->SetOptTitle(0);
   FigExample->Range(-1158.419,-0.195,8561.764,1.43);
   FigExample->SetFillColor(0);
   FigExample->SetBorderMode(0);
   FigExample->SetBorderSize(2);
   FigExample->SetLeftMargin(0.12);
   FigExample->SetRightMargin(0.04);
   FigExample->SetTopMargin(0.08);
   FigExample->SetBottomMargin(0.12);
   FigExample->SetFrameFillStyle(0);
   FigExample->SetFrameBorderMode(0);
   FigExample->SetFrameFillStyle(0);
   FigExample->SetFrameBorderMode(0);
   
   TGraphErrors *gre = new TGraphErrors(11);
   gre->SetName("Graph1");
   gre->SetTitle("");
   gre->SetFillColor(1);
   gre->SetLineColor(4);
   gre->SetMarkerColor(4);
   gre->SetMarkerStyle(22);
   gre->SetMarkerSize(1.5);
   gre->SetPoint(0,8.892308,0.97914);
   gre->SetPointError(0,0,0.00119056);
   gre->SetPoint(1,10.38462,0.973453);
   gre->SetPointError(1,0,0.00225169);
   gre->SetPoint(2,23.53846,0.980456);
   gre->SetPointError(2,0,0.00126418);
   gre->SetPoint(3,43.84615,0.97976);
   gre->SetPointError(3,0,0.001007);
   gre->SetPoint(4,120.3077,0.971649);
   gre->SetPointError(4,0,0.000816721);
   gre->SetPoint(5,164.6154,0.970778);
   gre->SetPointError(5,0,0.000914539);
   gre->SetPoint(6,389.2308,0.953326);
   gre->SetPointError(6,0,0.00131593);
   gre->SetPoint(7,753.8462,0.942877);
   gre->SetPointError(7,0,0.0019686);
   gre->SetPoint(8,1266.154,0.914665);
   gre->SetPointError(8,0,0.00283506);
   gre->SetPoint(9,3400,0.867066);
   gre->SetPointError(9,0,0.00370407);
   gre->SetPoint(10,7430.769,0.807229);
   gre->SetPointError(10,0,0.0060241);
   
   TH1F *Graph_Graph_Graph116 = new TH1F("Graph_Graph_Graph116","",100,8.003077,8172.957);
   Graph_Graph_Graph116->SetMinimum(0);
   Graph_Graph_Graph116->SetMaximum(1.3);
   Graph_Graph_Graph116->SetDirectory(0);
   Graph_Graph_Graph116->SetStats(0);

   Int_t ci;      // for color index setting
   TColor *color; // for color definition with alpha
   ci = TColor::GetColor("#000099");
   Graph_Graph_Graph116->SetLineColor(ci);
   Graph_Graph_Graph116->SetLineStyle(0);
   Graph_Graph_Graph116->SetMarkerStyle(20);
   Graph_Graph_Graph116->GetXaxis()->SetTitle("Average rate ( N_{#mu}.s^{-1}.cm^{-2} )");
   Graph_Graph_Graph116->GetXaxis()->CenterTitle(true);
   Graph_Graph_Graph116->GetXaxis()->SetLabelFont(42);
   Graph_Graph_Graph116->GetXaxis()->SetLabelOffset(0.01);
   Graph_Graph_Graph116->GetXaxis()->SetLabelSize(0.05);
   Graph_Graph_Graph116->GetXaxis()->SetTitleSize(0.05);
   Graph_Graph_Graph116->GetXaxis()->SetTitleOffset(1.1);
   Graph_Graph_Graph116->GetXaxis()->SetTitleFont(42);
   Graph_Graph_Graph116->GetYaxis()->SetTitle("#mu detection efficiency");
   Graph_Graph_Graph116->GetYaxis()->CenterTitle(true);
   Graph_Graph_Graph116->GetYaxis()->SetLabelFont(42);
   Graph_Graph_Graph116->GetYaxis()->SetLabelOffset(0.007);
   Graph_Graph_Graph116->GetYaxis()->SetLabelSize(0.05);
   Graph_Graph_Graph116->GetYaxis()->SetTitleSize(0.05);
   Graph_Graph_Graph116->GetYaxis()->SetTitleOffset(0.9);
   Graph_Graph_Graph116->GetYaxis()->SetTitleFont(42);
   Graph_Graph_Graph116->GetZaxis()->SetLabelFont(42);
   Graph_Graph_Graph116->GetZaxis()->SetLabelOffset(0.007);
   Graph_Graph_Graph116->GetZaxis()->SetLabelSize(0.05);
   Graph_Graph_Graph116->GetZaxis()->SetTitleSize(0.06);
   Graph_Graph_Graph116->GetZaxis()->SetTitleFont(42);
   gre->SetHistogram(Graph_Graph_Graph116);
   
   gre->Draw("pa");
   
   gre = new TGraphErrors(11);
   gre->SetName("Graph3");
   gre->SetTitle("");
   gre->SetFillColor(1);
   gre->SetLineColor(4);
   gre->SetMarkerColor(4);
   gre->SetMarkerStyle(23);
   gre->SetMarkerSize(1.5);
   gre->SetPoint(0,8.892308,0.945552);
   gre->SetPointError(0,0,0.00222099);
   gre->SetPoint(1,10.38462,0.937882);
   gre->SetPointError(1,0,0.00397671);
   gre->SetPoint(2,23.53846,0.945317);
   gre->SetPointError(2,0,0.0024096);
   gre->SetPoint(3,43.84615,0.950864);
   gre->SetPointError(3,0,0.00176728);
   gre->SetPoint(4,120.3077,0.94505);
   gre->SetPointError(4,0,0.00122324);
   gre->SetPoint(5,164.6154,0.942688);
   gre->SetPointError(5,0,0.00136884);
   gre->SetPoint(6,389.2308,0.921693);
   gre->SetPointError(6,0,0.00178155);
   gre->SetPoint(7,753.8462,0.905909);
   gre->SetPointError(7,0,0.002633);
   gre->SetPoint(8,1266.154,0.891392);
   gre->SetPointError(8,0,0.00331251);
   gre->SetPoint(9,3400,0.868524);
   gre->SetPointError(9,0,0.003775);
   gre->SetPoint(10,7430.769,0.847397);
   gre->SetPointError(10,0,0.00551738);
   
   TH1F *Graph_Graph_Graph327 = new TH1F("Graph_Graph_Graph327","",100,8.003077,8172.957);
   Graph_Graph_Graph327->SetMinimum(0.8308045);
   Graph_Graph_Graph327->SetMaximum(0.9637064);
   Graph_Graph_Graph327->SetDirectory(0);
   Graph_Graph_Graph327->SetStats(0);

   ci = TColor::GetColor("#000099");
   Graph_Graph_Graph327->SetLineColor(ci);
   Graph_Graph_Graph327->SetLineStyle(0);
   Graph_Graph_Graph327->SetMarkerStyle(20);
   Graph_Graph_Graph327->GetXaxis()->SetTitle("Average rate ( N_{#mu}.s^{-1}.cm^{-2} )");
   Graph_Graph_Graph327->GetXaxis()->CenterTitle(true);
   Graph_Graph_Graph327->GetXaxis()->SetLabelFont(42);
   Graph_Graph_Graph327->GetXaxis()->SetLabelOffset(0.007);
   Graph_Graph_Graph327->GetXaxis()->SetLabelSize(0.05);
   Graph_Graph_Graph327->GetXaxis()->SetTitleSize(0.05);
   Graph_Graph_Graph327->GetXaxis()->SetTitleOffset(1.1);
   Graph_Graph_Graph327->GetXaxis()->SetTitleFont(42);
   Graph_Graph_Graph327->GetYaxis()->SetTitle("#mu detection efficiency");
   Graph_Graph_Graph327->GetYaxis()->CenterTitle(true);
   Graph_Graph_Graph327->GetYaxis()->SetLabelFont(42);
   Graph_Graph_Graph327->GetYaxis()->SetLabelOffset(0.007);
   Graph_Graph_Graph327->GetYaxis()->SetLabelSize(0.05);
   Graph_Graph_Graph327->GetYaxis()->SetTitleSize(0.05);
   Graph_Graph_Graph327->GetYaxis()->SetTitleOffset(0.9);
   Graph_Graph_Graph327->GetYaxis()->SetTitleFont(42);
   Graph_Graph_Graph327->GetZaxis()->SetLabelFont(42);
   Graph_Graph_Graph327->GetZaxis()->SetLabelOffset(0.007);
   Graph_Graph_Graph327->GetZaxis()->SetLabelSize(0.05);
   Graph_Graph_Graph327->GetZaxis()->SetTitleSize(0.06);
   Graph_Graph_Graph327->GetZaxis()->SetTitleFont(42);
   gre->SetHistogram(Graph_Graph_Graph327);
   
   gre->Draw("p&");
   
   gre = new TGraphErrors(10);
   gre->SetName("Graph4");
   gre->SetTitle("");
   gre->SetFillColor(1);
   gre->SetLineColor(4);
   gre->SetMarkerColor(4);
   gre->SetMarkerStyle(26);
   gre->SetMarkerSize(1.5);
   gre->SetPoint(0,10.38462,0.818118);
   gre->SetPointError(0,0,0.00652498);
   gre->SetPoint(1,23.53846,0.859551);
   gre->SetPointError(1,0,0.00371018);
   gre->SetPoint(2,43.84615,0.869325);
   gre->SetPointError(2,0,0.00275425);
   gre->SetPoint(3,120.3077,0.852496);
   gre->SetPointError(3,0,0.00191306);
   gre->SetPoint(4,164.6154,0.844565);
   gre->SetPointError(4,0,0.00214338);
   gre->SetPoint(5,389.2308,0.801642);
   gre->SetPointError(5,0,0.00267808);
   gre->SetPoint(6,753.8462,0.77863);
   gre->SetPointError(6,0,0.00379423);
   gre->SetPoint(7,1266.154,0.751091);
   gre->SetPointError(7,0,0.00470814);
   gre->SetPoint(8,3400,0.700803);
   gre->SetPointError(8,0,0.00534877);
   gre->SetPoint(9,7430.769,0.681421);
   gre->SetPointError(9,0,0.00746557);
   
   TH1F *Graph_Graph_Graph438 = new TH1F("Graph_Graph_Graph438","",100,9.346154,8172.808);
   Graph_Graph_Graph438->SetMinimum(0.654143);
   Graph_Graph_Graph438->SetMaximum(0.8918916);
   Graph_Graph_Graph438->SetDirectory(0);
   Graph_Graph_Graph438->SetStats(0);

   ci = TColor::GetColor("#000099");
   Graph_Graph_Graph438->SetLineColor(ci);
   Graph_Graph_Graph438->SetLineStyle(0);
   Graph_Graph_Graph438->SetMarkerStyle(20);
   Graph_Graph_Graph438->GetXaxis()->SetTitle("Average rate ( N_{#mu}.s^{-1}.cm^{-2} )");
   Graph_Graph_Graph438->GetXaxis()->CenterTitle(true);
   Graph_Graph_Graph438->GetXaxis()->SetLabelFont(42);
   Graph_Graph_Graph438->GetXaxis()->SetLabelOffset(0.01);
   Graph_Graph_Graph438->GetXaxis()->SetLabelSize(0.05);
   Graph_Graph_Graph438->GetXaxis()->SetTitleSize(0.05);
   Graph_Graph_Graph438->GetXaxis()->SetTitleOffset(1.1);
   Graph_Graph_Graph438->GetXaxis()->SetTitleFont(42);
   Graph_Graph_Graph438->GetYaxis()->SetTitle("#mu detection efficiency");
   Graph_Graph_Graph438->GetYaxis()->CenterTitle(true);
   Graph_Graph_Graph438->GetYaxis()->SetLabelFont(42);
   Graph_Graph_Graph438->GetYaxis()->SetLabelOffset(0.007);
   Graph_Graph_Graph438->GetYaxis()->SetLabelSize(0.05);
   Graph_Graph_Graph438->GetYaxis()->SetTitleSize(0.05);
   Graph_Graph_Graph438->GetYaxis()->SetTitleOffset(0.9);
   Graph_Graph_Graph438->GetYaxis()->SetTitleFont(42);
   Graph_Graph_Graph438->GetZaxis()->SetLabelFont(42);
   Graph_Graph_Graph438->GetZaxis()->SetLabelOffset(0.007);
   Graph_Graph_Graph438->GetZaxis()->SetLabelSize(0.05);
   Graph_Graph_Graph438->GetZaxis()->SetTitleSize(0.06);
   Graph_Graph_Graph438->GetZaxis()->SetTitleFont(42);
   gre->SetHistogram(Graph_Graph_Graph438);
   
   gre->Draw("p&");
   
   gre = new TGraphErrors(11);
   gre->SetName("Graph5");
   gre->SetTitle("");
   gre->SetFillColor(1);
   gre->SetLineColor(4);
   gre->SetMarkerColor(4);
   gre->SetMarkerStyle(32);
   gre->SetMarkerSize(1.5);
   gre->SetPoint(0,8.892308,0.964904);
   gre->SetPointError(0,0,0.00161884);
   gre->SetPoint(1,10.38462,0.968371);
   gre->SetPointError(1,0,0.00261764);
   gre->SetPoint(2,23.53846,0.966203);
   gre->SetPointError(2,0,0.00172469);
   gre->SetPoint(3,43.84615,0.966627);
   gre->SetPointError(3,0,0.00131816);
   gre->SetPoint(4,120.3077,0.952356);
   gre->SetPointError(4,0,0.00103524);
   gre->SetPoint(5,164.6154,0.947467);
   gre->SetPointError(5,0,0.00119486);
   gre->SetPoint(6,389.2308,0.920595);
   gre->SetPointError(6,0,0.00164465);
   gre->SetPoint(7,753.8462,0.899052);
   gre->SetPointError(7,0,0.00250036);
   gre->SetPoint(8,1266.154,0.871394);
   gre->SetPointError(8,0,0.00333283);
   gre->SetPoint(9,3400,0.817966);
   gre->SetPointError(9,0,0.00415542);
   gre->SetPoint(10,7430.769,0.771213);
   gre->SetPointError(10,0,0.00633324);
   
   TH1F *Graph_Graph_Graph549 = new TH1F("Graph_Graph_Graph549","",100,8.003077,8172.957);
   Graph_Graph_Graph549->SetMinimum(0.7442689);
   Graph_Graph_Graph549->SetMaximum(0.9915995);
   Graph_Graph_Graph549->SetDirectory(0);
   Graph_Graph_Graph549->SetStats(0);

   ci = TColor::GetColor("#000099");
   Graph_Graph_Graph549->SetLineColor(ci);
   Graph_Graph_Graph549->SetLineStyle(0);
   Graph_Graph_Graph549->SetMarkerStyle(20);
   Graph_Graph_Graph549->GetXaxis()->SetTitle("Average rate ( N_{#mu}.s^{-1}.cm^{-2} )");
   Graph_Graph_Graph549->GetXaxis()->CenterTitle(true);
   Graph_Graph_Graph549->GetXaxis()->SetLabelFont(42);
   Graph_Graph_Graph549->GetXaxis()->SetLabelOffset(0.01);
   Graph_Graph_Graph549->GetXaxis()->SetLabelSize(0.05);
   Graph_Graph_Graph549->GetXaxis()->SetTitleSize(0.05);
   Graph_Graph_Graph549->GetXaxis()->SetTitleOffset(1.1);
   Graph_Graph_Graph549->GetXaxis()->SetTitleFont(42);
   Graph_Graph_Graph549->GetYaxis()->SetTitle("#mu detection efficiency");
   Graph_Graph_Graph549->GetYaxis()->CenterTitle(true);
   Graph_Graph_Graph549->GetYaxis()->SetLabelFont(42);
   Graph_Graph_Graph549->GetYaxis()->SetLabelOffset(0.007);
   Graph_Graph_Graph549->GetYaxis()->SetLabelSize(0.05);
   Graph_Graph_Graph549->GetYaxis()->SetTitleSize(0.05);
   Graph_Graph_Graph549->GetYaxis()->SetTitleOffset(0.9);
   Graph_Graph_Graph549->GetYaxis()->SetTitleFont(42);
   Graph_Graph_Graph549->GetZaxis()->SetLabelFont(42);
   Graph_Graph_Graph549->GetZaxis()->SetLabelOffset(0.007);
   Graph_Graph_Graph549->GetZaxis()->SetLabelSize(0.05);
   Graph_Graph_Graph549->GetZaxis()->SetTitleSize(0.06);
   Graph_Graph_Graph549->GetZaxis()->SetTitleFont(42);
   gre->SetHistogram(Graph_Graph_Graph549);
   
   gre->Draw("p&");
   
   gre = new TGraphErrors(11);
   gre->SetName("Graph6");
   gre->SetTitle("");
   gre->SetFillColor(1);
   gre->SetLineColor(2);
   gre->SetMarkerColor(2);
   gre->SetMarkerStyle(31);
   gre->SetMarkerSize(1.5);
   gre->SetPoint(0,8.892308,0.937506);
   gre->SetPointError(0,0,0.00238084);
   gre->SetPoint(1,10.38462,0.932408);
   gre->SetPointError(1,0,0.00416789);
   gre->SetPoint(2,23.53846,0.852038);
   gre->SetPointError(2,0,0.00397868);
   gre->SetPoint(3,43.84615,0.707619);
   gre->SetPointError(3,0,0.00429972);
   gre->SetPoint(4,120.3077,0.38838);
   gre->SetPointError(4,0,0.00401168);
   gre->SetPoint(5,164.6154,0.348649);
   gre->SetPointError(5,0,0.00451826);
   gre->SetPoint(6,389.2308,0.254837);
   gre->SetPointError(6,0,0.00521552);
   gre->SetPoint(7,753.8462,0.245527);
   gre->SetPointError(7,0,0.00698108);
   gre->SetPoint(8,1266.154,0.250365);
   gre->SetPointError(8,0,0.00802127);
   gre->SetPoint(9,3400,0.232597);
   gre->SetPointError(9,0,0.00840615);
   gre->SetPoint(10,7430.769,0.186328);
   gre->SetPointError(10,0,0.0117775);
   
   TH1F *Graph_Graph_Graph6510 = new TH1F("Graph_Graph_Graph6510","",100,8.003077,8172.957);
   Graph_Graph_Graph6510->SetMinimum(0.09801687);
   Graph_Graph_Graph6510->SetMaximum(1.01642);
   Graph_Graph_Graph6510->SetDirectory(0);
   Graph_Graph_Graph6510->SetStats(0);

   ci = TColor::GetColor("#000099");
   Graph_Graph_Graph6510->SetLineColor(ci);
   Graph_Graph_Graph6510->SetLineStyle(0);
   Graph_Graph_Graph6510->SetMarkerStyle(20);
   Graph_Graph_Graph6510->GetXaxis()->SetTitle("Average rate ( N_{#mu}.s^{-1}.cm^{-2} )");
   Graph_Graph_Graph6510->GetXaxis()->CenterTitle(true);
   Graph_Graph_Graph6510->GetXaxis()->SetLabelFont(42);
   Graph_Graph_Graph6510->GetXaxis()->SetLabelOffset(0.01);
   Graph_Graph_Graph6510->GetXaxis()->SetLabelSize(0.05);
   Graph_Graph_Graph6510->GetXaxis()->SetTitleSize(0.05);
   Graph_Graph_Graph6510->GetXaxis()->SetTitleOffset(3);
   Graph_Graph_Graph6510->GetXaxis()->SetTitleFont(42);
   Graph_Graph_Graph6510->GetYaxis()->SetTitle("#mu detection efficiency");
   Graph_Graph_Graph6510->GetYaxis()->CenterTitle(true);
   Graph_Graph_Graph6510->GetYaxis()->SetLabelFont(42);
   Graph_Graph_Graph6510->GetYaxis()->SetLabelOffset(0.007);
   Graph_Graph_Graph6510->GetYaxis()->SetLabelSize(0.05);
   Graph_Graph_Graph6510->GetYaxis()->SetTitleSize(0.05);
   Graph_Graph_Graph6510->GetYaxis()->SetTitleOffset(1.1);
   Graph_Graph_Graph6510->GetYaxis()->SetTitleFont(42);
   Graph_Graph_Graph6510->GetZaxis()->SetLabelFont(42);
   Graph_Graph_Graph6510->GetZaxis()->SetLabelOffset(0.007);
   Graph_Graph_Graph6510->GetZaxis()->SetLabelSize(0.05);
   Graph_Graph_Graph6510->GetZaxis()->SetTitleSize(0.06);
   Graph_Graph_Graph6510->GetZaxis()->SetTitleFont(42);
   gre->SetHistogram(Graph_Graph_Graph6510);
   
   gre->Draw("p&");
   TLatex *   tex = new TLatex(0.96,0.936," ");
tex->SetNDC();
   tex->SetTextAlign(31);
   tex->SetTextFont(42);
   tex->SetTextSize(0.048);
   tex->SetLineWidth(2);
   tex->Draw();
      tex = new TLatex(0.1722,0.892,"Preliminary");
tex->SetNDC();
   tex->SetTextAlign(13);
   tex->SetTextFont(52);
   tex->SetTextSize(0.0456);
   tex->SetLineWidth(2);
   tex->Draw();
      tex = new TLatex(0.1722,0.851872,"Gas mixture : 93% TFE, 5%CO_{2}, 2%SF_{6}");
tex->SetNDC();
   tex->SetTextAlign(13);
   tex->SetTextFont(52);
   tex->SetTextSize(0.0264);
   tex->SetLineWidth(2);
   tex->Draw();
      tex = new TLatex(0.1722,0.811744,"Threshold : 0.13pC");
tex->SetNDC();
   tex->SetTextAlign(13);
   tex->SetTextFont(52);
   tex->SetTextSize(0.0264);
   tex->SetLineWidth(2);
   tex->Draw();
   
   TH1F *Graph1 = new TH1F("Graph1","",100,8.003077,8172.957);
   Graph1->SetMinimum(0.7831534);
   Graph1->SetMaximum(0.9997717);
   Graph1->SetDirectory(0);
   Graph1->SetStats(0);

   ci = TColor::GetColor("#000099");
   Graph1->SetLineColor(ci);
   Graph1->SetLineStyle(0);
   Graph1->SetMarkerStyle(20);
   Graph1->GetXaxis()->SetTitle("Average rate ( N_{#mu}.s^{-1}.cm^{-2} )");
   Graph1->GetXaxis()->CenterTitle(true);
   Graph1->GetXaxis()->SetLabelFont(42);
   Graph1->GetXaxis()->SetLabelOffset(0.01);
   Graph1->GetXaxis()->SetLabelSize(0.05);
   Graph1->GetXaxis()->SetTitleSize(0.05);
   Graph1->GetXaxis()->SetTitleOffset(1.4);
   Graph1->GetXaxis()->SetTitleFont(42);
   Graph1->GetYaxis()->SetTitle("#mu detection efficiency");
   Graph1->GetYaxis()->CenterTitle(true);
   Graph1->GetYaxis()->SetLabelFont(42);
   Graph1->GetYaxis()->SetLabelOffset(0.007);
   Graph1->GetYaxis()->SetLabelSize(0.05);
   Graph1->GetYaxis()->SetTitleSize(0.05);
   Graph1->GetYaxis()->SetTitleOffset(0.9);
   Graph1->GetYaxis()->SetTitleFont(42);
   Graph1->GetZaxis()->SetLabelFont(42);
   Graph1->GetZaxis()->SetLabelOffset(0.007);
   Graph1->GetZaxis()->SetLabelSize(0.05);
   Graph1->GetZaxis()->SetTitleSize(0.06);
   Graph1->GetZaxis()->SetTitleFont(42);
   Graph1->Draw("sameaxis");
   
   TH1F *Graph1 = new TH1F("Graph1","",100,8.003077,8172.957);
   Graph1->SetMinimum(0.7831534);
   Graph1->SetMaximum(0.9997717);
   Graph1->SetDirectory(0);
   Graph1->SetStats(0);

   ci = TColor::GetColor("#000099");
   Graph1->SetLineColor(ci);
   Graph1->SetLineStyle(0);
   Graph1->SetMarkerStyle(20);
   Graph1->GetXaxis()->SetTitle("Average rate ( N_{#mu}.s^{-1}.cm^{-2} )");
   Graph1->GetXaxis()->CenterTitle(true);
   Graph1->GetXaxis()->SetLabelFont(42);
   Graph1->GetXaxis()->SetLabelOffset(0.01);
   Graph1->GetXaxis()->SetLabelSize(0.05);
   Graph1->GetXaxis()->SetTitleSize(0.05);
   Graph1->GetXaxis()->SetTitleOffset(1.4);
   Graph1->GetXaxis()->SetTitleFont(42);
   Graph1->GetYaxis()->SetTitle("#mu detection efficiency");
   Graph1->GetYaxis()->CenterTitle(true);
   Graph1->GetYaxis()->SetLabelFont(42);
   Graph1->GetYaxis()->SetLabelOffset(0.007);
   Graph1->GetYaxis()->SetLabelSize(0.05);
   Graph1->GetYaxis()->SetTitleSize(0.05);
   Graph1->GetYaxis()->SetTitleOffset(0.9);
   Graph1->GetYaxis()->SetTitleFont(42);
   Graph1->GetZaxis()->SetLabelFont(42);
   Graph1->GetZaxis()->SetLabelOffset(0.007);
   Graph1->GetZaxis()->SetLabelSize(0.05);
   Graph1->GetZaxis()->SetTitleSize(0.06);
   Graph1->GetZaxis()->SetTitleFont(42);
   Graph1->Draw("sameaxis");
   
   TLegend *leg = new TLegend(0.5,0.8,0.9,0.9,NULL,"brNDC");
   leg->SetBorderSize(0);
   leg->SetTextSize(0.025);
   leg->SetLineColor(1);
   leg->SetLineStyle(1);
   leg->SetLineWidth(1);
   leg->SetFillColor(0);
   leg->SetFillStyle(1001);
   TLegendEntry *entry=leg->AddEntry("NULL","SPS test beams 06.2015","h");
   entry->SetLineColor(1);
   entry->SetLineStyle(1);
   entry->SetLineWidth(1);
   entry->SetMarkerColor(1);
   entry->SetMarkerStyle(21);
   entry->SetMarkerSize(1);
   entry->SetTextFont(42);
   entry=leg->AddEntry("Graph1","","p");
   entry->SetFillStyle(1001);
   entry->SetLineColor(2);
   entry->SetLineStyle(1);
   entry->SetLineWidth(1);
   entry->SetMarkerColor(4);
   entry->SetMarkerStyle(22);
   entry->SetMarkerSize(1.5);
   entry->SetTextAlign(13);
   entry->SetTextFont(42);
   entry=leg->AddEntry("Graph3","","p");
   entry->SetFillStyle(1001);
   entry->SetLineColor(4);
   entry->SetLineStyle(1);
   entry->SetLineWidth(1);
   entry->SetMarkerColor(4);
   entry->SetMarkerStyle(23);
   entry->SetMarkerSize(1.5);
   entry->SetTextFont(42);
   entry=leg->AddEntry("Graph4","","p");
   entry->SetFillStyle(1001);
   entry->SetLineColor(5);
   entry->SetLineStyle(1);
   entry->SetLineWidth(1);
   entry->SetMarkerColor(4);
   entry->SetMarkerStyle(26);
   entry->SetMarkerSize(1.5);
   entry->SetTextFont(42);
   entry=leg->AddEntry("Graph5","Low resistive glass RPC - 10^{10} #Omega.cm : 1,2,3,4","p");
   entry->SetFillStyle(1001);
   entry->SetLineColor(6);
   entry->SetLineStyle(1);
   entry->SetLineWidth(1);
   entry->SetMarkerColor(4);
   entry->SetMarkerStyle(32);
   entry->SetMarkerSize(1.5);
   entry->SetTextFont(42);
   entry=leg->AddEntry(""," ","p");
   entry->SetFillStyle(1001);
   entry->SetLineColor(6);
   entry->SetLineWidth(1);
   entry->SetMarkerColor(6);
   entry->SetMarkerStyle(21);
   entry->SetTextFont(42);
   entry=leg->AddEntry(""," ","p");
   entry->SetFillStyle(1001);
   entry->SetLineColor(6);
   entry->SetLineWidth(1);
   entry->SetMarkerColor(6);
   entry->SetMarkerStyle(21);
   entry->SetTextFont(42);
   entry=leg->AddEntry(""," ","p");
   entry->SetFillStyle(1001);
   entry->SetLineColor(6);
   entry->SetLineWidth(1);
   entry->SetMarkerColor(6);
   entry->SetMarkerStyle(21);
   entry->SetTextFont(42);
   entry=leg->AddEntry("Graph6","Float glass RPC ~10^{12}-10^{13} #Omega.cm","p");
   entry->SetFillStyle(1001);
   entry->SetLineColor(7);
   entry->SetLineStyle(1);
   entry->SetLineWidth(1);
   entry->SetMarkerColor(2);
   entry->SetMarkerStyle(31);
   entry->SetMarkerSize(1.5);
   entry->SetTextFont(42);
   leg->Draw();
   TLine *line = new TLine(0,1,8185,1);
   line->SetLineStyle(2);
   line->Draw();
   FigExample->Modified();
   FigExample->cd();
   FigExample->SetSelected(FigExample);
}
void BSA_InCoherent_t()
{
//=========Macro generated from canvas: c17/Incoherent channe
//=========  (Tue Aug 21 12:00:26 2018) by ROOT version6.09/01
   TCanvas *c17 = new TCanvas("c17", "Incoherent channe",0,0,1200,400);
   gStyle->SetOptFit(1);
   c17->Range(0,0,1,1);
   c17->SetFillColor(0);
   c17->SetBorderMode(0);
   c17->SetBorderSize(2);
   c17->SetLeftMargin(0.025);
   c17->SetRightMargin(0.02325581);
   c17->SetFrameBorderMode(0);
  
// ------------>Primitives in pad: c17_1
   TPad *c17_1 = new TPad("c17_1", "Incoherent channe_1",0,0,0.262936,0.9);
   c17_1->Draw();
   c17_1->cd();
   c17_1->Range(-32.86883,-0.4888889,353.6809,0.4);
   c17_1->SetFillColor(0);
   c17_1->SetBorderMode(0);
   c17_1->SetBorderSize(2);
   c17_1->SetGridx();
   c17_1->SetGridy();
   c17_1->SetRightMargin(0);
   c17_1->SetTopMargin(0);
   c17_1->SetFrameBorderMode(0);
   c17_1->SetFrameBorderMode(0);
   
   TMultiGraph *multigraph = new TMultiGraph();
   multigraph->SetName("");
   multigraph->SetTitle("0.05<-t<0.21 [GeV^{2}/c^{2}]");
   
   Double_t Graph_fx1154[9] = {
   21.59954,
   59.03178,
   96.06391,
   141.7703,
   179.2242,
   222.8541,
   259.5793,
   303.38,
   337.8675};
   Double_t Graph_fy1154[9] = {
   0.1020231,
   0.03114899,
   0.2309077,
   0.1341245,
   0.01684177,
   -0.1267998,
   -0.2824572,
   -0.2260703,
   -0.0186068};
   Double_t Graph_fex1154[9] = {
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0};
   Double_t Graph_fey1154[9] = {
   0.04242532,
   0.05165487,
   0.05483741,
   0.07646672,
   0.1006626,
   0.09089962,
   0.05905575,
   0.04462244,
   0.05521722};
   TGraphErrors *gre = new TGraphErrors(9,Graph_fx1154,Graph_fy1154,Graph_fex1154,Graph_fey1154);
   gre->SetName("Graph");
   gre->SetTitle("Graph");
   gre->SetFillColor(1);

   Int_t ci;      // for color index setting
   TColor *color; // for color definition with alpha
   ci = TColor::GetColor("#00ff00");
   gre->SetMarkerColor(ci);
   gre->SetMarkerStyle(21);
   
   TH1F *Graph_Graph1154 = new TH1F("Graph_Graph1154","Graph",100,0,369.4943);
   Graph_Graph1154->SetMinimum(-0.4042387);
   Graph_Graph1154->SetMaximum(0.3484709);
   Graph_Graph1154->SetDirectory(0);
   Graph_Graph1154->SetStats(0);

   ci = TColor::GetColor("#000099");
   Graph_Graph1154->SetLineColor(ci);
   Graph_Graph1154->GetXaxis()->SetLabelFont(42);
   Graph_Graph1154->GetXaxis()->SetLabelSize(0.035);
   Graph_Graph1154->GetXaxis()->SetTitleSize(0.035);
   Graph_Graph1154->GetXaxis()->SetTitleFont(42);
   Graph_Graph1154->GetYaxis()->SetLabelFont(42);
   Graph_Graph1154->GetYaxis()->SetLabelSize(0.035);
   Graph_Graph1154->GetYaxis()->SetTitleSize(0.035);
   Graph_Graph1154->GetYaxis()->SetTitleFont(42);
   Graph_Graph1154->GetZaxis()->SetLabelFont(42);
   Graph_Graph1154->GetZaxis()->SetLabelSize(0.035);
   Graph_Graph1154->GetZaxis()->SetTitleSize(0.035);
   Graph_Graph1154->GetZaxis()->SetTitleFont(42);
   gre->SetHistogram(Graph_Graph1154);
   
   
   TF1 *myfit1155 = new TF1("myfit","[0]*sin(x*3.1416/180.0)/(1 + [1]*cos(x*3.1416/180.0))",0,369.4943);
   myfit1155->SetFillColor(19);
   myfit1155->SetFillStyle(0);
   myfit1155->SetLineColor(2);
   myfit1155->SetLineWidth(2);
   myfit1155->SetChisquare(12.03234);
   myfit1155->SetNDF(7);
   myfit1155->GetXaxis()->SetLabelFont(42);
   myfit1155->GetXaxis()->SetLabelSize(0.035);
   myfit1155->GetXaxis()->SetTitleSize(0.035);
   myfit1155->GetXaxis()->SetTitleFont(42);
   myfit1155->GetYaxis()->SetLabelFont(42);
   myfit1155->GetYaxis()->SetLabelSize(0.035);
   myfit1155->GetYaxis()->SetTitleSize(0.035);
   myfit1155->GetYaxis()->SetTitleFont(42);
   myfit1155->SetParameter(0,0.2160608);
   myfit1155->SetParError(0,0.02670852);
   myfit1155->SetParLimits(0,0,0);
   myfit1155->SetParameter(1,0.2378828);
   myfit1155->SetParError(1,0.2292802);
   myfit1155->SetParLimits(1,0,0);
   gre->GetListOfFunctions()->Add(myfit1155);
   
   TPaveStats *ptstats = new TPaveStats(0.27,0.74,0.9,0.9,"brNDC");
   ptstats->SetName("stats");
   ptstats->SetBorderSize(1);
   ptstats->SetFillColor(0);
   ptstats->SetTextAlign(12);
   ptstats->SetTextFont(42);
   TText *AText = ptstats->AddText("#chi^{2} / ndf = 12.03 / 7");
   AText = ptstats->AddText("p0       = 0.2161 #pm 0.02671 ");
   AText = ptstats->AddText("p1       = 0.2379 #pm 0.2293 ");
   ptstats->SetOptStat(0);
   ptstats->SetOptFit(111);
   ptstats->Draw();
   gre->GetListOfFunctions()->Add(ptstats);
   ptstats->SetParent(gre->GetListOfFunctions());
   multigraph->Add(gre,"");
   multigraph->Draw("AP");
   multigraph->GetXaxis()->SetTitle("#phi [deg.]");
   multigraph->GetXaxis()->SetLabelFont(42);
   multigraph->GetXaxis()->SetLabelSize(0.035);
   multigraph->GetXaxis()->SetTitleSize(0.035);
   multigraph->GetXaxis()->SetTitleFont(42);
   multigraph->GetYaxis()->SetTitle("A_{LU}");
   multigraph->GetYaxis()->SetLabelFont(42);
   multigraph->GetYaxis()->SetLabelSize(0.035);
   multigraph->GetYaxis()->SetTitleSize(0.035);
   multigraph->GetYaxis()->SetTitleFont(42);
     gPad->Modified();  
   multigraph->GetYaxis()->SetRangeUser(-0.35, 0.35);  




   TPaveText *pt = new TPaveText(0.2292451,0.9268996,0.7707549,0.995,"blNDC");
   pt->SetName("title");
   pt->SetBorderSize(0);
   pt->SetFillColor(0);
   pt->SetFillStyle(0);
   pt->SetTextFont(42);
   AText = pt->AddText("0.05<-t<0.21 [GeV^{2}/c^{2}]");
   pt->Draw();
   c17_1->Modified();
   c17->cd();
  
// ------------>Primitives in pad: c17_2
   TPad *c17_2 = new TPad("c17_2", "Incoherent channe_2",0.262936,0,0.5008721,0.9);
   c17_2->Draw();
   c17_2->cd();
   c17_2->Range(5.895345,-0.4888889,352.6198,0.4);
   c17_2->SetFillColor(0);
   c17_2->SetBorderMode(0);
   c17_2->SetBorderSize(2);
   c17_2->SetGridx();
   c17_2->SetGridy();
   c17_2->SetLeftMargin(0);
   c17_2->SetRightMargin(0);
   c17_2->SetTopMargin(0);
   c17_2->SetFrameBorderMode(0);
   c17_2->SetFrameBorderMode(0);
   
   multigraph = new TMultiGraph();
   multigraph->SetName("");
   multigraph->SetTitle("0.21<-t<0.36 [GeV^{2}/c^{2}]");
   
   Double_t Graph_fx1157[9] = {
   21.65555,
   61.41754,
   96.1904,
   139.625,
   182.9173,
   222.6445,
   259.1526,
   302.149,
   336.8596};
   Double_t Graph_fy1157[9] = {
   0.04372413,
   0.1019325,
   0.1737435,
   0.1708402,
   0.2316287,
   -0.1435087,
   -0.1227365,
   -0.1969296,
   -0.07714485};
   Double_t Graph_fex1157[9] = {
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0};
   Double_t Graph_fey1157[9] = {
   0.0517677,
   0.05885852,
   0.0646232,
   0.09789667,
   0.1185262,
   0.09557657,
   0.06953456,
   0.04921871,
   0.06282415};
   gre = new TGraphErrors(9,Graph_fx1157,Graph_fy1157,Graph_fex1157,Graph_fey1157);
   gre->SetName("Graph");
   gre->SetTitle("Graph");
   gre->SetFillColor(1);

   ci = TColor::GetColor("#00ff00");
   gre->SetMarkerColor(ci);
   gre->SetMarkerStyle(21);
   
   TH1F *Graph_Graph1157 = new TH1F("Graph_Graph1157","Graph",100,0,368.38);
   Graph_Graph1157->SetMinimum(-0.3057786);
   Graph_Graph1157->SetMaximum(0.4097851);
   Graph_Graph1157->SetDirectory(0);
   Graph_Graph1157->SetStats(0);

   ci = TColor::GetColor("#000099");
   Graph_Graph1157->SetLineColor(ci);
   Graph_Graph1157->GetXaxis()->SetLabelFont(42);
   Graph_Graph1157->GetXaxis()->SetLabelSize(0.035);
   Graph_Graph1157->GetXaxis()->SetTitleSize(0.035);
   Graph_Graph1157->GetXaxis()->SetTitleFont(42);
   Graph_Graph1157->GetYaxis()->SetLabelFont(42);
   Graph_Graph1157->GetYaxis()->SetLabelSize(0.035);
   Graph_Graph1157->GetYaxis()->SetTitleSize(0.035);
   Graph_Graph1157->GetYaxis()->SetTitleFont(42);
   Graph_Graph1157->GetZaxis()->SetLabelFont(42);
   Graph_Graph1157->GetZaxis()->SetLabelSize(0.035);
   Graph_Graph1157->GetZaxis()->SetTitleSize(0.035);
   Graph_Graph1157->GetZaxis()->SetTitleFont(42);
   gre->SetHistogram(Graph_Graph1157);
   
   
   TF1 *myfit1158 = new TF1("myfit","[0]*sin(x*3.1416/180.0)/(1 + [1]*cos(x*3.1416/180.0))",0,368.38);
   myfit1158->SetFillColor(19);
   myfit1158->SetFillStyle(0);
   myfit1158->SetLineColor(2);
   myfit1158->SetLineWidth(2);
   myfit1158->SetChisquare(6.955655);
   myfit1158->SetNDF(7);
   myfit1158->GetXaxis()->SetLabelFont(42);
   myfit1158->GetXaxis()->SetLabelSize(0.035);
   myfit1158->GetXaxis()->SetTitleSize(0.035);
   myfit1158->GetXaxis()->SetTitleFont(42);
   myfit1158->GetYaxis()->SetLabelFont(42);
   myfit1158->GetYaxis()->SetLabelSize(0.035);
   myfit1158->GetYaxis()->SetTitleSize(0.035);
   myfit1158->GetYaxis()->SetTitleFont(42);
   myfit1158->SetParameter(0,0.1721707);
   myfit1158->SetParError(0,0.0324291);
   myfit1158->SetParLimits(0,0,0);
   myfit1158->SetParameter(1,0.001708824);
   myfit1158->SetParError(1,0.4101565);
   myfit1158->SetParLimits(1,0,0);
   gre->GetListOfFunctions()->Add(myfit1158);
   
   ptstats = new TPaveStats(0.27,0.74,0.9,0.9,"brNDC");
   ptstats->SetName("stats");
   ptstats->SetBorderSize(1);
   ptstats->SetFillColor(0);
   ptstats->SetTextAlign(12);
   ptstats->SetTextFont(42);
   AText = ptstats->AddText("#chi^{2} / ndf = 6.956 / 7");
   AText = ptstats->AddText("p0       = 0.1722 #pm 0.03243 ");
   AText = ptstats->AddText("p1       = 0.001709 #pm 0.4102 ");
   ptstats->SetOptStat(0);
   ptstats->SetOptFit(111);
   ptstats->Draw();
   gre->GetListOfFunctions()->Add(ptstats);
   ptstats->SetParent(gre->GetListOfFunctions());
   multigraph->Add(gre,"");
   multigraph->Draw("AP");
   multigraph->GetXaxis()->SetTitle("#phi [deg.]");
   multigraph->GetXaxis()->SetLabelFont(42);
   multigraph->GetXaxis()->SetLabelSize(0.035);
   multigraph->GetXaxis()->SetTitleSize(0.035);
   multigraph->GetXaxis()->SetTitleFont(42);
   multigraph->GetYaxis()->SetLabelFont(42);
   multigraph->GetYaxis()->SetLabelSize(0.035);
   multigraph->GetYaxis()->SetTitleSize(0.035);
   multigraph->GetYaxis()->SetTitleFont(42);
     gPad->Modified();  
   multigraph->GetYaxis()->SetRangeUser(-0.35, 0.35);  



   pt = new TPaveText(0.2194177,0.9304839,0.7805823,0.995,"blNDC");
   pt->SetName("title");
   pt->SetBorderSize(0);
   pt->SetFillColor(0);
   pt->SetFillStyle(0);
   pt->SetTextFont(42);
   AText = pt->AddText("0.21<-t<0.36 [GeV^{2}/c^{2}]");
   pt->Draw();
   c17_2->Modified();
   c17->cd();
  
// ------------>Primitives in pad: c17_3
   TPad *c17_3 = new TPad("c17_3", "Incoherent channe_3",0.5008721,0,0.7388081,0.9);
   c17_3->Draw();
   c17_3->cd();
   c17_3->Range(7.121854,-0.4888889,349.9594,0.4);
   c17_3->SetFillColor(0);
   c17_3->SetBorderMode(0);
   c17_3->SetBorderSize(2);
   c17_3->SetGridx();
   c17_3->SetGridy();
   c17_3->SetLeftMargin(0);
   c17_3->SetRightMargin(0);
   c17_3->SetTopMargin(0);
   c17_3->SetFrameBorderMode(0);
   c17_3->SetFrameBorderMode(0);
   
   multigraph = new TMultiGraph();
   multigraph->SetName("");
   multigraph->SetTitle("0.36<-t<0.67 [GeV^{2}/c^{2}]");
   
   Double_t Graph_fx1160[9] = {
   22.70538,
   60.97743,
   94.23011,
   138.1892,
   183.0975,
   222.79,
   259.8951,
   302.6808,
   334.3759};
   Double_t Graph_fy1160[9] = {
   0.1761498,
   0.1945204,
   0.1034809,
   -0.09380414,
   0.2967375,
   -0.1094475,
   -0.1583282,
   -0.1819771,
   -0.09543453};
   Double_t Graph_fex1160[9] = {
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0};
   Double_t Graph_fey1160[9] = {
   0.06358895,
   0.0584754,
   0.07622601,
   0.115077,
   0.1268505,
   0.1278475,
   0.07389284,
   0.04701977,
   0.07415904};
   gre = new TGraphErrors(9,Graph_fx1160,Graph_fy1160,Graph_fex1160,Graph_fey1160);
   gre->SetName("Graph");
   gre->SetTitle("Graph");
   gre->SetFillColor(1);

   ci = TColor::GetColor("#00ff00");
   gre->SetMarkerColor(ci);
   gre->SetMarkerStyle(21);
   
   TH1F *Graph_Graph1160 = new TH1F("Graph_Graph1160","Graph",100,0,365.5429);
   Graph_Graph1160->SetMinimum(-0.3033832);
   Graph_Graph1160->SetMaximum(0.4896763);
   Graph_Graph1160->SetDirectory(0);
   Graph_Graph1160->SetStats(0);

   ci = TColor::GetColor("#000099");
   Graph_Graph1160->SetLineColor(ci);
   Graph_Graph1160->GetXaxis()->SetLabelFont(42);
   Graph_Graph1160->GetXaxis()->SetLabelSize(0.035);
   Graph_Graph1160->GetXaxis()->SetTitleSize(0.035);
   Graph_Graph1160->GetXaxis()->SetTitleFont(42);
   Graph_Graph1160->GetYaxis()->SetLabelFont(42);
   Graph_Graph1160->GetYaxis()->SetLabelSize(0.035);
   Graph_Graph1160->GetYaxis()->SetTitleSize(0.035);
   Graph_Graph1160->GetYaxis()->SetTitleFont(42);
   Graph_Graph1160->GetZaxis()->SetLabelFont(42);
   Graph_Graph1160->GetZaxis()->SetLabelSize(0.035);
   Graph_Graph1160->GetZaxis()->SetTitleSize(0.035);
   Graph_Graph1160->GetZaxis()->SetTitleFont(42);
   gre->SetHistogram(Graph_Graph1160);
   
   
   TF1 *myfit1161 = new TF1("myfit","[0]*sin(x*3.1416/180.0)/(1 + [1]*cos(x*3.1416/180.0))",0,365.5429);
   myfit1161->SetFillColor(19);
   myfit1161->SetFillStyle(0);
   myfit1161->SetLineColor(2);
   myfit1161->SetLineWidth(2);
   myfit1161->SetChisquare(8.926216);
   myfit1161->SetNDF(7);
   myfit1161->GetXaxis()->SetLabelFont(42);
   myfit1161->GetXaxis()->SetLabelSize(0.035);
   myfit1161->GetXaxis()->SetTitleSize(0.035);
   myfit1161->GetXaxis()->SetTitleFont(42);
   myfit1161->GetYaxis()->SetLabelFont(42);
   myfit1161->GetYaxis()->SetLabelSize(0.035);
   myfit1161->GetYaxis()->SetTitleSize(0.035);
   myfit1161->GetYaxis()->SetTitleFont(42);
   myfit1161->SetParameter(0,0.1371093);
   myfit1161->SetParError(0,0.03383483);
   myfit1161->SetParLimits(0,0,0);
   myfit1161->SetParameter(1,-0.6800102);
   myfit1161->SetParError(1,0.1832383);
   myfit1161->SetParLimits(1,0,0);
   gre->GetListOfFunctions()->Add(myfit1161);
   
   ptstats = new TPaveStats(0.27,0.74,0.9,0.9,"brNDC");
   ptstats->SetName("stats");
   ptstats->SetBorderSize(1);
   ptstats->SetFillColor(0);
   ptstats->SetTextAlign(12);
   ptstats->SetTextFont(42);
   AText = ptstats->AddText("#chi^{2} / ndf = 8.926 / 7");
   AText = ptstats->AddText("p0       = 0.1371 #pm 0.03383 ");
   AText = ptstats->AddText("p1       = -0.68 #pm 0.1832 ");
   ptstats->SetOptStat(0);
   ptstats->SetOptFit(111);
   ptstats->Draw();
   gre->GetListOfFunctions()->Add(ptstats);
   ptstats->SetParent(gre->GetListOfFunctions());
   multigraph->Add(gre,"");
   multigraph->Draw("AP");
   multigraph->GetXaxis()->SetTitle("#phi [deg.]");
   multigraph->GetXaxis()->SetLabelFont(42);
   multigraph->GetXaxis()->SetLabelSize(0.035);
   multigraph->GetXaxis()->SetTitleSize(0.035);
   multigraph->GetXaxis()->SetTitleFont(42);
   multigraph->GetYaxis()->SetLabelFont(42);
   multigraph->GetYaxis()->SetLabelSize(0.035);
   multigraph->GetYaxis()->SetTitleSize(0.035);
   multigraph->GetYaxis()->SetTitleFont(42);
     gPad->Modified();  
   multigraph->GetYaxis()->SetRangeUser(-0.35, 0.35);  




   pt = new TPaveText(0.2194177,0.9304839,0.7805823,0.995,"blNDC");
   pt->SetName("title");
   pt->SetBorderSize(0);
   pt->SetFillColor(0);
   pt->SetFillStyle(0);
   pt->SetTextFont(42);
   AText = pt->AddText("0.36<-t<0.67 [GeV^{2}/c^{2}]");
   pt->Draw();
   c17_3->Modified();
   c17->cd();
  
// ------------>Primitives in pad: c17_4
   TPad *c17_4 = new TPad("c17_4", "Incoherent channe_4",0.7388081,0,0.9767442,0.9);
   c17_4->Draw();
   c17_4->cd();
   c17_4->Range(7.951117,-0.4888889,350.3641,0.4);
   c17_4->SetFillColor(0);
   c17_4->SetBorderMode(0);
   c17_4->SetBorderSize(2);
   c17_4->SetGridx();
   c17_4->SetGridy();
   c17_4->SetLeftMargin(0);
   c17_4->SetRightMargin(0);
   c17_4->SetTopMargin(0);
   c17_4->SetFrameBorderMode(0);
   c17_4->SetFrameBorderMode(0);
   
   multigraph = new TMultiGraph();
   multigraph->SetName("");
   multigraph->SetTitle("0.67<-t<0.90 [GeV^{2}/c^{2}]");
   
   Double_t Graph_fx1163[9] = {
   23.51534,
   59.3759,
   90.55341,
   131.0631,
   176.9476,
   229.0094,
   260.8643,
   304.7922,
   334.7999};
   Double_t Graph_fy1163[9] = {
   0.0123906,
   0.195403,
   0.18963,
   -0.1677207,
   -0.8232306,
   -0.7760588,
   -0.2579708,
   -0.2579435,
   -0.08614626};
   Double_t Graph_fex1163[9] = {
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0};
   Double_t Graph_fey1163[9] = {
   0.09527872,
   0.1168373,
   0.1651642,
   0.3137499,
   0.3909388,
   0.4596559,
   0.1665094,
   0.09339681,
   0.09961735};
   gre = new TGraphErrors(9,Graph_fx1163,Graph_fy1163,Graph_fex1163,Graph_fey1163);
   gre->SetName("Graph");
   gre->SetTitle("Graph");
   gre->SetFillColor(1);

   ci = TColor::GetColor("#00ff00");
   gre->SetMarkerColor(ci);
   gre->SetMarkerStyle(21);
   
   TH1F *Graph_Graph1163 = new TH1F("Graph_Graph1163","Graph",100,0,365.9283);
   Graph_Graph1163->SetMinimum(-1.394766);
   Graph_Graph1163->SetMaximum(0.5138451);
   Graph_Graph1163->SetDirectory(0);
   Graph_Graph1163->SetStats(0);

   ci = TColor::GetColor("#000099");
   Graph_Graph1163->SetLineColor(ci);
   Graph_Graph1163->GetXaxis()->SetLabelFont(42);
   Graph_Graph1163->GetXaxis()->SetLabelSize(0.035);
   Graph_Graph1163->GetXaxis()->SetTitleSize(0.035);
   Graph_Graph1163->GetXaxis()->SetTitleFont(42);
   Graph_Graph1163->GetYaxis()->SetLabelFont(42);
   Graph_Graph1163->GetYaxis()->SetLabelSize(0.035);
   Graph_Graph1163->GetYaxis()->SetTitleSize(0.035);
   Graph_Graph1163->GetYaxis()->SetTitleFont(42);
   Graph_Graph1163->GetZaxis()->SetLabelFont(42);
   Graph_Graph1163->GetZaxis()->SetLabelSize(0.035);
   Graph_Graph1163->GetZaxis()->SetTitleSize(0.035);
   Graph_Graph1163->GetZaxis()->SetTitleFont(42);
   gre->SetHistogram(Graph_Graph1163);
   
   
   TF1 *myfit1164 = new TF1("myfit","[0]*sin(x*3.1416/180.0)/(1 + [1]*cos(x*3.1416/180.0))",0,365.9283);
   myfit1164->SetFillColor(19);
   myfit1164->SetFillStyle(0);
   myfit1164->SetLineColor(2);
   myfit1164->SetLineWidth(2);
   myfit1164->SetChisquare(8.810638);
   myfit1164->SetNDF(7);
   myfit1164->GetXaxis()->SetLabelFont(42);
   myfit1164->GetXaxis()->SetLabelSize(0.035);
   myfit1164->GetXaxis()->SetTitleSize(0.035);
   myfit1164->GetXaxis()->SetTitleFont(42);
   myfit1164->GetYaxis()->SetLabelFont(42);
   myfit1164->GetYaxis()->SetLabelSize(0.035);
   myfit1164->GetYaxis()->SetTitleSize(0.035);
   myfit1164->GetYaxis()->SetTitleFont(42);
   myfit1164->SetParameter(0,0.2352442);
   myfit1164->SetParError(0,0.0807391);
   myfit1164->SetParLimits(0,0,0);
   myfit1164->SetParameter(1,0.003684647);
   myfit1164->SetParError(1,0.5673774);
   myfit1164->SetParLimits(1,0,0);
   gre->GetListOfFunctions()->Add(myfit1164);
   
   ptstats = new TPaveStats(0.27,0.74,0.9,0.9,"brNDC");
   ptstats->SetName("stats");
   ptstats->SetBorderSize(1);
   ptstats->SetFillColor(0);
   ptstats->SetTextAlign(12);
   ptstats->SetTextFont(42);
   AText = ptstats->AddText("#chi^{2} / ndf = 8.811 / 7");
   AText = ptstats->AddText("p0       = 0.2352 #pm 0.08074 ");
   AText = ptstats->AddText("p1       = 0.003685 #pm 0.5674 ");
   ptstats->SetOptStat(0);
   ptstats->SetOptFit(111);
   ptstats->Draw();
   gre->GetListOfFunctions()->Add(ptstats);
   ptstats->SetParent(gre->GetListOfFunctions());
   multigraph->Add(gre,"");
   multigraph->Draw("AP");
   multigraph->GetXaxis()->SetTitle("#phi [deg.]");
   multigraph->GetXaxis()->SetLabelFont(42);
   multigraph->GetXaxis()->SetLabelSize(0.035);
   multigraph->GetXaxis()->SetTitleSize(0.035);
   multigraph->GetXaxis()->SetTitleFont(42);
   multigraph->GetYaxis()->SetLabelFont(42);
   multigraph->GetYaxis()->SetLabelSize(0.035);
   multigraph->GetYaxis()->SetTitleSize(0.035);
   multigraph->GetYaxis()->SetTitleFont(42);
     gPad->Modified();  
   multigraph->GetYaxis()->SetRangeUser(-0.35, 0.35);  




   pt = new TPaveText(0.2194177,0.9304839,0.7805823,0.995,"blNDC");
   pt->SetName("title");
   pt->SetBorderSize(0);
   pt->SetFillColor(0);
   pt->SetFillStyle(0);
   pt->SetTextFont(42);
   AText = pt->AddText("0.67<-t<0.90 [GeV^{2}/c^{2}]");
   pt->Draw();
   c17_4->Modified();
   c17->cd();
   c17->Modified();
   c17->cd();
   c17->SetSelected(c17);
}
示例#25
0
void acceptance_mass()
{
//=========Macro generated from canvas: c2/c2
//=========  (Mon Oct 26 11:11:00 2015) by ROOT version6.02/05
   TCanvas *c2 = new TCanvas("c2", "c2",20,42,700,500);
   gStyle->SetOptStat(0);
   c2->Range(-1.3125,-0.025,9.8125,0.225);
   c2->SetFillColor(0);
   c2->SetBorderMode(0);
   c2->SetBorderSize(2);
   c2->SetFrameBorderMode(0);
   c2->SetFrameBorderMode(0);
   
   TH2F *dummy42 = new TH2F("dummy42","dummy4",178,-0.2,8.7,100,0,0.2);
   dummy42->SetStats(0);

   Int_t ci;      // for color index setting
   TColor *color; // for color definition with alpha
   ci = TColor::GetColor("#000099");
   dummy42->SetLineColor(ci);
   dummy42->GetXaxis()->SetTitle("Mass [GeV]");
   dummy42->GetXaxis()->SetLabelFont(42);
   dummy42->GetXaxis()->SetLabelSize(0.035);
   dummy42->GetXaxis()->SetTitleSize(0.035);
   dummy42->GetXaxis()->SetTitleFont(42);
   dummy42->GetYaxis()->SetTitle("#epsilon_{rec} = N_{rec}/N_{tot}");
   dummy42->GetYaxis()->SetLabelFont(42);
   dummy42->GetYaxis()->SetLabelSize(0.035);
   dummy42->GetYaxis()->SetTitleSize(0.035);
   dummy42->GetYaxis()->SetTitleFont(42);
   dummy42->GetZaxis()->SetLabelFont(42);
   dummy42->GetZaxis()->SetLabelSize(0.035);
   dummy42->GetZaxis()->SetTitleSize(0.035);
   dummy42->GetZaxis()->SetTitleFont(42);
   dummy42->Draw("");
   
   Double_t Graph0_fx1006[5] = {
   0.25,
   0.275,
   0.3,
   2,
   8.5};
   Double_t Graph0_fy1006[5] = {
   0.0865404,
   0.08208333,
   0.0749858,
   0.05958333,
   0.1375897};
   Double_t Graph0_fex1006[5] = {
   0,
   0,
   0,
   0,
   0};
   Double_t Graph0_fey1006[5] = {
   0.0009990599,
   0.0009753636,
   0.0009926071,
   0.0008541653,
   0.001244048};
   TGraphErrors *gre = new TGraphErrors(5,Graph0_fx1006,Graph0_fy1006,Graph0_fex1006,Graph0_fey1006);
   gre->SetName("Graph0");
   gre->SetTitle("Graph");
   gre->SetFillColor(1);
   gre->SetMarkerStyle(7);
   gre->SetMarkerSize(5);
   
   TH1F *Graph_Graph1006 = new TH1F("Graph_Graph1006","Graph",100,0,9.325);
   Graph_Graph1006->SetMinimum(0.05071871);
   Graph_Graph1006->SetMaximum(0.1468442);
   Graph_Graph1006->SetDirectory(0);
   Graph_Graph1006->SetStats(0);

   ci = TColor::GetColor("#000099");
   Graph_Graph1006->SetLineColor(ci);
   Graph_Graph1006->GetXaxis()->SetLabelFont(42);
   Graph_Graph1006->GetXaxis()->SetLabelSize(0.035);
   Graph_Graph1006->GetXaxis()->SetTitleSize(0.035);
   Graph_Graph1006->GetXaxis()->SetTitleFont(42);
   Graph_Graph1006->GetYaxis()->SetLabelFont(42);
   Graph_Graph1006->GetYaxis()->SetLabelSize(0.035);
   Graph_Graph1006->GetYaxis()->SetTitleSize(0.035);
   Graph_Graph1006->GetYaxis()->SetTitleFont(42);
   Graph_Graph1006->GetZaxis()->SetLabelFont(42);
   Graph_Graph1006->GetZaxis()->SetLabelSize(0.035);
   Graph_Graph1006->GetZaxis()->SetTitleSize(0.035);
   Graph_Graph1006->GetZaxis()->SetTitleFont(42);
   gre->SetHistogram(Graph_Graph1006);
   
   gre->Draw(" pl");
   
   Double_t Graph1_fx1007[4] = {
   0.25,
   0.275,
   2,
   8.5};
   Double_t Graph1_fy1007[4] = {
   0.08294682,
   0.07862374,
   0.06207908,
   0.137474};
   Double_t Graph1_fex1007[4] = {
   0,
   0,
   0,
   0};
   Double_t Graph1_fey1007[4] = {
   0.0009899688,
   0.000956385,
   0.0008617826,
   0.001242555};
   gre = new TGraphErrors(4,Graph1_fx1007,Graph1_fy1007,Graph1_fex1007,Graph1_fey1007);
   gre->SetName("Graph1");
   gre->SetTitle("Graph");
   gre->SetFillColor(1);
   gre->SetLineColor(2);
   gre->SetMarkerColor(2);
   gre->SetMarkerStyle(7);
   gre->SetMarkerSize(5);
   
   TH1F *Graph_Graph1007 = new TH1F("Graph_Graph1007","Graph",100,0,9.325);
   Graph_Graph1007->SetMinimum(0.05346738);
   Graph_Graph1007->SetMaximum(0.1464664);
   Graph_Graph1007->SetDirectory(0);
   Graph_Graph1007->SetStats(0);

   ci = TColor::GetColor("#000099");
   Graph_Graph1007->SetLineColor(ci);
   Graph_Graph1007->GetXaxis()->SetLabelFont(42);
   Graph_Graph1007->GetXaxis()->SetLabelSize(0.035);
   Graph_Graph1007->GetXaxis()->SetTitleSize(0.035);
   Graph_Graph1007->GetXaxis()->SetTitleFont(42);
   Graph_Graph1007->GetYaxis()->SetLabelFont(42);
   Graph_Graph1007->GetYaxis()->SetLabelSize(0.035);
   Graph_Graph1007->GetYaxis()->SetTitleSize(0.035);
   Graph_Graph1007->GetYaxis()->SetTitleFont(42);
   Graph_Graph1007->GetZaxis()->SetLabelFont(42);
   Graph_Graph1007->GetZaxis()->SetLabelSize(0.035);
   Graph_Graph1007->GetZaxis()->SetTitleSize(0.035);
   Graph_Graph1007->GetZaxis()->SetTitleFont(42);
   gre->SetHistogram(Graph_Graph1007);
   
   gre->Draw(" pl");
   
   Double_t Graph2_fx1008[5] = {
   0.25,
   0.275,
   0.3,
   2,
   8.5};
   Double_t Graph2_fy1008[5] = {
   0.06949495,
   0.06748737,
   0.0642268,
   0.06051768,
   0.1364046};
   Double_t Graph2_fex1008[5] = {
   0,
   0,
   0,
   0,
   0};
   Double_t Graph2_fey1008[5] = {
   0.0009035941,
   0.000891407,
   0.0008800606,
   0.000847272,
   0.00123208};
   gre = new TGraphErrors(5,Graph2_fx1008,Graph2_fy1008,Graph2_fex1008,Graph2_fey1008);
   gre->SetName("Graph2");
   gre->SetTitle("Graph");
   gre->SetFillColor(1);
   gre->SetLineColor(3);
   gre->SetMarkerColor(3);
   gre->SetMarkerStyle(7);
   gre->SetMarkerSize(5);
   
   TH1F *Graph_Graph1008 = new TH1F("Graph_Graph1008","Graph",100,0,9.325);
   Graph_Graph1008->SetMinimum(0.05187377);
   Graph_Graph1008->SetMaximum(0.1454334);
   Graph_Graph1008->SetDirectory(0);
   Graph_Graph1008->SetStats(0);

   ci = TColor::GetColor("#000099");
   Graph_Graph1008->SetLineColor(ci);
   Graph_Graph1008->GetXaxis()->SetLabelFont(42);
   Graph_Graph1008->GetXaxis()->SetLabelSize(0.035);
   Graph_Graph1008->GetXaxis()->SetTitleSize(0.035);
   Graph_Graph1008->GetXaxis()->SetTitleFont(42);
   Graph_Graph1008->GetYaxis()->SetLabelFont(42);
   Graph_Graph1008->GetYaxis()->SetLabelSize(0.035);
   Graph_Graph1008->GetYaxis()->SetTitleSize(0.035);
   Graph_Graph1008->GetYaxis()->SetTitleFont(42);
   Graph_Graph1008->GetZaxis()->SetLabelFont(42);
   Graph_Graph1008->GetZaxis()->SetLabelSize(0.035);
   Graph_Graph1008->GetZaxis()->SetTitleSize(0.035);
   Graph_Graph1008->GetZaxis()->SetTitleFont(42);
   gre->SetHistogram(Graph_Graph1008);
   
   gre->Draw(" pl");
   
   Double_t Graph3_fx1009[5] = {
   0.25,
   0.275,
   0.3,
   2,
   8.5};
   Double_t Graph3_fy1009[5] = {
   0.04645202,
   0.04597222,
   0.04502717,
   0.05941919,
   0.1359975};
   Double_t Graph3_fex1009[5] = {
   0,
   0,
   0,
   0,
   0};
   Double_t Graph3_fey1009[5] = {
   0.000747844,
   0.0007441589,
   0.0007643529,
   0.0008400378,
   0.001218037};
   gre = new TGraphErrors(5,Graph3_fx1009,Graph3_fy1009,Graph3_fex1009,Graph3_fey1009);
   gre->SetName("Graph3");
   gre->SetTitle("Graph");
   gre->SetFillColor(1);
   gre->SetLineColor(4);
   gre->SetMarkerColor(4);
   gre->SetMarkerStyle(7);
   gre->SetMarkerSize(5);
   
   TH1F *Graph_Graph1009 = new TH1F("Graph_Graph1009","Graph",100,0,9.325);
   Graph_Graph1009->SetMinimum(0.03496755);
   Graph_Graph1009->SetMaximum(0.1465108);
   Graph_Graph1009->SetDirectory(0);
   Graph_Graph1009->SetStats(0);

   ci = TColor::GetColor("#000099");
   Graph_Graph1009->SetLineColor(ci);
   Graph_Graph1009->GetXaxis()->SetLabelFont(42);
   Graph_Graph1009->GetXaxis()->SetLabelSize(0.035);
   Graph_Graph1009->GetXaxis()->SetTitleSize(0.035);
   Graph_Graph1009->GetXaxis()->SetTitleFont(42);
   Graph_Graph1009->GetYaxis()->SetLabelFont(42);
   Graph_Graph1009->GetYaxis()->SetLabelSize(0.035);
   Graph_Graph1009->GetYaxis()->SetTitleSize(0.035);
   Graph_Graph1009->GetYaxis()->SetTitleFont(42);
   Graph_Graph1009->GetZaxis()->SetLabelFont(42);
   Graph_Graph1009->GetZaxis()->SetLabelSize(0.035);
   Graph_Graph1009->GetZaxis()->SetTitleSize(0.035);
   Graph_Graph1009->GetZaxis()->SetTitleFont(42);
   gre->SetHistogram(Graph_Graph1009);
   
   gre->Draw(" pl");
   
   Double_t Graph4_fx1010[5] = {
   0.25,
   0.275,
   0.3,
   2,
   8.5};
   Double_t Graph4_fy1010[5] = {
   0.0157633,
   0.01659091,
   0.01693182,
   0.05516582,
   0.1364646};
   Double_t Graph4_fex1010[5] = {
   0,
   0,
   0,
   0,
   0};
   Double_t Graph4_fey1010[5] = {
   0.0004493916,
   0.0004538785,
   0.0004584384,
   0.0008153701,
   0.001219797};
   gre = new TGraphErrors(5,Graph4_fx1010,Graph4_fy1010,Graph4_fex1010,Graph4_fey1010);
   gre->SetName("Graph4");
   gre->SetTitle("Graph");
   gre->SetFillColor(1);
   gre->SetLineColor(6);
   gre->SetMarkerColor(6);
   gre->SetMarkerStyle(7);
   gre->SetMarkerSize(5);
   
   TH1F *Graph_Graph1010 = new TH1F("Graph_Graph1010","Graph",100,0,9.325);
   Graph_Graph1010->SetMinimum(0.003076858);
   Graph_Graph1010->SetMaximum(0.1499215);
   Graph_Graph1010->SetDirectory(0);
   Graph_Graph1010->SetStats(0);

   ci = TColor::GetColor("#000099");
   Graph_Graph1010->SetLineColor(ci);
   Graph_Graph1010->GetXaxis()->SetLabelFont(42);
   Graph_Graph1010->GetXaxis()->SetLabelSize(0.035);
   Graph_Graph1010->GetXaxis()->SetTitleSize(0.035);
   Graph_Graph1010->GetXaxis()->SetTitleFont(42);
   Graph_Graph1010->GetYaxis()->SetLabelFont(42);
   Graph_Graph1010->GetYaxis()->SetLabelSize(0.035);
   Graph_Graph1010->GetYaxis()->SetTitleSize(0.035);
   Graph_Graph1010->GetYaxis()->SetTitleFont(42);
   Graph_Graph1010->GetZaxis()->SetLabelFont(42);
   Graph_Graph1010->GetZaxis()->SetLabelSize(0.035);
   Graph_Graph1010->GetZaxis()->SetTitleSize(0.035);
   Graph_Graph1010->GetZaxis()->SetTitleFont(42);
   gre->SetHistogram(Graph_Graph1010);
   
   gre->Draw(" pl");
   
   Double_t Graph5_fx1011[4] = {
   0.25,
   0.275,
   2,
   8.5};
   Double_t Graph5_fy1011[4] = {
   0.005542929,
   0.005892857,
   0.04303571,
   0.132096};
   Double_t Graph5_fex1011[4] = {
   0,
   0,
   0,
   0};
   Double_t Graph5_fey1011[4] = {
   0.0002638154,
   0.0002733515,
   0.0007247769,
   0.001203145};
   gre = new TGraphErrors(4,Graph5_fx1011,Graph5_fy1011,Graph5_fex1011,Graph5_fey1011);
   gre->SetName("Graph5");
   gre->SetTitle("Graph");
   gre->SetFillColor(1);
   gre->SetLineColor(7);
   gre->SetMarkerColor(7);
   gre->SetMarkerStyle(7);
   gre->SetMarkerSize(5);
   
   TH1F *Graph_Graph1011 = new TH1F("Graph_Graph1011","Graph",100,0,9.325);
   Graph_Graph1011->SetMinimum(0);
   Graph_Graph1011->SetMaximum(0.1461011);
   Graph_Graph1011->SetDirectory(0);
   Graph_Graph1011->SetStats(0);

   ci = TColor::GetColor("#000099");
   Graph_Graph1011->SetLineColor(ci);
   Graph_Graph1011->GetXaxis()->SetLabelFont(42);
   Graph_Graph1011->GetXaxis()->SetLabelSize(0.035);
   Graph_Graph1011->GetXaxis()->SetTitleSize(0.035);
   Graph_Graph1011->GetXaxis()->SetTitleFont(42);
   Graph_Graph1011->GetYaxis()->SetLabelFont(42);
   Graph_Graph1011->GetYaxis()->SetLabelSize(0.035);
   Graph_Graph1011->GetYaxis()->SetTitleSize(0.035);
   Graph_Graph1011->GetYaxis()->SetTitleFont(42);
   Graph_Graph1011->GetZaxis()->SetLabelFont(42);
   Graph_Graph1011->GetZaxis()->SetLabelSize(0.035);
   Graph_Graph1011->GetZaxis()->SetTitleSize(0.035);
   Graph_Graph1011->GetZaxis()->SetTitleFont(42);
   gre->SetHistogram(Graph_Graph1011);
   
   gre->Draw(" pl");
   
   Double_t Graph6_fx1012[5] = {
   0.25,
   0.275,
   0.3,
   2,
   8.5};
   Double_t Graph6_fy1012[5] = {
   0.00155303,
   0.001868687,
   0.002222281,
   0.02356061,
   0.1211862};
   Double_t Graph6_fex1012[5] = {
   0,
   0,
   0,
   0,
   0};
   Double_t Graph6_fey1012[5] = {
   0.0001399232,
   0.0001534615,
   0.0001707546,
   0.000538956,
   0.001165513};
   gre = new TGraphErrors(5,Graph6_fx1012,Graph6_fy1012,Graph6_fex1012,Graph6_fey1012);
   gre->SetName("Graph6");
   gre->SetTitle("Graph");
   gre->SetFillColor(1);
   gre->SetLineColor(8);
   gre->SetMarkerColor(8);
   gre->SetMarkerStyle(7);
   gre->SetMarkerSize(5);
   
   TH1F *Graph_Graph1012 = new TH1F("Graph_Graph1012","Graph",100,0,9.325);
   Graph_Graph1012->SetMinimum(0);
   Graph_Graph1012->SetMaximum(0.1344456);
   Graph_Graph1012->SetDirectory(0);
   Graph_Graph1012->SetStats(0);

   ci = TColor::GetColor("#000099");
   Graph_Graph1012->SetLineColor(ci);
   Graph_Graph1012->GetXaxis()->SetLabelFont(42);
   Graph_Graph1012->GetXaxis()->SetLabelSize(0.035);
   Graph_Graph1012->GetXaxis()->SetTitleSize(0.035);
   Graph_Graph1012->GetXaxis()->SetTitleFont(42);
   Graph_Graph1012->GetYaxis()->SetLabelFont(42);
   Graph_Graph1012->GetYaxis()->SetLabelSize(0.035);
   Graph_Graph1012->GetYaxis()->SetTitleSize(0.035);
   Graph_Graph1012->GetYaxis()->SetTitleFont(42);
   Graph_Graph1012->GetZaxis()->SetLabelFont(42);
   Graph_Graph1012->GetZaxis()->SetLabelSize(0.035);
   Graph_Graph1012->GetZaxis()->SetTitleSize(0.035);
   Graph_Graph1012->GetZaxis()->SetTitleFont(42);
   gre->SetHistogram(Graph_Graph1012);
   
   gre->Draw(" pl");
   
   Double_t Graph7_fx1013[4] = {
   0.25,
   0.275,
   2,
   8.5};
   Double_t Graph7_fy1013[4] = {
   0.0009974747,
   0.0009974747,
   0.01513298,
   0.1061111};
   Double_t Graph7_fex1013[4] = {
   0,
   0,
   0,
   0};
   Double_t Graph7_fey1013[4] = {
   0.0001121687,
   0.0001121687,
   0.0004451866,
   0.001147773};
   gre = new TGraphErrors(4,Graph7_fx1013,Graph7_fy1013,Graph7_fex1013,Graph7_fey1013);
   gre->SetName("Graph7");
   gre->SetTitle("Graph");
   gre->SetFillColor(1);
   gre->SetLineColor(9);
   gre->SetMarkerColor(9);
   gre->SetMarkerStyle(7);
   gre->SetMarkerSize(5);
   
   TH1F *Graph_Graph1013 = new TH1F("Graph_Graph1013","Graph",100,0,9.325);
   Graph_Graph1013->SetMinimum(0);
   Graph_Graph1013->SetMaximum(0.1178962);
   Graph_Graph1013->SetDirectory(0);
   Graph_Graph1013->SetStats(0);

   ci = TColor::GetColor("#000099");
   Graph_Graph1013->SetLineColor(ci);
   Graph_Graph1013->GetXaxis()->SetLabelFont(42);
   Graph_Graph1013->GetXaxis()->SetLabelSize(0.035);
   Graph_Graph1013->GetXaxis()->SetTitleSize(0.035);
   Graph_Graph1013->GetXaxis()->SetTitleFont(42);
   Graph_Graph1013->GetYaxis()->SetLabelFont(42);
   Graph_Graph1013->GetYaxis()->SetLabelSize(0.035);
   Graph_Graph1013->GetYaxis()->SetTitleSize(0.035);
   Graph_Graph1013->GetYaxis()->SetTitleFont(42);
   Graph_Graph1013->GetZaxis()->SetLabelFont(42);
   Graph_Graph1013->GetZaxis()->SetLabelSize(0.035);
   Graph_Graph1013->GetZaxis()->SetTitleSize(0.035);
   Graph_Graph1013->GetZaxis()->SetTitleFont(42);
   gre->SetHistogram(Graph_Graph1013);
   
   gre->Draw(" pl");
   
   Double_t Graph8_fx1014[5] = {
   0.25,
   0.275,
   0.3,
   2,
   8.5};
   Double_t Graph8_fy1014[5] = {
   0.0002651515,
   0.0004419192,
   0.0003815789,
   0.006989796,
   0.07766414};
   Double_t Graph8_fex1014[5] = {
   0,
   0,
   0,
   0,
   0};
   Double_t Graph8_fey1014[5] = {
   5.785313e-05,
   7.468147e-05,
   7.084391e-05,
   0.0002975439,
   0.0009510256};
   gre = new TGraphErrors(5,Graph8_fx1014,Graph8_fy1014,Graph8_fex1014,Graph8_fey1014);
   gre->SetName("Graph8");
   gre->SetTitle("Graph");
   gre->SetFillColor(1);
   gre->SetLineColor(40);
   gre->SetMarkerColor(40);
   gre->SetMarkerStyle(7);
   gre->SetMarkerSize(5);
   
   TH1F *Graph_Graph1014 = new TH1F("Graph_Graph1014","Graph",100,0,9.325);
   Graph_Graph1014->SetMinimum(0);
   Graph_Graph1014->SetMaximum(0.08645595);
   Graph_Graph1014->SetDirectory(0);
   Graph_Graph1014->SetStats(0);

   ci = TColor::GetColor("#000099");
   Graph_Graph1014->SetLineColor(ci);
   Graph_Graph1014->GetXaxis()->SetLabelFont(42);
   Graph_Graph1014->GetXaxis()->SetLabelSize(0.035);
   Graph_Graph1014->GetXaxis()->SetTitleSize(0.035);
   Graph_Graph1014->GetXaxis()->SetTitleFont(42);
   Graph_Graph1014->GetYaxis()->SetLabelFont(42);
   Graph_Graph1014->GetYaxis()->SetLabelSize(0.035);
   Graph_Graph1014->GetYaxis()->SetTitleSize(0.035);
   Graph_Graph1014->GetYaxis()->SetTitleFont(42);
   Graph_Graph1014->GetZaxis()->SetLabelFont(42);
   Graph_Graph1014->GetZaxis()->SetLabelSize(0.035);
   Graph_Graph1014->GetZaxis()->SetTitleSize(0.035);
   Graph_Graph1014->GetZaxis()->SetTitleFont(42);
   gre->SetHistogram(Graph_Graph1014);
   
   gre->Draw(" pl");
   
   Double_t Graph9_fx1015[2] = {
   0.25,
   2};
   Double_t Graph9_fy1015[2] = {
   6.47017e-05,
   0.002367956};
   Double_t Graph9_fex1015[2] = {
   0,
   0};
   Double_t Graph9_fey1015[2] = {
   1.3794e-05,
   6.810597e-05};
   gre = new TGraphErrors(2,Graph9_fx1015,Graph9_fy1015,Graph9_fex1015,Graph9_fey1015);
   gre->SetName("Graph9");
   gre->SetTitle("Graph");
   gre->SetFillColor(1);
   gre->SetMarkerStyle(7);
   gre->SetMarkerSize(5);
   
   TH1F *Graph_Graph1015 = new TH1F("Graph_Graph1015","Graph",100,0.075,2.175);
   Graph_Graph1015->SetMinimum(0);
   Graph_Graph1015->SetMaximum(0.002674577);
   Graph_Graph1015->SetDirectory(0);
   Graph_Graph1015->SetStats(0);

   ci = TColor::GetColor("#000099");
   Graph_Graph1015->SetLineColor(ci);
   Graph_Graph1015->GetXaxis()->SetLabelFont(42);
   Graph_Graph1015->GetXaxis()->SetLabelSize(0.035);
   Graph_Graph1015->GetXaxis()->SetTitleSize(0.035);
   Graph_Graph1015->GetXaxis()->SetTitleFont(42);
   Graph_Graph1015->GetYaxis()->SetLabelFont(42);
   Graph_Graph1015->GetYaxis()->SetLabelSize(0.035);
   Graph_Graph1015->GetYaxis()->SetTitleSize(0.035);
   Graph_Graph1015->GetYaxis()->SetTitleFont(42);
   Graph_Graph1015->GetZaxis()->SetLabelFont(42);
   Graph_Graph1015->GetZaxis()->SetLabelSize(0.035);
   Graph_Graph1015->GetZaxis()->SetTitleSize(0.035);
   Graph_Graph1015->GetZaxis()->SetTitleFont(42);
   gre->SetHistogram(Graph_Graph1015);
   
   gre->Draw(" pl");
   
   Double_t Graph10_fx1016[2] = {
   0.25,
   2};
   Double_t Graph10_fy1016[2] = {
   2.397917e-05,
   0.0007142042};
   Double_t Graph10_fex1016[2] = {
   0,
   0};
   Double_t Graph10_fey1016[2] = {
   9.063167e-06,
   4.035479e-05};
   gre = new TGraphErrors(2,Graph10_fx1016,Graph10_fy1016,Graph10_fex1016,Graph10_fey1016);
   gre->SetName("Graph10");
   gre->SetTitle("Graph");
   gre->SetFillColor(1);
   gre->SetMarkerStyle(7);
   gre->SetMarkerSize(5);
   
   TH1F *Graph_Graph1016 = new TH1F("Graph_Graph1016","Graph",100,0.075,2.175);
   Graph_Graph1016->SetMinimum(0);
   Graph_Graph1016->SetMaximum(0.0008285233);
   Graph_Graph1016->SetDirectory(0);
   Graph_Graph1016->SetStats(0);

   ci = TColor::GetColor("#000099");
   Graph_Graph1016->SetLineColor(ci);
   Graph_Graph1016->GetXaxis()->SetLabelFont(42);
   Graph_Graph1016->GetXaxis()->SetLabelSize(0.035);
   Graph_Graph1016->GetXaxis()->SetTitleSize(0.035);
   Graph_Graph1016->GetXaxis()->SetTitleFont(42);
   Graph_Graph1016->GetYaxis()->SetLabelFont(42);
   Graph_Graph1016->GetYaxis()->SetLabelSize(0.035);
   Graph_Graph1016->GetYaxis()->SetTitleSize(0.035);
   Graph_Graph1016->GetYaxis()->SetTitleFont(42);
   Graph_Graph1016->GetZaxis()->SetLabelFont(42);
   Graph_Graph1016->GetZaxis()->SetLabelSize(0.035);
   Graph_Graph1016->GetZaxis()->SetTitleSize(0.035);
   Graph_Graph1016->GetZaxis()->SetTitleFont(42);
   gre->SetHistogram(Graph_Graph1016);
   
   gre->Draw(" pl");
   
   TLegend *leg = new TLegend(0.158046,0.5369979,0.5071839,0.8372093,NULL,"brNDC");
   leg->SetBorderSize(0);
   leg->SetTextSize(0.045);
   leg->SetLineColor(1);
   leg->SetLineStyle(1);
   leg->SetLineWidth(1);
   leg->SetFillColor(0);
   leg->SetFillStyle(1001);
   TLegendEntry *entry=leg->AddEntry("Graph0","c#Tau=0.00 mm","PL");
   entry->SetLineColor(1);
   entry->SetLineStyle(1);
   entry->SetLineWidth(1);
   entry->SetMarkerColor(1);
   entry->SetMarkerStyle(7);
   entry->SetMarkerSize(5);
   entry->SetTextFont(42);
   entry=leg->AddEntry("Graph1","c#Tau=0.05 mm","PL");
   entry->SetLineColor(2);
   entry->SetLineStyle(1);
   entry->SetLineWidth(1);
   entry->SetMarkerColor(2);
   entry->SetMarkerStyle(7);
   entry->SetMarkerSize(5);
   entry->SetTextFont(42);
   entry=leg->AddEntry("Graph2","c#Tau=0.10 mm","PL");
   entry->SetLineColor(3);
   entry->SetLineStyle(1);
   entry->SetLineWidth(1);
   entry->SetMarkerColor(3);
   entry->SetMarkerStyle(7);
   entry->SetMarkerSize(5);
   entry->SetTextFont(42);
   entry=leg->AddEntry("Graph3","c#Tau=0.20 mm","PL");
   entry->SetLineColor(4);
   entry->SetLineStyle(1);
   entry->SetLineWidth(1);
   entry->SetMarkerColor(4);
   entry->SetMarkerStyle(7);
   entry->SetMarkerSize(5);
   entry->SetTextFont(42);
   entry=leg->AddEntry("Graph4","c#Tau=0.50 mm","PL");
   entry->SetLineColor(6);
   entry->SetLineStyle(1);
   entry->SetLineWidth(1);
   entry->SetMarkerColor(6);
   entry->SetMarkerStyle(7);
   entry->SetMarkerSize(5);
   entry->SetTextFont(42);
   entry=leg->AddEntry("Graph5","c#Tau=1.00 mm","PL");
   entry->SetLineColor(7);
   entry->SetLineStyle(1);
   entry->SetLineWidth(1);
   entry->SetMarkerColor(7);
   entry->SetMarkerStyle(7);
   entry->SetMarkerSize(5);
   entry->SetTextFont(42);
   entry=leg->AddEntry("Graph6","c#Tau=2.00 mm","PL");
   entry->SetLineColor(8);
   entry->SetLineStyle(1);
   entry->SetLineWidth(1);
   entry->SetMarkerColor(8);
   entry->SetMarkerStyle(7);
   entry->SetMarkerSize(5);
   entry->SetTextFont(42);
   entry=leg->AddEntry("Graph7","c#Tau=3.00 mm","PL");
   entry->SetLineColor(9);
   entry->SetLineStyle(1);
   entry->SetLineWidth(1);
   entry->SetMarkerColor(9);
   entry->SetMarkerStyle(7);
   entry->SetMarkerSize(5);
   entry->SetTextFont(42);
   entry=leg->AddEntry("Graph8","c#Tau=5.00 mm","PL");
   entry->SetLineColor(40);
   entry->SetLineStyle(1);
   entry->SetLineWidth(1);
   entry->SetMarkerColor(40);
   entry->SetMarkerStyle(7);
   entry->SetMarkerSize(5);
   entry->SetTextFont(42);
   leg->Draw();
   
   TPaveText *pt = new TPaveText(0.4195977,0.9339831,0.5804023,0.995,"blNDC");
   pt->SetName("title");
   pt->SetBorderSize(0);
   pt->SetFillColor(0);
   pt->SetFillStyle(0);
   pt->SetTextFont(42);
   TText *AText = pt->AddText("dummy4");
   pt->Draw();
   c2->Modified();
   c2->cd();
   c2->SetSelected(c2);
}
void paraPull_alpha_MUON_EFF_SYS_2TeV_2Lep_plots_All()
{
//=========Macro generated from canvas: c1/alpha_MUON_EFF_SYS
//=========  (Sun Nov 22 20:20:45 2015) by ROOT version6.02/12
   TCanvas *c1 = new TCanvas("c1", "alpha_MUON_EFF_SYS",0,22,1000,600);
   gStyle->SetOptStat(0);
   c1->Range(-4.125,-0.9746844,37.125,1.046069);
   c1->SetFillColor(0);
   c1->SetBorderMode(0);
   c1->SetBorderSize(2);
   c1->SetGridx();
   c1->SetGridy();
   c1->SetFrameBorderMode(0);
   c1->SetFrameBorderMode(0);
   
   TH1F *NuisanceParameterFreed29 = new TH1F("NuisanceParameterFreed29","alpha_MUON_EFF_SYS",33,0,33);
   NuisanceParameterFreed29->SetMinimum(-0.772609);
   NuisanceParameterFreed29->SetMaximum(0.8439935);
   NuisanceParameterFreed29->SetStats(0);

   Int_t ci;      // for color index setting
   TColor *color; // for color definition with alpha
   ci = TColor::GetColor("#000099");
   NuisanceParameterFreed29->SetLineColor(ci);
   NuisanceParameterFreed29->GetXaxis()->SetBinLabel(1,"XS_ttbar");
   NuisanceParameterFreed29->GetXaxis()->SetBinLabel(2,"EG_SCALE_ALL");
   NuisanceParameterFreed29->GetXaxis()->SetBinLabel(3,"FT_EFF_Eigen_C_0");
   NuisanceParameterFreed29->GetXaxis()->SetBinLabel(4,"Luminosity");
   NuisanceParameterFreed29->GetXaxis()->SetBinLabel(5,"XS_st");
   NuisanceParameterFreed29->GetXaxis()->SetBinLabel(6,"FT_EFF_Eigen_B_1");
   NuisanceParameterFreed29->GetXaxis()->SetBinLabel(7,"XS_Zc");
   NuisanceParameterFreed29->GetXaxis()->SetBinLabel(8,"MUONS_ID");
   NuisanceParameterFreed29->GetXaxis()->SetBinLabel(9,"FT_EFF_Eigen_C_1");
   NuisanceParameterFreed29->GetXaxis()->SetBinLabel(10,"FT_EFF_Eigen_C_3");
   NuisanceParameterFreed29->GetXaxis()->SetBinLabel(11,"MUON_EFF_TrigSystUncertainty");
   NuisanceParameterFreed29->GetXaxis()->SetBinLabel(12,"XS_Zl");
   NuisanceParameterFreed29->GetXaxis()->SetBinLabel(13,"EL_EFF_ID_TotalCorrUncertainty");
   NuisanceParameterFreed29->GetXaxis()->SetBinLabel(14,"FT_EFF_Eigen_B_0");
   NuisanceParameterFreed29->GetXaxis()->SetBinLabel(15,"FT_EFF_Eigen_B_2");
   NuisanceParameterFreed29->GetXaxis()->SetBinLabel(16,"EL_EFF_Iso_TotalCorrUncertainty");
   NuisanceParameterFreed29->GetXaxis()->SetBinLabel(17,"EL_EFF_Reco_TotalCorrUncertainty");
   NuisanceParameterFreed29->GetXaxis()->SetBinLabel(18,"MUONS_SCALE");
   NuisanceParameterFreed29->GetXaxis()->SetBinLabel(19,"MUON_ISO_STAT");
   NuisanceParameterFreed29->GetXaxis()->SetBinLabel(20,"FT_EFF_extrapolation");
   NuisanceParameterFreed29->GetXaxis()->SetBinLabel(21,"MUON_EFF_STAT");
   NuisanceParameterFreed29->GetXaxis()->SetBinLabel(22,"MUON_EFF_TrigStatUncertainty");
   NuisanceParameterFreed29->GetXaxis()->SetBinLabel(23,"FT_EFF_Eigen_Light_2");
   NuisanceParameterFreed29->GetXaxis()->SetBinLabel(24,"FT_EFF_Eigen_Light_1");
   NuisanceParameterFreed29->GetXaxis()->SetBinLabel(25,"EG_RESOLUTION_ALL");
   NuisanceParameterFreed29->GetXaxis()->SetBinLabel(26,"XS_diboson");
   NuisanceParameterFreed29->GetXaxis()->SetBinLabel(27,"FT_EFF_Eigen_Light_4");
   NuisanceParameterFreed29->GetXaxis()->SetBinLabel(28,"FT_EFF_Eigen_Light_3");
   NuisanceParameterFreed29->GetXaxis()->SetBinLabel(29,"MUON_ISO_SYS");
   NuisanceParameterFreed29->GetXaxis()->SetBinLabel(30,"MUONS_MS");
   NuisanceParameterFreed29->GetXaxis()->SetBinLabel(31,"XS_Zb");
   NuisanceParameterFreed29->GetXaxis()->SetBinLabel(32,"FT_EFF_Eigen_C_2");
   NuisanceParameterFreed29->GetXaxis()->SetBinLabel(33,"FT_EFF_Eigen_Light_0");
   NuisanceParameterFreed29->GetXaxis()->SetLabelFont(42);
   NuisanceParameterFreed29->GetXaxis()->SetLabelSize(0.035);
   NuisanceParameterFreed29->GetXaxis()->SetTitleSize(0.035);
   NuisanceParameterFreed29->GetXaxis()->SetTitleFont(42);
   NuisanceParameterFreed29->GetYaxis()->SetTitle("#theta_{fit} - #theta_{initial}/#Delta#theta");
   NuisanceParameterFreed29->GetYaxis()->SetLabelFont(42);
   NuisanceParameterFreed29->GetYaxis()->SetLabelSize(0.035);
   NuisanceParameterFreed29->GetYaxis()->SetTitleSize(0.035);
   NuisanceParameterFreed29->GetYaxis()->SetTitleFont(42);
   NuisanceParameterFreed29->GetZaxis()->SetLabelFont(42);
   NuisanceParameterFreed29->GetZaxis()->SetLabelSize(0.035);
   NuisanceParameterFreed29->GetZaxis()->SetTitleSize(0.035);
   NuisanceParameterFreed29->GetZaxis()->SetTitleFont(42);
   NuisanceParameterFreed29->Draw("hist");
   
   Double_t _fx1029[35] = {
   1.22802e-312,
   0.5,
   1.5,
   2.5,
   3.5,
   4.5,
   5.5,
   6.5,
   7.5,
   8.5,
   9.5,
   10.5,
   11.5,
   12.5,
   13.5,
   14.5,
   15.5,
   16.5,
   17.5,
   18.5,
   19.5,
   20.5,
   21.5,
   22.5,
   23.5,
   24.5,
   25.5,
   26.5,
   27.5,
   28.5,
   29.5,
   30.5,
   31.5,
   32.5,
   0};
   Double_t _fy1029[35] = {
   1.22802e-312,
   -0.772609,
   -0.3926334,
   -0.2871484,
   -0.2034436,
   -0.1826984,
   -0.127635,
   -0.1240593,
   -0.1086026,
   -0.06605836,
   -0.05704517,
   -0.05332934,
   -0.04657227,
   -0.03692203,
   -0.03239714,
   -0.0309943,
   -0.0239345,
   -0.01690796,
   -0.001382991,
   0.0001642069,
   0.01021005,
   0.01061383,
   0.0201131,
   0.02030626,
   0.02042574,
   0.02717043,
   0.0400069,
   0.04274836,
   0.04586531,
   0.05142193,
   0.05462722,
   0.05589371,
   0.05782626,
   0.8439935,
   0};
   Double_t _fex1029[35] = {
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0};
   Double_t _fey1029[35] = {
   0,
   0,
   0.6107583,
   1.072933,
   1.271736,
   0.9369424,
   0.9916745,
   0.9862988,
   0.9273062,
   0.7691231,
   0.9864502,
   0.9937952,
   0.9917384,
   0.9971016,
   0.9817458,
   0.937649,
   0.992671,
   0.9931831,
   0.9925567,
   1.005018,
   0.9933467,
   0.9551045,
   0.9932275,
   0.9928051,
   0.9909911,
   0.9913165,
   1.098273,
   0.9870347,
   0.9931712,
   0.9930639,
   0.9854982,
   0.7379563,
   0.754544,
   0.9909029,
   0.785766};
   TGraphErrors *gre = new TGraphErrors(35,_fx1029,_fy1029,_fex1029,_fey1029);
   gre->SetName("");
   gre->SetTitle("");
   gre->SetFillColor(1);
   gre->SetMarkerStyle(20);
   gre->SetMarkerSize(1.2);
   
   TH1F *Graph_Graph1029 = new TH1F("Graph_Graph1029","",100,0,35.75);
   Graph_Graph1029->SetMinimum(-1.806187);
   Graph_Graph1029->SetMaximum(2.165904);
   Graph_Graph1029->SetDirectory(0);
   Graph_Graph1029->SetStats(0);

   ci = TColor::GetColor("#000099");
   Graph_Graph1029->SetLineColor(ci);
   Graph_Graph1029->GetXaxis()->SetLabelFont(42);
   Graph_Graph1029->GetXaxis()->SetLabelSize(0.035);
   Graph_Graph1029->GetXaxis()->SetTitleSize(0.035);
   Graph_Graph1029->GetXaxis()->SetTitleFont(42);
   Graph_Graph1029->GetYaxis()->SetLabelFont(42);
   Graph_Graph1029->GetYaxis()->SetLabelSize(0.035);
   Graph_Graph1029->GetYaxis()->SetTitleSize(0.035);
   Graph_Graph1029->GetYaxis()->SetTitleFont(42);
   Graph_Graph1029->GetZaxis()->SetLabelFont(42);
   Graph_Graph1029->GetZaxis()->SetLabelSize(0.035);
   Graph_Graph1029->GetZaxis()->SetTitleSize(0.035);
   Graph_Graph1029->GetZaxis()->SetTitleFont(42);
   gre->SetHistogram(Graph_Graph1029);
   
   gre->Draw("p");
   
   TLegend *leg = new TLegend(0.1,0.4,0.4,0.95,NULL,"brNDC");
   leg->SetBorderSize(0);
   leg->SetTextFont(72);
   leg->SetTextSize(0.015);
   leg->SetLineColor(1);
   leg->SetLineStyle(1);
   leg->SetLineWidth(1);
   leg->SetFillColor(0);
   leg->SetFillStyle(0);
   leg->Draw();
   
   TPaveText *pt = new TPaveText(0.3268474,0.9341608,0.6731526,0.995,"blNDC");
   pt->SetName("title");
   pt->SetBorderSize(0);
   pt->SetFillColor(0);
   pt->SetFillStyle(0);
   pt->SetTextFont(42);
   TText *AText = pt->AddText("alpha_MUON_EFF_SYS");
   pt->Draw();
   c1->Modified();
   c1->cd();
   c1->SetSelected(c1);
}
void result_JES_akPu4PF_(refpt> 75 && refpt < 120)&&(abs(refeta)<2)_Centrality()
{
//=========Macro generated from canvas: Can_result_0/
//=========  (Mon Apr 18 02:39:41 2016) by ROOT version6.02/13
   TCanvas *Can_result_0 = new TCanvas("Can_result_0", "",18,40,700,500);
   gStyle->SetOptFit(1);
   Can_result_0->Range(-18.75,0.9236134,118.75,1.043845);
   Can_result_0->SetFillColor(0);
   Can_result_0->SetBorderMode(0);
   Can_result_0->SetBorderSize(2);
   Can_result_0->SetFrameBorderMode(0);
   Can_result_0->SetFrameBorderMode(0);
   
   TMultiGraph *multigraph = new TMultiGraph();
   multigraph->SetName("name");
   multigraph->SetTitle("JES_akPu4PF");
   
   Double_t Graph_fx1001[4] = {
   5,
   20,
   40,
   75};
   Double_t Graph_fy1001[4] = {
   1.025461,
   0.982262,
   0.9644553,
   0.970611};
   Double_t Graph_fex1001[4] = {
   5,
   10,
   10,
   25};
   Double_t Graph_fey1001[4] = {
   0.001598024,
   0.0009318739,
   0.0008002418,
   0.0004502591};
   TGraphErrors *gre = new TGraphErrors(4,Graph_fx1001,Graph_fy1001,Graph_fex1001,Graph_fey1001);
   gre->SetName("Graph");
   gre->SetTitle("some title_0");
   gre->SetFillColor(1);
   gre->SetFillStyle(0);
   
   TH1F *Graph_Graph1001 = new TH1F("Graph_Graph1001","some title_0",100,0,110);
   Graph_Graph1001->SetMinimum(0.9573146);
   Graph_Graph1001->SetMaximum(1.0334);
   Graph_Graph1001->SetDirectory(0);
   Graph_Graph1001->SetStats(0);

   Int_t ci;      // for color index setting
   TColor *color; // for color definition with alpha
   ci = TColor::GetColor("#000099");
   Graph_Graph1001->SetLineColor(ci);
   Graph_Graph1001->GetXaxis()->SetLabelFont(42);
   Graph_Graph1001->GetXaxis()->SetLabelSize(0.035);
   Graph_Graph1001->GetXaxis()->SetTitleSize(0.035);
   Graph_Graph1001->GetXaxis()->SetTitleFont(42);
   Graph_Graph1001->GetYaxis()->SetLabelFont(42);
   Graph_Graph1001->GetYaxis()->SetLabelSize(0.035);
   Graph_Graph1001->GetYaxis()->SetTitleSize(0.035);
   Graph_Graph1001->GetYaxis()->SetTitleFont(42);
   Graph_Graph1001->GetZaxis()->SetLabelFont(42);
   Graph_Graph1001->GetZaxis()->SetLabelSize(0.035);
   Graph_Graph1001->GetZaxis()->SetTitleSize(0.035);
   Graph_Graph1001->GetZaxis()->SetTitleFont(42);
   gre->SetHistogram(Graph_Graph1001);
   
   multigraph->Add(gre,"");
   
   Double_t Graph_fx1002[4] = {
   5,
   20,
   40,
   75};
   Double_t Graph_fy1002[4] = {
   1.025808,
   0.9823451,
   0.964104,
   0.9707841};
   Double_t Graph_fex1002[4] = {
   5,
   10,
   10,
   25};
   Double_t Graph_fey1002[4] = {
   0.001641175,
   0.0009556419,
   0.0008206184,
   0.000461058};
   gre = new TGraphErrors(4,Graph_fx1002,Graph_fy1002,Graph_fex1002,Graph_fey1002);
   gre->SetName("Graph");
   gre->SetTitle("some title_1");
   gre->SetFillColor(1);
   gre->SetFillStyle(0);
   gre->SetLineColor(2);
   gre->SetMarkerColor(2);
   
   TH1F *Graph_Graph1002 = new TH1F("Graph_Graph1002","some title_1",100,0,110);
   Graph_Graph1002->SetMinimum(0.9568668);
   Graph_Graph1002->SetMaximum(1.033866);
   Graph_Graph1002->SetDirectory(0);
   Graph_Graph1002->SetStats(0);

   ci = TColor::GetColor("#000099");
   Graph_Graph1002->SetLineColor(ci);
   Graph_Graph1002->GetXaxis()->SetLabelFont(42);
   Graph_Graph1002->GetXaxis()->SetLabelSize(0.035);
   Graph_Graph1002->GetXaxis()->SetTitleSize(0.035);
   Graph_Graph1002->GetXaxis()->SetTitleFont(42);
   Graph_Graph1002->GetYaxis()->SetLabelFont(42);
   Graph_Graph1002->GetYaxis()->SetLabelSize(0.035);
   Graph_Graph1002->GetYaxis()->SetTitleSize(0.035);
   Graph_Graph1002->GetYaxis()->SetTitleFont(42);
   Graph_Graph1002->GetZaxis()->SetLabelFont(42);
   Graph_Graph1002->GetZaxis()->SetLabelSize(0.035);
   Graph_Graph1002->GetZaxis()->SetTitleSize(0.035);
   Graph_Graph1002->GetZaxis()->SetTitleFont(42);
   gre->SetHistogram(Graph_Graph1002);
   
   multigraph->Add(gre,"");
   
   Double_t Graph_fx1003[4] = {
   5,
   20,
   40,
   75};
   Double_t Graph_fy1003[4] = {
   0.9944711,
   0.9453074,
   0.9619222,
   0.9556338};
   Double_t Graph_fex1003[4] = {
   5,
   10,
   10,
   25};
   Double_t Graph_fey1003[4] = {
   0.01053149,
   0.005298861,
   0.004412705,
   0.002663901};
   gre = new TGraphErrors(4,Graph_fx1003,Graph_fy1003,Graph_fex1003,Graph_fey1003);
   gre->SetName("Graph");
   gre->SetTitle("some title_2");
   gre->SetFillColor(1);
   gre->SetFillStyle(0);
   gre->SetLineColor(3);
   gre->SetMarkerColor(3);
   
   TH1F *Graph_Graph1003 = new TH1F("Graph_Graph1003","some title_2",100,0,110);
   Graph_Graph1003->SetMinimum(0.9335092);
   Graph_Graph1003->SetMaximum(1.011502);
   Graph_Graph1003->SetDirectory(0);
   Graph_Graph1003->SetStats(0);

   ci = TColor::GetColor("#000099");
   Graph_Graph1003->SetLineColor(ci);
   Graph_Graph1003->GetXaxis()->SetLabelFont(42);
   Graph_Graph1003->GetXaxis()->SetLabelSize(0.035);
   Graph_Graph1003->GetXaxis()->SetTitleSize(0.035);
   Graph_Graph1003->GetXaxis()->SetTitleFont(42);
   Graph_Graph1003->GetYaxis()->SetLabelFont(42);
   Graph_Graph1003->GetYaxis()->SetLabelSize(0.035);
   Graph_Graph1003->GetYaxis()->SetTitleSize(0.035);
   Graph_Graph1003->GetYaxis()->SetTitleFont(42);
   Graph_Graph1003->GetZaxis()->SetLabelFont(42);
   Graph_Graph1003->GetZaxis()->SetLabelSize(0.035);
   Graph_Graph1003->GetZaxis()->SetTitleSize(0.035);
   Graph_Graph1003->GetZaxis()->SetTitleFont(42);
   gre->SetHistogram(Graph_Graph1003);
   
   multigraph->Add(gre,"");
   multigraph->Draw("AP");
   multigraph->GetXaxis()->SetTitle("Centrality");
   multigraph->GetXaxis()->SetLabelFont(42);
   multigraph->GetXaxis()->SetLabelSize(0.035);
   multigraph->GetXaxis()->SetTitleSize(0.035);
   multigraph->GetXaxis()->SetTitleFont(42);
   multigraph->GetYaxis()->SetTitle("#mu_{Reco./Gen.}");
   multigraph->GetYaxis()->SetLabelFont(42);
   multigraph->GetYaxis()->SetLabelSize(0.035);
   multigraph->GetYaxis()->SetTitleSize(0.035);
   multigraph->GetYaxis()->SetTitleFont(42);
   
   TLegend *leg = new TLegend(0.68,0.7,0.88,0.85,NULL,"brNDC");
   leg->SetBorderSize(0);
   leg->SetLineColor(1);
   leg->SetLineStyle(1);
   leg->SetLineWidth(1);
   leg->SetFillColor(0);
   leg->SetFillStyle(1001);
   TLegendEntry *entry=leg->AddEntry("Graph","allJets","l");
   entry->SetLineColor(1);
   entry->SetLineStyle(1);
   entry->SetLineWidth(1);
   entry->SetMarkerColor(1);
   entry->SetMarkerStyle(21);
   entry->SetMarkerSize(1);
   entry->SetTextFont(42);
   entry=leg->AddEntry("Graph","lightJets","l");
   entry->SetLineColor(2);
   entry->SetLineStyle(1);
   entry->SetLineWidth(1);
   entry->SetMarkerColor(1);
   entry->SetMarkerStyle(21);
   entry->SetMarkerSize(1);
   entry->SetTextFont(42);
   entry=leg->AddEntry("Graph","bJets","l");
   entry->SetLineColor(3);
   entry->SetLineStyle(1);
   entry->SetLineWidth(1);
   entry->SetMarkerColor(1);
   entry->SetMarkerStyle(21);
   entry->SetMarkerSize(1);
   entry->SetTextFont(42);
   leg->Draw();
   TLatex *   tex = new TLatex(0.25,0.7,"#bf{#color[2]{|#eta_{jet}|<2.0 &75<refpt<120}}");
tex->SetNDC();
   tex->SetTextFont(43);
   tex->SetTextSize(24);
   tex->SetLineWidth(2);
   tex->Draw();
   
   TPaveText *pt = new TPaveText(0.3750575,0.9365254,0.6249425,0.995,"blNDC");
   pt->SetName("title");
   pt->SetBorderSize(0);
   pt->SetFillColor(0);
   pt->SetFillStyle(0);
   pt->SetTextFont(42);
   AText = pt->AddText("JES_akPu4PF");
   pt->Draw();
   Can_result_0->Modified();
   Can_result_0->cd();
   Can_result_0->SetSelected(Can_result_0);
}
示例#28
0
void limit_reb()
{
//=========Macro generated from canvas: limits/limit
//=========  (Thu Sep 22 12:17:10 2016) by ROOT version6.02/08
   TCanvas *limits = new TCanvas("limits", "limit",550,195,702,600);
   limits->Range(0.6111515,-38.33737,4.042061,-34.96366);
   limits->SetFillColor(0);
   limits->SetBorderMode(0);
   limits->SetBorderSize(2);
   limits->SetLogx();
   limits->SetLogy();
   limits->SetFrameBorderMode(0);
   limits->SetFrameBorderMode(0);
   
   Double_t Graph0_fx3001[18] = {
   20,
   30,
   40,
   50,
   60,
   70,
   80,
   90,
   100,
   200,
   300,
   400,
   500,
   700,
   1000,
   2000,
   3000,
   5000};
   Double_t Graph0_fy3001[18] = {
   6.235417e-36,
   6.656746e-37,
   2.262722e-37,
   1.202159e-37,
   8.13632e-38,
   6.332249e-38,
   5.372319e-38,
   4.833697e-38,
   4.489232e-38,
   4.332769e-38,
   5.252924e-38,
   6.342704e-38,
   7.477645e-38,
   9.802517e-38,
   1.341753e-37,
   2.543024e-37,
   3.764757e-37,
   6.161271e-37};
   Double_t Graph0_felx3001[18] = {
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0};
   Double_t Graph0_fely3001[18] = {
   3.098445e-36,
   3.311771e-37,
   1.125534e-37,
   5.97395e-38,
   4.033772e-38,
   3.144153e-38,
   2.672203e-38,
   2.40628e-38,
   2.232825e-38,
   2.156849e-38,
   2.620711e-38,
   3.168511e-38,
   3.736759e-38,
   4.903225e-38,
   6.71478e-38,
   1.272391e-37,
   1.884008e-37,
   3.081215e-37};
   Double_t Graph0_fehx3001[18] = {
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0};
   Double_t Graph0_fehy3001[18] = {
   6.738838e-36,
   7.334375e-37,
   2.460543e-37,
   1.290625e-37,
   8.677873e-38,
   6.732755e-38,
   5.736414e-38,
   5.168521e-38,
   4.806038e-38,
   4.698138e-38,
   5.711198e-38,
   6.923562e-38,
   8.160256e-38,
   1.072586e-37,
   1.472118e-37,
   2.791597e-37,
   4.134292e-37,
   6.739957e-37};
   TGraphAsymmErrors *grae = new TGraphAsymmErrors(18,Graph0_fx3001,Graph0_fy3001,Graph0_felx3001,Graph0_fehx3001,Graph0_fely3001,Graph0_fehy3001);
   grae->SetName("Graph0");
   grae->SetTitle("");
   grae->SetFillColor(5);
   grae->SetLineColor(5);
   grae->SetMarkerColor(5);
   grae->SetMarkerSize(0);
   
   TH1F *Graph_Graph3001 = new TH1F("Graph_Graph3001","",100,9,5000);
   Graph_Graph3001->SetMinimum(1e-38);
   Graph_Graph3001->SetMaximum(5e-36);
   Graph_Graph3001->SetDirectory(0);
   Graph_Graph3001->SetStats(0);

   Int_t ci;      // for color index setting
   TColor *color; // for color definition with alpha
   ci = TColor::GetColor("#000099");
   Graph_Graph3001->SetLineColor(ci);
   Graph_Graph3001->GetXaxis()->SetTitle("M_{ #chi}  [GeV]");
   Graph_Graph3001->GetXaxis()->SetLabelFont(42);
   Graph_Graph3001->GetXaxis()->SetLabelSize(0.035);
   Graph_Graph3001->GetXaxis()->SetTitleSize(0.035);
   Graph_Graph3001->GetXaxis()->SetTitleFont(42);
   Graph_Graph3001->GetYaxis()->SetTitle("SD WIMP Inelastic cross section   [cm^{2}]");
   Graph_Graph3001->GetYaxis()->SetLabelFont(42);
   Graph_Graph3001->GetYaxis()->SetLabelSize(0.035);
   Graph_Graph3001->GetYaxis()->SetTitleSize(0.035);
   Graph_Graph3001->GetYaxis()->SetTitleOffset(1.3);
   Graph_Graph3001->GetYaxis()->SetTitleFont(42);
   Graph_Graph3001->GetZaxis()->SetLabelFont(42);
   Graph_Graph3001->GetZaxis()->SetLabelSize(0.035);
   Graph_Graph3001->GetZaxis()->SetTitleSize(0.035);
   Graph_Graph3001->GetZaxis()->SetTitleFont(42);
   grae->SetHistogram(Graph_Graph3001);
   
   grae->Draw("ae3");
   
   Double_t Graph1_fx3002[18] = {
   20,
   30,
   40,
   50,
   60,
   70,
   80,
   90,
   100,
   200,
   300,
   400,
   500,
   700,
   1000,
   2000,
   3000,
   5000};
   Double_t Graph1_fy3002[18] = {
   6.235417e-36,
   6.656746e-37,
   2.262722e-37,
   1.202159e-37,
   8.13632e-38,
   6.332249e-38,
   5.372319e-38,
   4.833697e-38,
   4.489232e-38,
   4.332769e-38,
   5.252924e-38,
   6.342704e-38,
   7.477645e-38,
   9.802517e-38,
   1.341753e-37,
   2.543024e-37,
   3.764757e-37,
   6.161271e-37};
   Double_t Graph1_felx3002[18] = {
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0};
   Double_t Graph1_fely3002[18] = {
   1.919487e-36,
   2.054087e-37,
   6.969767e-38,
   3.708937e-38,
   2.497175e-38,
   1.945069e-38,
   1.652413e-38,
   1.49063e-38,
   1.382935e-38,
   1.342629e-38,
   1.630138e-38,
   1.96447e-38,
   2.311742e-38,
   3.024679e-38,
   4.142171e-38,
   7.849003e-38,
   1.161671e-37,
   1.90178e-37};
   Double_t Graph1_fehx3002[18] = {
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0};
   Double_t Graph1_fehy3002[18] = {
   2.91616e-36,
   3.144374e-37,
   1.060046e-37,
   5.600252e-38,
   3.780837e-38,
   2.930568e-38,
   2.503852e-38,
   2.248217e-38,
   2.089524e-38,
   2.035206e-38,
   2.469941e-38,
   2.98816e-38,
   3.527862e-38,
   4.641931e-38,
   6.36456e-38,
   1.207218e-37,
   1.788054e-37,
   2.918083e-37};
   grae = new TGraphAsymmErrors(18,Graph1_fx3002,Graph1_fy3002,Graph1_felx3002,Graph1_fehx3002,Graph1_fely3002,Graph1_fehy3002);
   grae->SetName("Graph1");
   grae->SetTitle("Graph");
   grae->SetFillColor(3);
   grae->SetLineColor(3);
   grae->SetMarkerColor(3);
   grae->SetMarkerSize(0);
   
   TH1F *Graph_Graph3002 = new TH1F("Graph_Graph3002","Graph",100,18,5498);
   Graph_Graph3002->SetMinimum(2.691127e-38);
   Graph_Graph3002->SetMaximum(1.006374e-35);
   Graph_Graph3002->SetDirectory(0);
   Graph_Graph3002->SetStats(0);

   ci = TColor::GetColor("#000099");
   Graph_Graph3002->SetLineColor(ci);
   Graph_Graph3002->GetXaxis()->SetLabelFont(42);
   Graph_Graph3002->GetXaxis()->SetLabelSize(0.035);
   Graph_Graph3002->GetXaxis()->SetTitleSize(0.035);
   Graph_Graph3002->GetXaxis()->SetTitleFont(42);
   Graph_Graph3002->GetYaxis()->SetLabelFont(42);
   Graph_Graph3002->GetYaxis()->SetLabelSize(0.035);
   Graph_Graph3002->GetYaxis()->SetTitleSize(0.035);
   Graph_Graph3002->GetYaxis()->SetTitleFont(42);
   Graph_Graph3002->GetZaxis()->SetLabelFont(42);
   Graph_Graph3002->GetZaxis()->SetLabelSize(0.035);
   Graph_Graph3002->GetZaxis()->SetTitleSize(0.035);
   Graph_Graph3002->GetZaxis()->SetTitleFont(42);
   grae->SetHistogram(Graph_Graph3002);
   
   grae->Draw("e3");
   
   Double_t Graph2_fx1001[16] = {
   20,
   29.8071,
   39.90202,
   53.41583,
   62.16429,
   69.85718,
   83.21777,
   90,
   105.0887,
   200,
   300,
   388.2045,
   590.8438,
   746.1269,
   1000,
   4244.204};
   Double_t Graph2_fy1001[16] = {
   8e-36,
   7.162923e-37,
   2.027528e-37,
   9.91722e-38,
   7.461589e-38,
   6.3506e-38,
   5.354015e-38,
   5e-38,
   4.600252e-38,
   5e-38,
   6e-38,
   7.252295e-38,
   9.823615e-38,
   1.210266e-37,
   1.5e-37,
   4.354065e-37};
   Double_t Graph2_fex1001[16] = {
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0};
   Double_t Graph2_fey1001[16] = {
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0};
   TGraphErrors *gre = new TGraphErrors(16,Graph2_fx1001,Graph2_fy1001,Graph2_fex1001,Graph2_fey1001);
   gre->SetName("Graph2");
   gre->SetTitle("Graph");
   gre->SetLineColor(2);
   gre->SetLineWidth(3);
   gre->SetMarkerSize(0);
   
   TH1F *Graph_Graph1001 = new TH1F("Graph_Graph1001","Graph",100,18,4666.624);
   Graph_Graph1001->SetMinimum(4.140227e-38);
   Graph_Graph1001->SetMaximum(8.7954e-36);
   Graph_Graph1001->SetDirectory(0);
   Graph_Graph1001->SetStats(0);

   ci = TColor::GetColor("#000099");
   Graph_Graph1001->SetLineColor(ci);
   Graph_Graph1001->GetXaxis()->SetLabelFont(42);
   Graph_Graph1001->GetXaxis()->SetLabelSize(0.035);
   Graph_Graph1001->GetXaxis()->SetTitleSize(0.035);
   Graph_Graph1001->GetXaxis()->SetTitleFont(42);
   Graph_Graph1001->GetYaxis()->SetLabelFont(42);
   Graph_Graph1001->GetYaxis()->SetLabelSize(0.035);
   Graph_Graph1001->GetYaxis()->SetTitleSize(0.035);
   Graph_Graph1001->GetYaxis()->SetTitleFont(42);
   Graph_Graph1001->GetZaxis()->SetLabelFont(42);
   Graph_Graph1001->GetZaxis()->SetLabelSize(0.035);
   Graph_Graph1001->GetZaxis()->SetTitleSize(0.035);
   Graph_Graph1001->GetZaxis()->SetTitleFont(42);
   gre->SetHistogram(Graph_Graph1001);
   
   gre->Draw("pc");
   
   Double_t Graph3_fx1002[18] = {
   20,
   30,
   40,
   50,
   60,
   70,
   80,
   90,
   100,
   200,
   300,
   400,
   500,
   700,
   1000,
   2000,
   3000,
   5000};
   Double_t Graph3_fy1002[18] = {
   6.235417e-36,
   6.656746e-37,
   2.262722e-37,
   1.202159e-37,
   8.13632e-38,
   6.332249e-38,
   5.372319e-38,
   4.833697e-38,
   4.489232e-38,
   4.332769e-38,
   5.252924e-38,
   6.342704e-38,
   7.477645e-38,
   9.802517e-38,
   1.341753e-37,
   2.543024e-37,
   3.764757e-37,
   6.161271e-37};
   Double_t Graph3_fex1002[18] = {
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0};
   Double_t Graph3_fey1002[18] = {
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0};
   gre = new TGraphErrors(18,Graph3_fx1002,Graph3_fy1002,Graph3_fex1002,Graph3_fey1002);
   gre->SetName("Graph3");
   gre->SetTitle("Graph");
   gre->SetLineStyle(7);
   gre->SetLineWidth(3);
   gre->SetMarkerSize(0);
   
   TH1F *Graph_Graph1002 = new TH1F("Graph_Graph1002","Graph",100,9,5000);
   Graph_Graph1002->SetMinimum(1e-38);
   Graph_Graph1002->SetMaximum(5e-36);
   Graph_Graph1002->SetDirectory(0);
   Graph_Graph1002->SetStats(0);

   ci = TColor::GetColor("#000099");
   Graph_Graph1002->SetLineColor(ci);
   Graph_Graph1002->GetXaxis()->SetLabelFont(42);
   Graph_Graph1002->GetXaxis()->SetLabelSize(0.035);
   Graph_Graph1002->GetXaxis()->SetTitleSize(0.035);
   Graph_Graph1002->GetXaxis()->SetTitleFont(42);
   Graph_Graph1002->GetYaxis()->SetLabelFont(42);
   Graph_Graph1002->GetYaxis()->SetLabelSize(0.035);
   Graph_Graph1002->GetYaxis()->SetTitleSize(0.035);
   Graph_Graph1002->GetYaxis()->SetTitleFont(42);
   Graph_Graph1002->GetZaxis()->SetLabelFont(42);
   Graph_Graph1002->GetZaxis()->SetLabelSize(0.035);
   Graph_Graph1002->GetZaxis()->SetTitleSize(0.035);
   Graph_Graph1002->GetZaxis()->SetTitleFont(42);
   gre->SetHistogram(Graph_Graph1002);
   
   gre->Draw("pc");
   
   Double_t Graph4_fx1003[18] = {
   20,
   30,
   40,
   50,
   60,
   70,
   80,
   90,
   100,
   200,
   300,
   400,
   500,
   700,
   1000,
   2000,
   3000,
   5000};
   Double_t Graph4_fy1003[18] = {
   6.799454e-36,
   6.289303e-37,
   1.870549e-37,
   9.204725e-38,
   5.949289e-38,
   4.510389e-38,
   3.771558e-38,
   3.355162e-38,
   3.097464e-38,
   2.942263e-38,
   3.569344e-38,
   4.311977e-38,
   5.08662e-38,
   6.667747e-38,
   9.131451e-38,
   1.729417e-37,
   2.564344e-37,
   4.191275e-37};
   Double_t Graph4_fex1003[18] = {
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0};
   Double_t Graph4_fey1003[18] = {
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0};
   gre = new TGraphErrors(18,Graph4_fx1003,Graph4_fy1003,Graph4_fex1003,Graph4_fey1003);
   gre->SetName("Graph4");
   gre->SetTitle("Graph");
   gre->SetLineWidth(3);
   gre->SetMarkerStyle(20);
   gre->SetMarkerSize(0);
   
   TH1F *Graph_Graph1003 = new TH1F("Graph_Graph1003","Graph",100,18,5498);
   Graph_Graph1003->SetMinimum(2.648037e-38);
   Graph_Graph1003->SetMaximum(7.476458e-36);
   Graph_Graph1003->SetDirectory(0);
   Graph_Graph1003->SetStats(0);

   ci = TColor::GetColor("#000099");
   Graph_Graph1003->SetLineColor(ci);
   Graph_Graph1003->GetXaxis()->SetLabelFont(42);
   Graph_Graph1003->GetXaxis()->SetLabelSize(0.035);
   Graph_Graph1003->GetXaxis()->SetTitleSize(0.035);
   Graph_Graph1003->GetXaxis()->SetTitleFont(42);
   Graph_Graph1003->GetYaxis()->SetLabelFont(42);
   Graph_Graph1003->GetYaxis()->SetLabelSize(0.035);
   Graph_Graph1003->GetYaxis()->SetTitleSize(0.035);
   Graph_Graph1003->GetYaxis()->SetTitleFont(42);
   Graph_Graph1003->GetZaxis()->SetLabelFont(42);
   Graph_Graph1003->GetZaxis()->SetLabelSize(0.035);
   Graph_Graph1003->GetZaxis()->SetTitleSize(0.035);
   Graph_Graph1003->GetZaxis()->SetTitleFont(42);
   gre->SetHistogram(Graph_Graph1003);
   
   gre->Draw("pc");
   
   TLegend *leg = new TLegend(0.307047,0.6660839,0.6073826,0.8653846,NULL,"brNDC");
   leg->SetBorderSize(0);
   leg->SetTextSize(0.033);
   leg->SetLineColor(1);
   leg->SetLineStyle(1);
   leg->SetLineWidth(1);
   leg->SetFillColor(0);
   leg->SetFillStyle(1001);
   TLegendEntry *entry=leg->AddEntry("Graph4","XENON100 Observed 90% CLs limit","lpf");
   entry->SetFillStyle(1001);
   entry->SetLineColor(1);
   entry->SetLineStyle(1);
   entry->SetLineWidth(3);
   entry->SetMarkerColor(1);
   entry->SetMarkerStyle(20);
   entry->SetTextFont(42);
   entry=leg->AddEntry("Graph3","XENON100 Expected 90% CLs limit","lpf");
   entry->SetFillStyle(1001);
   entry->SetLineColor(1);
   entry->SetLineStyle(7);
   entry->SetLineWidth(3);
   entry->SetMarkerColor(1);
   entry->SetMarkerStyle(1);
   entry->SetTextFont(42);
   entry=leg->AddEntry("Graph2","XMASS 90% CL limit","lpf");
   entry->SetFillStyle(1001);
   entry->SetLineColor(2);
   entry->SetLineStyle(1);
   entry->SetLineWidth(3);
   entry->SetMarkerColor(1);
   entry->SetMarkerStyle(1);
   entry->SetTextFont(42);
   entry=leg->AddEntry("Graph1","1 #sigma","f");
   entry->SetFillColor(3);
   entry->SetFillStyle(1001);
   entry->SetLineColor(3);
   entry->SetLineStyle(1);
   entry->SetLineWidth(1);
   entry->SetMarkerColor(1);
   entry->SetMarkerStyle(21);
   entry->SetMarkerSize(1);
   entry->SetTextFont(42);
   entry=leg->AddEntry("Graph0","2 #sigma","f");
   entry->SetFillColor(5);
   entry->SetFillStyle(1001);
   entry->SetLineColor(5);
   entry->SetLineStyle(1);
   entry->SetLineWidth(1);
   entry->SetMarkerColor(1);
   entry->SetMarkerStyle(21);
   entry->SetMarkerSize(1);
   entry->SetTextFont(42);
   leg->Draw();
   
   TH1F *Graph_copy = new TH1F("Graph_copy","",100,9,5000);
   Graph_copy->SetMinimum(1e-38);
   Graph_copy->SetMaximum(5e-36);
   Graph_copy->SetDirectory(0);
   Graph_copy->SetStats(0);

   ci = TColor::GetColor("#000099");
   Graph_copy->SetLineColor(ci);
   Graph_copy->GetXaxis()->SetTitle("M  [GeV]");
   Graph_copy->GetXaxis()->SetLabelFont(42);
   Graph_copy->GetXaxis()->SetLabelSize(0.035);
   Graph_copy->GetXaxis()->SetTitleSize(0.035);
   Graph_copy->GetXaxis()->SetTitleFont(42);
   Graph_copy->GetYaxis()->SetTitle("#sigma");
   Graph_copy->GetYaxis()->SetLabelFont(42);
   Graph_copy->GetYaxis()->SetLabelSize(0.035);
   Graph_copy->GetYaxis()->SetTitleSize(0.035);
   Graph_copy->GetYaxis()->SetTitleFont(42);
   Graph_copy->GetZaxis()->SetLabelFont(42);
   Graph_copy->GetZaxis()->SetLabelSize(0.035);
   Graph_copy->GetZaxis()->SetTitleSize(0.035);
   Graph_copy->GetZaxis()->SetTitleFont(42);
   Graph_copy->Draw("sameaxis");
   limits->Modified();
   limits->cd();
   limits->SetSelected(limits);
}
示例#29
0
void ttbar_isojet1CSV()
{
//=========Macro generated from canvas: c1/c1
//=========  (Sun Dec 11 15:16:19 2016) by ROOT version6.06/01
   TCanvas *c1 = new TCanvas("c1", "c1",1,1,1200,1416);
   gStyle->SetOptStat(0);
   gStyle->SetOptTitle(0);
   c1->SetHighLightColor(2);
   c1->Range(0,0,1,1);
   c1->SetFillColor(0);
   c1->SetBorderMode(0);
   c1->SetBorderSize(2);
   c1->SetTickx(1);
   c1->SetTicky(1);
   c1->SetLeftMargin(0.15);
   c1->SetRightMargin(0.05);
   c1->SetTopMargin(0.07);
   c1->SetBottomMargin(0.13);
   c1->SetFrameFillStyle(0);
   c1->SetFrameBorderMode(0);
  
// ------------>Primitives in pad: pad1
   TPad *pad1 = new TPad("pad1", "pad1",0,0.3,1,1);
   pad1->Draw();
   pad1->cd();
   pad1->Range(-0.1875,0,1.0625,0.6289089);
   pad1->SetFillColor(0);
   pad1->SetBorderMode(0);
   pad1->SetBorderSize(2);
   pad1->SetTickx(1);
   pad1->SetTicky(1);
   pad1->SetLeftMargin(0.15);
   pad1->SetRightMargin(0.05);
   pad1->SetTopMargin(0.07);
   pad1->SetBottomMargin(0);
   pad1->SetFrameFillStyle(0);
   pad1->SetFrameBorderMode(0);
   pad1->SetFrameFillStyle(0);
   pad1->SetFrameBorderMode(0);
   
   THStack *h = new THStack();
   h->SetName("h");
   h->SetTitle("");
   h->SetMinimum(0);
   h->SetMaximum(0.5570336);
   
   TH1F *h_stack_23 = new TH1F("h_stack_23","",10,0,1);
   h_stack_23->SetMinimum(0);
   h_stack_23->SetMaximum(0.5848853);
   h_stack_23->SetDirectory(0);
   h_stack_23->SetStats(0);

   Int_t ci;      // for color index setting
   TColor *color; // for color definition with alpha
   ci = TColor::GetColor("#000099");
   h_stack_23->SetLineColor(ci);
   h_stack_23->GetXaxis()->SetLabelFont(42);
   h_stack_23->GetXaxis()->SetLabelOffset(0.007);
   h_stack_23->GetXaxis()->SetTitleSize(0.05);
   h_stack_23->GetXaxis()->SetTickLength(0.025);
   h_stack_23->GetXaxis()->SetTitleFont(42);
   h_stack_23->GetYaxis()->SetTitle("a.u.");
   h_stack_23->GetYaxis()->SetLabelFont(42);
   h_stack_23->GetYaxis()->SetLabelOffset(0.007);
   h_stack_23->GetYaxis()->SetTitleSize(0.05);
   h_stack_23->GetYaxis()->SetTickLength(0.025);
   h_stack_23->GetYaxis()->SetTitleOffset(1.5);
   h_stack_23->GetYaxis()->SetTitleFont(42);
   h_stack_23->GetZaxis()->SetLabelFont(42);
   h_stack_23->GetZaxis()->SetLabelOffset(0.007);
   h_stack_23->GetZaxis()->SetTitleSize(0.05);
   h_stack_23->GetZaxis()->SetTickLength(0.025);
   h_stack_23->GetZaxis()->SetTitleFont(42);
   h->SetHistogram(h_stack_23);
   
   
   TH1D *h_isojet1CSV_QCD__265 = new TH1D("h_isojet1CSV_QCD__265","",10,0,1);
   h_isojet1CSV_QCD__265->SetBinContent(1,0.002129117);
   h_isojet1CSV_QCD__265->SetBinContent(2,0.001248327);
   h_isojet1CSV_QCD__265->SetBinContent(3,0.0006205357);
   h_isojet1CSV_QCD__265->SetBinContent(4,0.001430306);
   h_isojet1CSV_QCD__265->SetBinContent(5,0.001031553);
   h_isojet1CSV_QCD__265->SetBinContent(6,0.0005098467);
   h_isojet1CSV_QCD__265->SetBinContent(7,0.0002095089);
   h_isojet1CSV_QCD__265->SetBinContent(8,9.216642e-05);
   h_isojet1CSV_QCD__265->SetBinContent(10,0.004314199);
   h_isojet1CSV_QCD__265->SetBinError(1,0.001510477);
   h_isojet1CSV_QCD__265->SetBinError(2,0.0006911766);
   h_isojet1CSV_QCD__265->SetBinError(3,0.0004578373);
   h_isojet1CSV_QCD__265->SetBinError(4,0.0008388365);
   h_isojet1CSV_QCD__265->SetBinError(5,0.0008715622);
   h_isojet1CSV_QCD__265->SetBinError(6,0.0005098467);
   h_isojet1CSV_QCD__265->SetBinError(7,0.0002095089);
   h_isojet1CSV_QCD__265->SetBinError(8,9.216642e-05);
   h_isojet1CSV_QCD__265->SetBinError(10,0.002213733);
   h_isojet1CSV_QCD__265->SetEntries(25);
   h_isojet1CSV_QCD__265->SetStats(0);

   ci = TColor::GetColor("#cccccc");
   h_isojet1CSV_QCD__265->SetFillColor(ci);
   h_isojet1CSV_QCD__265->GetXaxis()->SetTitle("isojet 1 CSV");
   h_isojet1CSV_QCD__265->GetXaxis()->SetLabelFont(42);
   h_isojet1CSV_QCD__265->GetXaxis()->SetLabelOffset(0.007);
   h_isojet1CSV_QCD__265->GetXaxis()->SetTitleSize(0.05);
   h_isojet1CSV_QCD__265->GetXaxis()->SetTickLength(0.025);
   h_isojet1CSV_QCD__265->GetXaxis()->SetTitleFont(42);
   h_isojet1CSV_QCD__265->GetYaxis()->SetTitle("a.u.");
   h_isojet1CSV_QCD__265->GetYaxis()->SetLabelFont(42);
   h_isojet1CSV_QCD__265->GetYaxis()->SetLabelOffset(0.007);
   h_isojet1CSV_QCD__265->GetYaxis()->SetTitleSize(0.05);
   h_isojet1CSV_QCD__265->GetYaxis()->SetTickLength(0.025);
   h_isojet1CSV_QCD__265->GetYaxis()->SetTitleFont(42);
   h_isojet1CSV_QCD__265->GetZaxis()->SetLabelFont(42);
   h_isojet1CSV_QCD__265->GetZaxis()->SetLabelOffset(0.007);
   h_isojet1CSV_QCD__265->GetZaxis()->SetTitleSize(0.05);
   h_isojet1CSV_QCD__265->GetZaxis()->SetTickLength(0.025);
   h_isojet1CSV_QCD__265->GetZaxis()->SetTitleFont(42);
   h->Add(h_isojet1CSV_QCD,"");
   
   TH1D *h_isojet1CSV_Diboson__266 = new TH1D("h_isojet1CSV_Diboson__266","",10,0,1);
   h_isojet1CSV_Diboson__266->SetBinContent(1,0.006910874);
   h_isojet1CSV_Diboson__266->SetBinContent(2,0.01156259);
   h_isojet1CSV_Diboson__266->SetBinContent(3,0.00597142);
   h_isojet1CSV_Diboson__266->SetBinContent(4,0.003397186);
   h_isojet1CSV_Diboson__266->SetBinContent(5,0.003453268);
   h_isojet1CSV_Diboson__266->SetBinContent(6,0.001659304);
   h_isojet1CSV_Diboson__266->SetBinContent(7,0.001617052);
   h_isojet1CSV_Diboson__266->SetBinContent(8,0.001259235);
   h_isojet1CSV_Diboson__266->SetBinContent(9,0.000286628);
   h_isojet1CSV_Diboson__266->SetBinContent(10,0.00067562);
   h_isojet1CSV_Diboson__266->SetBinError(1,0.001086007);
   h_isojet1CSV_Diboson__266->SetBinError(2,0.001467728);
   h_isojet1CSV_Diboson__266->SetBinError(3,0.001077108);
   h_isojet1CSV_Diboson__266->SetBinError(4,0.0008370875);
   h_isojet1CSV_Diboson__266->SetBinError(5,0.0009085276);
   h_isojet1CSV_Diboson__266->SetBinError(6,0.000631351);
   h_isojet1CSV_Diboson__266->SetBinError(7,0.0006254813);
   h_isojet1CSV_Diboson__266->SetBinError(8,0.0005614698);
   h_isojet1CSV_Diboson__266->SetBinError(9,0.0001726014);
   h_isojet1CSV_Diboson__266->SetBinError(10,0.0003333104);
   h_isojet1CSV_Diboson__266->SetEntries(227);
   h_isojet1CSV_Diboson__266->SetStats(0);

   ci = TColor::GetColor("#9966cc");
   h_isojet1CSV_Diboson__266->SetFillColor(ci);
   h_isojet1CSV_Diboson__266->GetXaxis()->SetTitle("isojet 1 CSV");
   h_isojet1CSV_Diboson__266->GetXaxis()->SetLabelFont(42);
   h_isojet1CSV_Diboson__266->GetXaxis()->SetLabelOffset(0.007);
   h_isojet1CSV_Diboson__266->GetXaxis()->SetTitleSize(0.05);
   h_isojet1CSV_Diboson__266->GetXaxis()->SetTickLength(0.025);
   h_isojet1CSV_Diboson__266->GetXaxis()->SetTitleFont(42);
   h_isojet1CSV_Diboson__266->GetYaxis()->SetTitle("a.u.");
   h_isojet1CSV_Diboson__266->GetYaxis()->SetLabelFont(42);
   h_isojet1CSV_Diboson__266->GetYaxis()->SetLabelOffset(0.007);
   h_isojet1CSV_Diboson__266->GetYaxis()->SetTitleSize(0.05);
   h_isojet1CSV_Diboson__266->GetYaxis()->SetTickLength(0.025);
   h_isojet1CSV_Diboson__266->GetYaxis()->SetTitleFont(42);
   h_isojet1CSV_Diboson__266->GetZaxis()->SetLabelFont(42);
   h_isojet1CSV_Diboson__266->GetZaxis()->SetLabelOffset(0.007);
   h_isojet1CSV_Diboson__266->GetZaxis()->SetTitleSize(0.05);
   h_isojet1CSV_Diboson__266->GetZaxis()->SetTickLength(0.025);
   h_isojet1CSV_Diboson__266->GetZaxis()->SetTitleFont(42);
   h->Add(h_isojet1CSV_Diboson,"");
   
   TH1D *h_isojet1CSV_ZpLjets__267 = new TH1D("h_isojet1CSV_ZpLjets__267","",10,0,1);
   h_isojet1CSV_ZpLjets__267->SetBinContent(1,0.00997839);
   h_isojet1CSV_ZpLjets__267->SetBinContent(2,0.01450317);
   h_isojet1CSV_ZpLjets__267->SetBinContent(3,0.006432142);
   h_isojet1CSV_ZpLjets__267->SetBinContent(4,0.004194575);
   h_isojet1CSV_ZpLjets__267->SetBinContent(5,0.003727646);
   h_isojet1CSV_ZpLjets__267->SetBinContent(6,0.002569373);
   h_isojet1CSV_ZpLjets__267->SetBinContent(7,0.001898935);
   h_isojet1CSV_ZpLjets__267->SetBinContent(8,0.001314676);
   h_isojet1CSV_ZpLjets__267->SetBinContent(9,0.001323422);
   h_isojet1CSV_ZpLjets__267->SetBinContent(10,0.001471477);
   h_isojet1CSV_ZpLjets__267->SetBinError(1,0.0002843835);
   h_isojet1CSV_ZpLjets__267->SetBinError(2,0.0003526741);
   h_isojet1CSV_ZpLjets__267->SetBinError(3,0.0002379666);
   h_isojet1CSV_ZpLjets__267->SetBinError(4,0.0002075278);
   h_isojet1CSV_ZpLjets__267->SetBinError(5,0.0001971644);
   h_isojet1CSV_ZpLjets__267->SetBinError(6,0.0001564817);
   h_isojet1CSV_ZpLjets__267->SetBinError(7,0.0001321731);
   h_isojet1CSV_ZpLjets__267->SetBinError(8,0.0001133749);
   h_isojet1CSV_ZpLjets__267->SetBinError(9,0.0001162263);
   h_isojet1CSV_ZpLjets__267->SetBinError(10,0.0001379738);
   h_isojet1CSV_ZpLjets__267->SetEntries(24915);
   h_isojet1CSV_ZpLjets__267->SetStats(0);

   ci = TColor::GetColor("#3399cc");
   h_isojet1CSV_ZpLjets__267->SetFillColor(ci);
   h_isojet1CSV_ZpLjets__267->GetXaxis()->SetTitle("isojet 1 CSV");
   h_isojet1CSV_ZpLjets__267->GetXaxis()->SetLabelFont(42);
   h_isojet1CSV_ZpLjets__267->GetXaxis()->SetLabelOffset(0.007);
   h_isojet1CSV_ZpLjets__267->GetXaxis()->SetTitleSize(0.05);
   h_isojet1CSV_ZpLjets__267->GetXaxis()->SetTickLength(0.025);
   h_isojet1CSV_ZpLjets__267->GetXaxis()->SetTitleFont(42);
   h_isojet1CSV_ZpLjets__267->GetYaxis()->SetTitle("a.u.");
   h_isojet1CSV_ZpLjets__267->GetYaxis()->SetLabelFont(42);
   h_isojet1CSV_ZpLjets__267->GetYaxis()->SetLabelOffset(0.007);
   h_isojet1CSV_ZpLjets__267->GetYaxis()->SetTitleSize(0.05);
   h_isojet1CSV_ZpLjets__267->GetYaxis()->SetTickLength(0.025);
   h_isojet1CSV_ZpLjets__267->GetYaxis()->SetTitleFont(42);
   h_isojet1CSV_ZpLjets__267->GetZaxis()->SetLabelFont(42);
   h_isojet1CSV_ZpLjets__267->GetZaxis()->SetLabelOffset(0.007);
   h_isojet1CSV_ZpLjets__267->GetZaxis()->SetTitleSize(0.05);
   h_isojet1CSV_ZpLjets__267->GetZaxis()->SetTickLength(0.025);
   h_isojet1CSV_ZpLjets__267->GetZaxis()->SetTitleFont(42);
   h->Add(h_isojet1CSV_Z+jets,"");
   
   TH1D *h_isojet1CSV_WpLjets__268 = new TH1D("h_isojet1CSV_WpLjets__268","",10,0,1);
   h_isojet1CSV_WpLjets__268->SetBinContent(1,0.01060448);
   h_isojet1CSV_WpLjets__268->SetBinContent(2,0.01194981);
   h_isojet1CSV_WpLjets__268->SetBinContent(3,0.007295854);
   h_isojet1CSV_WpLjets__268->SetBinContent(4,0.004201536);
   h_isojet1CSV_WpLjets__268->SetBinContent(5,0.003315037);
   h_isojet1CSV_WpLjets__268->SetBinContent(6,0.002154035);
   h_isojet1CSV_WpLjets__268->SetBinContent(7,0.001704806);
   h_isojet1CSV_WpLjets__268->SetBinContent(8,0.001590696);
   h_isojet1CSV_WpLjets__268->SetBinContent(9,0.001506952);
   h_isojet1CSV_WpLjets__268->SetBinContent(10,0.00135957);
   h_isojet1CSV_WpLjets__268->SetBinError(1,0.0007760229);
   h_isojet1CSV_WpLjets__268->SetBinError(2,0.0008063374);
   h_isojet1CSV_WpLjets__268->SetBinError(3,0.0006567409);
   h_isojet1CSV_WpLjets__268->SetBinError(4,0.0005519722);
   h_isojet1CSV_WpLjets__268->SetBinError(5,0.0004860992);
   h_isojet1CSV_WpLjets__268->SetBinError(6,0.0003673486);
   h_isojet1CSV_WpLjets__268->SetBinError(7,0.0003806515);
   h_isojet1CSV_WpLjets__268->SetBinError(8,0.0003677212);
   h_isojet1CSV_WpLjets__268->SetBinError(9,0.0003252218);
   h_isojet1CSV_WpLjets__268->SetBinError(10,0.0002763251);
   h_isojet1CSV_WpLjets__268->SetEntries(3309);
   h_isojet1CSV_WpLjets__268->SetStats(0);

   ci = TColor::GetColor("#66cc66");
   h_isojet1CSV_WpLjets__268->SetFillColor(ci);
   h_isojet1CSV_WpLjets__268->GetXaxis()->SetTitle("isojet 1 CSV");
   h_isojet1CSV_WpLjets__268->GetXaxis()->SetLabelFont(42);
   h_isojet1CSV_WpLjets__268->GetXaxis()->SetLabelOffset(0.007);
   h_isojet1CSV_WpLjets__268->GetXaxis()->SetTitleSize(0.05);
   h_isojet1CSV_WpLjets__268->GetXaxis()->SetTickLength(0.025);
   h_isojet1CSV_WpLjets__268->GetXaxis()->SetTitleFont(42);
   h_isojet1CSV_WpLjets__268->GetYaxis()->SetTitle("a.u.");
   h_isojet1CSV_WpLjets__268->GetYaxis()->SetLabelFont(42);
   h_isojet1CSV_WpLjets__268->GetYaxis()->SetLabelOffset(0.007);
   h_isojet1CSV_WpLjets__268->GetYaxis()->SetTitleSize(0.05);
   h_isojet1CSV_WpLjets__268->GetYaxis()->SetTickLength(0.025);
   h_isojet1CSV_WpLjets__268->GetYaxis()->SetTitleFont(42);
   h_isojet1CSV_WpLjets__268->GetZaxis()->SetLabelFont(42);
   h_isojet1CSV_WpLjets__268->GetZaxis()->SetLabelOffset(0.007);
   h_isojet1CSV_WpLjets__268->GetZaxis()->SetTitleSize(0.05);
   h_isojet1CSV_WpLjets__268->GetZaxis()->SetTickLength(0.025);
   h_isojet1CSV_WpLjets__268->GetZaxis()->SetTitleFont(42);
   h->Add(h_isojet1CSV_W+jets,"");
   
   TH1D *h_isojet1CSV_TopsPoPLFcP__269 = new TH1D("h_isojet1CSV_TopsPoPLFcP__269","",10,0,1);
   h_isojet1CSV_TopsPoPLFcP__269->SetBinContent(1,0.09097508);
   h_isojet1CSV_TopsPoPLFcP__269->SetBinContent(2,0.09232326);
   h_isojet1CSV_TopsPoPLFcP__269->SetBinContent(3,0.04269338);
   h_isojet1CSV_TopsPoPLFcP__269->SetBinContent(4,0.02949662);
   h_isojet1CSV_TopsPoPLFcP__269->SetBinContent(5,0.02281892);
   h_isojet1CSV_TopsPoPLFcP__269->SetBinContent(6,0.01709603);
   h_isojet1CSV_TopsPoPLFcP__269->SetBinContent(7,0.01404044);
   h_isojet1CSV_TopsPoPLFcP__269->SetBinContent(8,0.009499499);
   h_isojet1CSV_TopsPoPLFcP__269->SetBinContent(9,0.006095059);
   h_isojet1CSV_TopsPoPLFcP__269->SetBinContent(10,0.003040849);
   h_isojet1CSV_TopsPoPLFcP__269->SetBinError(1,0.0009372855);
   h_isojet1CSV_TopsPoPLFcP__269->SetBinError(2,0.0009857636);
   h_isojet1CSV_TopsPoPLFcP__269->SetBinError(3,0.0007155424);
   h_isojet1CSV_TopsPoPLFcP__269->SetBinError(4,0.0005977933);
   h_isojet1CSV_TopsPoPLFcP__269->SetBinError(5,0.0005373378);
   h_isojet1CSV_TopsPoPLFcP__269->SetBinError(6,0.0004781073);
   h_isojet1CSV_TopsPoPLFcP__269->SetBinError(7,0.0004489056);
   h_isojet1CSV_TopsPoPLFcP__269->SetBinError(8,0.0003875753);
   h_isojet1CSV_TopsPoPLFcP__269->SetBinError(9,0.0003337873);
   h_isojet1CSV_TopsPoPLFcP__269->SetBinError(10,0.0003173281);
   h_isojet1CSV_TopsPoPLFcP__269->SetEntries(45754);
   h_isojet1CSV_TopsPoPLFcP__269->SetStats(0);

   ci = TColor::GetColor("#cc33cc");
   h_isojet1CSV_TopsPoPLFcP__269->SetFillColor(ci);
   h_isojet1CSV_TopsPoPLFcP__269->GetXaxis()->SetTitle("isojet 1 CSV");
   h_isojet1CSV_TopsPoPLFcP__269->GetXaxis()->SetLabelFont(42);
   h_isojet1CSV_TopsPoPLFcP__269->GetXaxis()->SetLabelOffset(0.007);
   h_isojet1CSV_TopsPoPLFcP__269->GetXaxis()->SetTitleSize(0.05);
   h_isojet1CSV_TopsPoPLFcP__269->GetXaxis()->SetTickLength(0.025);
   h_isojet1CSV_TopsPoPLFcP__269->GetXaxis()->SetTitleFont(42);
   h_isojet1CSV_TopsPoPLFcP__269->GetYaxis()->SetTitle("a.u.");
   h_isojet1CSV_TopsPoPLFcP__269->GetYaxis()->SetLabelFont(42);
   h_isojet1CSV_TopsPoPLFcP__269->GetYaxis()->SetLabelOffset(0.007);
   h_isojet1CSV_TopsPoPLFcP__269->GetYaxis()->SetTitleSize(0.05);
   h_isojet1CSV_TopsPoPLFcP__269->GetYaxis()->SetTickLength(0.025);
   h_isojet1CSV_TopsPoPLFcP__269->GetYaxis()->SetTitleFont(42);
   h_isojet1CSV_TopsPoPLFcP__269->GetZaxis()->SetLabelFont(42);
   h_isojet1CSV_TopsPoPLFcP__269->GetZaxis()->SetLabelOffset(0.007);
   h_isojet1CSV_TopsPoPLFcP__269->GetZaxis()->SetTitleSize(0.05);
   h_isojet1CSV_TopsPoPLFcP__269->GetZaxis()->SetTickLength(0.025);
   h_isojet1CSV_TopsPoPLFcP__269->GetZaxis()->SetTitleFont(42);
   h->Add(h_isojet1CSV_Top (LF),"");
   
   TH1D *h_isojet1CSV_TopsPoPHFcP__270 = new TH1D("h_isojet1CSV_TopsPoPHFcP__270","",10,0,1);
   h_isojet1CSV_TopsPoPHFcP__270->SetBinContent(1,0.01878166);
   h_isojet1CSV_TopsPoPHFcP__270->SetBinContent(2,0.02708098);
   h_isojet1CSV_TopsPoPHFcP__270->SetBinContent(3,0.01896531);
   h_isojet1CSV_TopsPoPHFcP__270->SetBinContent(4,0.01870601);
   h_isojet1CSV_TopsPoPHFcP__270->SetBinContent(5,0.01924485);
   h_isojet1CSV_TopsPoPHFcP__270->SetBinContent(6,0.02077131);
   h_isojet1CSV_TopsPoPHFcP__270->SetBinContent(7,0.02899544);
   h_isojet1CSV_TopsPoPHFcP__270->SetBinContent(8,0.03698897);
   h_isojet1CSV_TopsPoPHFcP__270->SetBinContent(9,0.07325594);
   h_isojet1CSV_TopsPoPHFcP__270->SetBinContent(10,0.2676551);
   h_isojet1CSV_TopsPoPHFcP__270->SetBinError(1,0.0004640739);
   h_isojet1CSV_TopsPoPHFcP__270->SetBinError(2,0.0005643558);
   h_isojet1CSV_TopsPoPHFcP__270->SetBinError(3,0.0004957084);
   h_isojet1CSV_TopsPoPHFcP__270->SetBinError(4,0.0004766015);
   h_isojet1CSV_TopsPoPHFcP__270->SetBinError(5,0.0004665302);
   h_isojet1CSV_TopsPoPHFcP__270->SetBinError(6,0.0005070097);
   h_isojet1CSV_TopsPoPHFcP__270->SetBinError(7,0.0006476121);
   h_isojet1CSV_TopsPoPHFcP__270->SetBinError(8,0.0007056579);
   h_isojet1CSV_TopsPoPHFcP__270->SetBinError(9,0.0009826258);
   h_isojet1CSV_TopsPoPHFcP__270->SetBinError(10,0.001744809);
   h_isojet1CSV_TopsPoPHFcP__270->SetEntries(77950);
   h_isojet1CSV_TopsPoPHFcP__270->SetStats(0);

   ci = TColor::GetColor("#ff9900");
   h_isojet1CSV_TopsPoPHFcP__270->SetFillColor(ci);
   h_isojet1CSV_TopsPoPHFcP__270->GetXaxis()->SetTitle("isojet 1 CSV");
   h_isojet1CSV_TopsPoPHFcP__270->GetXaxis()->SetLabelFont(42);
   h_isojet1CSV_TopsPoPHFcP__270->GetXaxis()->SetLabelOffset(0.007);
   h_isojet1CSV_TopsPoPHFcP__270->GetXaxis()->SetTitleSize(0.05);
   h_isojet1CSV_TopsPoPHFcP__270->GetXaxis()->SetTickLength(0.025);
   h_isojet1CSV_TopsPoPHFcP__270->GetXaxis()->SetTitleFont(42);
   h_isojet1CSV_TopsPoPHFcP__270->GetYaxis()->SetTitle("a.u.");
   h_isojet1CSV_TopsPoPHFcP__270->GetYaxis()->SetLabelFont(42);
   h_isojet1CSV_TopsPoPHFcP__270->GetYaxis()->SetLabelOffset(0.007);
   h_isojet1CSV_TopsPoPHFcP__270->GetYaxis()->SetTitleSize(0.05);
   h_isojet1CSV_TopsPoPHFcP__270->GetYaxis()->SetTickLength(0.025);
   h_isojet1CSV_TopsPoPHFcP__270->GetYaxis()->SetTitleFont(42);
   h_isojet1CSV_TopsPoPHFcP__270->GetZaxis()->SetLabelFont(42);
   h_isojet1CSV_TopsPoPHFcP__270->GetZaxis()->SetLabelOffset(0.007);
   h_isojet1CSV_TopsPoPHFcP__270->GetZaxis()->SetTitleSize(0.05);
   h_isojet1CSV_TopsPoPHFcP__270->GetZaxis()->SetTickLength(0.025);
   h_isojet1CSV_TopsPoPHFcP__270->GetZaxis()->SetTitleFont(42);
   h->Add(h_isojet1CSV_Top (HF),"");
   h->Draw("hist");
   
   TH1D *hsum__271 = new TH1D("hsum__271","",10,0,1);
   hsum__271->SetBinContent(1,0.1393796);
   hsum__271->SetBinContent(2,0.1586681);
   hsum__271->SetBinContent(3,0.08197864);
   hsum__271->SetBinContent(4,0.06142623);
   hsum__271->SetBinContent(5,0.05359128);
   hsum__271->SetBinContent(6,0.0447599);
   hsum__271->SetBinContent(7,0.04846618);
   hsum__271->SetBinContent(8,0.05074524);
   hsum__271->SetBinContent(9,0.082468);
   hsum__271->SetBinContent(10,0.2785168);
   hsum__271->SetBinError(1,0.002288647);
   hsum__271->SetBinError(2,0.002167196);
   hsum__271->SetBinError(3,0.001617233);
   hsum__271->SetBinError(4,0.001528597);
   hsum__271->SetBinError(5,0.001538373);
   hsum__271->SetBinError(6,0.001141764);
   hsum__271->SetBinError(7,0.001103813);
   hsum__271->SetBinError(8,0.001058293);
   hsum__271->SetBinError(9,0.001107265);
   hsum__271->SetBinError(10,0.002872657);
   hsum__271->SetEntries(45);
   hsum__271->SetStats(0);

   ci = 1202;
   color = new TColor(ci, 0, 0, 0, " ", 0.99);
   hsum__271->SetFillColor(ci);
   hsum__271->SetFillStyle(3003);
   hsum__271->SetLineWidth(0);
   hsum__271->GetXaxis()->SetTitle("isojet 1 CSV");
   hsum__271->GetXaxis()->SetLabelFont(42);
   hsum__271->GetXaxis()->SetLabelOffset(0.007);
   hsum__271->GetXaxis()->SetTitleSize(0.05);
   hsum__271->GetXaxis()->SetTickLength(0.025);
   hsum__271->GetXaxis()->SetTitleFont(42);
   hsum__271->GetYaxis()->SetTitle("a.u.");
   hsum__271->GetYaxis()->SetLabelFont(42);
   hsum__271->GetYaxis()->SetLabelOffset(0.007);
   hsum__271->GetYaxis()->SetTitleSize(0.05);
   hsum__271->GetYaxis()->SetTickLength(0.025);
   hsum__271->GetYaxis()->SetTitleFont(42);
   hsum__271->GetZaxis()->SetLabelFont(42);
   hsum__271->GetZaxis()->SetLabelOffset(0.007);
   hsum__271->GetZaxis()->SetTitleSize(0.05);
   hsum__271->GetZaxis()->SetTickLength(0.025);
   hsum__271->GetZaxis()->SetTitleFont(42);
   hsum__271->Draw("e2 same");
   
   TH1D *h_isojet1CSV_Data__272 = new TH1D("h_isojet1CSV_Data__272","",10,0,1);
   h_isojet1CSV_Data__272->SetBinContent(1,0.138368);
   h_isojet1CSV_Data__272->SetBinContent(2,0.1592858);
   h_isojet1CSV_Data__272->SetBinContent(3,0.08381231);
   h_isojet1CSV_Data__272->SetBinContent(4,0.06152831);
   h_isojet1CSV_Data__272->SetBinContent(5,0.05196457);
   h_isojet1CSV_Data__272->SetBinContent(6,0.04475643);
   h_isojet1CSV_Data__272->SetBinContent(7,0.04833695);
   h_isojet1CSV_Data__272->SetBinContent(8,0.05059832);
   h_isojet1CSV_Data__272->SetBinContent(9,0.08235183);
   h_isojet1CSV_Data__272->SetBinContent(10,0.2789975);
   h_isojet1CSV_Data__272->SetBinError(1,0.002553194);
   h_isojet1CSV_Data__272->SetBinError(2,0.002739394);
   h_isojet1CSV_Data__272->SetBinError(3,0.0019871);
   h_isojet1CSV_Data__272->SetBinError(4,0.001702564);
   h_isojet1CSV_Data__272->SetBinError(5,0.001564659);
   h_isojet1CSV_Data__272->SetBinError(6,0.00145209);
   h_isojet1CSV_Data__272->SetBinError(7,0.001509057);
   h_isojet1CSV_Data__272->SetBinError(8,0.001543953);
   h_isojet1CSV_Data__272->SetBinError(9,0.001969711);
   h_isojet1CSV_Data__272->SetBinError(10,0.003625484);
   h_isojet1CSV_Data__272->SetEntries(21226);
   h_isojet1CSV_Data__272->SetStats(0);
   h_isojet1CSV_Data__272->SetLineWidth(3);
   h_isojet1CSV_Data__272->SetMarkerStyle(20);
   h_isojet1CSV_Data__272->SetMarkerSize(2);
   h_isojet1CSV_Data__272->GetXaxis()->SetTitle("isojet 1 CSV");
   h_isojet1CSV_Data__272->GetXaxis()->SetLabelFont(42);
   h_isojet1CSV_Data__272->GetXaxis()->SetLabelOffset(0.007);
   h_isojet1CSV_Data__272->GetXaxis()->SetTitleSize(0.05);
   h_isojet1CSV_Data__272->GetXaxis()->SetTickLength(0.025);
   h_isojet1CSV_Data__272->GetXaxis()->SetTitleFont(42);
   h_isojet1CSV_Data__272->GetYaxis()->SetTitle("a.u.");
   h_isojet1CSV_Data__272->GetYaxis()->SetLabelFont(42);
   h_isojet1CSV_Data__272->GetYaxis()->SetLabelOffset(0.007);
   h_isojet1CSV_Data__272->GetYaxis()->SetTitleSize(0.05);
   h_isojet1CSV_Data__272->GetYaxis()->SetTickLength(0.025);
   h_isojet1CSV_Data__272->GetYaxis()->SetTitleFont(42);
   h_isojet1CSV_Data__272->GetZaxis()->SetLabelFont(42);
   h_isojet1CSV_Data__272->GetZaxis()->SetLabelOffset(0.007);
   h_isojet1CSV_Data__272->GetZaxis()->SetTitleSize(0.05);
   h_isojet1CSV_Data__272->GetZaxis()->SetTickLength(0.025);
   h_isojet1CSV_Data__272->GetZaxis()->SetTitleFont(42);
   h_isojet1CSV_Data__272->Draw("elp same");
   
   TLegend *leg = new TLegend(0.6,0.55,0.88,0.9,NULL,"brNDC");
   leg->SetBorderSize(0);
   leg->SetLineColor(1);
   leg->SetLineStyle(1);
   leg->SetLineWidth(1);
   leg->SetFillColor(0);
   leg->SetFillStyle(0);
   TLegendEntry *entry=leg->AddEntry("h_isojet1CSV_Data","Data","ELP");
   entry->SetLineColor(1);
   entry->SetLineStyle(1);
   entry->SetLineWidth(3);
   entry->SetMarkerColor(1);
   entry->SetMarkerStyle(20);
   entry->SetMarkerSize(2);
   entry->SetTextFont(42);
   entry=leg->AddEntry("h_isojet1CSV_Top (HF)","Top (HF)","F");

   ci = TColor::GetColor("#ff9900");
   entry->SetFillColor(ci);
   entry->SetFillStyle(1001);
   entry->SetLineColor(1);
   entry->SetLineStyle(1);
   entry->SetLineWidth(1);
   entry->SetMarkerColor(1);
   entry->SetMarkerStyle(21);
   entry->SetMarkerSize(1);
   entry->SetTextFont(42);
   entry=leg->AddEntry("h_isojet1CSV_Top (LF)","Top (LF)","F");

   ci = TColor::GetColor("#cc33cc");
   entry->SetFillColor(ci);
   entry->SetFillStyle(1001);
   entry->SetLineColor(1);
   entry->SetLineStyle(1);
   entry->SetLineWidth(1);
   entry->SetMarkerColor(1);
   entry->SetMarkerStyle(21);
   entry->SetMarkerSize(1);
   entry->SetTextFont(42);
   entry=leg->AddEntry("h_isojet1CSV_W+jets","W+jets","F");

   ci = TColor::GetColor("#66cc66");
   entry->SetFillColor(ci);
   entry->SetFillStyle(1001);
   entry->SetLineColor(1);
   entry->SetLineStyle(1);
   entry->SetLineWidth(1);
   entry->SetMarkerColor(1);
   entry->SetMarkerStyle(21);
   entry->SetMarkerSize(1);
   entry->SetTextFont(42);
   entry=leg->AddEntry("h_isojet1CSV_Z+jets","Z+jets","F");

   ci = TColor::GetColor("#3399cc");
   entry->SetFillColor(ci);
   entry->SetFillStyle(1001);
   entry->SetLineColor(1);
   entry->SetLineStyle(1);
   entry->SetLineWidth(1);
   entry->SetMarkerColor(1);
   entry->SetMarkerStyle(21);
   entry->SetMarkerSize(1);
   entry->SetTextFont(42);
   entry=leg->AddEntry("h_isojet1CSV_Diboson","Diboson","F");

   ci = TColor::GetColor("#9966cc");
   entry->SetFillColor(ci);
   entry->SetFillStyle(1001);
   entry->SetLineColor(1);
   entry->SetLineStyle(1);
   entry->SetLineWidth(1);
   entry->SetMarkerColor(1);
   entry->SetMarkerStyle(21);
   entry->SetMarkerSize(1);
   entry->SetTextFont(42);
   entry=leg->AddEntry("h_isojet1CSV_QCD","QCD","F");

   ci = TColor::GetColor("#cccccc");
   entry->SetFillColor(ci);
   entry->SetFillStyle(1001);
   entry->SetLineColor(1);
   entry->SetLineStyle(1);
   entry->SetLineWidth(1);
   entry->SetMarkerColor(1);
   entry->SetMarkerStyle(21);
   entry->SetMarkerSize(1);
   entry->SetTextFont(42);
   leg->Draw();
   
   leg = new TLegend(0.6,0.55,0.88,0.9,NULL,"brNDC");
   leg->SetBorderSize(0);
   leg->SetLineColor(1);
   leg->SetLineStyle(1);
   leg->SetLineWidth(1);
   leg->SetFillColor(0);
   leg->SetFillStyle(0);
   entry=leg->AddEntry("h_isojet1CSV_Data","Data","ELP");
   entry->SetLineColor(1);
   entry->SetLineStyle(1);
   entry->SetLineWidth(3);
   entry->SetMarkerColor(1);
   entry->SetMarkerStyle(20);
   entry->SetMarkerSize(2);
   entry->SetTextFont(42);
   entry=leg->AddEntry("h_isojet1CSV_Top (HF)","Top (HF)","F");

   ci = TColor::GetColor("#ff9900");
   entry->SetFillColor(ci);
   entry->SetFillStyle(1001);
   entry->SetLineColor(1);
   entry->SetLineStyle(1);
   entry->SetLineWidth(1);
   entry->SetMarkerColor(1);
   entry->SetMarkerStyle(21);
   entry->SetMarkerSize(1);
   entry->SetTextFont(42);
   entry=leg->AddEntry("h_isojet1CSV_Top (LF)","Top (LF)","F");

   ci = TColor::GetColor("#cc33cc");
   entry->SetFillColor(ci);
   entry->SetFillStyle(1001);
   entry->SetLineColor(1);
   entry->SetLineStyle(1);
   entry->SetLineWidth(1);
   entry->SetMarkerColor(1);
   entry->SetMarkerStyle(21);
   entry->SetMarkerSize(1);
   entry->SetTextFont(42);
   entry=leg->AddEntry("h_isojet1CSV_W+jets","W+jets","F");

   ci = TColor::GetColor("#66cc66");
   entry->SetFillColor(ci);
   entry->SetFillStyle(1001);
   entry->SetLineColor(1);
   entry->SetLineStyle(1);
   entry->SetLineWidth(1);
   entry->SetMarkerColor(1);
   entry->SetMarkerStyle(21);
   entry->SetMarkerSize(1);
   entry->SetTextFont(42);
   entry=leg->AddEntry("h_isojet1CSV_Z+jets","Z+jets","F");

   ci = TColor::GetColor("#3399cc");
   entry->SetFillColor(ci);
   entry->SetFillStyle(1001);
   entry->SetLineColor(1);
   entry->SetLineStyle(1);
   entry->SetLineWidth(1);
   entry->SetMarkerColor(1);
   entry->SetMarkerStyle(21);
   entry->SetMarkerSize(1);
   entry->SetTextFont(42);
   entry=leg->AddEntry("h_isojet1CSV_Diboson","Diboson","F");

   ci = TColor::GetColor("#9966cc");
   entry->SetFillColor(ci);
   entry->SetFillStyle(1001);
   entry->SetLineColor(1);
   entry->SetLineStyle(1);
   entry->SetLineWidth(1);
   entry->SetMarkerColor(1);
   entry->SetMarkerStyle(21);
   entry->SetMarkerSize(1);
   entry->SetTextFont(42);
   entry=leg->AddEntry("h_isojet1CSV_QCD","QCD","F");

   ci = TColor::GetColor("#cccccc");
   entry->SetFillColor(ci);
   entry->SetFillStyle(1001);
   entry->SetLineColor(1);
   entry->SetLineStyle(1);
   entry->SetLineWidth(1);
   entry->SetMarkerColor(1);
   entry->SetMarkerStyle(21);
   entry->SetMarkerSize(1);
   entry->SetTextFont(42);
   leg->Draw();
   TLatex *   tex = new TLatex(0.18,0.85,"CMS");
tex->SetNDC();
   tex->SetTextSize(0.06);
   tex->SetLineWidth(2);
   tex->Draw();
      tex = new TLatex(0.28,0.85,"Preliminary");
tex->SetNDC();
   tex->SetTextFont(52);
   tex->SetTextSize(0.06);
   tex->SetLineWidth(2);
   tex->Draw();
      tex = new TLatex(0.9,0.94,"36.6 fb^{-1} (13 TeV)");
tex->SetNDC();
   tex->SetTextAlign(31);
   tex->SetTextFont(42);
   tex->SetTextSize(0.04);
   tex->SetLineWidth(2);
   tex->Draw();
   pad1->Modified();
   c1->cd();
  
// ------------>Primitives in pad: pad2
   TPad *pad2 = new TPad("pad2", "pad2",0,0.05,1,0.3);
   pad2->Draw();
   pad2->cd();
   pad2->Range(-0.1875,-0.8914286,1.0625,0.48);
   pad2->SetFillColor(0);
   pad2->SetBorderMode(0);
   pad2->SetBorderSize(2);
   pad2->SetGridy();
   pad2->SetTickx(1);
   pad2->SetTicky(1);
   pad2->SetLeftMargin(0.15);
   pad2->SetRightMargin(0.05);
   pad2->SetTopMargin(0);
   pad2->SetBottomMargin(0.3);
   pad2->SetFrameFillStyle(0);
   pad2->SetFrameBorderMode(0);
   pad2->SetFrameFillStyle(0);
   pad2->SetFrameBorderMode(0);
   
   TH1D *ratio__273 = new TH1D("ratio__273","",10,0,1);
   ratio__273->SetBinContent(1,-0.00725764);
   ratio__273->SetBinContent(2,0.003892779);
   ratio__273->SetBinContent(3,0.0223676);
   ratio__273->SetBinContent(4,0.001661897);
   ratio__273->SetBinContent(5,-0.0303539);
   ratio__273->SetBinContent(6,-7.754564e-05);
   ratio__273->SetBinContent(7,-0.002666473);
   ratio__273->SetBinContent(8,-0.002895236);
   ratio__273->SetBinContent(9,-0.001408637);
   ratio__273->SetBinContent(10,0.001725793);
   ratio__273->SetBinError(1,0.0001);
   ratio__273->SetBinError(2,0.0001);
   ratio__273->SetBinError(3,0.0001);
   ratio__273->SetBinError(4,0.0001);
   ratio__273->SetBinError(5,0.0001);
   ratio__273->SetBinError(6,0.0001);
   ratio__273->SetBinError(7,0.0001);
   ratio__273->SetBinError(8,0.0001);
   ratio__273->SetBinError(9,0.0001);
   ratio__273->SetBinError(10,0.0001);
   ratio__273->SetMinimum(-0.48);
   ratio__273->SetMaximum(0.48);
   ratio__273->SetEntries(21236);
   ratio__273->SetStats(0);
   ratio__273->SetLineWidth(3);
   ratio__273->SetMarkerStyle(20);
   ratio__273->SetMarkerSize(2);
   ratio__273->GetXaxis()->SetTitle("isojet 1 CSV");
   ratio__273->GetXaxis()->SetLabelFont(43);
   ratio__273->GetXaxis()->SetLabelOffset(0.007);
   ratio__273->GetXaxis()->SetLabelSize(30);
   ratio__273->GetXaxis()->SetTitleSize(40);
   ratio__273->GetXaxis()->SetTickLength(0.025);
   ratio__273->GetXaxis()->SetTitleOffset(5);
   ratio__273->GetXaxis()->SetTitleFont(43);
   ratio__273->GetYaxis()->SetTitle("#frac{Data-Exp}{Exp}");
   ratio__273->GetYaxis()->SetNdivisions(5);
   ratio__273->GetYaxis()->SetLabelFont(43);
   ratio__273->GetYaxis()->SetLabelOffset(0.007);
   ratio__273->GetYaxis()->SetLabelSize(30);
   ratio__273->GetYaxis()->SetTitleSize(40);
   ratio__273->GetYaxis()->SetTickLength(0.025);
   ratio__273->GetYaxis()->SetTitleOffset(2.5);
   ratio__273->GetYaxis()->SetTitleFont(43);
   ratio__273->GetZaxis()->SetLabelFont(42);
   ratio__273->GetZaxis()->SetLabelOffset(0.007);
   ratio__273->GetZaxis()->SetTitleSize(0.05);
   ratio__273->GetZaxis()->SetTickLength(0.025);
   ratio__273->GetZaxis()->SetTitleFont(42);
   ratio__273->Draw("elp");
   
   TH1D *zero__274 = new TH1D("zero__274","",10,0,1);
   zero__274->SetBinError(1,0.002553194);
   zero__274->SetBinError(2,0.002739394);
   zero__274->SetBinError(3,0.0019871);
   zero__274->SetBinError(4,0.001702564);
   zero__274->SetBinError(5,0.001564659);
   zero__274->SetBinError(6,0.00145209);
   zero__274->SetBinError(7,0.001509057);
   zero__274->SetBinError(8,0.001543953);
   zero__274->SetBinError(9,0.001969711);
   zero__274->SetBinError(10,0.003625484);
   zero__274->SetEntries(21236);
   zero__274->SetStats(0);
   zero__274->SetLineWidth(3);
   zero__274->SetMarkerStyle(20);
   zero__274->SetMarkerSize(2);
   zero__274->GetXaxis()->SetTitle("isojet 1 CSV");
   zero__274->GetXaxis()->SetLabelFont(42);
   zero__274->GetXaxis()->SetLabelOffset(0.007);
   zero__274->GetXaxis()->SetTitleSize(0.05);
   zero__274->GetXaxis()->SetTickLength(0.025);
   zero__274->GetXaxis()->SetTitleFont(42);
   zero__274->GetYaxis()->SetTitle("a.u.");
   zero__274->GetYaxis()->SetLabelFont(42);
   zero__274->GetYaxis()->SetLabelOffset(0.007);
   zero__274->GetYaxis()->SetTitleSize(0.05);
   zero__274->GetYaxis()->SetTickLength(0.025);
   zero__274->GetYaxis()->SetTitleFont(42);
   zero__274->GetZaxis()->SetLabelFont(42);
   zero__274->GetZaxis()->SetLabelOffset(0.007);
   zero__274->GetZaxis()->SetTitleSize(0.05);
   zero__274->GetZaxis()->SetTickLength(0.025);
   zero__274->GetZaxis()->SetTitleFont(42);
   zero__274->Draw("hist same");
   
   TH1D *sumratioup__275 = new TH1D("sumratioup__275","",10,0,1);
   sumratioup__275->SetBinContent(1,0.01642024);
   sumratioup__275->SetBinContent(2,0.01365867);
   sumratioup__275->SetBinContent(3,0.01972749);
   sumratioup__275->SetBinContent(4,0.02488509);
   sumratioup__275->SetBinContent(5,0.02870566);
   sumratioup__275->SetBinContent(6,0.02550863);
   sumratioup__275->SetBinContent(7,0.02277492);
   sumratioup__275->SetBinContent(8,0.02085501);
   sumratioup__275->SetBinContent(9,0.01342661);
   sumratioup__275->SetBinContent(10,0.01031412);
   sumratioup__275->SetBinError(1,0.002288647);
   sumratioup__275->SetBinError(2,0.002167196);
   sumratioup__275->SetBinError(3,0.001617233);
   sumratioup__275->SetBinError(4,0.001528597);
   sumratioup__275->SetBinError(5,0.001538373);
   sumratioup__275->SetBinError(6,0.001141764);
   sumratioup__275->SetBinError(7,0.001103813);
   sumratioup__275->SetBinError(8,0.001058293);
   sumratioup__275->SetBinError(9,0.001107265);
   sumratioup__275->SetBinError(10,0.002872657);
   sumratioup__275->SetEntries(55);
   sumratioup__275->SetStats(0);

   ci = 1202;
   color = new TColor(ci, 0, 0, 0, " ", 0.99);
   sumratioup__275->SetFillColor(ci);
   sumratioup__275->SetFillStyle(3003);
   sumratioup__275->GetXaxis()->SetTitle("isojet 1 CSV");
   sumratioup__275->GetXaxis()->SetLabelFont(42);
   sumratioup__275->GetXaxis()->SetLabelOffset(0.007);
   sumratioup__275->GetXaxis()->SetTitleSize(0.05);
   sumratioup__275->GetXaxis()->SetTickLength(0.025);
   sumratioup__275->GetXaxis()->SetTitleFont(42);
   sumratioup__275->GetYaxis()->SetTitle("a.u.");
   sumratioup__275->GetYaxis()->SetLabelFont(42);
   sumratioup__275->GetYaxis()->SetLabelOffset(0.007);
   sumratioup__275->GetYaxis()->SetTitleSize(0.05);
   sumratioup__275->GetYaxis()->SetTickLength(0.025);
   sumratioup__275->GetYaxis()->SetTitleFont(42);
   sumratioup__275->GetZaxis()->SetLabelFont(42);
   sumratioup__275->GetZaxis()->SetLabelOffset(0.007);
   sumratioup__275->GetZaxis()->SetTitleSize(0.05);
   sumratioup__275->GetZaxis()->SetTickLength(0.025);
   sumratioup__275->GetZaxis()->SetTitleFont(42);
   sumratioup__275->Draw("hist same");
   
   TH1D *sumratiodown__276 = new TH1D("sumratiodown__276","",10,0,1);
   sumratiodown__276->SetBinContent(1,-0.01642024);
   sumratiodown__276->SetBinContent(2,-0.01365867);
   sumratiodown__276->SetBinContent(3,-0.01972749);
   sumratiodown__276->SetBinContent(4,-0.02488509);
   sumratiodown__276->SetBinContent(5,-0.02870566);
   sumratiodown__276->SetBinContent(6,-0.02550863);
   sumratiodown__276->SetBinContent(7,-0.02277492);
   sumratiodown__276->SetBinContent(8,-0.02085501);
   sumratiodown__276->SetBinContent(9,-0.01342661);
   sumratiodown__276->SetBinContent(10,-0.01031412);
   sumratiodown__276->SetBinError(1,0.002288647);
   sumratiodown__276->SetBinError(2,0.002167196);
   sumratiodown__276->SetBinError(3,0.001617233);
   sumratiodown__276->SetBinError(4,0.001528597);
   sumratiodown__276->SetBinError(5,0.001538373);
   sumratiodown__276->SetBinError(6,0.001141764);
   sumratiodown__276->SetBinError(7,0.001103813);
   sumratiodown__276->SetBinError(8,0.001058293);
   sumratiodown__276->SetBinError(9,0.001107265);
   sumratiodown__276->SetBinError(10,0.002872657);
   sumratiodown__276->SetEntries(55);
   sumratiodown__276->SetStats(0);

   ci = 1202;
   color = new TColor(ci, 0, 0, 0, " ", 0.99);
   sumratiodown__276->SetFillColor(ci);
   sumratiodown__276->SetFillStyle(3003);
   sumratiodown__276->GetXaxis()->SetTitle("isojet 1 CSV");
   sumratiodown__276->GetXaxis()->SetLabelFont(42);
   sumratiodown__276->GetXaxis()->SetLabelOffset(0.007);
   sumratiodown__276->GetXaxis()->SetTitleSize(0.05);
   sumratiodown__276->GetXaxis()->SetTickLength(0.025);
   sumratiodown__276->GetXaxis()->SetTitleFont(42);
   sumratiodown__276->GetYaxis()->SetTitle("a.u.");
   sumratiodown__276->GetYaxis()->SetLabelFont(42);
   sumratiodown__276->GetYaxis()->SetLabelOffset(0.007);
   sumratiodown__276->GetYaxis()->SetTitleSize(0.05);
   sumratiodown__276->GetYaxis()->SetTickLength(0.025);
   sumratiodown__276->GetYaxis()->SetTitleFont(42);
   sumratiodown__276->GetZaxis()->SetLabelFont(42);
   sumratiodown__276->GetZaxis()->SetLabelOffset(0.007);
   sumratiodown__276->GetZaxis()->SetTitleSize(0.05);
   sumratiodown__276->GetZaxis()->SetTickLength(0.025);
   sumratiodown__276->GetZaxis()->SetTitleFont(42);
   sumratiodown__276->Draw("hist same");
   
   Double_t Graph0_fx1023[10] = {
   0.05,
   0.15,
   0.25,
   0.35,
   0.45,
   0.55,
   0.65,
   0.75,
   0.85,
   0.95};
   Double_t Graph0_fy1023[10] = {
   -0.00725764,
   0.003892779,
   0.0223676,
   0.001661897,
   -0.0303539,
   -7.754564e-05,
   -0.002666473,
   -0.002895236,
   -0.001408637,
   0.001725793};
   Double_t Graph0_fex1023[10] = {
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0};
   Double_t Graph0_fey1023[10] = {
   0.01831827,
   0.01726493,
   0.02423924,
   0.02771721,
   0.02919614,
   0.03244177,
   0.03113628,
   0.03042557,
   0.02388455,
   0.01301711};
   TGraphErrors *gre = new TGraphErrors(10,Graph0_fx1023,Graph0_fy1023,Graph0_fex1023,Graph0_fey1023);
   gre->SetName("Graph0");
   gre->SetTitle("Graph");
   gre->SetFillColor(1);
   gre->SetLineWidth(3);
   
   TH1F *Graph_Graph1023 = new TH1F("Graph_Graph1023","Graph",100,0,1.04);
   Graph_Graph1023->SetMinimum(-0.07016574);
   Graph_Graph1023->SetMaximum(0.05722253);
   Graph_Graph1023->SetDirectory(0);
   Graph_Graph1023->SetStats(0);

   ci = TColor::GetColor("#000099");
   Graph_Graph1023->SetLineColor(ci);
   Graph_Graph1023->GetXaxis()->SetLabelFont(42);
   Graph_Graph1023->GetXaxis()->SetLabelOffset(0.007);
   Graph_Graph1023->GetXaxis()->SetTitleSize(0.05);
   Graph_Graph1023->GetXaxis()->SetTickLength(0.025);
   Graph_Graph1023->GetXaxis()->SetTitleFont(42);
   Graph_Graph1023->GetYaxis()->SetLabelFont(42);
   Graph_Graph1023->GetYaxis()->SetLabelOffset(0.007);
   Graph_Graph1023->GetYaxis()->SetTitleSize(0.05);
   Graph_Graph1023->GetYaxis()->SetTickLength(0.025);
   Graph_Graph1023->GetYaxis()->SetTitleFont(42);
   Graph_Graph1023->GetZaxis()->SetLabelFont(42);
   Graph_Graph1023->GetZaxis()->SetLabelOffset(0.007);
   Graph_Graph1023->GetZaxis()->SetTitleSize(0.05);
   Graph_Graph1023->GetZaxis()->SetTickLength(0.025);
   Graph_Graph1023->GetZaxis()->SetTitleFont(42);
   gre->SetHistogram(Graph_Graph1023);
   
   gre->Draw("pe0");
   pad2->Modified();
   c1->cd();
   c1->Modified();
   c1->cd();
   c1->SetSelected(c1);
}
void paraPull_alpha_FT_EFF_Eigen_Light_3_2TeV_2Lep_plots_All()
{
//=========Macro generated from canvas: c1/alpha_FT_EFF_Eigen_Light_3
//=========  (Sun Nov 22 20:18:27 2015) by ROOT version6.02/12
   TCanvas *c1 = new TCanvas("c1", "alpha_FT_EFF_Eigen_Light_3",0,22,1000,600);
   gStyle->SetOptStat(0);
   c1->Range(-4.125,-0.9750185,37.125,1.047039);
   c1->SetFillColor(0);
   c1->SetBorderMode(0);
   c1->SetBorderSize(2);
   c1->SetGridx();
   c1->SetGridy();
   c1->SetFrameBorderMode(0);
   c1->SetFrameBorderMode(0);
   
   TH1F *NuisanceParameterFreed21 = new TH1F("NuisanceParameterFreed21","alpha_FT_EFF_Eigen_Light_3",33,0,33);
   NuisanceParameterFreed21->SetMinimum(-0.7728128);
   NuisanceParameterFreed21->SetMaximum(0.844833);
   NuisanceParameterFreed21->SetStats(0);

   Int_t ci;      // for color index setting
   TColor *color; // for color definition with alpha
   ci = TColor::GetColor("#000099");
   NuisanceParameterFreed21->SetLineColor(ci);
   NuisanceParameterFreed21->GetXaxis()->SetBinLabel(1,"XS_ttbar");
   NuisanceParameterFreed21->GetXaxis()->SetBinLabel(2,"EG_SCALE_ALL");
   NuisanceParameterFreed21->GetXaxis()->SetBinLabel(3,"FT_EFF_Eigen_C_0");
   NuisanceParameterFreed21->GetXaxis()->SetBinLabel(4,"Luminosity");
   NuisanceParameterFreed21->GetXaxis()->SetBinLabel(5,"XS_st");
   NuisanceParameterFreed21->GetXaxis()->SetBinLabel(6,"FT_EFF_Eigen_B_1");
   NuisanceParameterFreed21->GetXaxis()->SetBinLabel(7,"XS_Zc");
   NuisanceParameterFreed21->GetXaxis()->SetBinLabel(8,"MUONS_ID");
   NuisanceParameterFreed21->GetXaxis()->SetBinLabel(9,"FT_EFF_Eigen_C_1");
   NuisanceParameterFreed21->GetXaxis()->SetBinLabel(10,"FT_EFF_Eigen_C_3");
   NuisanceParameterFreed21->GetXaxis()->SetBinLabel(11,"MUON_EFF_TrigSystUncertainty");
   NuisanceParameterFreed21->GetXaxis()->SetBinLabel(12,"XS_Zl");
   NuisanceParameterFreed21->GetXaxis()->SetBinLabel(13,"EL_EFF_ID_TotalCorrUncertainty");
   NuisanceParameterFreed21->GetXaxis()->SetBinLabel(14,"FT_EFF_Eigen_B_0");
   NuisanceParameterFreed21->GetXaxis()->SetBinLabel(15,"FT_EFF_Eigen_B_2");
   NuisanceParameterFreed21->GetXaxis()->SetBinLabel(16,"EL_EFF_Iso_TotalCorrUncertainty");
   NuisanceParameterFreed21->GetXaxis()->SetBinLabel(17,"EL_EFF_Reco_TotalCorrUncertainty");
   NuisanceParameterFreed21->GetXaxis()->SetBinLabel(18,"MUONS_SCALE");
   NuisanceParameterFreed21->GetXaxis()->SetBinLabel(19,"MUON_ISO_STAT");
   NuisanceParameterFreed21->GetXaxis()->SetBinLabel(20,"FT_EFF_extrapolation");
   NuisanceParameterFreed21->GetXaxis()->SetBinLabel(21,"MUON_EFF_STAT");
   NuisanceParameterFreed21->GetXaxis()->SetBinLabel(22,"MUON_EFF_SYS");
   NuisanceParameterFreed21->GetXaxis()->SetBinLabel(23,"MUON_EFF_TrigStatUncertainty");
   NuisanceParameterFreed21->GetXaxis()->SetBinLabel(24,"FT_EFF_Eigen_Light_1");
   NuisanceParameterFreed21->GetXaxis()->SetBinLabel(25,"FT_EFF_Eigen_Light_2");
   NuisanceParameterFreed21->GetXaxis()->SetBinLabel(26,"EG_RESOLUTION_ALL");
   NuisanceParameterFreed21->GetXaxis()->SetBinLabel(27,"XS_diboson");
   NuisanceParameterFreed21->GetXaxis()->SetBinLabel(28,"FT_EFF_Eigen_Light_4");
   NuisanceParameterFreed21->GetXaxis()->SetBinLabel(29,"MUON_ISO_SYS");
   NuisanceParameterFreed21->GetXaxis()->SetBinLabel(30,"XS_Zb");
   NuisanceParameterFreed21->GetXaxis()->SetBinLabel(31,"MUONS_MS");
   NuisanceParameterFreed21->GetXaxis()->SetBinLabel(32,"FT_EFF_Eigen_C_2");
   NuisanceParameterFreed21->GetXaxis()->SetBinLabel(33,"FT_EFF_Eigen_Light_0");
   NuisanceParameterFreed21->GetXaxis()->SetLabelFont(42);
   NuisanceParameterFreed21->GetXaxis()->SetLabelSize(0.035);
   NuisanceParameterFreed21->GetXaxis()->SetTitleSize(0.035);
   NuisanceParameterFreed21->GetXaxis()->SetTitleFont(42);
   NuisanceParameterFreed21->GetYaxis()->SetTitle("#theta_{fit} - #theta_{initial}/#Delta#theta");
   NuisanceParameterFreed21->GetYaxis()->SetLabelFont(42);
   NuisanceParameterFreed21->GetYaxis()->SetLabelSize(0.035);
   NuisanceParameterFreed21->GetYaxis()->SetTitleSize(0.035);
   NuisanceParameterFreed21->GetYaxis()->SetTitleFont(42);
   NuisanceParameterFreed21->GetZaxis()->SetLabelFont(42);
   NuisanceParameterFreed21->GetZaxis()->SetLabelSize(0.035);
   NuisanceParameterFreed21->GetZaxis()->SetTitleSize(0.035);
   NuisanceParameterFreed21->GetZaxis()->SetTitleFont(42);
   NuisanceParameterFreed21->Draw("hist");
   
   Double_t _fx1021[35] = {
   1.22802e-312,
   0.5,
   1.5,
   2.5,
   3.5,
   4.5,
   5.5,
   6.5,
   7.5,
   8.5,
   9.5,
   10.5,
   11.5,
   12.5,
   13.5,
   14.5,
   15.5,
   16.5,
   17.5,
   18.5,
   19.5,
   20.5,
   21.5,
   22.5,
   23.5,
   24.5,
   25.5,
   26.5,
   27.5,
   28.5,
   29.5,
   30.5,
   31.5,
   32.5,
   0};
   Double_t _fy1021[35] = {
   1.22802e-312,
   -0.7728128,
   -0.392439,
   -0.2896456,
   -0.2044598,
   -0.1826729,
   -0.1278127,
   -0.1244357,
   -0.1084962,
   -0.06597153,
   -0.05697221,
   -0.05334454,
   -0.04674538,
   -0.03708376,
   -0.0323209,
   -0.03105273,
   -0.0239497,
   -0.01695474,
   -0.001380053,
   0.0001641817,
   0.01054658,
   0.01060529,
   0.0181311,
   0.01996412,
   0.02024645,
   0.02030694,
   0.02702573,
   0.04004296,
   0.0427078,
   0.05119136,
   0.05487747,
   0.05566713,
   0.05764295,
   0.844833,
   0};
   Double_t _fex1021[35] = {
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0};
   Double_t _fey1021[35] = {
   0,
   0,
   0.6107568,
   1.073028,
   1.26786,
   0.9367263,
   0.991661,
   0.9863027,
   0.9269403,
   0.7691309,
   0.9864506,
   0.9937949,
   0.9917404,
   0.9970817,
   0.9817694,
   0.9376162,
   0.9926709,
   0.9931833,
   0.9925584,
   1.005014,
   0.9933467,
   0.9551241,
   0.9932275,
   0.9929661,
   0.9927886,
   0.9913142,
   0.9909897,
   1.098033,
   0.9870226,
   0.9931712,
   0.9855069,
   0.7542233,
   0.7380251,
   0.9909034,
   0.7857708};
   TGraphErrors *gre = new TGraphErrors(35,_fx1021,_fy1021,_fex1021,_fey1021);
   gre->SetName("");
   gre->SetTitle("");
   gre->SetFillColor(1);
   gre->SetMarkerStyle(20);
   gre->SetMarkerSize(1.2);
   
   TH1F *Graph_Graph1021 = new TH1F("Graph_Graph1021","",100,0,35.75);
   Graph_Graph1021->SetMinimum(-1.803125);
   Graph_Graph1021->SetMaximum(2.166542);
   Graph_Graph1021->SetDirectory(0);
   Graph_Graph1021->SetStats(0);

   ci = TColor::GetColor("#000099");
   Graph_Graph1021->SetLineColor(ci);
   Graph_Graph1021->GetXaxis()->SetLabelFont(42);
   Graph_Graph1021->GetXaxis()->SetLabelSize(0.035);
   Graph_Graph1021->GetXaxis()->SetTitleSize(0.035);
   Graph_Graph1021->GetXaxis()->SetTitleFont(42);
   Graph_Graph1021->GetYaxis()->SetLabelFont(42);
   Graph_Graph1021->GetYaxis()->SetLabelSize(0.035);
   Graph_Graph1021->GetYaxis()->SetTitleSize(0.035);
   Graph_Graph1021->GetYaxis()->SetTitleFont(42);
   Graph_Graph1021->GetZaxis()->SetLabelFont(42);
   Graph_Graph1021->GetZaxis()->SetLabelSize(0.035);
   Graph_Graph1021->GetZaxis()->SetTitleSize(0.035);
   Graph_Graph1021->GetZaxis()->SetTitleFont(42);
   gre->SetHistogram(Graph_Graph1021);
   
   gre->Draw("p");
   
   TLegend *leg = new TLegend(0.1,0.4,0.4,0.95,NULL,"brNDC");
   leg->SetBorderSize(0);
   leg->SetTextFont(72);
   leg->SetTextSize(0.015);
   leg->SetLineColor(1);
   leg->SetLineStyle(1);
   leg->SetLineWidth(1);
   leg->SetFillColor(0);
   leg->SetFillStyle(0);
   leg->Draw();
   
   TPaveText *pt = new TPaveText(0.2831727,0.9341608,0.7168273,0.995,"blNDC");
   pt->SetName("title");
   pt->SetBorderSize(0);
   pt->SetFillColor(0);
   pt->SetFillStyle(0);
   pt->SetTextFont(42);
   TText *AText = pt->AddText("alpha_FT_EFF_Eigen_Light_3");
   pt->Draw();
   c1->Modified();
   c1->cd();
   c1->SetSelected(c1);
}