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.

314 lines
12 KiB

  1. {
  2. //=========Macro generated from canvas: c1/c1
  3. //========= (Mon Nov 13 13:29:14 2017) by ROOT version5.34/32
  4. TCanvas *c1 = new TCanvas("c1", "c1",358,132,700,502);
  5. gStyle->SetOptStat(0);
  6. gStyle->SetOptTitle(0);
  7. c1->Range(-17.66667,-2.531643,115.6667,263.2911);
  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. TH2F *htemp__1 = new TH2F("htemp__1","ic1_1:(eventid_1-45000) {beamon==1&&eventid_1>45000&&eventid_1<45100}",40,1,105,40,40,250);
  22. htemp__1->SetDirectory(0);
  23. htemp__1->SetStats(0);
  24. htemp__1->SetLineWidth(2);
  25. htemp__1->SetMarkerStyle(21);
  26. htemp__1->GetXaxis()->SetTitle("time / 100 #musec");
  27. htemp__1->GetXaxis()->SetRange(1,40);
  28. htemp__1->GetXaxis()->SetNdivisions(505);
  29. htemp__1->GetXaxis()->SetLabelFont(22);
  30. htemp__1->GetXaxis()->SetLabelOffset(0.015);
  31. htemp__1->GetXaxis()->SetLabelSize(0.05);
  32. htemp__1->GetXaxis()->SetTitleSize(0.06);
  33. htemp__1->GetXaxis()->SetTitleFont(22);
  34. htemp__1->GetYaxis()->SetTitle("A_{IC} / nA");
  35. htemp__1->GetYaxis()->SetRange(1,40);
  36. htemp__1->GetYaxis()->SetLabelFont(22);
  37. htemp__1->GetYaxis()->SetLabelSize(0.05);
  38. htemp__1->GetYaxis()->SetTitleSize(0.06);
  39. htemp__1->GetYaxis()->SetTitleFont(22);
  40. htemp__1->GetZaxis()->SetLabelFont(22);
  41. htemp__1->GetZaxis()->SetLabelSize(0.05);
  42. htemp__1->GetZaxis()->SetTitleSize(0.06);
  43. htemp__1->GetZaxis()->SetTitleFont(22);
  44. htemp__1->Draw("");
  45. TGraph *graph = new TGraph(99);
  46. graph->SetName("Graph0");
  47. graph->SetTitle("Graph");
  48. graph->SetLineWidth(2);
  49. graph->SetMarkerStyle(21);
  50. graph->SetMarkerSize(0.7);
  51. graph->SetPoint(0,1,94.48558556);
  52. graph->SetPoint(1,2,110.9947334);
  53. graph->SetPoint(2,3,142.2376954);
  54. graph->SetPoint(3,4,152.773282);
  55. graph->SetPoint(4,5,109.5359039);
  56. graph->SetPoint(5,6,122.039637);
  57. graph->SetPoint(6,7,94.04175216);
  58. graph->SetPoint(7,8,113.7850631);
  59. graph->SetPoint(8,9,170.8685886);
  60. graph->SetPoint(9,10,133.724825);
  61. graph->SetPoint(10,11,102.6128302);
  62. graph->SetPoint(11,12,64.95974958);
  63. graph->SetPoint(12,13,117.2156772);
  64. graph->SetPoint(13,14,114.2980182);
  65. graph->SetPoint(14,15,127.1255314);
  66. graph->SetPoint(15,16,147.62918);
  67. graph->SetPoint(16,17,54.79887477);
  68. graph->SetPoint(17,18,102.9293344);
  69. graph->SetPoint(18,19,86.79853636);
  70. graph->SetPoint(19,20,97.15222404);
  71. graph->SetPoint(20,21,209.416612);
  72. graph->SetPoint(21,22,164.7131284);
  73. graph->SetPoint(22,23,159.6345101);
  74. graph->SetPoint(23,24,83.05505617);
  75. graph->SetPoint(24,25,65.40358299);
  76. graph->SetPoint(25,26,128.9008651);
  77. graph->SetPoint(26,27,115.4403435);
  78. graph->SetPoint(27,28,134.6052159);
  79. graph->SetPoint(28,29,175.7580321);
  80. graph->SetPoint(29,30,94.74024409);
  81. graph->SetPoint(30,31,84.19738151);
  82. graph->SetPoint(31,32,142.0412445);
  83. graph->SetPoint(32,33,116.9573807);
  84. graph->SetPoint(33,34,129.1482477);
  85. graph->SetPoint(34,35,99.18585418);
  86. graph->SetPoint(35,36,126.6125764);
  87. graph->SetPoint(36,37,138.6397343);
  88. graph->SetPoint(37,38,74.10199033);
  89. graph->SetPoint(38,39,120.0751285);
  90. graph->SetPoint(39,40,118.4271241);
  91. graph->SetPoint(40,41,127.1837391);
  92. graph->SetPoint(41,42,169.2824298);
  93. graph->SetPoint(42,43,162.9377948);
  94. graph->SetPoint(43,44,100.073521);
  95. graph->SetPoint(44,45,104.8319973);
  96. graph->SetPoint(45,46,124.6444299);
  97. graph->SetPoint(46,47,87.56251191);
  98. graph->SetPoint(47,48,157.1534085);
  99. graph->SetPoint(48,49,138.6142685);
  100. graph->SetPoint(49,50,156.1347745);
  101. graph->SetPoint(50,51,152.4531399);
  102. graph->SetPoint(51,52,132.4515324);
  103. graph->SetPoint(52,53,93.84893929);
  104. graph->SetPoint(53,54,106.6146069);
  105. graph->SetPoint(54,55,177.7225406);
  106. graph->SetPoint(55,56,118.612661);
  107. graph->SetPoint(56,57,99.88434614);
  108. graph->SetPoint(57,58,98.4837243);
  109. graph->SetPoint(58,59,111.0565791);
  110. graph->SetPoint(59,60,158.9942258);
  111. graph->SetPoint(60,61,106.1671355);
  112. graph->SetPoint(61,62,114.9273885);
  113. graph->SetPoint(62,63,99.88070817);
  114. graph->SetPoint(63,64,117.4666977);
  115. graph->SetPoint(64,65,133.2737156);
  116. graph->SetPoint(65,66,153.9156074);
  117. graph->SetPoint(66,67,109.9797373);
  118. graph->SetPoint(67,68,141.0226105);
  119. graph->SetPoint(68,69,121.4648364);
  120. graph->SetPoint(69,70,86.4820322);
  121. graph->SetPoint(70,71,132.517016);
  122. graph->SetPoint(71,72,125.9104466);
  123. graph->SetPoint(72,73,90.03997548);
  124. graph->SetPoint(73,74,95.3732524);
  125. graph->SetPoint(74,75,135.1800166);
  126. graph->SetPoint(75,76,157.2843758);
  127. graph->SetPoint(76,77,91.05497156);
  128. graph->SetPoint(77,78,106.8656275);
  129. graph->SetPoint(78,79,170.301064);
  130. graph->SetPoint(79,80,124.5171007);
  131. graph->SetPoint(80,81,96.96304914);
  132. graph->SetPoint(81,82,137.7848093);
  133. graph->SetPoint(82,83,237.5454641);
  134. graph->SetPoint(83,84,153.3480826);
  135. graph->SetPoint(84,85,81.6580723);
  136. graph->SetPoint(85,86,84.13189789);
  137. graph->SetPoint(86,87,92.89578883);
  138. graph->SetPoint(87,88,111.3767212);
  139. graph->SetPoint(88,89,112.0133675);
  140. graph->SetPoint(89,90,70.03473001);
  141. graph->SetPoint(90,91,147.9493222);
  142. graph->SetPoint(91,92,92.89578884);
  143. graph->SetPoint(92,93,86.22737369);
  144. graph->SetPoint(93,94,81.27608453);
  145. graph->SetPoint(94,95,197.6732164);
  146. graph->SetPoint(95,96,163.8254617);
  147. graph->SetPoint(96,97,130.290573);
  148. graph->SetPoint(97,98,121.6649253);
  149. graph->SetPoint(98,99,87.62435755);
  150. TH1F *Graph_Graph1 = new TH1F("Graph_Graph1","Graph",100,0,108.8);
  151. Graph_Graph1->SetMinimum(36.52422);
  152. Graph_Graph1->SetMaximum(255.8201);
  153. Graph_Graph1->SetDirectory(0);
  154. Graph_Graph1->SetStats(0);
  155. Graph_Graph1->SetLineWidth(2);
  156. Graph_Graph1->SetMarkerStyle(21);
  157. Graph_Graph1->GetXaxis()->SetNdivisions(505);
  158. Graph_Graph1->GetXaxis()->SetLabelFont(22);
  159. Graph_Graph1->GetXaxis()->SetLabelOffset(0.015);
  160. Graph_Graph1->GetXaxis()->SetLabelSize(0.05);
  161. Graph_Graph1->GetXaxis()->SetTitleSize(0.06);
  162. Graph_Graph1->GetXaxis()->SetTitleFont(22);
  163. Graph_Graph1->GetYaxis()->SetLabelFont(22);
  164. Graph_Graph1->GetYaxis()->SetLabelSize(0.05);
  165. Graph_Graph1->GetYaxis()->SetTitleSize(0.06);
  166. Graph_Graph1->GetYaxis()->SetTitleFont(22);
  167. Graph_Graph1->GetZaxis()->SetLabelFont(22);
  168. Graph_Graph1->GetZaxis()->SetLabelSize(0.05);
  169. Graph_Graph1->GetZaxis()->SetTitleSize(0.06);
  170. Graph_Graph1->GetZaxis()->SetTitleFont(22);
  171. graph->SetHistogram(Graph_Graph1);
  172. graph->Draw("PL");
  173. graph = new TGraph(99);
  174. graph->SetName("Graph1");
  175. graph->SetTitle("Graph");
  176. graph->SetLineColor(2);
  177. graph->SetLineStyle(2);
  178. graph->SetLineWidth(2);
  179. graph->SetMarkerColor(2);
  180. graph->SetMarkerStyle(21);
  181. graph->SetMarkerSize(0.7);
  182. graph->SetPoint(0,1,90.00723367);
  183. graph->SetPoint(1,2,102.0234777);
  184. graph->SetPoint(2,3,163.0469342);
  185. graph->SetPoint(3,4,148.6114343);
  186. graph->SetPoint(4,5,121.7267709);
  187. graph->SetPoint(5,6,126.4925231);
  188. graph->SetPoint(6,7,93.24867278);
  189. graph->SetPoint(7,8,110.030669);
  190. graph->SetPoint(8,9,157.2625479);
  191. graph->SetPoint(9,10,137.4864951);
  192. graph->SetPoint(10,11,97.7634045);
  193. graph->SetPoint(11,12,68.0120138);
  194. graph->SetPoint(12,13,107.3603926);
  195. graph->SetPoint(13,14,119.3075149);
  196. graph->SetPoint(14,15,124.5207386);
  197. graph->SetPoint(15,16,160.6313162);
  198. graph->SetPoint(16,17,52.82345228);
  199. graph->SetPoint(17,18,112.5736163);
  200. graph->SetPoint(18,19,97.06491256);
  201. graph->SetPoint(19,20,114.8582669);
  202. graph->SetPoint(20,21,200.7363946);
  203. graph->SetPoint(21,22,172.4547474);
  204. graph->SetPoint(22,23,162.7195161);
  205. graph->SetPoint(23,24,75.51716408);
  206. graph->SetPoint(24,25,60.89248927);
  207. graph->SetPoint(25,26,117.2156772);
  208. graph->SetPoint(26,27,117.0847099);
  209. graph->SetPoint(27,28,142.2595233);
  210. graph->SetPoint(28,29,174.1718734);
  211. graph->SetPoint(29,30,78.43482308);
  212. graph->SetPoint(30,31,79.96277418);
  213. graph->SetPoint(31,32,131.0691005);
  214. graph->SetPoint(32,33,117.4048521);
  215. graph->SetPoint(33,34,122.4252628);
  216. graph->SetPoint(34,35,98.84024623);
  217. graph->SetPoint(35,36,132.1459422);
  218. graph->SetPoint(36,37,149.6628101);
  219. graph->SetPoint(37,38,71.12976163);
  220. graph->SetPoint(38,39,106.0288923);
  221. graph->SetPoint(39,40,128.908141);
  222. graph->SetPoint(40,41,127.1910151);
  223. graph->SetPoint(41,42,169.3988452);
  224. graph->SetPoint(42,43,176.7693903);
  225. graph->SetPoint(43,44,106.1525836);
  226. graph->SetPoint(44,45,99.73518899);
  227. graph->SetPoint(45,46,131.2582753);
  228. graph->SetPoint(46,47,86.82764019);
  229. graph->SetPoint(47,48,168.0018614);
  230. graph->SetPoint(48,49,141.1754056);
  231. graph->SetPoint(49,50,158.1429387);
  232. graph->SetPoint(50,51,143.845682);
  233. graph->SetPoint(51,52,128.0786819);
  234. graph->SetPoint(52,53,92.36100597);
  235. graph->SetPoint(53,54,102.0198397);
  236. graph->SetPoint(54,55,190.4409146);
  237. graph->SetPoint(55,56,118.0342224);
  238. graph->SetPoint(56,57,95.2204573);
  239. graph->SetPoint(57,58,104.6901161);
  240. graph->SetPoint(58,59,106.7237463);
  241. graph->SetPoint(59,60,157.9610398);
  242. graph->SetPoint(60,61,98.07990864);
  243. graph->SetPoint(61,62,110.2234818);
  244. graph->SetPoint(62,63,91.53154678);
  245. graph->SetPoint(63,64,120.7081368);
  246. graph->SetPoint(64,65,136.1549948);
  247. graph->SetPoint(65,66,165.651727);
  248. graph->SetPoint(66,67,108.8847057);
  249. graph->SetPoint(67,68,148.8660928);
  250. graph->SetPoint(68,69,135.0708772);
  251. graph->SetPoint(69,70,86.12914826);
  252. graph->SetPoint(70,71,127.3801899);
  253. graph->SetPoint(71,72,119.3693607);
  254. graph->SetPoint(72,73,86.38380678);
  255. graph->SetPoint(73,74,88.29010767);
  256. graph->SetPoint(74,75,138.5706128);
  257. graph->SetPoint(75,76,142.2595233);
  258. graph->SetPoint(76,77,91.66251403);
  259. graph->SetPoint(77,78,100.4336809);
  260. graph->SetPoint(78,79,165.7172106);
  261. graph->SetPoint(79,80,135.9003363);
  262. graph->SetPoint(80,81,88.54476619);
  263. graph->SetPoint(81,82,135.958544);
  264. graph->SetPoint(82,83,229.5928426);
  265. graph->SetPoint(83,84,148.2985681);
  266. graph->SetPoint(84,85,79.64627003);
  267. graph->SetPoint(85,86,88.10093278);
  268. graph->SetPoint(86,87,95.4096322);
  269. graph->SetPoint(87,88,112.3844413);
  270. graph->SetPoint(88,89,117.2156772);
  271. graph->SetPoint(89,90,74.94236343);
  272. graph->SetPoint(90,91,189.2331056);
  273. graph->SetPoint(91,92,102.3981895);
  274. graph->SetPoint(92,93,92.10634744);
  275. graph->SetPoint(93,94,90.51655068);
  276. graph->SetPoint(94,95,198.5099516);
  277. graph->SetPoint(95,96,163.8036338);
  278. graph->SetPoint(96,97,129.7958079);
  279. graph->SetPoint(97,98,117.7832018);
  280. graph->SetPoint(98,99,90.13456293);
  281. TH1F *Graph_Graph2 = new TH1F("Graph_Graph2","Graph",100,0,108.8);
  282. Graph_Graph2->SetMinimum(35.14651);
  283. Graph_Graph2->SetMaximum(247.2698);
  284. Graph_Graph2->SetDirectory(0);
  285. Graph_Graph2->SetStats(0);
  286. Graph_Graph2->SetLineWidth(2);
  287. Graph_Graph2->SetMarkerStyle(21);
  288. Graph_Graph2->GetXaxis()->SetNdivisions(505);
  289. Graph_Graph2->GetXaxis()->SetLabelFont(22);
  290. Graph_Graph2->GetXaxis()->SetLabelOffset(0.015);
  291. Graph_Graph2->GetXaxis()->SetLabelSize(0.05);
  292. Graph_Graph2->GetXaxis()->SetTitleSize(0.06);
  293. Graph_Graph2->GetXaxis()->SetTitleFont(22);
  294. Graph_Graph2->GetYaxis()->SetLabelFont(22);
  295. Graph_Graph2->GetYaxis()->SetLabelSize(0.05);
  296. Graph_Graph2->GetYaxis()->SetTitleSize(0.06);
  297. Graph_Graph2->GetYaxis()->SetTitleFont(22);
  298. Graph_Graph2->GetZaxis()->SetLabelFont(22);
  299. Graph_Graph2->GetZaxis()->SetLabelSize(0.05);
  300. Graph_Graph2->GetZaxis()->SetTitleSize(0.06);
  301. Graph_Graph2->GetZaxis()->SetTitleFont(22);
  302. graph->SetHistogram(Graph_Graph2);
  303. graph->Draw("PL");
  304. c1->Modified();
  305. c1->cd();
  306. c1->SetSelected(c1);
  307. }