342 lines
13 KiB
C
342 lines
13 KiB
C
{
|
|
//=========Macro generated from canvas: c1/c1
|
|
//========= (Mon Nov 13 13:42:46 2017) by ROOT version5.34/32
|
|
TCanvas *c1 = new TCanvas("c1", "c1",358,132,700,502);
|
|
gStyle->SetOptTitle(0);
|
|
c1->Range(-17.66667,-32.78481,115.6667,359.6203);
|
|
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);
|
|
|
|
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);
|
|
htemp__3->SetDirectory(0);
|
|
htemp__3->SetStats(0);
|
|
htemp__3->SetLineWidth(2);
|
|
htemp__3->SetMarkerStyle(21);
|
|
htemp__3->GetXaxis()->SetTitle("time / 100 #musec");
|
|
htemp__3->GetXaxis()->SetRange(1,40);
|
|
htemp__3->GetXaxis()->SetNdivisions(505);
|
|
htemp__3->GetXaxis()->SetLabelFont(22);
|
|
htemp__3->GetXaxis()->SetLabelOffset(0.015);
|
|
htemp__3->GetXaxis()->SetLabelSize(0.05);
|
|
htemp__3->GetXaxis()->SetTitleSize(0.06);
|
|
htemp__3->GetXaxis()->SetTitleFont(22);
|
|
htemp__3->GetYaxis()->SetTitle("A_{BPM} / a.u.");
|
|
htemp__3->GetYaxis()->SetRange(1,40);
|
|
htemp__3->GetYaxis()->SetLabelFont(22);
|
|
htemp__3->GetYaxis()->SetLabelSize(0.05);
|
|
htemp__3->GetYaxis()->SetTitleSize(0.06);
|
|
htemp__3->GetYaxis()->SetTitleFont(22);
|
|
htemp__3->GetZaxis()->SetLabelFont(22);
|
|
htemp__3->GetZaxis()->SetLabelSize(0.05);
|
|
htemp__3->GetZaxis()->SetTitleSize(0.06);
|
|
htemp__3->GetZaxis()->SetTitleFont(22);
|
|
htemp__3->Draw("");
|
|
|
|
TGraph *graph = new TGraph(99);
|
|
graph->SetName("Graph0");
|
|
graph->SetTitle("Graph");
|
|
graph->SetLineWidth(2);
|
|
graph->SetMarkerStyle(21);
|
|
graph->SetMarkerSize(0.7);
|
|
graph->SetPoint(0,1,79.4227785);
|
|
graph->SetPoint(1,2,90.64895112);
|
|
graph->SetPoint(2,3,140.9607934);
|
|
graph->SetPoint(3,4,215.5216361);
|
|
graph->SetPoint(4,5,101.4179533);
|
|
graph->SetPoint(5,6,170.9438936);
|
|
graph->SetPoint(6,7,89.48367264);
|
|
graph->SetPoint(7,8,153.6379029);
|
|
graph->SetPoint(8,9,136.1777865);
|
|
graph->SetPoint(9,10,196.5928194);
|
|
graph->SetPoint(10,11,114.2369208);
|
|
graph->SetPoint(11,12,91.14495221);
|
|
graph->SetPoint(12,13,115.6277677);
|
|
graph->SetPoint(13,14,95.02835705);
|
|
graph->SetPoint(14,15,135.977796);
|
|
graph->SetPoint(15,16,160.3424602);
|
|
graph->SetPoint(16,17,63.63637141);
|
|
graph->SetPoint(17,18,131.0548558);
|
|
graph->SetPoint(18,19,84.49180025);
|
|
graph->SetPoint(19,20,67.70639211);
|
|
graph->SetPoint(20,21,155.9461549);
|
|
graph->SetPoint(21,22,152.8598079);
|
|
graph->SetPoint(22,23,166.711878);
|
|
graph->SetPoint(23,24,80.4594221);
|
|
graph->SetPoint(24,25,52.83066191);
|
|
graph->SetPoint(25,26,91.64662811);
|
|
graph->SetPoint(26,27,74.61256941);
|
|
graph->SetPoint(27,28,110.26654);
|
|
graph->SetPoint(28,29,156.9486615);
|
|
graph->SetPoint(29,30,84.35346273);
|
|
graph->SetPoint(30,31,93.64100086);
|
|
graph->SetPoint(31,32,111.700092);
|
|
graph->SetPoint(32,33,119.5161508);
|
|
graph->SetPoint(33,34,118.8374775);
|
|
graph->SetPoint(34,35,95.66027425);
|
|
graph->SetPoint(35,36,141.8313925);
|
|
graph->SetPoint(36,37,139.0956783);
|
|
graph->SetPoint(37,38,75.2658283);
|
|
graph->SetPoint(38,39,147.2174523);
|
|
graph->SetPoint(39,40,84.76811267);
|
|
graph->SetPoint(40,41,135.6618616);
|
|
graph->SetPoint(41,42,157.9930006);
|
|
graph->SetPoint(42,43,156.7409688);
|
|
graph->SetPoint(43,44,95.84485757);
|
|
graph->SetPoint(44,45,84.2499077);
|
|
graph->SetPoint(45,46,113.3387735);
|
|
graph->SetPoint(46,47,80.00410053);
|
|
graph->SetPoint(47,48,123.8892658);
|
|
graph->SetPoint(48,49,136.5811016);
|
|
graph->SetPoint(49,50,136.1185948);
|
|
graph->SetPoint(50,51,130.4996702);
|
|
graph->SetPoint(51,52,120.0040345);
|
|
graph->SetPoint(52,53,98.18761399);
|
|
graph->SetPoint(53,54,98.3652967);
|
|
graph->SetPoint(54,55,193.1702616);
|
|
graph->SetPoint(55,56,124.9145805);
|
|
graph->SetPoint(56,57,92.49548673);
|
|
graph->SetPoint(57,58,85.41331409);
|
|
graph->SetPoint(58,59,107.844337);
|
|
graph->SetPoint(59,60,149.5033926);
|
|
graph->SetPoint(60,61,105.9296925);
|
|
graph->SetPoint(61,62,147.0813421);
|
|
graph->SetPoint(62,63,87.2252161);
|
|
graph->SetPoint(63,64,131.8515097);
|
|
graph->SetPoint(64,65,120.297741);
|
|
graph->SetPoint(65,66,150.7512474);
|
|
graph->SetPoint(66,67,98.67164467);
|
|
graph->SetPoint(67,68,141.8626525);
|
|
graph->SetPoint(68,69,125.4021645);
|
|
graph->SetPoint(69,70,97.29538368);
|
|
graph->SetPoint(70,71,115.64605);
|
|
graph->SetPoint(71,72,127.1309143);
|
|
graph->SetPoint(72,73,97.32030078);
|
|
graph->SetPoint(73,74,92.87832779);
|
|
graph->SetPoint(74,75,145.1409494);
|
|
graph->SetPoint(75,76,179.6498113);
|
|
graph->SetPoint(76,77,96.7153991);
|
|
graph->SetPoint(77,78,117.3303349);
|
|
graph->SetPoint(78,79,215.9269203);
|
|
graph->SetPoint(79,80,126.3233867);
|
|
graph->SetPoint(80,81,103.5556547);
|
|
graph->SetPoint(81,82,124.1279015);
|
|
graph->SetPoint(82,83,320.7053252);
|
|
graph->SetPoint(83,84,164.6901164);
|
|
graph->SetPoint(84,85,70.82056337);
|
|
graph->SetPoint(85,86,69.83374973);
|
|
graph->SetPoint(86,87,101.1187517);
|
|
graph->SetPoint(87,88,116.8153165);
|
|
graph->SetPoint(88,89,116.0216455);
|
|
graph->SetPoint(89,90,73.86115612);
|
|
graph->SetPoint(90,91,131.4722587);
|
|
graph->SetPoint(91,92,121.509948);
|
|
graph->SetPoint(92,93,90.50670945);
|
|
graph->SetPoint(93,94,70.41895275);
|
|
graph->SetPoint(94,95,222.7795011);
|
|
graph->SetPoint(95,96,147.5779304);
|
|
graph->SetPoint(96,97,120.6309284);
|
|
graph->SetPoint(97,98,117.8160608);
|
|
graph->SetPoint(98,99,100.6819195);
|
|
|
|
TH1F *Graph_Graph_Graph35 = new TH1F("Graph_Graph_Graph35","Graph",100,0,108.8);
|
|
Graph_Graph_Graph35->SetMinimum(26.0432);
|
|
Graph_Graph_Graph35->SetMaximum(347.4928);
|
|
Graph_Graph_Graph35->SetDirectory(0);
|
|
Graph_Graph_Graph35->SetStats(0);
|
|
Graph_Graph_Graph35->SetLineWidth(2);
|
|
Graph_Graph_Graph35->SetMarkerStyle(21);
|
|
Graph_Graph_Graph35->GetXaxis()->SetNdivisions(505);
|
|
Graph_Graph_Graph35->GetXaxis()->SetLabelFont(22);
|
|
Graph_Graph_Graph35->GetXaxis()->SetLabelOffset(0.015);
|
|
Graph_Graph_Graph35->GetXaxis()->SetLabelSize(0.05);
|
|
Graph_Graph_Graph35->GetXaxis()->SetTitleSize(0.06);
|
|
Graph_Graph_Graph35->GetXaxis()->SetTitleFont(22);
|
|
Graph_Graph_Graph35->GetYaxis()->SetLabelFont(22);
|
|
Graph_Graph_Graph35->GetYaxis()->SetLabelSize(0.05);
|
|
Graph_Graph_Graph35->GetYaxis()->SetTitleSize(0.06);
|
|
Graph_Graph_Graph35->GetYaxis()->SetTitleFont(22);
|
|
Graph_Graph_Graph35->GetZaxis()->SetLabelFont(22);
|
|
Graph_Graph_Graph35->GetZaxis()->SetLabelSize(0.05);
|
|
Graph_Graph_Graph35->GetZaxis()->SetTitleSize(0.06);
|
|
Graph_Graph_Graph35->GetZaxis()->SetTitleFont(22);
|
|
graph->SetHistogram(Graph_Graph_Graph35);
|
|
|
|
graph->Draw("PL");
|
|
|
|
graph = new TGraph(99);
|
|
graph->SetName("Graph1");
|
|
graph->SetTitle("Graph");
|
|
graph->SetLineColor(2);
|
|
graph->SetLineStyle(2);
|
|
graph->SetLineWidth(2);
|
|
graph->SetMarkerColor(2);
|
|
graph->SetMarkerStyle(25);
|
|
graph->SetMarkerSize(0.9);
|
|
graph->SetPoint(0,1,80.38386734);
|
|
graph->SetPoint(1,2,90.33324011);
|
|
graph->SetPoint(2,3,139.2630968);
|
|
graph->SetPoint(3,4,215.2247817);
|
|
graph->SetPoint(4,5,102.0026244);
|
|
graph->SetPoint(5,6,172.1732552);
|
|
graph->SetPoint(6,7,89.66010686);
|
|
graph->SetPoint(7,8,152.7435221);
|
|
graph->SetPoint(8,9,136.4349889);
|
|
graph->SetPoint(9,10,197.0354969);
|
|
graph->SetPoint(10,11,114.5179694);
|
|
graph->SetPoint(11,12,90.28336646);
|
|
graph->SetPoint(12,13,116.2506248);
|
|
graph->SetPoint(13,14,95.22783483);
|
|
graph->SetPoint(14,15,136.5519609);
|
|
graph->SetPoint(15,16,161.1278603);
|
|
graph->SetPoint(16,17,64.81484903);
|
|
graph->SetPoint(17,18,130.6919301);
|
|
graph->SetPoint(18,19,83.93257459);
|
|
graph->SetPoint(19,20,67.08148347);
|
|
graph->SetPoint(20,21,156.6612753);
|
|
graph->SetPoint(21,22,152.5951795);
|
|
graph->SetPoint(22,23,166.8051988);
|
|
graph->SetPoint(23,24,80.6778749);
|
|
graph->SetPoint(24,25,52.9791293);
|
|
graph->SetPoint(25,26,91.48807091);
|
|
graph->SetPoint(26,27,74.88713033);
|
|
graph->SetPoint(27,28,109.571472);
|
|
graph->SetPoint(28,29,157.438027);
|
|
graph->SetPoint(29,30,84.33019822);
|
|
graph->SetPoint(30,31,93.24845473);
|
|
graph->SetPoint(31,32,113.0736691);
|
|
graph->SetPoint(32,33,120.7876404);
|
|
graph->SetPoint(33,34,120.0485652);
|
|
graph->SetPoint(34,35,96.44039735);
|
|
graph->SetPoint(35,36,141.6352856);
|
|
graph->SetPoint(36,37,139.3898912);
|
|
graph->SetPoint(37,38,74.61422016);
|
|
graph->SetPoint(38,39,148.8839957);
|
|
graph->SetPoint(39,40,84.86703418);
|
|
graph->SetPoint(40,41,135.0841016);
|
|
graph->SetPoint(41,42,158.0155957);
|
|
graph->SetPoint(42,43,156.578115);
|
|
graph->SetPoint(43,44,96.10605367);
|
|
graph->SetPoint(44,45,84.82146846);
|
|
graph->SetPoint(45,46,113.9512739);
|
|
graph->SetPoint(46,47,80.71652428);
|
|
graph->SetPoint(47,48,124.5010857);
|
|
graph->SetPoint(48,49,140.256804);
|
|
graph->SetPoint(49,50,136.6486876);
|
|
graph->SetPoint(50,51,131.3928108);
|
|
graph->SetPoint(51,52,120.5026493);
|
|
graph->SetPoint(52,53,97.75824283);
|
|
graph->SetPoint(53,54,98.38749327);
|
|
graph->SetPoint(54,55,192.5014187);
|
|
graph->SetPoint(55,56,125.0420605);
|
|
graph->SetPoint(56,57,93.09268269);
|
|
graph->SetPoint(57,58,86.42931097);
|
|
graph->SetPoint(58,59,108.5974233);
|
|
graph->SetPoint(59,60,149.4636925);
|
|
graph->SetPoint(60,61,106.3059811);
|
|
graph->SetPoint(61,62,146.4928748);
|
|
graph->SetPoint(62,63,88.25373445);
|
|
graph->SetPoint(63,64,132.6447653);
|
|
graph->SetPoint(64,65,121.1648258);
|
|
graph->SetPoint(65,66,151.1210972);
|
|
graph->SetPoint(66,67,98.82791119);
|
|
graph->SetPoint(67,68,142.2527779);
|
|
graph->SetPoint(68,69,124.0289725);
|
|
graph->SetPoint(69,70,97.92631492);
|
|
graph->SetPoint(70,71,116.2667336);
|
|
graph->SetPoint(71,72,127.1376327);
|
|
graph->SetPoint(72,73,97.659261);
|
|
graph->SetPoint(73,74,92.77980653);
|
|
graph->SetPoint(74,75,145.4558338);
|
|
graph->SetPoint(75,76,179.3805025);
|
|
graph->SetPoint(76,77,96.94421458);
|
|
graph->SetPoint(77,78,117.1248059);
|
|
graph->SetPoint(78,79,215.0351621);
|
|
graph->SetPoint(79,80,126.4759121);
|
|
graph->SetPoint(80,81,103.8764529);
|
|
graph->SetPoint(81,82,124.0286412);
|
|
graph->SetPoint(82,83,321.1601074);
|
|
graph->SetPoint(83,84,165.8136079);
|
|
graph->SetPoint(84,85,70.04014933);
|
|
graph->SetPoint(85,86,69.96548722);
|
|
graph->SetPoint(86,87,100.7131096);
|
|
graph->SetPoint(87,88,117.6657567);
|
|
graph->SetPoint(88,89,115.516665);
|
|
graph->SetPoint(89,90,74.73124236);
|
|
graph->SetPoint(90,91,131.8150096);
|
|
graph->SetPoint(91,92,121.217808);
|
|
graph->SetPoint(92,93,90.15552235);
|
|
graph->SetPoint(93,94,70.07380843);
|
|
graph->SetPoint(94,95,222.5910463);
|
|
graph->SetPoint(95,96,148.3264728);
|
|
graph->SetPoint(96,97,120.4098735);
|
|
graph->SetPoint(97,98,117.6910415);
|
|
graph->SetPoint(98,99,100.2838211);
|
|
|
|
TH1F *Graph_Graph_Graph46 = new TH1F("Graph_Graph_Graph46","Graph",100,0,108.8);
|
|
Graph_Graph_Graph46->SetMinimum(26.16103);
|
|
Graph_Graph_Graph46->SetMaximum(347.9782);
|
|
Graph_Graph_Graph46->SetDirectory(0);
|
|
Graph_Graph_Graph46->SetStats(0);
|
|
Graph_Graph_Graph46->SetLineWidth(2);
|
|
Graph_Graph_Graph46->SetMarkerStyle(21);
|
|
Graph_Graph_Graph46->GetXaxis()->SetNdivisions(505);
|
|
Graph_Graph_Graph46->GetXaxis()->SetLabelFont(22);
|
|
Graph_Graph_Graph46->GetXaxis()->SetLabelOffset(0.015);
|
|
Graph_Graph_Graph46->GetXaxis()->SetLabelSize(0.05);
|
|
Graph_Graph_Graph46->GetXaxis()->SetTitleSize(0.06);
|
|
Graph_Graph_Graph46->GetXaxis()->SetTitleFont(22);
|
|
Graph_Graph_Graph46->GetYaxis()->SetLabelFont(22);
|
|
Graph_Graph_Graph46->GetYaxis()->SetLabelSize(0.05);
|
|
Graph_Graph_Graph46->GetYaxis()->SetTitleSize(0.06);
|
|
Graph_Graph_Graph46->GetYaxis()->SetTitleFont(22);
|
|
Graph_Graph_Graph46->GetZaxis()->SetLabelFont(22);
|
|
Graph_Graph_Graph46->GetZaxis()->SetLabelSize(0.05);
|
|
Graph_Graph_Graph46->GetZaxis()->SetTitleSize(0.06);
|
|
Graph_Graph_Graph46->GetZaxis()->SetTitleFont(22);
|
|
graph->SetHistogram(Graph_Graph_Graph46);
|
|
|
|
graph->Draw("PC");
|
|
|
|
TLegend *leg = new TLegend(0.2091691,0.7293869,0.4713467,0.8985201,NULL,"brNDC");
|
|
leg->SetBorderSize(0);
|
|
leg->SetTextFont(62);
|
|
leg->SetLineColor(1);
|
|
leg->SetLineStyle(1);
|
|
leg->SetLineWidth(2);
|
|
leg->SetFillColor(0);
|
|
leg->SetFillStyle(0);
|
|
TLegendEntry *entry=leg->AddEntry("Graph0","Plane 1","lpf");
|
|
entry->SetFillStyle(1001);
|
|
entry->SetLineColor(1);
|
|
entry->SetLineStyle(1);
|
|
entry->SetLineWidth(2);
|
|
entry->SetMarkerColor(1);
|
|
entry->SetMarkerStyle(21);
|
|
entry->SetMarkerSize(0.7);
|
|
entry->SetTextFont(62);
|
|
entry=leg->AddEntry("Graph1","Plane 2","lpf");
|
|
entry->SetFillStyle(1001);
|
|
entry->SetLineColor(2);
|
|
entry->SetLineStyle(2);
|
|
entry->SetLineWidth(2);
|
|
entry->SetMarkerColor(2);
|
|
entry->SetMarkerStyle(25);
|
|
entry->SetMarkerSize(0.9);
|
|
entry->SetTextFont(62);
|
|
leg->Draw();
|
|
c1->Modified();
|
|
c1->cd();
|
|
c1->SetSelected(c1);
|
|
}
|