data analysis scripts
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

826 lines
21 KiB

void bvt_beta_combinedfitbirks2()
{
//=========Macro generated from canvas: Simfit/Simultaneous fit
//========= (Wed Nov 29 17:14:20 2017) by ROOT version6.06/02
TCanvas *Simfit = new TCanvas("Simfit", "Simultaneous fit",10,71,700,500);
Simfit->Range(0.2301057,0.3875,0.8051803,1.5125);
Simfit->SetFillColor(0);
Simfit->SetBorderMode(0);
Simfit->SetBorderSize(2);
Simfit->SetFrameBorderMode(0);
Simfit->SetFrameBorderMode(0);
TMultiGraph *multigraph = new TMultiGraph();
multigraph->SetName("");
multigraph->SetTitle(" ");
Double_t Graph_fx1001[26] = {
0.308525,
0.340994,
0.366173,
0.386744,
0.404198,
0.419413,
0.432945,
0.44518,
0.456345,
0.466617,
0.476154,
0.485023,
0.493348,
0.501186,
0.508639,
0.515744,
0.522563,
0.529111,
0.53538,
0.541398,
0.549576,
0.557429,
0.564849,
0.571868,
0.578541,
0.5849};
Double_t Graph_fy1001[26] = {
1.17009,
1.22548,
1.25412,
1.26762,
1.27924,
1.28926,
1.29822,
1.30487,
1.31167,
1.31966,
1.32693,
1.33277,
1.33748,
1.342,
1.34494,
1.34552,
1.34422,
1.34555,
1.34837,
1.35181,
1.35453,
1.35491,
1.35663,
1.35679,
1.35989,
1.36464};
Double_t Graph_fex1001[26] = {
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 Graph_fey1001[26] = {
0.00768545,
0.00819192,
0.00890086,
0.00890319,
0.00893001,
0.00898034,
0.00878207,
0.00887555,
0.00851766,
0.00882661,
0.00893656,
0.00886456,
0.00898026,
0.00904985,
0.00880901,
0.00871377,
0.00862534,
0.00868173,
0.0087194,
0.00875697,
0.00870121,
0.00870414,
0.00876418,
0.00881008,
0.00884663,
0.00892479};
TGraphErrors *gre = new TGraphErrors(26,Graph_fx1001,Graph_fy1001,Graph_fex1001,Graph_fey1001);
gre->SetName("Graph");
gre->SetTitle("Graph");
gre->SetFillColor(1);
gre->SetMarkerStyle(20);
TH1F *Graph_Graph1001 = new TH1F("Graph_Graph1001","Graph",100,0.2808875,0.6125375);
Graph_Graph1001->SetMinimum(1.141289);
Graph_Graph1001->SetMaximum(1.394681);
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);
TF1 *fB1002 = new TF1("fB","[0]*(1/(1+[1]*1.65901*TMath::Power(x,-1.7218)))",0.3,0.59);
fB1002->SetFillColor(19);
fB1002->SetFillStyle(0);
ci = TColor::GetColor("#ff0000");
fB1002->SetLineColor(ci);
fB1002->SetLineWidth(2);
fB1002->SetChisquare(191.3612);
fB1002->SetNDF(94);
fB1002->GetXaxis()->SetLabelFont(42);
fB1002->GetXaxis()->SetLabelSize(0.035);
fB1002->GetXaxis()->SetTitleSize(0.035);
fB1002->GetXaxis()->SetTitleFont(42);
fB1002->GetYaxis()->SetLabelFont(42);
fB1002->GetYaxis()->SetLabelSize(0.035);
fB1002->GetYaxis()->SetTitleSize(0.035);
fB1002->GetYaxis()->SetTitleFont(42);
fB1002->SetParameter(0,1.461227);
fB1002->SetParError(0,0.004670547);
fB1002->SetParLimits(0,0,0);
fB1002->SetParameter(1,0.01776508);
fB1002->SetParError(1,0.0005790538);
fB1002->SetParLimits(1,0,0);
gre->GetListOfFunctions()->Add(fB1002);
multigraph->Add(gre,"p");
Double_t Graph_fx1003[26] = {
0.347272,
0.371222,
0.391037,
0.408018,
0.422922,
0.436235,
0.447968,
0.459299,
0.470415,
0.478846,
0.487649,
0.495887,
0.503656,
0.510991,
0.517959,
0.524572,
0.530889,
0.536926,
0.542699,
0.550671,
0.558452,
0.565815,
0.565815,
0.572799,
0.579449,
0.585785};
Double_t Graph_fy1003[26] = {
1.15061,
1.18124,
1.20539,
1.21968,
1.22856,
1.23451,
1.24983,
1.2618,
1.26521,
1.26492,
1.26371,
1.27061,
1.27334,
1.27687,
1.2796,
1.28062,
1.28058,
1.28007,
1.27389,
1.27711,
1.28057,
1.28576,
1.28604,
1.29318,
1.29729,
1.29912};
Double_t Graph_fex1003[26] = {
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 Graph_fey1003[26] = {
0.0079386,
0.00810356,
0.00823989,
0.00833216,
0.00820763,
0.00846215,
0.00848127,
0.00844473,
0.00823922,
0.00853495,
0.00843892,
0.00833523,
0.00826832,
0.0081901,
0.00851587,
0.00841711,
0.00835539,
0.00830596,
0.00819119,
0.00807461,
0.00810535,
0.00814576,
0.00802676,
0.0084179,
0.00840238,
0.00832066};
gre = new TGraphErrors(26,Graph_fx1003,Graph_fy1003,Graph_fex1003,Graph_fey1003);
gre->SetName("Graph");
gre->SetTitle("Graph");
gre->SetFillColor(1);
gre->SetMarkerStyle(21);
TH1F *Graph_Graph1003 = new TH1F("Graph_Graph1003","Graph",100,0.3234207,0.6096363);
Graph_Graph1003->SetMinimum(1.126194);
Graph_Graph1003->SetMaximum(1.323918);
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);
TF1 *fSB21004 = new TF1("fSB2","[0]*(1/(1+[1]*4*1.65901*TMath::Power(x,-1.7218)))",0.34,0.59);
fSB21004->SetFillColor(19);
fSB21004->SetFillStyle(0);
ci = TColor::GetColor("#ff0000");
fSB21004->SetLineColor(ci);
fSB21004->SetLineWidth(2);
fSB21004->SetChisquare(191.3612);
fSB21004->SetNDF(94);
fSB21004->GetXaxis()->SetLabelFont(42);
fSB21004->GetXaxis()->SetLabelSize(0.035);
fSB21004->GetXaxis()->SetTitleSize(0.035);
fSB21004->GetXaxis()->SetTitleFont(42);
fSB21004->GetYaxis()->SetLabelFont(42);
fSB21004->GetYaxis()->SetLabelSize(0.035);
fSB21004->GetYaxis()->SetTitleSize(0.035);
fSB21004->GetYaxis()->SetTitleFont(42);
fSB21004->SetParameter(0,1.461227);
fSB21004->SetParError(0,0.004670547);
fSB21004->SetParLimits(0,0,0);
fSB21004->SetParameter(1,0.006823313);
fSB21004->SetParError(1,0.000167657);
fSB21004->SetParLimits(1,0,0);
gre->GetListOfFunctions()->Add(fSB21004);
multigraph->Add(gre,"p");
Double_t Graph_fx1005[26] = {
0.407871,
0.44884,
0.479338,
0.503822,
0.524858,
0.543065,
0.5589,
0.573741,
0.586721,
0.59808,
0.608891,
0.619196,
0.628229,
0.636893,
0.645213,
0.653209,
0.6609,
0.667643,
0.674162,
0.681086,
0.689547,
0.698204,
0.705926,
0.713327,
0.719927,
0.726761};
Double_t Graph_fy1005[26] = {
0.70017,
0.75557,
0.795619,
0.823137,
0.846695,
0.867102,
0.886679,
0.902141,
0.91659,
0.929151,
0.94155,
0.952243,
0.961937,
0.970188,
0.976903,
0.987228,
0.994266,
1.00407,
1.00707,
1.01511,
1.02523,
1.03263,
1.04101,
1.04986,
1.05878,
1.06459};
Double_t Graph_fex1005[26] = {
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 Graph_fey1005[26] = {
0.00468578,
0.00504169,
0.00532747,
0.00543006,
0.00559711,
0.00569545,
0.00575669,
0.00598905,
0.00611396,
0.00620195,
0.00635492,
0.00637143,
0.00639461,
0.00642148,
0.00647779,
0.00661662,
0.0066125,
0.00669175,
0.00661587,
0.0068305,
0.00700482,
0.00688834,
0.00696643,
0.00696503,
0.00713316,
0.00731353};
gre = new TGraphErrors(26,Graph_fx1005,Graph_fy1005,Graph_fex1005,Graph_fey1005);
gre->SetName("Graph");
gre->SetTitle("Graph");
gre->SetFillColor(1);
gre->SetMarkerStyle(22);
TH1F *Graph_Graph1005 = new TH1F("Graph_Graph1005","Graph",100,0.375982,0.75865);
Graph_Graph1005->SetMinimum(0.6578423);
Graph_Graph1005->SetMaximum(1.109545);
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);
TF1 *fSB31006 = new TF1("fSB3","[0]*(1/(1+[1]*36*1.65901*TMath::Power(x,-1.7218)))",0.4,0.73);
fSB31006->SetFillColor(19);
fSB31006->SetFillStyle(0);
ci = TColor::GetColor("#ff0000");
fSB31006->SetLineColor(ci);
fSB31006->SetLineWidth(2);
fSB31006->SetChisquare(191.3612);
fSB31006->SetNDF(94);
fSB31006->GetXaxis()->SetLabelFont(42);
fSB31006->GetXaxis()->SetLabelSize(0.035);
fSB31006->GetXaxis()->SetTitleSize(0.035);
fSB31006->GetXaxis()->SetTitleFont(42);
fSB31006->GetYaxis()->SetLabelFont(42);
fSB31006->GetYaxis()->SetLabelSize(0.035);
fSB31006->GetYaxis()->SetTitleSize(0.035);
fSB31006->GetYaxis()->SetTitleFont(42);
fSB31006->SetParameter(0,1.461227);
fSB31006->SetParError(0,0.004670547);
fSB31006->SetParLimits(0,0,0);
fSB31006->SetParameter(1,0.003892427);
fSB31006->SetParError(1,3.657036e-05);
fSB31006->SetParLimits(1,0,0);
gre->GetListOfFunctions()->Add(fSB31006);
multigraph->Add(gre,"p");
Double_t Graph_fx1007[21] = {
0.436386,
0.479001,
0.511349,
0.537325,
0.559062,
0.577647,
0.594124,
0.608731,
0.621998,
0.634024,
0.645051,
0.655227,
0.664724,
0.673476,
0.681811,
0.689682,
0.697243,
0.704219,
0.710969,
0.717113,
0.726111};
Double_t Graph_fy1007[21] = {
0.637511,
0.682739,
0.716111,
0.740358,
0.761285,
0.780592,
0.797751,
0.814711,
0.828105,
0.838841,
0.851544,
0.861821,
0.871405,
0.881324,
0.891275,
0.901056,
0.909476,
0.915073,
0.921715,
0.925899,
0.939145};
Double_t Graph_fex1007[21] = {
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0};
Double_t Graph_fey1007[21] = {
0.00399157,
0.0045167,
0.00489326,
0.00506767,
0.00518492,
0.00527569,
0.00540435,
0.00568445,
0.00568885,
0.0060301,
0.00605836,
0.00619182,
0.00632064,
0.00669479,
0.00658981,
0.00673865,
0.00682753,
0.00691147,
0.00720939,
0.00730465,
0.00751825};
gre = new TGraphErrors(21,Graph_fx1007,Graph_fy1007,Graph_fex1007,Graph_fey1007);
gre->SetName("Graph");
gre->SetTitle("Graph");
gre->SetFillColor(1);
gre->SetMarkerStyle(23);
TH1F *Graph_Graph1007 = new TH1F("Graph_Graph1007","Graph",100,0.4074135,0.7550835);
Graph_Graph1007->SetMinimum(0.602205);
Graph_Graph1007->SetMaximum(0.9779776);
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);
TF1 *fSB41008 = new TF1("fSB4","[0]*(1/(1+[1]*64*1.65901*TMath::Power(x,-1.7218)))",0.43,0.73);
fSB41008->SetFillColor(19);
fSB41008->SetFillStyle(0);
ci = TColor::GetColor("#ff0000");
fSB41008->SetLineColor(ci);
fSB41008->SetLineWidth(2);
fSB41008->SetChisquare(191.3612);
fSB41008->SetNDF(94);
fSB41008->GetXaxis()->SetLabelFont(42);
fSB41008->GetXaxis()->SetLabelSize(0.035);
fSB41008->GetXaxis()->SetTitleSize(0.035);
fSB41008->GetXaxis()->SetTitleFont(42);
fSB41008->GetYaxis()->SetLabelFont(42);
fSB41008->GetYaxis()->SetLabelSize(0.035);
fSB41008->GetYaxis()->SetTitleSize(0.035);
fSB41008->GetYaxis()->SetTitleFont(42);
fSB41008->SetParameter(0,1.461227);
fSB41008->SetParError(0,0.004670547);
fSB41008->SetParLimits(0,0,0);
fSB41008->SetParameter(1,0.003107919);
fSB41008->SetParError(1,2.49478e-05);
fSB41008->SetParLimits(1,0,0);
gre->GetListOfFunctions()->Add(fSB41008);
multigraph->Add(gre,"p");
multigraph->Draw("a");
multigraph->GetXaxis()->SetTitle("Lorentz #beta");
multigraph->GetXaxis()->SetLabelFont(42);
multigraph->GetXaxis()->SetLabelSize(0.035);
multigraph->GetXaxis()->SetTitleSize(0.035);
multigraph->GetXaxis()->SetTitleFont(42);
multigraph->GetYaxis()->SetTitle("dA/dE / (10^{-6} a.u./(Mev#upointion#upoints^{-1})");
multigraph->GetYaxis()->SetLabelFont(42);
multigraph->GetYaxis()->SetLabelSize(0.035);
multigraph->GetYaxis()->SetTitleSize(0.035);
multigraph->GetYaxis()->SetTitleFont(42);
TPaveText *pt = new TPaveText(0.4821203,0.94,0.5178797,0.995,"blNDC");
pt->SetName("title");
pt->SetBorderSize(0);
pt->SetFillColor(0);
pt->SetFillStyle(0);
pt->SetTextFont(42);
TText *AText = pt->AddText(" ");
pt->Draw();
TF1 *tf1_birk11009 = new TF1("tf1_birk1","[0]*(1/(1+[1]*1.65901*TMath::Power(x,-1.7218)))",0.3,0.59);
tf1_birk11009->SetFillColor(19);
tf1_birk11009->SetFillStyle(0);
tf1_birk11009->SetLineWidth(2);
tf1_birk11009->SetLineStyle(2);
tf1_birk11009->SetChisquare(6.966278);
tf1_birk11009->SetNDF(24);
tf1_birk11009->GetXaxis()->SetLabelFont(42);
tf1_birk11009->GetXaxis()->SetLabelSize(0.035);
tf1_birk11009->GetXaxis()->SetTitleSize(0.035);
tf1_birk11009->GetXaxis()->SetTitleFont(42);
tf1_birk11009->GetYaxis()->SetLabelFont(42);
tf1_birk11009->GetYaxis()->SetLabelSize(0.035);
tf1_birk11009->GetYaxis()->SetTitleSize(0.035);
tf1_birk11009->GetYaxis()->SetTitleFont(42);
tf1_birk11009->SetParameter(0,1.483503);
tf1_birk11009->SetParError(0,0.007048719);
tf1_birk11009->SetParLimits(0,0,0);
tf1_birk11009->SetParameter(1,0.02031807);
tf1_birk11009->SetParError(1,0.0008434079);
tf1_birk11009->SetParLimits(1,0,0);
tf1_birk11009->Draw("same");
TF1 *tf1_birk21010 = new TF1("tf1_birk2","[0]*(1/(1+[1]*4*1.65901*TMath::Power(x,-1.7218)))",0.34,0.59);
tf1_birk21010->SetFillColor(19);
tf1_birk21010->SetFillStyle(0);
tf1_birk21010->SetLineWidth(2);
tf1_birk21010->SetLineStyle(2);
tf1_birk21010->SetChisquare(18.14934);
tf1_birk21010->SetNDF(24);
tf1_birk21010->GetXaxis()->SetLabelFont(42);
tf1_birk21010->GetXaxis()->SetLabelSize(0.035);
tf1_birk21010->GetXaxis()->SetTitleSize(0.035);
tf1_birk21010->GetXaxis()->SetTitleFont(42);
tf1_birk21010->GetYaxis()->SetLabelFont(42);
tf1_birk21010->GetYaxis()->SetLabelSize(0.035);
tf1_birk21010->GetYaxis()->SetTitleSize(0.035);
tf1_birk21010->GetYaxis()->SetTitleFont(42);
tf1_birk21010->SetParameter(0,1.409186);
tf1_birk21010->SetParError(0,0.007975704);
tf1_birk21010->SetParLimits(0,0,0);
tf1_birk21010->SetParameter(1,0.005106407);
tf1_birk21010->SetParError(1,0.0002685225);
tf1_birk21010->SetParLimits(1,0,0);
tf1_birk21010->Draw("same");
TF1 *tf1_birk31011 = new TF1("tf1_birk3","[0]*(1/(1+[1]*36*1.65901*TMath::Power(x,-1.7218)))",0.4,0.73);
tf1_birk31011->SetFillColor(19);
tf1_birk31011->SetFillStyle(0);
tf1_birk31011->SetLineWidth(2);
tf1_birk31011->SetLineStyle(2);
tf1_birk31011->SetChisquare(28.99199);
tf1_birk31011->SetNDF(24);
tf1_birk31011->GetXaxis()->SetLabelFont(42);
tf1_birk31011->GetXaxis()->SetLabelSize(0.035);
tf1_birk31011->GetXaxis()->SetTitleSize(0.035);
tf1_birk31011->GetXaxis()->SetTitleFont(42);
tf1_birk31011->GetYaxis()->SetLabelFont(42);
tf1_birk31011->GetYaxis()->SetLabelSize(0.035);
tf1_birk31011->GetYaxis()->SetTitleSize(0.035);
tf1_birk31011->GetYaxis()->SetTitleFont(42);
tf1_birk31011->SetParameter(0,1.524827);
tf1_birk31011->SetParError(0,0.01273139);
tf1_birk31011->SetParLimits(0,0,0);
tf1_birk31011->SetParameter(1,0.00435401);
tf1_birk31011->SetParError(1,9.38925e-05);
tf1_birk31011->SetParLimits(1,0,0);
tf1_birk31011->Draw("same");
TF1 *tf1_birk41012 = new TF1("tf1_birk4","[0]*(1/(1+[1]*64*1.65901*TMath::Power(x,-1.7218)))",0.43,0.73);
tf1_birk41012->SetFillColor(19);
tf1_birk41012->SetFillStyle(0);
tf1_birk41012->SetLineWidth(2);
tf1_birk41012->SetLineStyle(2);
tf1_birk41012->SetChisquare(48.98117);
tf1_birk41012->SetNDF(19);
tf1_birk41012->GetXaxis()->SetLabelFont(42);
tf1_birk41012->GetXaxis()->SetLabelSize(0.035);
tf1_birk41012->GetXaxis()->SetTitleSize(0.035);
tf1_birk41012->GetXaxis()->SetTitleFont(42);
tf1_birk41012->GetYaxis()->SetLabelFont(42);
tf1_birk41012->GetYaxis()->SetLabelSize(0.035);
tf1_birk41012->GetYaxis()->SetTitleSize(0.035);
tf1_birk41012->GetYaxis()->SetTitleFont(42);
tf1_birk41012->SetParameter(0,1.406416);
tf1_birk41012->SetParError(0,0.01567856);
tf1_birk41012->SetParLimits(0,0,0);
tf1_birk41012->SetParameter(1,0.002845708);
tf1_birk41012->SetParError(1,7.55654e-05);
tf1_birk41012->SetParLimits(1,0,0);
tf1_birk41012->Draw("same");
TLegend *leg = new TLegend(0.65,0.65,0.9,0.9,NULL,"brNDC");
leg->SetBorderSize(0);
leg->SetTextFont(22);
leg->SetTextSize(0.035);
leg->SetLineColor(1);
leg->SetLineStyle(1);
leg->SetLineWidth(1);
leg->SetFillColor(0);
leg->SetFillStyle(1001);
TLegendEntry *entry=leg->AddEntry("Graph","Protons","p");
entry->SetLineColor(1);
entry->SetLineStyle(1);
entry->SetLineWidth(1);
entry->SetMarkerColor(1);
entry->SetMarkerStyle(20);
entry->SetMarkerSize(1);
entry->SetTextFont(22);
entry=leg->AddEntry("Graph","Helium","p");
entry->SetLineColor(1);
entry->SetLineStyle(1);
entry->SetLineWidth(1);
entry->SetMarkerColor(1);
entry->SetMarkerStyle(21);
entry->SetMarkerSize(1);
entry->SetTextFont(22);
entry=leg->AddEntry("Graph","Carbon","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","Oxygen","p");
entry->SetLineColor(1);
entry->SetLineStyle(1);
entry->SetLineWidth(1);
entry->SetMarkerColor(1);
entry->SetMarkerStyle(23);
entry->SetMarkerSize(1);
entry->SetTextFont(22);
entry=leg->AddEntry("fB","Birks Fit 1","l");
ci = TColor::GetColor("#ff0000");
entry->SetLineColor(ci);
entry->SetLineStyle(1);
entry->SetLineWidth(2);
entry->SetMarkerColor(1);
entry->SetMarkerStyle(21);
entry->SetMarkerSize(1);
entry->SetTextFont(22);
entry=leg->AddEntry("tf1_birk1","Birks Fit 2","l");
entry->SetLineColor(1);
entry->SetLineStyle(2);
entry->SetLineWidth(2);
entry->SetMarkerColor(1);
entry->SetMarkerStyle(21);
entry->SetMarkerSize(1);
entry->SetTextFont(22);
leg->Draw();
Simfit->Modified();
Simfit->cd();
Simfit->SetSelected(Simfit);
}