424 lines
18 KiB
C++
424 lines
18 KiB
C++
|
{
|
||
|
//=========Macro generated from canvas: c1/c1
|
||
|
//========= (Mon Nov 20 18:14:20 2017) by ROOT version5.34/32
|
||
|
TCanvas *c1 = new TCanvas("c1", "c1",10,71,700,500);
|
||
|
gStyle->SetOptStat(0);
|
||
|
gStyle->SetOptTitle(0);
|
||
|
c1->Range(0.2050384,-0.2837461,0.7948584,1.489667);
|
||
|
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(" ");
|
||
|
|
||
|
TGraph *graph = new TGraph(26);
|
||
|
graph->SetName("Graph");
|
||
|
graph->SetTitle("energylist_p_bpmbeta1.txt");
|
||
|
graph->SetFillColor(1);
|
||
|
graph->SetLineWidth(2);
|
||
|
graph->SetMarkerStyle(20);
|
||
|
graph->SetPoint(0,0.308525,1.17009);
|
||
|
graph->SetPoint(1,0.340994,1.22548);
|
||
|
graph->SetPoint(2,0.366173,1.25412);
|
||
|
graph->SetPoint(3,0.386744,1.26762);
|
||
|
graph->SetPoint(4,0.404198,1.27924);
|
||
|
graph->SetPoint(5,0.419413,1.28926);
|
||
|
graph->SetPoint(6,0.432945,1.29822);
|
||
|
graph->SetPoint(7,0.44518,1.30487);
|
||
|
graph->SetPoint(8,0.456345,1.31167);
|
||
|
graph->SetPoint(9,0.466617,1.31966);
|
||
|
graph->SetPoint(10,0.476154,1.32693);
|
||
|
graph->SetPoint(11,0.485023,1.33277);
|
||
|
graph->SetPoint(12,0.493348,1.33748);
|
||
|
graph->SetPoint(13,0.501186,1.342);
|
||
|
graph->SetPoint(14,0.508639,1.34494);
|
||
|
graph->SetPoint(15,0.515744,1.34552);
|
||
|
graph->SetPoint(16,0.522563,1.34422);
|
||
|
graph->SetPoint(17,0.529111,1.34555);
|
||
|
graph->SetPoint(18,0.53538,1.34837);
|
||
|
graph->SetPoint(19,0.541398,1.35181);
|
||
|
graph->SetPoint(20,0.549576,1.35453);
|
||
|
graph->SetPoint(21,0.557429,1.35491);
|
||
|
graph->SetPoint(22,0.564849,1.35663);
|
||
|
graph->SetPoint(23,0.571868,1.35679);
|
||
|
graph->SetPoint(24,0.578541,1.35989);
|
||
|
graph->SetPoint(25,0.5849,1.36464);
|
||
|
|
||
|
TH1F *Graph_Graph1 = new TH1F("Graph_Graph1","energylist_p_bpmbeta1.txt",100,0.2808875,0.6125375);
|
||
|
Graph_Graph1->SetMinimum(1.150635);
|
||
|
Graph_Graph1->SetMaximum(1.384095);
|
||
|
Graph_Graph1->SetDirectory(0);
|
||
|
Graph_Graph1->SetStats(0);
|
||
|
Graph_Graph1->SetLineWidth(2);
|
||
|
Graph_Graph1->SetMarkerStyle(21);
|
||
|
Graph_Graph1->GetXaxis()->SetNdivisions(505);
|
||
|
Graph_Graph1->GetXaxis()->SetLabelFont(22);
|
||
|
Graph_Graph1->GetXaxis()->SetLabelOffset(0.015);
|
||
|
Graph_Graph1->GetXaxis()->SetLabelSize(0.05);
|
||
|
Graph_Graph1->GetXaxis()->SetTitleSize(0.06);
|
||
|
Graph_Graph1->GetXaxis()->SetTitleFont(22);
|
||
|
Graph_Graph1->GetYaxis()->SetLabelFont(22);
|
||
|
Graph_Graph1->GetYaxis()->SetLabelSize(0.05);
|
||
|
Graph_Graph1->GetYaxis()->SetTitleSize(0.06);
|
||
|
Graph_Graph1->GetYaxis()->SetTitleFont(22);
|
||
|
Graph_Graph1->GetZaxis()->SetLabelFont(22);
|
||
|
Graph_Graph1->GetZaxis()->SetLabelSize(0.05);
|
||
|
Graph_Graph1->GetZaxis()->SetTitleSize(0.06);
|
||
|
Graph_Graph1->GetZaxis()->SetTitleFont(22);
|
||
|
graph->SetHistogram(Graph_Graph1);
|
||
|
|
||
|
|
||
|
TF1 *tf1_btvbeta1 = new TF1("tf1_btvbeta1","[0]*((1-0.5*(TMath::Log(2*0.511E6*x*x/(1-x*x)/[1])-x*x)/(TMath::Log(2*0.511E6*x*x/(1-x*x)/68.7)-x*x))/(1+[2]*(1-0.5*(TMath::Log(2*0.511E6*x*x/(1-x*x)/[1])-x*x)/(TMath::Log(2*0.511E6*x*x/(1-x*x)/68.7)-x*x))*1*1.65901*TMath::Power(x,-1.7218))+0.5*(TMath::Log(2*0.511E6*x*x/(1-x*x)/[1])-x*x)/(TMath::Log(2*0.511E6*x*x/(1-x*x)/68.7)-x*x))",0.2808875,0.6125375);
|
||
|
tf1_btvbeta1->SetFillColor(1);
|
||
|
tf1_btvbeta1->SetFillStyle(0);
|
||
|
tf1_btvbeta1->SetMarkerStyle(21);
|
||
|
tf1_btvbeta1->SetLineWidth(2);
|
||
|
tf1_btvbeta1->SetChisquare(0.0008137057);
|
||
|
tf1_btvbeta1->SetNDF(23);
|
||
|
tf1_btvbeta1->GetXaxis()->SetNdivisions(505);
|
||
|
tf1_btvbeta1->GetXaxis()->SetLabelFont(22);
|
||
|
tf1_btvbeta1->GetXaxis()->SetLabelOffset(0.015);
|
||
|
tf1_btvbeta1->GetXaxis()->SetLabelSize(0.05);
|
||
|
tf1_btvbeta1->GetXaxis()->SetTitleSize(0.06);
|
||
|
tf1_btvbeta1->GetXaxis()->SetTitleFont(22);
|
||
|
tf1_btvbeta1->GetYaxis()->SetLabelFont(22);
|
||
|
tf1_btvbeta1->GetYaxis()->SetLabelSize(0.05);
|
||
|
tf1_btvbeta1->GetYaxis()->SetTitleSize(0.06);
|
||
|
tf1_btvbeta1->GetYaxis()->SetTitleFont(22);
|
||
|
tf1_btvbeta1->SetParameter(0,1.396095);
|
||
|
tf1_btvbeta1->SetParError(0,0.001879);
|
||
|
tf1_btvbeta1->SetParLimits(0,0,1.5);
|
||
|
tf1_btvbeta1->SetParameter(1,2.532585e-07);
|
||
|
tf1_btvbeta1->SetParError(1,4.30631e-07);
|
||
|
tf1_btvbeta1->SetParLimits(1,0,10000);
|
||
|
tf1_btvbeta1->SetParameter(2,0.01594335);
|
||
|
tf1_btvbeta1->SetParError(2,9.756116e-05);
|
||
|
tf1_btvbeta1->SetParLimits(2,0.001,0.03);
|
||
|
graph->GetListOfFunctions()->Add(tf1_btvbeta1);
|
||
|
multigraph->Add(graph,"p");
|
||
|
|
||
|
graph = new TGraph(26);
|
||
|
graph->SetName("Graph");
|
||
|
graph->SetTitle("energylist_he_bpmbeta1.txt");
|
||
|
graph->SetFillColor(1);
|
||
|
graph->SetLineWidth(2);
|
||
|
graph->SetMarkerStyle(21);
|
||
|
graph->SetPoint(0,0.347272,1.15061);
|
||
|
graph->SetPoint(1,0.371222,1.18124);
|
||
|
graph->SetPoint(2,0.391037,1.20539);
|
||
|
graph->SetPoint(3,0.408018,1.21968);
|
||
|
graph->SetPoint(4,0.422922,1.22856);
|
||
|
graph->SetPoint(5,0.436235,1.23451);
|
||
|
graph->SetPoint(6,0.447968,1.24983);
|
||
|
graph->SetPoint(7,0.459299,1.2618);
|
||
|
graph->SetPoint(8,0.470415,1.26521);
|
||
|
graph->SetPoint(9,0.478846,1.26492);
|
||
|
graph->SetPoint(10,0.487649,1.26371);
|
||
|
graph->SetPoint(11,0.495887,1.27061);
|
||
|
graph->SetPoint(12,0.503656,1.27334);
|
||
|
graph->SetPoint(13,0.510991,1.27687);
|
||
|
graph->SetPoint(14,0.517959,1.2796);
|
||
|
graph->SetPoint(15,0.524572,1.28062);
|
||
|
graph->SetPoint(16,0.530889,1.28058);
|
||
|
graph->SetPoint(17,0.536926,1.28007);
|
||
|
graph->SetPoint(18,0.542699,1.27389);
|
||
|
graph->SetPoint(19,0.550671,1.27711);
|
||
|
graph->SetPoint(20,0.558452,1.28057);
|
||
|
graph->SetPoint(21,0.565815,1.28576);
|
||
|
graph->SetPoint(22,0.565815,1.28604);
|
||
|
graph->SetPoint(23,0.572799,1.29318);
|
||
|
graph->SetPoint(24,0.579449,1.29729);
|
||
|
graph->SetPoint(25,0.585785,1.29912);
|
||
|
|
||
|
TH1F *Graph_Graph2 = new TH1F("Graph_Graph2","energylist_he_bpmbeta1.txt",100,0.3234207,0.6096363);
|
||
|
Graph_Graph2->SetMinimum(1.135759);
|
||
|
Graph_Graph2->SetMaximum(1.313971);
|
||
|
Graph_Graph2->SetDirectory(0);
|
||
|
Graph_Graph2->SetStats(0);
|
||
|
Graph_Graph2->SetLineWidth(2);
|
||
|
Graph_Graph2->SetMarkerStyle(21);
|
||
|
Graph_Graph2->GetXaxis()->SetNdivisions(505);
|
||
|
Graph_Graph2->GetXaxis()->SetLabelFont(22);
|
||
|
Graph_Graph2->GetXaxis()->SetLabelOffset(0.015);
|
||
|
Graph_Graph2->GetXaxis()->SetLabelSize(0.05);
|
||
|
Graph_Graph2->GetXaxis()->SetTitleSize(0.06);
|
||
|
Graph_Graph2->GetXaxis()->SetTitleFont(22);
|
||
|
Graph_Graph2->GetYaxis()->SetLabelFont(22);
|
||
|
Graph_Graph2->GetYaxis()->SetLabelSize(0.05);
|
||
|
Graph_Graph2->GetYaxis()->SetTitleSize(0.06);
|
||
|
Graph_Graph2->GetYaxis()->SetTitleFont(22);
|
||
|
Graph_Graph2->GetZaxis()->SetLabelFont(22);
|
||
|
Graph_Graph2->GetZaxis()->SetLabelSize(0.05);
|
||
|
Graph_Graph2->GetZaxis()->SetTitleSize(0.06);
|
||
|
Graph_Graph2->GetZaxis()->SetTitleFont(22);
|
||
|
graph->SetHistogram(Graph_Graph2);
|
||
|
|
||
|
|
||
|
TF1 *tf1_btvbeta1 = new TF1("tf1_btvbeta1","[0]*((1-0.5*(TMath::Log(2*0.511E6*x*x/(1-x*x)/[1])-x*x)/(TMath::Log(2*0.511E6*x*x/(1-x*x)/68.7)-x*x))/(1+[2]*(1-0.5*(TMath::Log(2*0.511E6*x*x/(1-x*x)/[1])-x*x)/(TMath::Log(2*0.511E6*x*x/(1-x*x)/68.7)-x*x))*4*1.65901*TMath::Power(x,-1.7218))+0.5*(TMath::Log(2*0.511E6*x*x/(1-x*x)/[1])-x*x)/(TMath::Log(2*0.511E6*x*x/(1-x*x)/68.7)-x*x))",0.3234207,0.6096363);
|
||
|
tf1_btvbeta1->SetFillColor(1);
|
||
|
tf1_btvbeta1->SetFillStyle(0);
|
||
|
tf1_btvbeta1->SetMarkerStyle(21);
|
||
|
tf1_btvbeta1->SetLineWidth(2);
|
||
|
tf1_btvbeta1->SetChisquare(0.0005577);
|
||
|
tf1_btvbeta1->SetNDF(23);
|
||
|
tf1_btvbeta1->GetXaxis()->SetNdivisions(505);
|
||
|
tf1_btvbeta1->GetXaxis()->SetLabelFont(22);
|
||
|
tf1_btvbeta1->GetXaxis()->SetLabelOffset(0.015);
|
||
|
tf1_btvbeta1->GetXaxis()->SetLabelSize(0.05);
|
||
|
tf1_btvbeta1->GetXaxis()->SetTitleSize(0.06);
|
||
|
tf1_btvbeta1->GetXaxis()->SetTitleFont(22);
|
||
|
tf1_btvbeta1->GetYaxis()->SetLabelFont(22);
|
||
|
tf1_btvbeta1->GetYaxis()->SetLabelSize(0.05);
|
||
|
tf1_btvbeta1->GetYaxis()->SetTitleSize(0.06);
|
||
|
tf1_btvbeta1->GetYaxis()->SetTitleFont(22);
|
||
|
tf1_btvbeta1->SetParameter(0,1.317853);
|
||
|
tf1_btvbeta1->SetParError(0,0.005430028);
|
||
|
tf1_btvbeta1->SetParLimits(0,0,1.5);
|
||
|
tf1_btvbeta1->SetParameter(1,0.0001552623);
|
||
|
tf1_btvbeta1->SetParError(1,0.00117284);
|
||
|
tf1_btvbeta1->SetParLimits(1,0,10000);
|
||
|
tf1_btvbeta1->SetParameter(2,0.01753411);
|
||
|
tf1_btvbeta1->SetParError(2,9.814077e-05);
|
||
|
tf1_btvbeta1->SetParLimits(2,0.001,0.03);
|
||
|
graph->GetListOfFunctions()->Add(tf1_btvbeta1);
|
||
|
multigraph->Add(graph,"p");
|
||
|
|
||
|
graph = new TGraph(26);
|
||
|
graph->SetName("Graph");
|
||
|
graph->SetTitle("energylist_c_bpmbeta1.txt");
|
||
|
graph->SetFillColor(1);
|
||
|
graph->SetLineWidth(2);
|
||
|
graph->SetMarkerStyle(22);
|
||
|
graph->SetPoint(0,0.407871,0.70017);
|
||
|
graph->SetPoint(1,0.44884,0.75557);
|
||
|
graph->SetPoint(2,0.479338,0.795619);
|
||
|
graph->SetPoint(3,0.503822,0.823137);
|
||
|
graph->SetPoint(4,0.524858,0.846695);
|
||
|
graph->SetPoint(5,0.543065,0.867102);
|
||
|
graph->SetPoint(6,0.5589,0.886679);
|
||
|
graph->SetPoint(7,0.573741,0.902141);
|
||
|
graph->SetPoint(8,0.586721,0.91659);
|
||
|
graph->SetPoint(9,0.59808,0.929151);
|
||
|
graph->SetPoint(10,0.608891,0.94155);
|
||
|
graph->SetPoint(11,0.619196,0.952243);
|
||
|
graph->SetPoint(12,0.628229,0.961937);
|
||
|
graph->SetPoint(13,0.636893,0.970188);
|
||
|
graph->SetPoint(14,0.645213,0.976903);
|
||
|
graph->SetPoint(15,0.653209,0.987228);
|
||
|
graph->SetPoint(16,0.6609,0.994266);
|
||
|
graph->SetPoint(17,0.667643,1.00407);
|
||
|
graph->SetPoint(18,0.674162,1.00707);
|
||
|
graph->SetPoint(19,0.681086,1.01511);
|
||
|
graph->SetPoint(20,0.689547,1.02523);
|
||
|
graph->SetPoint(21,0.698204,1.03263);
|
||
|
graph->SetPoint(22,0.705926,1.04101);
|
||
|
graph->SetPoint(23,0.713327,1.04986);
|
||
|
graph->SetPoint(24,0.719927,1.05878);
|
||
|
graph->SetPoint(25,0.726761,1.06459);
|
||
|
|
||
|
TH1F *Graph_Graph3 = new TH1F("Graph_Graph3","energylist_c_bpmbeta1.txt",100,0.375982,0.75865);
|
||
|
Graph_Graph3->SetMinimum(0.663728);
|
||
|
Graph_Graph3->SetMaximum(1.101032);
|
||
|
Graph_Graph3->SetDirectory(0);
|
||
|
Graph_Graph3->SetStats(0);
|
||
|
Graph_Graph3->SetLineWidth(2);
|
||
|
Graph_Graph3->SetMarkerStyle(21);
|
||
|
Graph_Graph3->GetXaxis()->SetNdivisions(505);
|
||
|
Graph_Graph3->GetXaxis()->SetLabelFont(22);
|
||
|
Graph_Graph3->GetXaxis()->SetLabelOffset(0.015);
|
||
|
Graph_Graph3->GetXaxis()->SetLabelSize(0.05);
|
||
|
Graph_Graph3->GetXaxis()->SetTitleSize(0.06);
|
||
|
Graph_Graph3->GetXaxis()->SetTitleFont(22);
|
||
|
Graph_Graph3->GetYaxis()->SetLabelFont(22);
|
||
|
Graph_Graph3->GetYaxis()->SetLabelSize(0.05);
|
||
|
Graph_Graph3->GetYaxis()->SetTitleSize(0.06);
|
||
|
Graph_Graph3->GetYaxis()->SetTitleFont(22);
|
||
|
Graph_Graph3->GetZaxis()->SetLabelFont(22);
|
||
|
Graph_Graph3->GetZaxis()->SetLabelSize(0.05);
|
||
|
Graph_Graph3->GetZaxis()->SetTitleSize(0.06);
|
||
|
Graph_Graph3->GetZaxis()->SetTitleFont(22);
|
||
|
graph->SetHistogram(Graph_Graph3);
|
||
|
|
||
|
|
||
|
TF1 *tf1_btvbeta1 = new TF1("tf1_btvbeta1","[0]*((1-0.5*(TMath::Log(2*0.511E6*x*x/(1-x*x)/[1])-x*x)/(TMath::Log(2*0.511E6*x*x/(1-x*x)/68.7)-x*x))/(1+[2]*(1-0.5*(TMath::Log(2*0.511E6*x*x/(1-x*x)/[1])-x*x)/(TMath::Log(2*0.511E6*x*x/(1-x*x)/68.7)-x*x))*36*1.65901*TMath::Power(x,-1.7218))+0.5*(TMath::Log(2*0.511E6*x*x/(1-x*x)/[1])-x*x)/(TMath::Log(2*0.511E6*x*x/(1-x*x)/68.7)-x*x))",0.375982,0.75865);
|
||
|
tf1_btvbeta1->SetFillColor(1);
|
||
|
tf1_btvbeta1->SetFillStyle(0);
|
||
|
tf1_btvbeta1->SetMarkerStyle(21);
|
||
|
tf1_btvbeta1->SetLineWidth(2);
|
||
|
tf1_btvbeta1->SetChisquare(6.524055e-05);
|
||
|
tf1_btvbeta1->SetNDF(23);
|
||
|
tf1_btvbeta1->GetXaxis()->SetNdivisions(505);
|
||
|
tf1_btvbeta1->GetXaxis()->SetLabelFont(22);
|
||
|
tf1_btvbeta1->GetXaxis()->SetLabelOffset(0.015);
|
||
|
tf1_btvbeta1->GetXaxis()->SetLabelSize(0.05);
|
||
|
tf1_btvbeta1->GetXaxis()->SetTitleSize(0.06);
|
||
|
tf1_btvbeta1->GetXaxis()->SetTitleFont(22);
|
||
|
tf1_btvbeta1->GetYaxis()->SetLabelFont(22);
|
||
|
tf1_btvbeta1->GetYaxis()->SetLabelSize(0.05);
|
||
|
tf1_btvbeta1->GetYaxis()->SetTitleSize(0.06);
|
||
|
tf1_btvbeta1->GetYaxis()->SetTitleFont(22);
|
||
|
tf1_btvbeta1->SetParameter(0,1.886126);
|
||
|
tf1_btvbeta1->SetParError(0,0.002531957);
|
||
|
tf1_btvbeta1->SetParLimits(0,0,2.5);
|
||
|
tf1_btvbeta1->SetParameter(1,5373.558);
|
||
|
tf1_btvbeta1->SetParError(1,12.31033);
|
||
|
tf1_btvbeta1->SetParLimits(1,0,10000);
|
||
|
tf1_btvbeta1->SetParameter(2,0.01908395);
|
||
|
tf1_btvbeta1->SetParError(2,2.85933e-05);
|
||
|
tf1_btvbeta1->SetParLimits(2,0.001,0.03);
|
||
|
graph->GetListOfFunctions()->Add(tf1_btvbeta1);
|
||
|
multigraph->Add(graph,"p");
|
||
|
|
||
|
graph = new TGraph(21);
|
||
|
graph->SetName("Graph");
|
||
|
graph->SetTitle("energylist_o_bpmbeta1.txt");
|
||
|
graph->SetFillColor(1);
|
||
|
graph->SetLineWidth(2);
|
||
|
graph->SetMarkerStyle(23);
|
||
|
graph->SetPoint(0,0.436386,0.637511);
|
||
|
graph->SetPoint(1,0.479001,0.682739);
|
||
|
graph->SetPoint(2,0.511349,0.716111);
|
||
|
graph->SetPoint(3,0.537325,0.740358);
|
||
|
graph->SetPoint(4,0.559062,0.761285);
|
||
|
graph->SetPoint(5,0.577647,0.780592);
|
||
|
graph->SetPoint(6,0.594124,0.797751);
|
||
|
graph->SetPoint(7,0.608731,0.814711);
|
||
|
graph->SetPoint(8,0.621998,0.828105);
|
||
|
graph->SetPoint(9,0.634024,0.838841);
|
||
|
graph->SetPoint(10,0.645051,0.851544);
|
||
|
graph->SetPoint(11,0.655227,0.861821);
|
||
|
graph->SetPoint(12,0.664724,0.871405);
|
||
|
graph->SetPoint(13,0.673476,0.881324);
|
||
|
graph->SetPoint(14,0.681811,0.891275);
|
||
|
graph->SetPoint(15,0.689682,0.901056);
|
||
|
graph->SetPoint(16,0.697243,0.909476);
|
||
|
graph->SetPoint(17,0.704219,0.915073);
|
||
|
graph->SetPoint(18,0.710969,0.921715);
|
||
|
graph->SetPoint(19,0.717113,0.925899);
|
||
|
graph->SetPoint(20,0.726111,0.939145);
|
||
|
|
||
|
TH1F *Graph_Graph4 = new TH1F("Graph_Graph4","energylist_o_bpmbeta1.txt",100,0.4074135,0.7550835);
|
||
|
Graph_Graph4->SetMinimum(0.6073476);
|
||
|
Graph_Graph4->SetMaximum(0.9693084);
|
||
|
Graph_Graph4->SetDirectory(0);
|
||
|
Graph_Graph4->SetStats(0);
|
||
|
Graph_Graph4->SetLineWidth(2);
|
||
|
Graph_Graph4->SetMarkerStyle(21);
|
||
|
Graph_Graph4->GetXaxis()->SetNdivisions(505);
|
||
|
Graph_Graph4->GetXaxis()->SetLabelFont(22);
|
||
|
Graph_Graph4->GetXaxis()->SetLabelOffset(0.015);
|
||
|
Graph_Graph4->GetXaxis()->SetLabelSize(0.05);
|
||
|
Graph_Graph4->GetXaxis()->SetTitleSize(0.06);
|
||
|
Graph_Graph4->GetXaxis()->SetTitleFont(22);
|
||
|
Graph_Graph4->GetYaxis()->SetLabelFont(22);
|
||
|
Graph_Graph4->GetYaxis()->SetLabelSize(0.05);
|
||
|
Graph_Graph4->GetYaxis()->SetTitleSize(0.06);
|
||
|
Graph_Graph4->GetYaxis()->SetTitleFont(22);
|
||
|
Graph_Graph4->GetZaxis()->SetLabelFont(22);
|
||
|
Graph_Graph4->GetZaxis()->SetLabelSize(0.05);
|
||
|
Graph_Graph4->GetZaxis()->SetTitleSize(0.06);
|
||
|
Graph_Graph4->GetZaxis()->SetTitleFont(22);
|
||
|
graph->SetHistogram(Graph_Graph4);
|
||
|
|
||
|
|
||
|
TF1 *tf1_btvbeta1 = new TF1("tf1_btvbeta1","[0]*((1-0.5*(TMath::Log(2*0.511E6*x*x/(1-x*x)/[1])-x*x)/(TMath::Log(2*0.511E6*x*x/(1-x*x)/68.7)-x*x))/(1+[2]*(1-0.5*(TMath::Log(2*0.511E6*x*x/(1-x*x)/[1])-x*x)/(TMath::Log(2*0.511E6*x*x/(1-x*x)/68.7)-x*x))*64*1.65901*TMath::Power(x,-1.7218))+0.5*(TMath::Log(2*0.511E6*x*x/(1-x*x)/[1])-x*x)/(TMath::Log(2*0.511E6*x*x/(1-x*x)/68.7)-x*x))",0.4074135,0.7550835);
|
||
|
tf1_btvbeta1->SetFillColor(1);
|
||
|
tf1_btvbeta1->SetFillStyle(0);
|
||
|
tf1_btvbeta1->SetMarkerStyle(21);
|
||
|
tf1_btvbeta1->SetLineWidth(2);
|
||
|
tf1_btvbeta1->SetChisquare(0.0001166363);
|
||
|
tf1_btvbeta1->SetNDF(18);
|
||
|
tf1_btvbeta1->GetXaxis()->SetNdivisions(505);
|
||
|
tf1_btvbeta1->GetXaxis()->SetLabelFont(22);
|
||
|
tf1_btvbeta1->GetXaxis()->SetLabelOffset(0.015);
|
||
|
tf1_btvbeta1->GetXaxis()->SetLabelSize(0.05);
|
||
|
tf1_btvbeta1->GetXaxis()->SetTitleSize(0.06);
|
||
|
tf1_btvbeta1->GetXaxis()->SetTitleFont(22);
|
||
|
tf1_btvbeta1->GetYaxis()->SetLabelFont(22);
|
||
|
tf1_btvbeta1->GetYaxis()->SetLabelSize(0.05);
|
||
|
tf1_btvbeta1->GetYaxis()->SetTitleSize(0.06);
|
||
|
tf1_btvbeta1->GetYaxis()->SetTitleFont(22);
|
||
|
tf1_btvbeta1->SetParameter(0,2.366976);
|
||
|
tf1_btvbeta1->SetParError(0,0.006102641);
|
||
|
tf1_btvbeta1->SetParLimits(0,0,2.5);
|
||
|
tf1_btvbeta1->SetParameter(1,9762.231);
|
||
|
tf1_btvbeta1->SetParError(1,12.85234);
|
||
|
tf1_btvbeta1->SetParLimits(1,0,10000);
|
||
|
tf1_btvbeta1->SetParameter(2,0.02586634);
|
||
|
tf1_btvbeta1->SetParError(2,4.541413e-05);
|
||
|
tf1_btvbeta1->SetParLimits(2,0.01,0.03);
|
||
|
graph->GetListOfFunctions()->Add(tf1_btvbeta1);
|
||
|
multigraph->Add(graph,"p");
|
||
|
multigraph->Draw("a");
|
||
|
multigraph->GetXaxis()->SetTitle("Lorentz #beta");
|
||
|
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("#frac{dA}{dE}");
|
||
|
multigraph->GetYaxis()->SetLabelFont(22);
|
||
|
multigraph->GetYaxis()->SetLabelSize(0.05);
|
||
|
multigraph->GetYaxis()->SetTitleSize(0.06);
|
||
|
multigraph->GetYaxis()->SetTitleFont(22);
|
||
|
|
||
|
TLegend *leg = new TLegend(0.7,0.7,0.9,0.9,NULL,"brNDC");
|
||
|
leg->SetBorderSize(0);
|
||
|
leg->SetTextFont(22);
|
||
|
leg->SetTextSize(0.047);
|
||
|
leg->SetLineColor(1);
|
||
|
leg->SetLineStyle(1);
|
||
|
leg->SetLineWidth(2);
|
||
|
leg->SetFillColor(0);
|
||
|
leg->SetFillStyle(0);
|
||
|
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);
|
||
|
leg->Draw();
|
||
|
c1->Modified();
|
||
|
c1->cd();
|
||
|
c1->SetSelected(c1);
|
||
|
}
|