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

  1. void bvt_beta_combinedfitbirks2()
  2. {
  3. //=========Macro generated from canvas: Simfit/Simultaneous fit
  4. //========= (Wed Nov 29 17:14:20 2017) by ROOT version6.06/02
  5. TCanvas *Simfit = new TCanvas("Simfit", "Simultaneous fit",10,71,700,500);
  6. Simfit->Range(0.2301057,0.3875,0.8051803,1.5125);
  7. Simfit->SetFillColor(0);
  8. Simfit->SetBorderMode(0);
  9. Simfit->SetBorderSize(2);
  10. Simfit->SetFrameBorderMode(0);
  11. Simfit->SetFrameBorderMode(0);
  12. TMultiGraph *multigraph = new TMultiGraph();
  13. multigraph->SetName("");
  14. multigraph->SetTitle(" ");
  15. Double_t Graph_fx1001[26] = {
  16. 0.308525,
  17. 0.340994,
  18. 0.366173,
  19. 0.386744,
  20. 0.404198,
  21. 0.419413,
  22. 0.432945,
  23. 0.44518,
  24. 0.456345,
  25. 0.466617,
  26. 0.476154,
  27. 0.485023,
  28. 0.493348,
  29. 0.501186,
  30. 0.508639,
  31. 0.515744,
  32. 0.522563,
  33. 0.529111,
  34. 0.53538,
  35. 0.541398,
  36. 0.549576,
  37. 0.557429,
  38. 0.564849,
  39. 0.571868,
  40. 0.578541,
  41. 0.5849};
  42. Double_t Graph_fy1001[26] = {
  43. 1.17009,
  44. 1.22548,
  45. 1.25412,
  46. 1.26762,
  47. 1.27924,
  48. 1.28926,
  49. 1.29822,
  50. 1.30487,
  51. 1.31167,
  52. 1.31966,
  53. 1.32693,
  54. 1.33277,
  55. 1.33748,
  56. 1.342,
  57. 1.34494,
  58. 1.34552,
  59. 1.34422,
  60. 1.34555,
  61. 1.34837,
  62. 1.35181,
  63. 1.35453,
  64. 1.35491,
  65. 1.35663,
  66. 1.35679,
  67. 1.35989,
  68. 1.36464};
  69. Double_t Graph_fex1001[26] = {
  70. 0,
  71. 0,
  72. 0,
  73. 0,
  74. 0,
  75. 0,
  76. 0,
  77. 0,
  78. 0,
  79. 0,
  80. 0,
  81. 0,
  82. 0,
  83. 0,
  84. 0,
  85. 0,
  86. 0,
  87. 0,
  88. 0,
  89. 0,
  90. 0,
  91. 0,
  92. 0,
  93. 0,
  94. 0,
  95. 0};
  96. Double_t Graph_fey1001[26] = {
  97. 0.00768545,
  98. 0.00819192,
  99. 0.00890086,
  100. 0.00890319,
  101. 0.00893001,
  102. 0.00898034,
  103. 0.00878207,
  104. 0.00887555,
  105. 0.00851766,
  106. 0.00882661,
  107. 0.00893656,
  108. 0.00886456,
  109. 0.00898026,
  110. 0.00904985,
  111. 0.00880901,
  112. 0.00871377,
  113. 0.00862534,
  114. 0.00868173,
  115. 0.0087194,
  116. 0.00875697,
  117. 0.00870121,
  118. 0.00870414,
  119. 0.00876418,
  120. 0.00881008,
  121. 0.00884663,
  122. 0.00892479};
  123. TGraphErrors *gre = new TGraphErrors(26,Graph_fx1001,Graph_fy1001,Graph_fex1001,Graph_fey1001);
  124. gre->SetName("Graph");
  125. gre->SetTitle("Graph");
  126. gre->SetFillColor(1);
  127. gre->SetMarkerStyle(20);
  128. TH1F *Graph_Graph1001 = new TH1F("Graph_Graph1001","Graph",100,0.2808875,0.6125375);
  129. Graph_Graph1001->SetMinimum(1.141289);
  130. Graph_Graph1001->SetMaximum(1.394681);
  131. Graph_Graph1001->SetDirectory(0);
  132. Graph_Graph1001->SetStats(0);
  133. Int_t ci; // for color index setting
  134. TColor *color; // for color definition with alpha
  135. ci = TColor::GetColor("#000099");
  136. Graph_Graph1001->SetLineColor(ci);
  137. Graph_Graph1001->GetXaxis()->SetLabelFont(42);
  138. Graph_Graph1001->GetXaxis()->SetLabelSize(0.035);
  139. Graph_Graph1001->GetXaxis()->SetTitleSize(0.035);
  140. Graph_Graph1001->GetXaxis()->SetTitleFont(42);
  141. Graph_Graph1001->GetYaxis()->SetLabelFont(42);
  142. Graph_Graph1001->GetYaxis()->SetLabelSize(0.035);
  143. Graph_Graph1001->GetYaxis()->SetTitleSize(0.035);
  144. Graph_Graph1001->GetYaxis()->SetTitleFont(42);
  145. Graph_Graph1001->GetZaxis()->SetLabelFont(42);
  146. Graph_Graph1001->GetZaxis()->SetLabelSize(0.035);
  147. Graph_Graph1001->GetZaxis()->SetTitleSize(0.035);
  148. Graph_Graph1001->GetZaxis()->SetTitleFont(42);
  149. gre->SetHistogram(Graph_Graph1001);
  150. TF1 *fB1002 = new TF1("fB","[0]*(1/(1+[1]*1.65901*TMath::Power(x,-1.7218)))",0.3,0.59);
  151. fB1002->SetFillColor(19);
  152. fB1002->SetFillStyle(0);
  153. ci = TColor::GetColor("#ff0000");
  154. fB1002->SetLineColor(ci);
  155. fB1002->SetLineWidth(2);
  156. fB1002->SetChisquare(191.3612);
  157. fB1002->SetNDF(94);
  158. fB1002->GetXaxis()->SetLabelFont(42);
  159. fB1002->GetXaxis()->SetLabelSize(0.035);
  160. fB1002->GetXaxis()->SetTitleSize(0.035);
  161. fB1002->GetXaxis()->SetTitleFont(42);
  162. fB1002->GetYaxis()->SetLabelFont(42);
  163. fB1002->GetYaxis()->SetLabelSize(0.035);
  164. fB1002->GetYaxis()->SetTitleSize(0.035);
  165. fB1002->GetYaxis()->SetTitleFont(42);
  166. fB1002->SetParameter(0,1.461227);
  167. fB1002->SetParError(0,0.004670547);
  168. fB1002->SetParLimits(0,0,0);
  169. fB1002->SetParameter(1,0.01776508);
  170. fB1002->SetParError(1,0.0005790538);
  171. fB1002->SetParLimits(1,0,0);
  172. gre->GetListOfFunctions()->Add(fB1002);
  173. multigraph->Add(gre,"p");
  174. Double_t Graph_fx1003[26] = {
  175. 0.347272,
  176. 0.371222,
  177. 0.391037,
  178. 0.408018,
  179. 0.422922,
  180. 0.436235,
  181. 0.447968,
  182. 0.459299,
  183. 0.470415,
  184. 0.478846,
  185. 0.487649,
  186. 0.495887,
  187. 0.503656,
  188. 0.510991,
  189. 0.517959,
  190. 0.524572,
  191. 0.530889,
  192. 0.536926,
  193. 0.542699,
  194. 0.550671,
  195. 0.558452,
  196. 0.565815,
  197. 0.565815,
  198. 0.572799,
  199. 0.579449,
  200. 0.585785};
  201. Double_t Graph_fy1003[26] = {
  202. 1.15061,
  203. 1.18124,
  204. 1.20539,
  205. 1.21968,
  206. 1.22856,
  207. 1.23451,
  208. 1.24983,
  209. 1.2618,
  210. 1.26521,
  211. 1.26492,
  212. 1.26371,
  213. 1.27061,
  214. 1.27334,
  215. 1.27687,
  216. 1.2796,
  217. 1.28062,
  218. 1.28058,
  219. 1.28007,
  220. 1.27389,
  221. 1.27711,
  222. 1.28057,
  223. 1.28576,
  224. 1.28604,
  225. 1.29318,
  226. 1.29729,
  227. 1.29912};
  228. Double_t Graph_fex1003[26] = {
  229. 0,
  230. 0,
  231. 0,
  232. 0,
  233. 0,
  234. 0,
  235. 0,
  236. 0,
  237. 0,
  238. 0,
  239. 0,
  240. 0,
  241. 0,
  242. 0,
  243. 0,
  244. 0,
  245. 0,
  246. 0,
  247. 0,
  248. 0,
  249. 0,
  250. 0,
  251. 0,
  252. 0,
  253. 0,
  254. 0};
  255. Double_t Graph_fey1003[26] = {
  256. 0.0079386,
  257. 0.00810356,
  258. 0.00823989,
  259. 0.00833216,
  260. 0.00820763,
  261. 0.00846215,
  262. 0.00848127,
  263. 0.00844473,
  264. 0.00823922,
  265. 0.00853495,
  266. 0.00843892,
  267. 0.00833523,
  268. 0.00826832,
  269. 0.0081901,
  270. 0.00851587,
  271. 0.00841711,
  272. 0.00835539,
  273. 0.00830596,
  274. 0.00819119,
  275. 0.00807461,
  276. 0.00810535,
  277. 0.00814576,
  278. 0.00802676,
  279. 0.0084179,
  280. 0.00840238,
  281. 0.00832066};
  282. gre = new TGraphErrors(26,Graph_fx1003,Graph_fy1003,Graph_fex1003,Graph_fey1003);
  283. gre->SetName("Graph");
  284. gre->SetTitle("Graph");
  285. gre->SetFillColor(1);
  286. gre->SetMarkerStyle(21);
  287. TH1F *Graph_Graph1003 = new TH1F("Graph_Graph1003","Graph",100,0.3234207,0.6096363);
  288. Graph_Graph1003->SetMinimum(1.126194);
  289. Graph_Graph1003->SetMaximum(1.323918);
  290. Graph_Graph1003->SetDirectory(0);
  291. Graph_Graph1003->SetStats(0);
  292. ci = TColor::GetColor("#000099");
  293. Graph_Graph1003->SetLineColor(ci);
  294. Graph_Graph1003->GetXaxis()->SetLabelFont(42);
  295. Graph_Graph1003->GetXaxis()->SetLabelSize(0.035);
  296. Graph_Graph1003->GetXaxis()->SetTitleSize(0.035);
  297. Graph_Graph1003->GetXaxis()->SetTitleFont(42);
  298. Graph_Graph1003->GetYaxis()->SetLabelFont(42);
  299. Graph_Graph1003->GetYaxis()->SetLabelSize(0.035);
  300. Graph_Graph1003->GetYaxis()->SetTitleSize(0.035);
  301. Graph_Graph1003->GetYaxis()->SetTitleFont(42);
  302. Graph_Graph1003->GetZaxis()->SetLabelFont(42);
  303. Graph_Graph1003->GetZaxis()->SetLabelSize(0.035);
  304. Graph_Graph1003->GetZaxis()->SetTitleSize(0.035);
  305. Graph_Graph1003->GetZaxis()->SetTitleFont(42);
  306. gre->SetHistogram(Graph_Graph1003);
  307. TF1 *fSB21004 = new TF1("fSB2","[0]*(1/(1+[1]*4*1.65901*TMath::Power(x,-1.7218)))",0.34,0.59);
  308. fSB21004->SetFillColor(19);
  309. fSB21004->SetFillStyle(0);
  310. ci = TColor::GetColor("#ff0000");
  311. fSB21004->SetLineColor(ci);
  312. fSB21004->SetLineWidth(2);
  313. fSB21004->SetChisquare(191.3612);
  314. fSB21004->SetNDF(94);
  315. fSB21004->GetXaxis()->SetLabelFont(42);
  316. fSB21004->GetXaxis()->SetLabelSize(0.035);
  317. fSB21004->GetXaxis()->SetTitleSize(0.035);
  318. fSB21004->GetXaxis()->SetTitleFont(42);
  319. fSB21004->GetYaxis()->SetLabelFont(42);
  320. fSB21004->GetYaxis()->SetLabelSize(0.035);
  321. fSB21004->GetYaxis()->SetTitleSize(0.035);
  322. fSB21004->GetYaxis()->SetTitleFont(42);
  323. fSB21004->SetParameter(0,1.461227);
  324. fSB21004->SetParError(0,0.004670547);
  325. fSB21004->SetParLimits(0,0,0);
  326. fSB21004->SetParameter(1,0.006823313);
  327. fSB21004->SetParError(1,0.000167657);
  328. fSB21004->SetParLimits(1,0,0);
  329. gre->GetListOfFunctions()->Add(fSB21004);
  330. multigraph->Add(gre,"p");
  331. Double_t Graph_fx1005[26] = {
  332. 0.407871,
  333. 0.44884,
  334. 0.479338,
  335. 0.503822,
  336. 0.524858,
  337. 0.543065,
  338. 0.5589,
  339. 0.573741,
  340. 0.586721,
  341. 0.59808,
  342. 0.608891,
  343. 0.619196,
  344. 0.628229,
  345. 0.636893,
  346. 0.645213,
  347. 0.653209,
  348. 0.6609,
  349. 0.667643,
  350. 0.674162,
  351. 0.681086,
  352. 0.689547,
  353. 0.698204,
  354. 0.705926,
  355. 0.713327,
  356. 0.719927,
  357. 0.726761};
  358. Double_t Graph_fy1005[26] = {
  359. 0.70017,
  360. 0.75557,
  361. 0.795619,
  362. 0.823137,
  363. 0.846695,
  364. 0.867102,
  365. 0.886679,
  366. 0.902141,
  367. 0.91659,
  368. 0.929151,
  369. 0.94155,
  370. 0.952243,
  371. 0.961937,
  372. 0.970188,
  373. 0.976903,
  374. 0.987228,
  375. 0.994266,
  376. 1.00407,
  377. 1.00707,
  378. 1.01511,
  379. 1.02523,
  380. 1.03263,
  381. 1.04101,
  382. 1.04986,
  383. 1.05878,
  384. 1.06459};
  385. Double_t Graph_fex1005[26] = {
  386. 0,
  387. 0,
  388. 0,
  389. 0,
  390. 0,
  391. 0,
  392. 0,
  393. 0,
  394. 0,
  395. 0,
  396. 0,
  397. 0,
  398. 0,
  399. 0,
  400. 0,
  401. 0,
  402. 0,
  403. 0,
  404. 0,
  405. 0,
  406. 0,
  407. 0,
  408. 0,
  409. 0,
  410. 0,
  411. 0};
  412. Double_t Graph_fey1005[26] = {
  413. 0.00468578,
  414. 0.00504169,
  415. 0.00532747,
  416. 0.00543006,
  417. 0.00559711,
  418. 0.00569545,
  419. 0.00575669,
  420. 0.00598905,
  421. 0.00611396,
  422. 0.00620195,
  423. 0.00635492,
  424. 0.00637143,
  425. 0.00639461,
  426. 0.00642148,
  427. 0.00647779,
  428. 0.00661662,
  429. 0.0066125,
  430. 0.00669175,
  431. 0.00661587,
  432. 0.0068305,
  433. 0.00700482,
  434. 0.00688834,
  435. 0.00696643,
  436. 0.00696503,
  437. 0.00713316,
  438. 0.00731353};
  439. gre = new TGraphErrors(26,Graph_fx1005,Graph_fy1005,Graph_fex1005,Graph_fey1005);
  440. gre->SetName("Graph");
  441. gre->SetTitle("Graph");
  442. gre->SetFillColor(1);
  443. gre->SetMarkerStyle(22);
  444. TH1F *Graph_Graph1005 = new TH1F("Graph_Graph1005","Graph",100,0.375982,0.75865);
  445. Graph_Graph1005->SetMinimum(0.6578423);
  446. Graph_Graph1005->SetMaximum(1.109545);
  447. Graph_Graph1005->SetDirectory(0);
  448. Graph_Graph1005->SetStats(0);
  449. ci = TColor::GetColor("#000099");
  450. Graph_Graph1005->SetLineColor(ci);
  451. Graph_Graph1005->GetXaxis()->SetLabelFont(42);
  452. Graph_Graph1005->GetXaxis()->SetLabelSize(0.035);
  453. Graph_Graph1005->GetXaxis()->SetTitleSize(0.035);
  454. Graph_Graph1005->GetXaxis()->SetTitleFont(42);
  455. Graph_Graph1005->GetYaxis()->SetLabelFont(42);
  456. Graph_Graph1005->GetYaxis()->SetLabelSize(0.035);
  457. Graph_Graph1005->GetYaxis()->SetTitleSize(0.035);
  458. Graph_Graph1005->GetYaxis()->SetTitleFont(42);
  459. Graph_Graph1005->GetZaxis()->SetLabelFont(42);
  460. Graph_Graph1005->GetZaxis()->SetLabelSize(0.035);
  461. Graph_Graph1005->GetZaxis()->SetTitleSize(0.035);
  462. Graph_Graph1005->GetZaxis()->SetTitleFont(42);
  463. gre->SetHistogram(Graph_Graph1005);
  464. TF1 *fSB31006 = new TF1("fSB3","[0]*(1/(1+[1]*36*1.65901*TMath::Power(x,-1.7218)))",0.4,0.73);
  465. fSB31006->SetFillColor(19);
  466. fSB31006->SetFillStyle(0);
  467. ci = TColor::GetColor("#ff0000");
  468. fSB31006->SetLineColor(ci);
  469. fSB31006->SetLineWidth(2);
  470. fSB31006->SetChisquare(191.3612);
  471. fSB31006->SetNDF(94);
  472. fSB31006->GetXaxis()->SetLabelFont(42);
  473. fSB31006->GetXaxis()->SetLabelSize(0.035);
  474. fSB31006->GetXaxis()->SetTitleSize(0.035);
  475. fSB31006->GetXaxis()->SetTitleFont(42);
  476. fSB31006->GetYaxis()->SetLabelFont(42);
  477. fSB31006->GetYaxis()->SetLabelSize(0.035);
  478. fSB31006->GetYaxis()->SetTitleSize(0.035);
  479. fSB31006->GetYaxis()->SetTitleFont(42);
  480. fSB31006->SetParameter(0,1.461227);
  481. fSB31006->SetParError(0,0.004670547);
  482. fSB31006->SetParLimits(0,0,0);
  483. fSB31006->SetParameter(1,0.003892427);
  484. fSB31006->SetParError(1,3.657036e-05);
  485. fSB31006->SetParLimits(1,0,0);
  486. gre->GetListOfFunctions()->Add(fSB31006);
  487. multigraph->Add(gre,"p");
  488. Double_t Graph_fx1007[21] = {
  489. 0.436386,
  490. 0.479001,
  491. 0.511349,
  492. 0.537325,
  493. 0.559062,
  494. 0.577647,
  495. 0.594124,
  496. 0.608731,
  497. 0.621998,
  498. 0.634024,
  499. 0.645051,
  500. 0.655227,
  501. 0.664724,
  502. 0.673476,
  503. 0.681811,
  504. 0.689682,
  505. 0.697243,
  506. 0.704219,
  507. 0.710969,
  508. 0.717113,
  509. 0.726111};
  510. Double_t Graph_fy1007[21] = {
  511. 0.637511,
  512. 0.682739,
  513. 0.716111,
  514. 0.740358,
  515. 0.761285,
  516. 0.780592,
  517. 0.797751,
  518. 0.814711,
  519. 0.828105,
  520. 0.838841,
  521. 0.851544,
  522. 0.861821,
  523. 0.871405,
  524. 0.881324,
  525. 0.891275,
  526. 0.901056,
  527. 0.909476,
  528. 0.915073,
  529. 0.921715,
  530. 0.925899,
  531. 0.939145};
  532. Double_t Graph_fex1007[21] = {
  533. 0,
  534. 0,
  535. 0,
  536. 0,
  537. 0,
  538. 0,
  539. 0,
  540. 0,
  541. 0,
  542. 0,
  543. 0,
  544. 0,
  545. 0,
  546. 0,
  547. 0,
  548. 0,
  549. 0,
  550. 0,
  551. 0,
  552. 0,
  553. 0};
  554. Double_t Graph_fey1007[21] = {
  555. 0.00399157,
  556. 0.0045167,
  557. 0.00489326,
  558. 0.00506767,
  559. 0.00518492,
  560. 0.00527569,
  561. 0.00540435,
  562. 0.00568445,
  563. 0.00568885,
  564. 0.0060301,
  565. 0.00605836,
  566. 0.00619182,
  567. 0.00632064,
  568. 0.00669479,
  569. 0.00658981,
  570. 0.00673865,
  571. 0.00682753,
  572. 0.00691147,
  573. 0.00720939,
  574. 0.00730465,
  575. 0.00751825};
  576. gre = new TGraphErrors(21,Graph_fx1007,Graph_fy1007,Graph_fex1007,Graph_fey1007);
  577. gre->SetName("Graph");
  578. gre->SetTitle("Graph");
  579. gre->SetFillColor(1);
  580. gre->SetMarkerStyle(23);
  581. TH1F *Graph_Graph1007 = new TH1F("Graph_Graph1007","Graph",100,0.4074135,0.7550835);
  582. Graph_Graph1007->SetMinimum(0.602205);
  583. Graph_Graph1007->SetMaximum(0.9779776);
  584. Graph_Graph1007->SetDirectory(0);
  585. Graph_Graph1007->SetStats(0);
  586. ci = TColor::GetColor("#000099");
  587. Graph_Graph1007->SetLineColor(ci);
  588. Graph_Graph1007->GetXaxis()->SetLabelFont(42);
  589. Graph_Graph1007->GetXaxis()->SetLabelSize(0.035);
  590. Graph_Graph1007->GetXaxis()->SetTitleSize(0.035);
  591. Graph_Graph1007->GetXaxis()->SetTitleFont(42);
  592. Graph_Graph1007->GetYaxis()->SetLabelFont(42);
  593. Graph_Graph1007->GetYaxis()->SetLabelSize(0.035);
  594. Graph_Graph1007->GetYaxis()->SetTitleSize(0.035);
  595. Graph_Graph1007->GetYaxis()->SetTitleFont(42);
  596. Graph_Graph1007->GetZaxis()->SetLabelFont(42);
  597. Graph_Graph1007->GetZaxis()->SetLabelSize(0.035);
  598. Graph_Graph1007->GetZaxis()->SetTitleSize(0.035);
  599. Graph_Graph1007->GetZaxis()->SetTitleFont(42);
  600. gre->SetHistogram(Graph_Graph1007);
  601. TF1 *fSB41008 = new TF1("fSB4","[0]*(1/(1+[1]*64*1.65901*TMath::Power(x,-1.7218)))",0.43,0.73);
  602. fSB41008->SetFillColor(19);
  603. fSB41008->SetFillStyle(0);
  604. ci = TColor::GetColor("#ff0000");
  605. fSB41008->SetLineColor(ci);
  606. fSB41008->SetLineWidth(2);
  607. fSB41008->SetChisquare(191.3612);
  608. fSB41008->SetNDF(94);
  609. fSB41008->GetXaxis()->SetLabelFont(42);
  610. fSB41008->GetXaxis()->SetLabelSize(0.035);
  611. fSB41008->GetXaxis()->SetTitleSize(0.035);
  612. fSB41008->GetXaxis()->SetTitleFont(42);
  613. fSB41008->GetYaxis()->SetLabelFont(42);
  614. fSB41008->GetYaxis()->SetLabelSize(0.035);
  615. fSB41008->GetYaxis()->SetTitleSize(0.035);
  616. fSB41008->GetYaxis()->SetTitleFont(42);
  617. fSB41008->SetParameter(0,1.461227);
  618. fSB41008->SetParError(0,0.004670547);
  619. fSB41008->SetParLimits(0,0,0);
  620. fSB41008->SetParameter(1,0.003107919);
  621. fSB41008->SetParError(1,2.49478e-05);
  622. fSB41008->SetParLimits(1,0,0);
  623. gre->GetListOfFunctions()->Add(fSB41008);
  624. multigraph->Add(gre,"p");
  625. multigraph->Draw("a");
  626. multigraph->GetXaxis()->SetTitle("Lorentz #beta");
  627. multigraph->GetXaxis()->SetLabelFont(42);
  628. multigraph->GetXaxis()->SetLabelSize(0.035);
  629. multigraph->GetXaxis()->SetTitleSize(0.035);
  630. multigraph->GetXaxis()->SetTitleFont(42);
  631. multigraph->GetYaxis()->SetTitle("dA/dE / (10^{-6} a.u./(Mev#upointion#upoints^{-1})");
  632. multigraph->GetYaxis()->SetLabelFont(42);
  633. multigraph->GetYaxis()->SetLabelSize(0.035);
  634. multigraph->GetYaxis()->SetTitleSize(0.035);
  635. multigraph->GetYaxis()->SetTitleFont(42);
  636. TPaveText *pt = new TPaveText(0.4821203,0.94,0.5178797,0.995,"blNDC");
  637. pt->SetName("title");
  638. pt->SetBorderSize(0);
  639. pt->SetFillColor(0);
  640. pt->SetFillStyle(0);
  641. pt->SetTextFont(42);
  642. TText *AText = pt->AddText(" ");
  643. pt->Draw();
  644. TF1 *tf1_birk11009 = new TF1("tf1_birk1","[0]*(1/(1+[1]*1.65901*TMath::Power(x,-1.7218)))",0.3,0.59);
  645. tf1_birk11009->SetFillColor(19);
  646. tf1_birk11009->SetFillStyle(0);
  647. tf1_birk11009->SetLineWidth(2);
  648. tf1_birk11009->SetLineStyle(2);
  649. tf1_birk11009->SetChisquare(6.966278);
  650. tf1_birk11009->SetNDF(24);
  651. tf1_birk11009->GetXaxis()->SetLabelFont(42);
  652. tf1_birk11009->GetXaxis()->SetLabelSize(0.035);
  653. tf1_birk11009->GetXaxis()->SetTitleSize(0.035);
  654. tf1_birk11009->GetXaxis()->SetTitleFont(42);
  655. tf1_birk11009->GetYaxis()->SetLabelFont(42);
  656. tf1_birk11009->GetYaxis()->SetLabelSize(0.035);
  657. tf1_birk11009->GetYaxis()->SetTitleSize(0.035);
  658. tf1_birk11009->GetYaxis()->SetTitleFont(42);
  659. tf1_birk11009->SetParameter(0,1.483503);
  660. tf1_birk11009->SetParError(0,0.007048719);
  661. tf1_birk11009->SetParLimits(0,0,0);
  662. tf1_birk11009->SetParameter(1,0.02031807);
  663. tf1_birk11009->SetParError(1,0.0008434079);
  664. tf1_birk11009->SetParLimits(1,0,0);
  665. tf1_birk11009->Draw("same");
  666. TF1 *tf1_birk21010 = new TF1("tf1_birk2","[0]*(1/(1+[1]*4*1.65901*TMath::Power(x,-1.7218)))",0.34,0.59);
  667. tf1_birk21010->SetFillColor(19);
  668. tf1_birk21010->SetFillStyle(0);
  669. tf1_birk21010->SetLineWidth(2);
  670. tf1_birk21010->SetLineStyle(2);
  671. tf1_birk21010->SetChisquare(18.14934);
  672. tf1_birk21010->SetNDF(24);
  673. tf1_birk21010->GetXaxis()->SetLabelFont(42);
  674. tf1_birk21010->GetXaxis()->SetLabelSize(0.035);
  675. tf1_birk21010->GetXaxis()->SetTitleSize(0.035);
  676. tf1_birk21010->GetXaxis()->SetTitleFont(42);
  677. tf1_birk21010->GetYaxis()->SetLabelFont(42);
  678. tf1_birk21010->GetYaxis()->SetLabelSize(0.035);
  679. tf1_birk21010->GetYaxis()->SetTitleSize(0.035);
  680. tf1_birk21010->GetYaxis()->SetTitleFont(42);
  681. tf1_birk21010->SetParameter(0,1.409186);
  682. tf1_birk21010->SetParError(0,0.007975704);
  683. tf1_birk21010->SetParLimits(0,0,0);
  684. tf1_birk21010->SetParameter(1,0.005106407);
  685. tf1_birk21010->SetParError(1,0.0002685225);
  686. tf1_birk21010->SetParLimits(1,0,0);
  687. tf1_birk21010->Draw("same");
  688. TF1 *tf1_birk31011 = new TF1("tf1_birk3","[0]*(1/(1+[1]*36*1.65901*TMath::Power(x,-1.7218)))",0.4,0.73);
  689. tf1_birk31011->SetFillColor(19);
  690. tf1_birk31011->SetFillStyle(0);
  691. tf1_birk31011->SetLineWidth(2);
  692. tf1_birk31011->SetLineStyle(2);
  693. tf1_birk31011->SetChisquare(28.99199);
  694. tf1_birk31011->SetNDF(24);
  695. tf1_birk31011->GetXaxis()->SetLabelFont(42);
  696. tf1_birk31011->GetXaxis()->SetLabelSize(0.035);
  697. tf1_birk31011->GetXaxis()->SetTitleSize(0.035);
  698. tf1_birk31011->GetXaxis()->SetTitleFont(42);
  699. tf1_birk31011->GetYaxis()->SetLabelFont(42);
  700. tf1_birk31011->GetYaxis()->SetLabelSize(0.035);
  701. tf1_birk31011->GetYaxis()->SetTitleSize(0.035);
  702. tf1_birk31011->GetYaxis()->SetTitleFont(42);
  703. tf1_birk31011->SetParameter(0,1.524827);
  704. tf1_birk31011->SetParError(0,0.01273139);
  705. tf1_birk31011->SetParLimits(0,0,0);
  706. tf1_birk31011->SetParameter(1,0.00435401);
  707. tf1_birk31011->SetParError(1,9.38925e-05);
  708. tf1_birk31011->SetParLimits(1,0,0);
  709. tf1_birk31011->Draw("same");
  710. TF1 *tf1_birk41012 = new TF1("tf1_birk4","[0]*(1/(1+[1]*64*1.65901*TMath::Power(x,-1.7218)))",0.43,0.73);
  711. tf1_birk41012->SetFillColor(19);
  712. tf1_birk41012->SetFillStyle(0);
  713. tf1_birk41012->SetLineWidth(2);
  714. tf1_birk41012->SetLineStyle(2);
  715. tf1_birk41012->SetChisquare(48.98117);
  716. tf1_birk41012->SetNDF(19);
  717. tf1_birk41012->GetXaxis()->SetLabelFont(42);
  718. tf1_birk41012->GetXaxis()->SetLabelSize(0.035);
  719. tf1_birk41012->GetXaxis()->SetTitleSize(0.035);
  720. tf1_birk41012->GetXaxis()->SetTitleFont(42);
  721. tf1_birk41012->GetYaxis()->SetLabelFont(42);
  722. tf1_birk41012->GetYaxis()->SetLabelSize(0.035);
  723. tf1_birk41012->GetYaxis()->SetTitleSize(0.035);
  724. tf1_birk41012->GetYaxis()->SetTitleFont(42);
  725. tf1_birk41012->SetParameter(0,1.406416);
  726. tf1_birk41012->SetParError(0,0.01567856);
  727. tf1_birk41012->SetParLimits(0,0,0);
  728. tf1_birk41012->SetParameter(1,0.002845708);
  729. tf1_birk41012->SetParError(1,7.55654e-05);
  730. tf1_birk41012->SetParLimits(1,0,0);
  731. tf1_birk41012->Draw("same");
  732. TLegend *leg = new TLegend(0.65,0.65,0.9,0.9,NULL,"brNDC");
  733. leg->SetBorderSize(0);
  734. leg->SetTextFont(22);
  735. leg->SetTextSize(0.035);
  736. leg->SetLineColor(1);
  737. leg->SetLineStyle(1);
  738. leg->SetLineWidth(1);
  739. leg->SetFillColor(0);
  740. leg->SetFillStyle(1001);
  741. TLegendEntry *entry=leg->AddEntry("Graph","Protons","p");
  742. entry->SetLineColor(1);
  743. entry->SetLineStyle(1);
  744. entry->SetLineWidth(1);
  745. entry->SetMarkerColor(1);
  746. entry->SetMarkerStyle(20);
  747. entry->SetMarkerSize(1);
  748. entry->SetTextFont(22);
  749. entry=leg->AddEntry("Graph","Helium","p");
  750. entry->SetLineColor(1);
  751. entry->SetLineStyle(1);
  752. entry->SetLineWidth(1);
  753. entry->SetMarkerColor(1);
  754. entry->SetMarkerStyle(21);
  755. entry->SetMarkerSize(1);
  756. entry->SetTextFont(22);
  757. entry=leg->AddEntry("Graph","Carbon","p");
  758. entry->SetLineColor(1);
  759. entry->SetLineStyle(1);
  760. entry->SetLineWidth(1);
  761. entry->SetMarkerColor(1);
  762. entry->SetMarkerStyle(22);
  763. entry->SetMarkerSize(1);
  764. entry->SetTextFont(22);
  765. entry=leg->AddEntry("Graph","Oxygen","p");
  766. entry->SetLineColor(1);
  767. entry->SetLineStyle(1);
  768. entry->SetLineWidth(1);
  769. entry->SetMarkerColor(1);
  770. entry->SetMarkerStyle(23);
  771. entry->SetMarkerSize(1);
  772. entry->SetTextFont(22);
  773. entry=leg->AddEntry("fB","Birks Fit 1","l");
  774. ci = TColor::GetColor("#ff0000");
  775. entry->SetLineColor(ci);
  776. entry->SetLineStyle(1);
  777. entry->SetLineWidth(2);
  778. entry->SetMarkerColor(1);
  779. entry->SetMarkerStyle(21);
  780. entry->SetMarkerSize(1);
  781. entry->SetTextFont(22);
  782. entry=leg->AddEntry("tf1_birk1","Birks Fit 2","l");
  783. entry->SetLineColor(1);
  784. entry->SetLineStyle(2);
  785. entry->SetLineWidth(2);
  786. entry->SetMarkerColor(1);
  787. entry->SetMarkerStyle(21);
  788. entry->SetMarkerSize(1);
  789. entry->SetTextFont(22);
  790. leg->Draw();
  791. Simfit->Modified();
  792. Simfit->cd();
  793. Simfit->SetSelected(Simfit);
  794. }