void inlist_c_peakfit()
{
//=========Macro generated from canvas: c1_n7/c1_n7
//=========  (Tue Apr  3 18:03:06 2018) by ROOT version6.06/02
   TCanvas *c1_n7 = new TCanvas("c1_n7", "c1_n7",10,37,700,500);
   gStyle->SetOptStat(0);
   gStyle->SetOptTitle(0);
   c1_n7->Range(-10.20742,-0.4353373,59.15241,2.285521);
   c1_n7->SetFillColor(0);
   c1_n7->SetBorderMode(0);
   c1_n7->SetBorderSize(2);
   c1_n7->SetLogy();
   c1_n7->SetTickx(1);
   c1_n7->SetTicky(1);
   c1_n7->SetLeftMargin(0.14);
   c1_n7->SetRightMargin(0.08);
   c1_n7->SetTopMargin(0.05);
   c1_n7->SetBottomMargin(0.16);
   c1_n7->SetFrameLineWidth(2);
   c1_n7->SetFrameBorderMode(0);
   c1_n7->SetFrameLineWidth(2);
   c1_n7->SetFrameBorderMode(0);
   
   TMultiGraph *multigraph = new TMultiGraph();
   multigraph->SetName("");
   multigraph->SetTitle(" ");
   
   Double_t Graph_fx1017[9] = {
   2.03678,
   3.05742,
   5.08728,
   8.1511,
   10.1567,
   15.2559,
   20.3417,
   30.4781,
   51.1445};
   Double_t Graph_fy1017[9] = {
   3.93188,
   5.93471,
   9.90953,
   15.8498,
   19.8685,
   29.7649,
   39.7694,
   59.8829,
   98.6437};
   Double_t Graph_fex1017[9] = {
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0};
   Double_t Graph_fey1017[9] = {
   1.38861,
   2.07269,
   3.49448,
   5.61377,
   7.50077,
   11.4264,
   15.2083,
   24.146,
   35.8098};
   TGraphErrors *gre = new TGraphErrors(9,Graph_fx1017,Graph_fy1017,Graph_fex1017,Graph_fey1017);
   gre->SetName("Graph");
   gre->SetTitle("Graph");
   gre->SetFillColor(1);
   gre->SetLineWidth(2);
   gre->SetMarkerStyle(22);
   
   TH1F *Graph_Graph1017 = new TH1F("Graph_Graph1017","Graph",100,0,56.05527);
   Graph_Graph1017->SetMinimum(2.288943);
   Graph_Graph1017->SetMaximum(147.6445);
   Graph_Graph1017->SetDirectory(0);
   Graph_Graph1017->SetStats(0);
   Graph_Graph1017->SetLineWidth(2);
   Graph_Graph1017->SetMarkerStyle(21);
   Graph_Graph1017->GetXaxis()->SetNdivisions(505);
   Graph_Graph1017->GetXaxis()->SetLabelFont(22);
   Graph_Graph1017->GetXaxis()->SetLabelOffset(0.015);
   Graph_Graph1017->GetXaxis()->SetLabelSize(0.05);
   Graph_Graph1017->GetXaxis()->SetTitleSize(0.06);
   Graph_Graph1017->GetXaxis()->SetTitleFont(22);
   Graph_Graph1017->GetYaxis()->SetLabelFont(22);
   Graph_Graph1017->GetYaxis()->SetLabelSize(0.05);
   Graph_Graph1017->GetYaxis()->SetTitleSize(0.06);
   Graph_Graph1017->GetYaxis()->SetTitleFont(22);
   Graph_Graph1017->GetZaxis()->SetLabelFont(22);
   Graph_Graph1017->GetZaxis()->SetLabelSize(0.05);
   Graph_Graph1017->GetZaxis()->SetTitleSize(0.06);
   Graph_Graph1017->GetZaxis()->SetTitleFont(22);
   gre->SetHistogram(Graph_Graph1017);
   
   multigraph->Add(gre,"pc");
   
   Double_t Graph_fx1018[8] = {
   1.96208,
   2.95886,
   4.95905,
   9.87093,
   14.7862,
   19.6816,
   29.5024,
   49.7928};
   Double_t Graph_fy1018[8] = {
   2.73389,
   3.8707,
   6.36702,
   12.689,
   19.028,
   25.3672,
   38.0693,
   62.6743};
   Double_t Graph_fex1018[8] = {
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0};
   Double_t Graph_fey1018[8] = {
   0.892946,
   1.62499,
   2.66832,
   4.66468,
   6.90351,
   9.1923,
   13.7995,
   25.422};
   gre = new TGraphErrors(8,Graph_fx1018,Graph_fy1018,Graph_fex1018,Graph_fey1018);
   gre->SetName("Graph");
   gre->SetTitle("Graph");
   gre->SetFillColor(1);
   gre->SetLineWidth(2);
   gre->SetMarkerStyle(26);
   
   TH1F *Graph_Graph1018 = new TH1F("Graph_Graph1018","Graph",100,0,54.57587);
   Graph_Graph1018->SetMinimum(1.65685);
   Graph_Graph1018->SetMaximum(96.72184);
   Graph_Graph1018->SetDirectory(0);
   Graph_Graph1018->SetStats(0);
   Graph_Graph1018->SetLineWidth(2);
   Graph_Graph1018->SetMarkerStyle(21);
   Graph_Graph1018->GetXaxis()->SetNdivisions(505);
   Graph_Graph1018->GetXaxis()->SetLabelFont(22);
   Graph_Graph1018->GetXaxis()->SetLabelOffset(0.015);
   Graph_Graph1018->GetXaxis()->SetLabelSize(0.05);
   Graph_Graph1018->GetXaxis()->SetTitleSize(0.06);
   Graph_Graph1018->GetXaxis()->SetTitleFont(22);
   Graph_Graph1018->GetYaxis()->SetLabelFont(22);
   Graph_Graph1018->GetYaxis()->SetLabelSize(0.05);
   Graph_Graph1018->GetYaxis()->SetTitleSize(0.06);
   Graph_Graph1018->GetYaxis()->SetTitleFont(22);
   Graph_Graph1018->GetZaxis()->SetLabelFont(22);
   Graph_Graph1018->GetZaxis()->SetLabelSize(0.05);
   Graph_Graph1018->GetZaxis()->SetTitleSize(0.06);
   Graph_Graph1018->GetZaxis()->SetTitleFont(22);
   gre->SetHistogram(Graph_Graph1018);
   
   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("SNR");
   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.2,0.9,0.5,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 (430 MeV/u)","p");
   entry->SetLineColor(1);
   entry->SetLineStyle(1);
   entry->SetLineWidth(1);
   entry->SetMarkerColor(1);
   entry->SetMarkerStyle(22);
   entry->SetMarkerSize(1);
   entry->SetTextFont(22);
   entry=leg->AddEntry("Graph","BPM (130 MeV/u)","p");
   entry->SetLineColor(1);
   entry->SetLineStyle(1);
   entry->SetLineWidth(1);
   entry->SetMarkerColor(1);
   entry->SetMarkerStyle(26);
   entry->SetMarkerSize(1);
   entry->SetTextFont(22);
   leg->Draw();
   c1_n7->Modified();
   c1_n7->cd();
   c1_n7->SetSelected(c1_n7);
}
