void inlist_p_focusfit_diff()
{
//=========Macro generated from canvas: c1_n5/c1_n5
//=========  (Tue Apr  3 18:03:05 2018) by ROOT version6.06/02
   TCanvas *c1_n5 = new TCanvas("c1_n5", "c1_n5",10,37,700,500);
   gStyle->SetOptStat(0);
   gStyle->SetOptTitle(0);
   c1_n5->Range(-402.8707,-0.7380828,2343.456,3.874935);
   c1_n5->SetFillColor(0);
   c1_n5->SetBorderMode(0);
   c1_n5->SetBorderSize(2);
   c1_n5->SetTickx(1);
   c1_n5->SetTicky(1);
   c1_n5->SetLeftMargin(0.14);
   c1_n5->SetRightMargin(0.08);
   c1_n5->SetTopMargin(0.05);
   c1_n5->SetBottomMargin(0.16);
   c1_n5->SetFrameLineWidth(2);
   c1_n5->SetFrameBorderMode(0);
   c1_n5->SetFrameLineWidth(2);
   c1_n5->SetFrameBorderMode(0);
   
   TMultiGraph *multigraph = new TMultiGraph();
   multigraph->SetName("");
   multigraph->SetTitle(" ");
   
   Double_t Graph_fx1013[9] = {
   78.9848,
   118.658,
   198.17,
   316.018,
   394.438,
   593.806,
   790.554,
   1188.03,
   1990.53};
   Double_t Graph_fy1013[9] = {
   0.788846,
   0.537538,
   0.328294,
   0.208886,
   0.168501,
   0.118569,
   0.0917777,
   0.0646191,
   0.0440651};
   Double_t Graph_fex1013[9] = {
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0};
   Double_t Graph_fey1013[9] = {
   0.00666858,
   0.0046225,
   0.00271829,
   0.0017232,
   0.0014206,
   0.001013,
   0.00079113,
   0.000530595,
   0.000394613};
   TGraphErrors *gre = new TGraphErrors(9,Graph_fx1013,Graph_fy1013,Graph_fex1013,Graph_fey1013);
   gre->SetName("Graph");
   gre->SetTitle("Graph");
   gre->SetFillColor(1);
   gre->SetLineStyle(3);
   gre->SetLineWidth(2);
   gre->SetMarkerStyle(20);
   
   TH1F *Graph_Graph1013 = new TH1F("Graph_Graph1013","Graph",100,0,2181.685);
   Graph_Graph1013->SetMinimum(0);
   Graph_Graph1013->SetMaximum(0.870699);
   Graph_Graph1013->SetDirectory(0);
   Graph_Graph1013->SetStats(0);
   Graph_Graph1013->SetLineWidth(2);
   Graph_Graph1013->SetMarkerStyle(21);
   Graph_Graph1013->GetXaxis()->SetNdivisions(505);
   Graph_Graph1013->GetXaxis()->SetLabelFont(22);
   Graph_Graph1013->GetXaxis()->SetLabelOffset(0.015);
   Graph_Graph1013->GetXaxis()->SetLabelSize(0.05);
   Graph_Graph1013->GetXaxis()->SetTitleSize(0.06);
   Graph_Graph1013->GetXaxis()->SetTitleFont(22);
   Graph_Graph1013->GetYaxis()->SetLabelFont(22);
   Graph_Graph1013->GetYaxis()->SetLabelSize(0.05);
   Graph_Graph1013->GetYaxis()->SetTitleSize(0.06);
   Graph_Graph1013->GetYaxis()->SetTitleFont(22);
   Graph_Graph1013->GetZaxis()->SetLabelFont(22);
   Graph_Graph1013->GetZaxis()->SetLabelSize(0.05);
   Graph_Graph1013->GetZaxis()->SetTitleSize(0.06);
   Graph_Graph1013->GetZaxis()->SetTitleFont(22);
   gre->SetHistogram(Graph_Graph1013);
   
   multigraph->Add(gre,"pc");
   
   Double_t Graph_fx1014[9] = {
   79.0354,
   118.87,
   198.332,
   317.093,
   395.805,
   594.734,
   795.176,
   1194.73,
   2026.38};
   Double_t Graph_fy1014[9] = {
   3.42462,
   2.47025,
   1.52845,
   1.00776,
   0.839487,
   0.58229,
   0.462815,
   0.33919,
   0.236132};
   Double_t Graph_fex1014[9] = {
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0};
   Double_t Graph_fey1014[9] = {
   0.0482061,
   0.027427,
   0.0149684,
   0.0095299,
   0.00789383,
   0.00547878,
   0.00418357,
   0.00320945,
   0.00219977};
   gre = new TGraphErrors(9,Graph_fx1014,Graph_fy1014,Graph_fex1014,Graph_fey1014);
   gre->SetName("Graph");
   gre->SetTitle("Graph");
   gre->SetFillColor(1);
   gre->SetLineStyle(3);
   gre->SetLineWidth(2);
   gre->SetMarkerStyle(24);
   
   TH1F *Graph_Graph1014 = new TH1F("Graph_Graph1014","Graph",100,0,2221.114);
   Graph_Graph1014->SetMinimum(0);
   Graph_Graph1014->SetMaximum(3.796715);
   Graph_Graph1014->SetDirectory(0);
   Graph_Graph1014->SetStats(0);
   Graph_Graph1014->SetLineWidth(2);
   Graph_Graph1014->SetMarkerStyle(21);
   Graph_Graph1014->GetXaxis()->SetNdivisions(505);
   Graph_Graph1014->GetXaxis()->SetLabelFont(22);
   Graph_Graph1014->GetXaxis()->SetLabelOffset(0.015);
   Graph_Graph1014->GetXaxis()->SetLabelSize(0.05);
   Graph_Graph1014->GetXaxis()->SetTitleSize(0.06);
   Graph_Graph1014->GetXaxis()->SetTitleFont(22);
   Graph_Graph1014->GetYaxis()->SetLabelFont(22);
   Graph_Graph1014->GetYaxis()->SetLabelSize(0.05);
   Graph_Graph1014->GetYaxis()->SetTitleSize(0.06);
   Graph_Graph1014->GetYaxis()->SetTitleFont(22);
   Graph_Graph1014->GetZaxis()->SetLabelFont(22);
   Graph_Graph1014->GetZaxis()->SetLabelSize(0.05);
   Graph_Graph1014->GetZaxis()->SetTitleSize(0.06);
   Graph_Graph1014->GetZaxis()->SetTitleFont(22);
   gre->SetHistogram(Graph_Graph1014);
   
   multigraph->Add(gre,"pc");
   multigraph->Draw("a");
   multigraph->GetXaxis()->SetTitle("Intensity / 10^{6}s^{-1}");
   multigraph->GetXaxis()->SetNdivisions(505);
   multigraph->GetXaxis()->SetLabelFont(22);
   multigraph->GetXaxis()->SetLabelOffset(0.015);
   multigraph->GetXaxis()->SetLabelSize(0.05);
   multigraph->GetXaxis()->SetTitleSize(0.06);
   multigraph->GetXaxis()->SetTitleFont(22);
   multigraph->GetYaxis()->SetTitle("#sigma(F_{1}-F_{2})/#sqrt{2}  / mm");
   multigraph->GetYaxis()->SetLabelFont(22);
   multigraph->GetYaxis()->SetLabelSize(0.05);
   multigraph->GetYaxis()->SetTitleSize(0.06);
   multigraph->GetYaxis()->SetTitleFont(22);
   
   TLegend *leg = new TLegend(0.6,0.6,0.9,0.9,NULL,"brNDC");
   leg->SetBorderSize(0);
   leg->SetTextFont(22);
   leg->SetTextSize(0.045);
   leg->SetLineColor(1);
   leg->SetLineStyle(1);
   leg->SetLineWidth(2);
   leg->SetFillColor(0);
   leg->SetFillStyle(0);
   TLegendEntry *entry=leg->AddEntry("Graph","BPM (221 MeV)","pl");
   entry->SetLineColor(1);
   entry->SetLineStyle(3);
   entry->SetLineWidth(2);
   entry->SetMarkerColor(1);
   entry->SetMarkerStyle(20);
   entry->SetMarkerSize(1);
   entry->SetTextFont(22);
   entry=leg->AddEntry("Graph","BPM (70 MeV)","pl");
   entry->SetLineColor(1);
   entry->SetLineStyle(3);
   entry->SetLineWidth(2);
   entry->SetMarkerColor(1);
   entry->SetMarkerStyle(24);
   entry->SetMarkerSize(1);
   entry->SetTextFont(22);
   leg->Draw();
   c1_n5->Modified();
   c1_n5->cd();
   c1_n5->SetSelected(c1_n5);
}
