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.

423 lines
18 KiB

  1. {
  2. //=========Macro generated from canvas: c1/c1
  3. //========= (Mon Nov 20 18:14:20 2017) by ROOT version5.34/32
  4. TCanvas *c1 = new TCanvas("c1", "c1",10,71,700,500);
  5. gStyle->SetOptStat(0);
  6. gStyle->SetOptTitle(0);
  7. c1->Range(0.2050384,-0.2837461,0.7948584,1.489667);
  8. c1->SetFillColor(0);
  9. c1->SetBorderMode(0);
  10. c1->SetBorderSize(2);
  11. c1->SetTickx(1);
  12. c1->SetTicky(1);
  13. c1->SetLeftMargin(0.14);
  14. c1->SetRightMargin(0.08);
  15. c1->SetTopMargin(0.05);
  16. c1->SetBottomMargin(0.16);
  17. c1->SetFrameLineWidth(2);
  18. c1->SetFrameBorderMode(0);
  19. c1->SetFrameLineWidth(2);
  20. c1->SetFrameBorderMode(0);
  21. TMultiGraph *multigraph = new TMultiGraph();
  22. multigraph->SetName("");
  23. multigraph->SetTitle(" ");
  24. TGraph *graph = new TGraph(26);
  25. graph->SetName("Graph");
  26. graph->SetTitle("energylist_p_bpmbeta1.txt");
  27. graph->SetFillColor(1);
  28. graph->SetLineWidth(2);
  29. graph->SetMarkerStyle(20);
  30. graph->SetPoint(0,0.308525,1.17009);
  31. graph->SetPoint(1,0.340994,1.22548);
  32. graph->SetPoint(2,0.366173,1.25412);
  33. graph->SetPoint(3,0.386744,1.26762);
  34. graph->SetPoint(4,0.404198,1.27924);
  35. graph->SetPoint(5,0.419413,1.28926);
  36. graph->SetPoint(6,0.432945,1.29822);
  37. graph->SetPoint(7,0.44518,1.30487);
  38. graph->SetPoint(8,0.456345,1.31167);
  39. graph->SetPoint(9,0.466617,1.31966);
  40. graph->SetPoint(10,0.476154,1.32693);
  41. graph->SetPoint(11,0.485023,1.33277);
  42. graph->SetPoint(12,0.493348,1.33748);
  43. graph->SetPoint(13,0.501186,1.342);
  44. graph->SetPoint(14,0.508639,1.34494);
  45. graph->SetPoint(15,0.515744,1.34552);
  46. graph->SetPoint(16,0.522563,1.34422);
  47. graph->SetPoint(17,0.529111,1.34555);
  48. graph->SetPoint(18,0.53538,1.34837);
  49. graph->SetPoint(19,0.541398,1.35181);
  50. graph->SetPoint(20,0.549576,1.35453);
  51. graph->SetPoint(21,0.557429,1.35491);
  52. graph->SetPoint(22,0.564849,1.35663);
  53. graph->SetPoint(23,0.571868,1.35679);
  54. graph->SetPoint(24,0.578541,1.35989);
  55. graph->SetPoint(25,0.5849,1.36464);
  56. TH1F *Graph_Graph1 = new TH1F("Graph_Graph1","energylist_p_bpmbeta1.txt",100,0.2808875,0.6125375);
  57. Graph_Graph1->SetMinimum(1.150635);
  58. Graph_Graph1->SetMaximum(1.384095);
  59. Graph_Graph1->SetDirectory(0);
  60. Graph_Graph1->SetStats(0);
  61. Graph_Graph1->SetLineWidth(2);
  62. Graph_Graph1->SetMarkerStyle(21);
  63. Graph_Graph1->GetXaxis()->SetNdivisions(505);
  64. Graph_Graph1->GetXaxis()->SetLabelFont(22);
  65. Graph_Graph1->GetXaxis()->SetLabelOffset(0.015);
  66. Graph_Graph1->GetXaxis()->SetLabelSize(0.05);
  67. Graph_Graph1->GetXaxis()->SetTitleSize(0.06);
  68. Graph_Graph1->GetXaxis()->SetTitleFont(22);
  69. Graph_Graph1->GetYaxis()->SetLabelFont(22);
  70. Graph_Graph1->GetYaxis()->SetLabelSize(0.05);
  71. Graph_Graph1->GetYaxis()->SetTitleSize(0.06);
  72. Graph_Graph1->GetYaxis()->SetTitleFont(22);
  73. Graph_Graph1->GetZaxis()->SetLabelFont(22);
  74. Graph_Graph1->GetZaxis()->SetLabelSize(0.05);
  75. Graph_Graph1->GetZaxis()->SetTitleSize(0.06);
  76. Graph_Graph1->GetZaxis()->SetTitleFont(22);
  77. graph->SetHistogram(Graph_Graph1);
  78. 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);
  79. tf1_btvbeta1->SetFillColor(1);
  80. tf1_btvbeta1->SetFillStyle(0);
  81. tf1_btvbeta1->SetMarkerStyle(21);
  82. tf1_btvbeta1->SetLineWidth(2);
  83. tf1_btvbeta1->SetChisquare(0.0008137057);
  84. tf1_btvbeta1->SetNDF(23);
  85. tf1_btvbeta1->GetXaxis()->SetNdivisions(505);
  86. tf1_btvbeta1->GetXaxis()->SetLabelFont(22);
  87. tf1_btvbeta1->GetXaxis()->SetLabelOffset(0.015);
  88. tf1_btvbeta1->GetXaxis()->SetLabelSize(0.05);
  89. tf1_btvbeta1->GetXaxis()->SetTitleSize(0.06);
  90. tf1_btvbeta1->GetXaxis()->SetTitleFont(22);
  91. tf1_btvbeta1->GetYaxis()->SetLabelFont(22);
  92. tf1_btvbeta1->GetYaxis()->SetLabelSize(0.05);
  93. tf1_btvbeta1->GetYaxis()->SetTitleSize(0.06);
  94. tf1_btvbeta1->GetYaxis()->SetTitleFont(22);
  95. tf1_btvbeta1->SetParameter(0,1.396095);
  96. tf1_btvbeta1->SetParError(0,0.001879);
  97. tf1_btvbeta1->SetParLimits(0,0,1.5);
  98. tf1_btvbeta1->SetParameter(1,2.532585e-07);
  99. tf1_btvbeta1->SetParError(1,4.30631e-07);
  100. tf1_btvbeta1->SetParLimits(1,0,10000);
  101. tf1_btvbeta1->SetParameter(2,0.01594335);
  102. tf1_btvbeta1->SetParError(2,9.756116e-05);
  103. tf1_btvbeta1->SetParLimits(2,0.001,0.03);
  104. graph->GetListOfFunctions()->Add(tf1_btvbeta1);
  105. multigraph->Add(graph,"p");
  106. graph = new TGraph(26);
  107. graph->SetName("Graph");
  108. graph->SetTitle("energylist_he_bpmbeta1.txt");
  109. graph->SetFillColor(1);
  110. graph->SetLineWidth(2);
  111. graph->SetMarkerStyle(21);
  112. graph->SetPoint(0,0.347272,1.15061);
  113. graph->SetPoint(1,0.371222,1.18124);
  114. graph->SetPoint(2,0.391037,1.20539);
  115. graph->SetPoint(3,0.408018,1.21968);
  116. graph->SetPoint(4,0.422922,1.22856);
  117. graph->SetPoint(5,0.436235,1.23451);
  118. graph->SetPoint(6,0.447968,1.24983);
  119. graph->SetPoint(7,0.459299,1.2618);
  120. graph->SetPoint(8,0.470415,1.26521);
  121. graph->SetPoint(9,0.478846,1.26492);
  122. graph->SetPoint(10,0.487649,1.26371);
  123. graph->SetPoint(11,0.495887,1.27061);
  124. graph->SetPoint(12,0.503656,1.27334);
  125. graph->SetPoint(13,0.510991,1.27687);
  126. graph->SetPoint(14,0.517959,1.2796);
  127. graph->SetPoint(15,0.524572,1.28062);
  128. graph->SetPoint(16,0.530889,1.28058);
  129. graph->SetPoint(17,0.536926,1.28007);
  130. graph->SetPoint(18,0.542699,1.27389);
  131. graph->SetPoint(19,0.550671,1.27711);
  132. graph->SetPoint(20,0.558452,1.28057);
  133. graph->SetPoint(21,0.565815,1.28576);
  134. graph->SetPoint(22,0.565815,1.28604);
  135. graph->SetPoint(23,0.572799,1.29318);
  136. graph->SetPoint(24,0.579449,1.29729);
  137. graph->SetPoint(25,0.585785,1.29912);
  138. TH1F *Graph_Graph2 = new TH1F("Graph_Graph2","energylist_he_bpmbeta1.txt",100,0.3234207,0.6096363);
  139. Graph_Graph2->SetMinimum(1.135759);
  140. Graph_Graph2->SetMaximum(1.313971);
  141. Graph_Graph2->SetDirectory(0);
  142. Graph_Graph2->SetStats(0);
  143. Graph_Graph2->SetLineWidth(2);
  144. Graph_Graph2->SetMarkerStyle(21);
  145. Graph_Graph2->GetXaxis()->SetNdivisions(505);
  146. Graph_Graph2->GetXaxis()->SetLabelFont(22);
  147. Graph_Graph2->GetXaxis()->SetLabelOffset(0.015);
  148. Graph_Graph2->GetXaxis()->SetLabelSize(0.05);
  149. Graph_Graph2->GetXaxis()->SetTitleSize(0.06);
  150. Graph_Graph2->GetXaxis()->SetTitleFont(22);
  151. Graph_Graph2->GetYaxis()->SetLabelFont(22);
  152. Graph_Graph2->GetYaxis()->SetLabelSize(0.05);
  153. Graph_Graph2->GetYaxis()->SetTitleSize(0.06);
  154. Graph_Graph2->GetYaxis()->SetTitleFont(22);
  155. Graph_Graph2->GetZaxis()->SetLabelFont(22);
  156. Graph_Graph2->GetZaxis()->SetLabelSize(0.05);
  157. Graph_Graph2->GetZaxis()->SetTitleSize(0.06);
  158. Graph_Graph2->GetZaxis()->SetTitleFont(22);
  159. graph->SetHistogram(Graph_Graph2);
  160. 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);
  161. tf1_btvbeta1->SetFillColor(1);
  162. tf1_btvbeta1->SetFillStyle(0);
  163. tf1_btvbeta1->SetMarkerStyle(21);
  164. tf1_btvbeta1->SetLineWidth(2);
  165. tf1_btvbeta1->SetChisquare(0.0005577);
  166. tf1_btvbeta1->SetNDF(23);
  167. tf1_btvbeta1->GetXaxis()->SetNdivisions(505);
  168. tf1_btvbeta1->GetXaxis()->SetLabelFont(22);
  169. tf1_btvbeta1->GetXaxis()->SetLabelOffset(0.015);
  170. tf1_btvbeta1->GetXaxis()->SetLabelSize(0.05);
  171. tf1_btvbeta1->GetXaxis()->SetTitleSize(0.06);
  172. tf1_btvbeta1->GetXaxis()->SetTitleFont(22);
  173. tf1_btvbeta1->GetYaxis()->SetLabelFont(22);
  174. tf1_btvbeta1->GetYaxis()->SetLabelSize(0.05);
  175. tf1_btvbeta1->GetYaxis()->SetTitleSize(0.06);
  176. tf1_btvbeta1->GetYaxis()->SetTitleFont(22);
  177. tf1_btvbeta1->SetParameter(0,1.317853);
  178. tf1_btvbeta1->SetParError(0,0.005430028);
  179. tf1_btvbeta1->SetParLimits(0,0,1.5);
  180. tf1_btvbeta1->SetParameter(1,0.0001552623);
  181. tf1_btvbeta1->SetParError(1,0.00117284);
  182. tf1_btvbeta1->SetParLimits(1,0,10000);
  183. tf1_btvbeta1->SetParameter(2,0.01753411);
  184. tf1_btvbeta1->SetParError(2,9.814077e-05);
  185. tf1_btvbeta1->SetParLimits(2,0.001,0.03);
  186. graph->GetListOfFunctions()->Add(tf1_btvbeta1);
  187. multigraph->Add(graph,"p");
  188. graph = new TGraph(26);
  189. graph->SetName("Graph");
  190. graph->SetTitle("energylist_c_bpmbeta1.txt");
  191. graph->SetFillColor(1);
  192. graph->SetLineWidth(2);
  193. graph->SetMarkerStyle(22);
  194. graph->SetPoint(0,0.407871,0.70017);
  195. graph->SetPoint(1,0.44884,0.75557);
  196. graph->SetPoint(2,0.479338,0.795619);
  197. graph->SetPoint(3,0.503822,0.823137);
  198. graph->SetPoint(4,0.524858,0.846695);
  199. graph->SetPoint(5,0.543065,0.867102);
  200. graph->SetPoint(6,0.5589,0.886679);
  201. graph->SetPoint(7,0.573741,0.902141);
  202. graph->SetPoint(8,0.586721,0.91659);
  203. graph->SetPoint(9,0.59808,0.929151);
  204. graph->SetPoint(10,0.608891,0.94155);
  205. graph->SetPoint(11,0.619196,0.952243);
  206. graph->SetPoint(12,0.628229,0.961937);
  207. graph->SetPoint(13,0.636893,0.970188);
  208. graph->SetPoint(14,0.645213,0.976903);
  209. graph->SetPoint(15,0.653209,0.987228);
  210. graph->SetPoint(16,0.6609,0.994266);
  211. graph->SetPoint(17,0.667643,1.00407);
  212. graph->SetPoint(18,0.674162,1.00707);
  213. graph->SetPoint(19,0.681086,1.01511);
  214. graph->SetPoint(20,0.689547,1.02523);
  215. graph->SetPoint(21,0.698204,1.03263);
  216. graph->SetPoint(22,0.705926,1.04101);
  217. graph->SetPoint(23,0.713327,1.04986);
  218. graph->SetPoint(24,0.719927,1.05878);
  219. graph->SetPoint(25,0.726761,1.06459);
  220. TH1F *Graph_Graph3 = new TH1F("Graph_Graph3","energylist_c_bpmbeta1.txt",100,0.375982,0.75865);
  221. Graph_Graph3->SetMinimum(0.663728);
  222. Graph_Graph3->SetMaximum(1.101032);
  223. Graph_Graph3->SetDirectory(0);
  224. Graph_Graph3->SetStats(0);
  225. Graph_Graph3->SetLineWidth(2);
  226. Graph_Graph3->SetMarkerStyle(21);
  227. Graph_Graph3->GetXaxis()->SetNdivisions(505);
  228. Graph_Graph3->GetXaxis()->SetLabelFont(22);
  229. Graph_Graph3->GetXaxis()->SetLabelOffset(0.015);
  230. Graph_Graph3->GetXaxis()->SetLabelSize(0.05);
  231. Graph_Graph3->GetXaxis()->SetTitleSize(0.06);
  232. Graph_Graph3->GetXaxis()->SetTitleFont(22);
  233. Graph_Graph3->GetYaxis()->SetLabelFont(22);
  234. Graph_Graph3->GetYaxis()->SetLabelSize(0.05);
  235. Graph_Graph3->GetYaxis()->SetTitleSize(0.06);
  236. Graph_Graph3->GetYaxis()->SetTitleFont(22);
  237. Graph_Graph3->GetZaxis()->SetLabelFont(22);
  238. Graph_Graph3->GetZaxis()->SetLabelSize(0.05);
  239. Graph_Graph3->GetZaxis()->SetTitleSize(0.06);
  240. Graph_Graph3->GetZaxis()->SetTitleFont(22);
  241. graph->SetHistogram(Graph_Graph3);
  242. 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);
  243. tf1_btvbeta1->SetFillColor(1);
  244. tf1_btvbeta1->SetFillStyle(0);
  245. tf1_btvbeta1->SetMarkerStyle(21);
  246. tf1_btvbeta1->SetLineWidth(2);
  247. tf1_btvbeta1->SetChisquare(6.524055e-05);
  248. tf1_btvbeta1->SetNDF(23);
  249. tf1_btvbeta1->GetXaxis()->SetNdivisions(505);
  250. tf1_btvbeta1->GetXaxis()->SetLabelFont(22);
  251. tf1_btvbeta1->GetXaxis()->SetLabelOffset(0.015);
  252. tf1_btvbeta1->GetXaxis()->SetLabelSize(0.05);
  253. tf1_btvbeta1->GetXaxis()->SetTitleSize(0.06);
  254. tf1_btvbeta1->GetXaxis()->SetTitleFont(22);
  255. tf1_btvbeta1->GetYaxis()->SetLabelFont(22);
  256. tf1_btvbeta1->GetYaxis()->SetLabelSize(0.05);
  257. tf1_btvbeta1->GetYaxis()->SetTitleSize(0.06);
  258. tf1_btvbeta1->GetYaxis()->SetTitleFont(22);
  259. tf1_btvbeta1->SetParameter(0,1.886126);
  260. tf1_btvbeta1->SetParError(0,0.002531957);
  261. tf1_btvbeta1->SetParLimits(0,0,2.5);
  262. tf1_btvbeta1->SetParameter(1,5373.558);
  263. tf1_btvbeta1->SetParError(1,12.31033);
  264. tf1_btvbeta1->SetParLimits(1,0,10000);
  265. tf1_btvbeta1->SetParameter(2,0.01908395);
  266. tf1_btvbeta1->SetParError(2,2.85933e-05);
  267. tf1_btvbeta1->SetParLimits(2,0.001,0.03);
  268. graph->GetListOfFunctions()->Add(tf1_btvbeta1);
  269. multigraph->Add(graph,"p");
  270. graph = new TGraph(21);
  271. graph->SetName("Graph");
  272. graph->SetTitle("energylist_o_bpmbeta1.txt");
  273. graph->SetFillColor(1);
  274. graph->SetLineWidth(2);
  275. graph->SetMarkerStyle(23);
  276. graph->SetPoint(0,0.436386,0.637511);
  277. graph->SetPoint(1,0.479001,0.682739);
  278. graph->SetPoint(2,0.511349,0.716111);
  279. graph->SetPoint(3,0.537325,0.740358);
  280. graph->SetPoint(4,0.559062,0.761285);
  281. graph->SetPoint(5,0.577647,0.780592);
  282. graph->SetPoint(6,0.594124,0.797751);
  283. graph->SetPoint(7,0.608731,0.814711);
  284. graph->SetPoint(8,0.621998,0.828105);
  285. graph->SetPoint(9,0.634024,0.838841);
  286. graph->SetPoint(10,0.645051,0.851544);
  287. graph->SetPoint(11,0.655227,0.861821);
  288. graph->SetPoint(12,0.664724,0.871405);
  289. graph->SetPoint(13,0.673476,0.881324);
  290. graph->SetPoint(14,0.681811,0.891275);
  291. graph->SetPoint(15,0.689682,0.901056);
  292. graph->SetPoint(16,0.697243,0.909476);
  293. graph->SetPoint(17,0.704219,0.915073);
  294. graph->SetPoint(18,0.710969,0.921715);
  295. graph->SetPoint(19,0.717113,0.925899);
  296. graph->SetPoint(20,0.726111,0.939145);
  297. TH1F *Graph_Graph4 = new TH1F("Graph_Graph4","energylist_o_bpmbeta1.txt",100,0.4074135,0.7550835);
  298. Graph_Graph4->SetMinimum(0.6073476);
  299. Graph_Graph4->SetMaximum(0.9693084);
  300. Graph_Graph4->SetDirectory(0);
  301. Graph_Graph4->SetStats(0);
  302. Graph_Graph4->SetLineWidth(2);
  303. Graph_Graph4->SetMarkerStyle(21);
  304. Graph_Graph4->GetXaxis()->SetNdivisions(505);
  305. Graph_Graph4->GetXaxis()->SetLabelFont(22);
  306. Graph_Graph4->GetXaxis()->SetLabelOffset(0.015);
  307. Graph_Graph4->GetXaxis()->SetLabelSize(0.05);
  308. Graph_Graph4->GetXaxis()->SetTitleSize(0.06);
  309. Graph_Graph4->GetXaxis()->SetTitleFont(22);
  310. Graph_Graph4->GetYaxis()->SetLabelFont(22);
  311. Graph_Graph4->GetYaxis()->SetLabelSize(0.05);
  312. Graph_Graph4->GetYaxis()->SetTitleSize(0.06);
  313. Graph_Graph4->GetYaxis()->SetTitleFont(22);
  314. Graph_Graph4->GetZaxis()->SetLabelFont(22);
  315. Graph_Graph4->GetZaxis()->SetLabelSize(0.05);
  316. Graph_Graph4->GetZaxis()->SetTitleSize(0.06);
  317. Graph_Graph4->GetZaxis()->SetTitleFont(22);
  318. graph->SetHistogram(Graph_Graph4);
  319. 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);
  320. tf1_btvbeta1->SetFillColor(1);
  321. tf1_btvbeta1->SetFillStyle(0);
  322. tf1_btvbeta1->SetMarkerStyle(21);
  323. tf1_btvbeta1->SetLineWidth(2);
  324. tf1_btvbeta1->SetChisquare(0.0001166363);
  325. tf1_btvbeta1->SetNDF(18);
  326. tf1_btvbeta1->GetXaxis()->SetNdivisions(505);
  327. tf1_btvbeta1->GetXaxis()->SetLabelFont(22);
  328. tf1_btvbeta1->GetXaxis()->SetLabelOffset(0.015);
  329. tf1_btvbeta1->GetXaxis()->SetLabelSize(0.05);
  330. tf1_btvbeta1->GetXaxis()->SetTitleSize(0.06);
  331. tf1_btvbeta1->GetXaxis()->SetTitleFont(22);
  332. tf1_btvbeta1->GetYaxis()->SetLabelFont(22);
  333. tf1_btvbeta1->GetYaxis()->SetLabelSize(0.05);
  334. tf1_btvbeta1->GetYaxis()->SetTitleSize(0.06);
  335. tf1_btvbeta1->GetYaxis()->SetTitleFont(22);
  336. tf1_btvbeta1->SetParameter(0,2.366976);
  337. tf1_btvbeta1->SetParError(0,0.006102641);
  338. tf1_btvbeta1->SetParLimits(0,0,2.5);
  339. tf1_btvbeta1->SetParameter(1,9762.231);
  340. tf1_btvbeta1->SetParError(1,12.85234);
  341. tf1_btvbeta1->SetParLimits(1,0,10000);
  342. tf1_btvbeta1->SetParameter(2,0.02586634);
  343. tf1_btvbeta1->SetParError(2,4.541413e-05);
  344. tf1_btvbeta1->SetParLimits(2,0.01,0.03);
  345. graph->GetListOfFunctions()->Add(tf1_btvbeta1);
  346. multigraph->Add(graph,"p");
  347. multigraph->Draw("a");
  348. multigraph->GetXaxis()->SetTitle("Lorentz #beta");
  349. multigraph->GetXaxis()->SetNdivisions(505);
  350. multigraph->GetXaxis()->SetLabelFont(22);
  351. multigraph->GetXaxis()->SetLabelOffset(0.015);
  352. multigraph->GetXaxis()->SetLabelSize(0.05);
  353. multigraph->GetXaxis()->SetTitleSize(0.06);
  354. multigraph->GetXaxis()->SetTitleFont(22);
  355. multigraph->GetYaxis()->SetTitle("#frac{dA}{dE}");
  356. multigraph->GetYaxis()->SetLabelFont(22);
  357. multigraph->GetYaxis()->SetLabelSize(0.05);
  358. multigraph->GetYaxis()->SetTitleSize(0.06);
  359. multigraph->GetYaxis()->SetTitleFont(22);
  360. TLegend *leg = new TLegend(0.7,0.7,0.9,0.9,NULL,"brNDC");
  361. leg->SetBorderSize(0);
  362. leg->SetTextFont(22);
  363. leg->SetTextSize(0.047);
  364. leg->SetLineColor(1);
  365. leg->SetLineStyle(1);
  366. leg->SetLineWidth(2);
  367. leg->SetFillColor(0);
  368. leg->SetFillStyle(0);
  369. TLegendEntry *entry=leg->AddEntry("Graph","Protons","p");
  370. entry->SetLineColor(1);
  371. entry->SetLineStyle(1);
  372. entry->SetLineWidth(1);
  373. entry->SetMarkerColor(1);
  374. entry->SetMarkerStyle(20);
  375. entry->SetMarkerSize(1);
  376. entry->SetTextFont(22);
  377. entry=leg->AddEntry("Graph","Helium","p");
  378. entry->SetLineColor(1);
  379. entry->SetLineStyle(1);
  380. entry->SetLineWidth(1);
  381. entry->SetMarkerColor(1);
  382. entry->SetMarkerStyle(21);
  383. entry->SetMarkerSize(1);
  384. entry->SetTextFont(22);
  385. entry=leg->AddEntry("Graph","Carbon","p");
  386. entry->SetLineColor(1);
  387. entry->SetLineStyle(1);
  388. entry->SetLineWidth(1);
  389. entry->SetMarkerColor(1);
  390. entry->SetMarkerStyle(22);
  391. entry->SetMarkerSize(1);
  392. entry->SetTextFont(22);
  393. entry=leg->AddEntry("Graph","Oxygen","p");
  394. entry->SetLineColor(1);
  395. entry->SetLineStyle(1);
  396. entry->SetLineWidth(1);
  397. entry->SetMarkerColor(1);
  398. entry->SetMarkerStyle(23);
  399. entry->SetMarkerSize(1);
  400. entry->SetTextFont(22);
  401. leg->Draw();
  402. c1->Modified();
  403. c1->cd();
  404. c1->SetSelected(c1);
  405. }