void beamenergyfile_int_c() { //=========Macro generated from canvas: c1/c1 //========= (Tue Dec 5 12:03:42 2017) by ROOT version6.06/02 TCanvas *c1 = new TCanvas("c1", "c1",10,71,700,500); gStyle->SetOptStat(0); gStyle->SetOptTitle(0); c1->Range(-9.855094,-1.21519,60.53843,6.379747); 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); Double_t Graph0_fx1001[9] = { 1.99418, 2.99221, 4.99357, 8.00451, 9.96037, 14.9624, 19.9591, 29.9598, 50.0967}; Double_t Graph0_fy1001[9] = { 0.209056, 0.321651, 0.538085, 0.863684, 1.08222, 1.62381, 2.1691, 3.2634, 5.44883}; Double_t Graph0_fex1001[9] = { 0, 0, 0, 0, 0, 0, 0, 0, 0}; Double_t Graph0_fey1001[9] = { 0.000432816, 0.000558112, 0.000941916, 0.00144775, 0.00311746, 0.00313547, 0.00429978, 0.00679122, 0.00971554}; TGraphErrors *gre = new TGraphErrors(9,Graph0_fx1001,Graph0_fy1001,Graph0_fex1001,Graph0_fey1001); gre->SetName("Graph0"); gre->SetTitle("Carbon Ions"); gre->SetFillColor(1); gre->SetLineWidth(2); gre->SetMarkerStyle(22); TH1F *Graph_Graph1001 = new TH1F("Graph_Graph1001","Carbon Ions",100,0,54.90695); Graph_Graph1001->SetMinimum(0); Graph_Graph1001->SetMaximum(6); Graph_Graph1001->SetDirectory(0); Graph_Graph1001->SetStats(0); Graph_Graph1001->SetLineWidth(2); Graph_Graph1001->SetMarkerStyle(21); Graph_Graph1001->GetXaxis()->SetTitle("Intensity / 10^{6}s^{-1}"); 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()->SetTitle("#bar{A}_{BPM} / 10^{3} a.u."); 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); TF1 *pol11002 = new TF1("pol1","pol1",0,54.90695); pol11002->SetFillStyle(0); pol11002->SetMarkerStyle(21); pol11002->SetLineWidth(2); pol11002->SetChisquare(32.73371); pol11002->SetNDF(7); pol11002->GetXaxis()->SetNdivisions(505); pol11002->GetXaxis()->SetLabelFont(22); pol11002->GetXaxis()->SetLabelOffset(0.015); pol11002->GetXaxis()->SetLabelSize(0.05); pol11002->GetXaxis()->SetTitleSize(0.06); pol11002->GetXaxis()->SetTitleFont(22); pol11002->GetYaxis()->SetLabelFont(22); pol11002->GetYaxis()->SetLabelSize(0.05); pol11002->GetYaxis()->SetTitleSize(0.06); pol11002->GetYaxis()->SetTitleFont(22); pol11002->SetParameter(0,-0.007111445); pol11002->SetParError(0,0.0004586831); pol11002->SetParLimits(0,0,0); pol11002->SetParameter(1,0.1090771); pol11002->SetParError(1,0.0001024792); pol11002->SetParLimits(1,0,0); gre->GetListOfFunctions()->Add(pol11002); gre->Draw("ap"); c1->Modified(); c1->cd(); c1->SetSelected(c1); }