void inlist_p_bpm_diff()
{
//=========Macro generated from canvas: c1/c1
//=========  (Tue Apr  3 18:03:03 2018) by ROOT version6.06/02
   TCanvas *c1 = new TCanvas("c1", "c1",10,37,700,500);
   gStyle->SetOptStat(0);
   gStyle->SetOptTitle(0);
   c1->Range(-402.8707,-0.03645569,2343.456,0.1913924);
   c1->SetFillColor(0);
   c1->SetBorderMode(0);
   c1->SetBorderSize(2);
   c1->SetTickx(1);
   c1->SetTicky(1);
   c1->SetLeftMargin(0.14);
   c1->SetRightMargin(0.08);
   c1->SetTopMargin(0.05);
   c1->SetBottomMargin(0.16);
   c1->SetFrameLineWidth(2);
   c1->SetFrameBorderMode(0);
   c1->SetFrameLineWidth(2);
   c1->SetFrameBorderMode(0);
   
   TMultiGraph *multigraph = new TMultiGraph();
   multigraph->SetName("");
   multigraph->SetTitle(" ");
   
   Double_t Graph_fx1001[9] = {
   78.9848,
   118.658,
   198.17,
   316.018,
   394.438,
   593.806,
   790.554,
   1188.03,
   1990.53};
   Double_t Graph_fy1001[9] = {
   0.0665337,
   0.0454473,
   0.0280808,
   0.0177565,
   0.0144121,
   0.0101224,
   0.00782278,
   0.00547459,
   0.00394504};
   Double_t Graph_fex1001[9] = {
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0};
   Double_t Graph_fey1001[9] = {
   0.000542706,
   0.000392711,
   0.000247037,
   0.000148189,
   0.000122994,
   8.87371e-05,
   6.44797e-05,
   4.56877e-05,
   3.43175e-05};
   TGraphErrors *gre = new TGraphErrors(9,Graph_fx1001,Graph_fy1001,Graph_fex1001,Graph_fey1001);
   gre->SetName("Graph");
   gre->SetTitle("Graph");
   gre->SetFillColor(1);
   gre->SetLineStyle(3);
   gre->SetLineWidth(2);
   gre->SetMarkerStyle(20);
   
   TH1F *Graph_Graph1001 = new TH1F("Graph_Graph1001","Graph",100,0,2181.685);
   Graph_Graph1001->SetMinimum(0);
   Graph_Graph1001->SetMaximum(0.07339297);
   Graph_Graph1001->SetDirectory(0);
   Graph_Graph1001->SetStats(0);
   Graph_Graph1001->SetLineWidth(2);
   Graph_Graph1001->SetMarkerStyle(21);
   Graph_Graph1001->GetXaxis()->SetNdivisions(505);
   Graph_Graph1001->GetXaxis()->SetLabelFont(22);
   Graph_Graph1001->GetXaxis()->SetLabelOffset(0.015);
   Graph_Graph1001->GetXaxis()->SetLabelSize(0.05);
   Graph_Graph1001->GetXaxis()->SetTitleSize(0.06);
   Graph_Graph1001->GetXaxis()->SetTitleFont(22);
   Graph_Graph1001->GetYaxis()->SetLabelFont(22);
   Graph_Graph1001->GetYaxis()->SetLabelSize(0.05);
   Graph_Graph1001->GetYaxis()->SetTitleSize(0.06);
   Graph_Graph1001->GetYaxis()->SetTitleFont(22);
   Graph_Graph1001->GetZaxis()->SetLabelFont(22);
   Graph_Graph1001->GetZaxis()->SetLabelSize(0.05);
   Graph_Graph1001->GetZaxis()->SetTitleSize(0.06);
   Graph_Graph1001->GetZaxis()->SetTitleFont(22);
   gre->SetHistogram(Graph_Graph1001);
   
   multigraph->Add(gre,"pc");
   
   Double_t Graph_fx1002[9] = {
   79.0354,
   118.87,
   198.332,
   317.093,
   395.805,
   594.734,
   795.176,
   1194.73,
   2026.38};
   Double_t Graph_fy1002[9] = {
   0.17537,
   0.130906,
   0.0802245,
   0.05265,
   0.0433882,
   0.0299002,
   0.0234158,
   0.0170494,
   0.0120116};
   Double_t Graph_fex1002[9] = {
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0};
   Double_t Graph_fey1002[9] = {
   0.00263946,
   0.00146187,
   0.000741972,
   0.000520439,
   0.000413834,
   0.000287387,
   0.00021686,
   0.0001669,
   0.000112594};
   gre = new TGraphErrors(9,Graph_fx1002,Graph_fy1002,Graph_fex1002,Graph_fey1002);
   gre->SetName("Graph");
   gre->SetTitle("Graph");
   gre->SetFillColor(1);
   gre->SetLineStyle(3);
   gre->SetLineWidth(2);
   gre->SetMarkerStyle(24);
   
   TH1F *Graph_Graph1002 = new TH1F("Graph_Graph1002","Graph",100,0,2221.114);
   Graph_Graph1002->SetMinimum(0);
   Graph_Graph1002->SetMaximum(0.1946205);
   Graph_Graph1002->SetDirectory(0);
   Graph_Graph1002->SetStats(0);
   Graph_Graph1002->SetLineWidth(2);
   Graph_Graph1002->SetMarkerStyle(21);
   Graph_Graph1002->GetXaxis()->SetNdivisions(505);
   Graph_Graph1002->GetXaxis()->SetLabelFont(22);
   Graph_Graph1002->GetXaxis()->SetLabelOffset(0.015);
   Graph_Graph1002->GetXaxis()->SetLabelSize(0.05);
   Graph_Graph1002->GetXaxis()->SetTitleSize(0.06);
   Graph_Graph1002->GetXaxis()->SetTitleFont(22);
   Graph_Graph1002->GetYaxis()->SetLabelFont(22);
   Graph_Graph1002->GetYaxis()->SetLabelSize(0.05);
   Graph_Graph1002->GetYaxis()->SetTitleSize(0.06);
   Graph_Graph1002->GetYaxis()->SetTitleFont(22);
   Graph_Graph1002->GetZaxis()->SetLabelFont(22);
   Graph_Graph1002->GetZaxis()->SetLabelSize(0.05);
   Graph_Graph1002->GetZaxis()->SetTitleSize(0.06);
   Graph_Graph1002->GetZaxis()->SetTitleFont(22);
   gre->SetHistogram(Graph_Graph1002);
   
   multigraph->Add(gre,"pc");
   
   Double_t Graph_fx1003[9] = {
   78.9848,
   118.658,
   198.17,
   316.018,
   394.438,
   593.806,
   790.554,
   1188.03,
   1990.53};
   Double_t Graph_fy1003[9] = {
   0.0444266,
   0.0376806,
   0.0324683,
   0.0374567,
   0.0358997,
   0.0371097,
   0.0394641,
   0.0296149,
   0.04342};
   Double_t Graph_fex1003[9] = {
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0};
   Double_t Graph_fey1003[9] = {
   0.000307261,
   0.000260418,
   0.000224074,
   0.000258809,
   0.000247897,
   0.000256204,
   0.00027225,
   0.000204333,
   0.000326052};
   gre = new TGraphErrors(9,Graph_fx1003,Graph_fy1003,Graph_fex1003,Graph_fey1003);
   gre->SetName("Graph");
   gre->SetTitle("Graph");
   gre->SetFillColor(1);
   gre->SetLineWidth(2);
   gre->SetMarkerStyle(29);
   
   TH1F *Graph_Graph1003 = new TH1F("Graph_Graph1003","Graph",100,0,2181.685);
   Graph_Graph1003->SetMinimum(0.02787824);
   Graph_Graph1003->SetMaximum(0.04626619);
   Graph_Graph1003->SetDirectory(0);
   Graph_Graph1003->SetStats(0);
   Graph_Graph1003->SetLineWidth(2);
   Graph_Graph1003->SetMarkerStyle(21);
   Graph_Graph1003->GetXaxis()->SetNdivisions(505);
   Graph_Graph1003->GetXaxis()->SetLabelFont(22);
   Graph_Graph1003->GetXaxis()->SetLabelOffset(0.015);
   Graph_Graph1003->GetXaxis()->SetLabelSize(0.05);
   Graph_Graph1003->GetXaxis()->SetTitleSize(0.06);
   Graph_Graph1003->GetXaxis()->SetTitleFont(22);
   Graph_Graph1003->GetYaxis()->SetLabelFont(22);
   Graph_Graph1003->GetYaxis()->SetLabelSize(0.05);
   Graph_Graph1003->GetYaxis()->SetTitleSize(0.06);
   Graph_Graph1003->GetYaxis()->SetTitleFont(22);
   Graph_Graph1003->GetZaxis()->SetLabelFont(22);
   Graph_Graph1003->GetZaxis()->SetLabelSize(0.05);
   Graph_Graph1003->GetZaxis()->SetTitleSize(0.06);
   Graph_Graph1003->GetZaxis()->SetTitleFont(22);
   gre->SetHistogram(Graph_Graph1003);
   
   multigraph->Add(gre,"p");
   
   Double_t Graph_fx1004[9] = {
   79.0354,
   118.87,
   198.332,
   317.093,
   395.805,
   594.734,
   795.176,
   1194.73,
   2026.38};
   Double_t Graph_fy1004[9] = {
   0.0288236,
   0.0277598,
   0.0254663,
   0.0282533,
   0.0279462,
   0.0315855,
   0.0335265,
   0.0278244,
   0.0361567};
   Double_t Graph_fex1004[9] = {
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0};
   Double_t Graph_fey1004[9] = {
   0.000198997,
   0.000191579,
   0.000175659,
   0.000194799,
   0.000192856,
   0.000217805,
   0.000231344,
   0.000191651,
   0.00024863};
   gre = new TGraphErrors(9,Graph_fx1004,Graph_fy1004,Graph_fex1004,Graph_fey1004);
   gre->SetName("Graph");
   gre->SetTitle("Graph");
   gre->SetFillColor(1);
   gre->SetLineWidth(2);
   gre->SetMarkerStyle(30);
   
   TH1F *Graph_Graph1004 = new TH1F("Graph_Graph1004","Graph",100,0,2221.114);
   Graph_Graph1004->SetMinimum(0.02417917);
   Graph_Graph1004->SetMaximum(0.0375168);
   Graph_Graph1004->SetDirectory(0);
   Graph_Graph1004->SetStats(0);
   Graph_Graph1004->SetLineWidth(2);
   Graph_Graph1004->SetMarkerStyle(21);
   Graph_Graph1004->GetXaxis()->SetNdivisions(505);
   Graph_Graph1004->GetXaxis()->SetLabelFont(22);
   Graph_Graph1004->GetXaxis()->SetLabelOffset(0.015);
   Graph_Graph1004->GetXaxis()->SetLabelSize(0.05);
   Graph_Graph1004->GetXaxis()->SetTitleSize(0.06);
   Graph_Graph1004->GetXaxis()->SetTitleFont(22);
   Graph_Graph1004->GetYaxis()->SetLabelFont(22);
   Graph_Graph1004->GetYaxis()->SetLabelSize(0.05);
   Graph_Graph1004->GetYaxis()->SetTitleSize(0.06);
   Graph_Graph1004->GetYaxis()->SetTitleFont(22);
   Graph_Graph1004->GetZaxis()->SetLabelFont(22);
   Graph_Graph1004->GetZaxis()->SetLabelSize(0.05);
   Graph_Graph1004->GetZaxis()->SetTitleSize(0.06);
   Graph_Graph1004->GetZaxis()->SetTitleFont(22);
   gre->SetHistogram(Graph_Graph1004);
   
   multigraph->Add(gre,"p");
   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("#sqrt{2}#upoint #sigma(A_{1}-A_{2}) / (A_{1}+A_{2})");
   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);
   entry=leg->AddEntry("Graph","IC (221 MeV)","p");
   entry->SetLineColor(1);
   entry->SetLineStyle(1);
   entry->SetLineWidth(1);
   entry->SetMarkerColor(1);
   entry->SetMarkerStyle(29);
   entry->SetMarkerSize(1);
   entry->SetTextFont(22);
   entry=leg->AddEntry("Graph","IC (70 MeV)","p");
   entry->SetLineColor(1);
   entry->SetLineStyle(1);
   entry->SetLineWidth(1);
   entry->SetMarkerColor(1);
   entry->SetMarkerStyle(30);
   entry->SetMarkerSize(1);
   entry->SetTextFont(22);
   leg->Draw();
   c1->Modified();
   c1->cd();
   c1->SetSelected(c1);
}
