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.

341 lines
13 KiB

  1. {
  2. //=========Macro generated from canvas: c1/c1
  3. //========= (Mon Nov 13 13:42:46 2017) by ROOT version5.34/32
  4. TCanvas *c1 = new TCanvas("c1", "c1",358,132,700,502);
  5. gStyle->SetOptTitle(0);
  6. c1->Range(-17.66667,-32.78481,115.6667,359.6203);
  7. c1->SetFillColor(0);
  8. c1->SetBorderMode(0);
  9. c1->SetBorderSize(2);
  10. c1->SetTickx(1);
  11. c1->SetTicky(1);
  12. c1->SetLeftMargin(0.14);
  13. c1->SetRightMargin(0.08);
  14. c1->SetTopMargin(0.05);
  15. c1->SetBottomMargin(0.16);
  16. c1->SetFrameLineWidth(2);
  17. c1->SetFrameBorderMode(0);
  18. c1->SetFrameLineWidth(2);
  19. c1->SetFrameBorderMode(0);
  20. TH2F *htemp__3 = new TH2F("htemp__3","(beamPeakX_fit2*sqrt(2)*beamFocusX_fit2/2.3548)/69.5:eventid_1-45000 {beamon==1&&eventid_1>45000&&eventid_1<45100}",40,1,105,40,30,340);
  21. htemp__3->SetDirectory(0);
  22. htemp__3->SetStats(0);
  23. htemp__3->SetLineWidth(2);
  24. htemp__3->SetMarkerStyle(21);
  25. htemp__3->GetXaxis()->SetTitle("time / 100 #musec");
  26. htemp__3->GetXaxis()->SetRange(1,40);
  27. htemp__3->GetXaxis()->SetNdivisions(505);
  28. htemp__3->GetXaxis()->SetLabelFont(22);
  29. htemp__3->GetXaxis()->SetLabelOffset(0.015);
  30. htemp__3->GetXaxis()->SetLabelSize(0.05);
  31. htemp__3->GetXaxis()->SetTitleSize(0.06);
  32. htemp__3->GetXaxis()->SetTitleFont(22);
  33. htemp__3->GetYaxis()->SetTitle("A_{BPM} / a.u.");
  34. htemp__3->GetYaxis()->SetRange(1,40);
  35. htemp__3->GetYaxis()->SetLabelFont(22);
  36. htemp__3->GetYaxis()->SetLabelSize(0.05);
  37. htemp__3->GetYaxis()->SetTitleSize(0.06);
  38. htemp__3->GetYaxis()->SetTitleFont(22);
  39. htemp__3->GetZaxis()->SetLabelFont(22);
  40. htemp__3->GetZaxis()->SetLabelSize(0.05);
  41. htemp__3->GetZaxis()->SetTitleSize(0.06);
  42. htemp__3->GetZaxis()->SetTitleFont(22);
  43. htemp__3->Draw("");
  44. TGraph *graph = new TGraph(99);
  45. graph->SetName("Graph0");
  46. graph->SetTitle("Graph");
  47. graph->SetLineWidth(2);
  48. graph->SetMarkerStyle(21);
  49. graph->SetMarkerSize(0.7);
  50. graph->SetPoint(0,1,79.4227785);
  51. graph->SetPoint(1,2,90.64895112);
  52. graph->SetPoint(2,3,140.9607934);
  53. graph->SetPoint(3,4,215.5216361);
  54. graph->SetPoint(4,5,101.4179533);
  55. graph->SetPoint(5,6,170.9438936);
  56. graph->SetPoint(6,7,89.48367264);
  57. graph->SetPoint(7,8,153.6379029);
  58. graph->SetPoint(8,9,136.1777865);
  59. graph->SetPoint(9,10,196.5928194);
  60. graph->SetPoint(10,11,114.2369208);
  61. graph->SetPoint(11,12,91.14495221);
  62. graph->SetPoint(12,13,115.6277677);
  63. graph->SetPoint(13,14,95.02835705);
  64. graph->SetPoint(14,15,135.977796);
  65. graph->SetPoint(15,16,160.3424602);
  66. graph->SetPoint(16,17,63.63637141);
  67. graph->SetPoint(17,18,131.0548558);
  68. graph->SetPoint(18,19,84.49180025);
  69. graph->SetPoint(19,20,67.70639211);
  70. graph->SetPoint(20,21,155.9461549);
  71. graph->SetPoint(21,22,152.8598079);
  72. graph->SetPoint(22,23,166.711878);
  73. graph->SetPoint(23,24,80.4594221);
  74. graph->SetPoint(24,25,52.83066191);
  75. graph->SetPoint(25,26,91.64662811);
  76. graph->SetPoint(26,27,74.61256941);
  77. graph->SetPoint(27,28,110.26654);
  78. graph->SetPoint(28,29,156.9486615);
  79. graph->SetPoint(29,30,84.35346273);
  80. graph->SetPoint(30,31,93.64100086);
  81. graph->SetPoint(31,32,111.700092);
  82. graph->SetPoint(32,33,119.5161508);
  83. graph->SetPoint(33,34,118.8374775);
  84. graph->SetPoint(34,35,95.66027425);
  85. graph->SetPoint(35,36,141.8313925);
  86. graph->SetPoint(36,37,139.0956783);
  87. graph->SetPoint(37,38,75.2658283);
  88. graph->SetPoint(38,39,147.2174523);
  89. graph->SetPoint(39,40,84.76811267);
  90. graph->SetPoint(40,41,135.6618616);
  91. graph->SetPoint(41,42,157.9930006);
  92. graph->SetPoint(42,43,156.7409688);
  93. graph->SetPoint(43,44,95.84485757);
  94. graph->SetPoint(44,45,84.2499077);
  95. graph->SetPoint(45,46,113.3387735);
  96. graph->SetPoint(46,47,80.00410053);
  97. graph->SetPoint(47,48,123.8892658);
  98. graph->SetPoint(48,49,136.5811016);
  99. graph->SetPoint(49,50,136.1185948);
  100. graph->SetPoint(50,51,130.4996702);
  101. graph->SetPoint(51,52,120.0040345);
  102. graph->SetPoint(52,53,98.18761399);
  103. graph->SetPoint(53,54,98.3652967);
  104. graph->SetPoint(54,55,193.1702616);
  105. graph->SetPoint(55,56,124.9145805);
  106. graph->SetPoint(56,57,92.49548673);
  107. graph->SetPoint(57,58,85.41331409);
  108. graph->SetPoint(58,59,107.844337);
  109. graph->SetPoint(59,60,149.5033926);
  110. graph->SetPoint(60,61,105.9296925);
  111. graph->SetPoint(61,62,147.0813421);
  112. graph->SetPoint(62,63,87.2252161);
  113. graph->SetPoint(63,64,131.8515097);
  114. graph->SetPoint(64,65,120.297741);
  115. graph->SetPoint(65,66,150.7512474);
  116. graph->SetPoint(66,67,98.67164467);
  117. graph->SetPoint(67,68,141.8626525);
  118. graph->SetPoint(68,69,125.4021645);
  119. graph->SetPoint(69,70,97.29538368);
  120. graph->SetPoint(70,71,115.64605);
  121. graph->SetPoint(71,72,127.1309143);
  122. graph->SetPoint(72,73,97.32030078);
  123. graph->SetPoint(73,74,92.87832779);
  124. graph->SetPoint(74,75,145.1409494);
  125. graph->SetPoint(75,76,179.6498113);
  126. graph->SetPoint(76,77,96.7153991);
  127. graph->SetPoint(77,78,117.3303349);
  128. graph->SetPoint(78,79,215.9269203);
  129. graph->SetPoint(79,80,126.3233867);
  130. graph->SetPoint(80,81,103.5556547);
  131. graph->SetPoint(81,82,124.1279015);
  132. graph->SetPoint(82,83,320.7053252);
  133. graph->SetPoint(83,84,164.6901164);
  134. graph->SetPoint(84,85,70.82056337);
  135. graph->SetPoint(85,86,69.83374973);
  136. graph->SetPoint(86,87,101.1187517);
  137. graph->SetPoint(87,88,116.8153165);
  138. graph->SetPoint(88,89,116.0216455);
  139. graph->SetPoint(89,90,73.86115612);
  140. graph->SetPoint(90,91,131.4722587);
  141. graph->SetPoint(91,92,121.509948);
  142. graph->SetPoint(92,93,90.50670945);
  143. graph->SetPoint(93,94,70.41895275);
  144. graph->SetPoint(94,95,222.7795011);
  145. graph->SetPoint(95,96,147.5779304);
  146. graph->SetPoint(96,97,120.6309284);
  147. graph->SetPoint(97,98,117.8160608);
  148. graph->SetPoint(98,99,100.6819195);
  149. TH1F *Graph_Graph_Graph35 = new TH1F("Graph_Graph_Graph35","Graph",100,0,108.8);
  150. Graph_Graph_Graph35->SetMinimum(26.0432);
  151. Graph_Graph_Graph35->SetMaximum(347.4928);
  152. Graph_Graph_Graph35->SetDirectory(0);
  153. Graph_Graph_Graph35->SetStats(0);
  154. Graph_Graph_Graph35->SetLineWidth(2);
  155. Graph_Graph_Graph35->SetMarkerStyle(21);
  156. Graph_Graph_Graph35->GetXaxis()->SetNdivisions(505);
  157. Graph_Graph_Graph35->GetXaxis()->SetLabelFont(22);
  158. Graph_Graph_Graph35->GetXaxis()->SetLabelOffset(0.015);
  159. Graph_Graph_Graph35->GetXaxis()->SetLabelSize(0.05);
  160. Graph_Graph_Graph35->GetXaxis()->SetTitleSize(0.06);
  161. Graph_Graph_Graph35->GetXaxis()->SetTitleFont(22);
  162. Graph_Graph_Graph35->GetYaxis()->SetLabelFont(22);
  163. Graph_Graph_Graph35->GetYaxis()->SetLabelSize(0.05);
  164. Graph_Graph_Graph35->GetYaxis()->SetTitleSize(0.06);
  165. Graph_Graph_Graph35->GetYaxis()->SetTitleFont(22);
  166. Graph_Graph_Graph35->GetZaxis()->SetLabelFont(22);
  167. Graph_Graph_Graph35->GetZaxis()->SetLabelSize(0.05);
  168. Graph_Graph_Graph35->GetZaxis()->SetTitleSize(0.06);
  169. Graph_Graph_Graph35->GetZaxis()->SetTitleFont(22);
  170. graph->SetHistogram(Graph_Graph_Graph35);
  171. graph->Draw("PL");
  172. graph = new TGraph(99);
  173. graph->SetName("Graph1");
  174. graph->SetTitle("Graph");
  175. graph->SetLineColor(2);
  176. graph->SetLineStyle(2);
  177. graph->SetLineWidth(2);
  178. graph->SetMarkerColor(2);
  179. graph->SetMarkerStyle(25);
  180. graph->SetMarkerSize(0.9);
  181. graph->SetPoint(0,1,80.38386734);
  182. graph->SetPoint(1,2,90.33324011);
  183. graph->SetPoint(2,3,139.2630968);
  184. graph->SetPoint(3,4,215.2247817);
  185. graph->SetPoint(4,5,102.0026244);
  186. graph->SetPoint(5,6,172.1732552);
  187. graph->SetPoint(6,7,89.66010686);
  188. graph->SetPoint(7,8,152.7435221);
  189. graph->SetPoint(8,9,136.4349889);
  190. graph->SetPoint(9,10,197.0354969);
  191. graph->SetPoint(10,11,114.5179694);
  192. graph->SetPoint(11,12,90.28336646);
  193. graph->SetPoint(12,13,116.2506248);
  194. graph->SetPoint(13,14,95.22783483);
  195. graph->SetPoint(14,15,136.5519609);
  196. graph->SetPoint(15,16,161.1278603);
  197. graph->SetPoint(16,17,64.81484903);
  198. graph->SetPoint(17,18,130.6919301);
  199. graph->SetPoint(18,19,83.93257459);
  200. graph->SetPoint(19,20,67.08148347);
  201. graph->SetPoint(20,21,156.6612753);
  202. graph->SetPoint(21,22,152.5951795);
  203. graph->SetPoint(22,23,166.8051988);
  204. graph->SetPoint(23,24,80.6778749);
  205. graph->SetPoint(24,25,52.9791293);
  206. graph->SetPoint(25,26,91.48807091);
  207. graph->SetPoint(26,27,74.88713033);
  208. graph->SetPoint(27,28,109.571472);
  209. graph->SetPoint(28,29,157.438027);
  210. graph->SetPoint(29,30,84.33019822);
  211. graph->SetPoint(30,31,93.24845473);
  212. graph->SetPoint(31,32,113.0736691);
  213. graph->SetPoint(32,33,120.7876404);
  214. graph->SetPoint(33,34,120.0485652);
  215. graph->SetPoint(34,35,96.44039735);
  216. graph->SetPoint(35,36,141.6352856);
  217. graph->SetPoint(36,37,139.3898912);
  218. graph->SetPoint(37,38,74.61422016);
  219. graph->SetPoint(38,39,148.8839957);
  220. graph->SetPoint(39,40,84.86703418);
  221. graph->SetPoint(40,41,135.0841016);
  222. graph->SetPoint(41,42,158.0155957);
  223. graph->SetPoint(42,43,156.578115);
  224. graph->SetPoint(43,44,96.10605367);
  225. graph->SetPoint(44,45,84.82146846);
  226. graph->SetPoint(45,46,113.9512739);
  227. graph->SetPoint(46,47,80.71652428);
  228. graph->SetPoint(47,48,124.5010857);
  229. graph->SetPoint(48,49,140.256804);
  230. graph->SetPoint(49,50,136.6486876);
  231. graph->SetPoint(50,51,131.3928108);
  232. graph->SetPoint(51,52,120.5026493);
  233. graph->SetPoint(52,53,97.75824283);
  234. graph->SetPoint(53,54,98.38749327);
  235. graph->SetPoint(54,55,192.5014187);
  236. graph->SetPoint(55,56,125.0420605);
  237. graph->SetPoint(56,57,93.09268269);
  238. graph->SetPoint(57,58,86.42931097);
  239. graph->SetPoint(58,59,108.5974233);
  240. graph->SetPoint(59,60,149.4636925);
  241. graph->SetPoint(60,61,106.3059811);
  242. graph->SetPoint(61,62,146.4928748);
  243. graph->SetPoint(62,63,88.25373445);
  244. graph->SetPoint(63,64,132.6447653);
  245. graph->SetPoint(64,65,121.1648258);
  246. graph->SetPoint(65,66,151.1210972);
  247. graph->SetPoint(66,67,98.82791119);
  248. graph->SetPoint(67,68,142.2527779);
  249. graph->SetPoint(68,69,124.0289725);
  250. graph->SetPoint(69,70,97.92631492);
  251. graph->SetPoint(70,71,116.2667336);
  252. graph->SetPoint(71,72,127.1376327);
  253. graph->SetPoint(72,73,97.659261);
  254. graph->SetPoint(73,74,92.77980653);
  255. graph->SetPoint(74,75,145.4558338);
  256. graph->SetPoint(75,76,179.3805025);
  257. graph->SetPoint(76,77,96.94421458);
  258. graph->SetPoint(77,78,117.1248059);
  259. graph->SetPoint(78,79,215.0351621);
  260. graph->SetPoint(79,80,126.4759121);
  261. graph->SetPoint(80,81,103.8764529);
  262. graph->SetPoint(81,82,124.0286412);
  263. graph->SetPoint(82,83,321.1601074);
  264. graph->SetPoint(83,84,165.8136079);
  265. graph->SetPoint(84,85,70.04014933);
  266. graph->SetPoint(85,86,69.96548722);
  267. graph->SetPoint(86,87,100.7131096);
  268. graph->SetPoint(87,88,117.6657567);
  269. graph->SetPoint(88,89,115.516665);
  270. graph->SetPoint(89,90,74.73124236);
  271. graph->SetPoint(90,91,131.8150096);
  272. graph->SetPoint(91,92,121.217808);
  273. graph->SetPoint(92,93,90.15552235);
  274. graph->SetPoint(93,94,70.07380843);
  275. graph->SetPoint(94,95,222.5910463);
  276. graph->SetPoint(95,96,148.3264728);
  277. graph->SetPoint(96,97,120.4098735);
  278. graph->SetPoint(97,98,117.6910415);
  279. graph->SetPoint(98,99,100.2838211);
  280. TH1F *Graph_Graph_Graph46 = new TH1F("Graph_Graph_Graph46","Graph",100,0,108.8);
  281. Graph_Graph_Graph46->SetMinimum(26.16103);
  282. Graph_Graph_Graph46->SetMaximum(347.9782);
  283. Graph_Graph_Graph46->SetDirectory(0);
  284. Graph_Graph_Graph46->SetStats(0);
  285. Graph_Graph_Graph46->SetLineWidth(2);
  286. Graph_Graph_Graph46->SetMarkerStyle(21);
  287. Graph_Graph_Graph46->GetXaxis()->SetNdivisions(505);
  288. Graph_Graph_Graph46->GetXaxis()->SetLabelFont(22);
  289. Graph_Graph_Graph46->GetXaxis()->SetLabelOffset(0.015);
  290. Graph_Graph_Graph46->GetXaxis()->SetLabelSize(0.05);
  291. Graph_Graph_Graph46->GetXaxis()->SetTitleSize(0.06);
  292. Graph_Graph_Graph46->GetXaxis()->SetTitleFont(22);
  293. Graph_Graph_Graph46->GetYaxis()->SetLabelFont(22);
  294. Graph_Graph_Graph46->GetYaxis()->SetLabelSize(0.05);
  295. Graph_Graph_Graph46->GetYaxis()->SetTitleSize(0.06);
  296. Graph_Graph_Graph46->GetYaxis()->SetTitleFont(22);
  297. Graph_Graph_Graph46->GetZaxis()->SetLabelFont(22);
  298. Graph_Graph_Graph46->GetZaxis()->SetLabelSize(0.05);
  299. Graph_Graph_Graph46->GetZaxis()->SetTitleSize(0.06);
  300. Graph_Graph_Graph46->GetZaxis()->SetTitleFont(22);
  301. graph->SetHistogram(Graph_Graph_Graph46);
  302. graph->Draw("PC");
  303. TLegend *leg = new TLegend(0.2091691,0.7293869,0.4713467,0.8985201,NULL,"brNDC");
  304. leg->SetBorderSize(0);
  305. leg->SetTextFont(62);
  306. leg->SetLineColor(1);
  307. leg->SetLineStyle(1);
  308. leg->SetLineWidth(2);
  309. leg->SetFillColor(0);
  310. leg->SetFillStyle(0);
  311. TLegendEntry *entry=leg->AddEntry("Graph0","Plane 1","lpf");
  312. entry->SetFillStyle(1001);
  313. entry->SetLineColor(1);
  314. entry->SetLineStyle(1);
  315. entry->SetLineWidth(2);
  316. entry->SetMarkerColor(1);
  317. entry->SetMarkerStyle(21);
  318. entry->SetMarkerSize(0.7);
  319. entry->SetTextFont(62);
  320. entry=leg->AddEntry("Graph1","Plane 2","lpf");
  321. entry->SetFillStyle(1001);
  322. entry->SetLineColor(2);
  323. entry->SetLineStyle(2);
  324. entry->SetLineWidth(2);
  325. entry->SetMarkerColor(2);
  326. entry->SetMarkerStyle(25);
  327. entry->SetMarkerSize(0.9);
  328. entry->SetTextFont(62);
  329. leg->Draw();
  330. c1->Modified();
  331. c1->cd();
  332. c1->SetSelected(c1);
  333. }