void RatesPerCell_Removing_noisy_cells_run_6505_SL1() { //=========Macro generated from canvas: c/c //========= (Mon Jan 14 19:19:51 2019) by ROOT version6.02/13 TCanvas *c = new TCanvas("c", "c",0,0,800,600); gStyle->SetOptStat(0); c->Range(-7.500001,-12812.87,67.5,115315.8); c->SetFillColor(0); c->SetBorderMode(0); c->SetBorderSize(2); c->SetFrameBorderMode(0); c->SetFrameBorderMode(0); TH1D *h_SL1L160 = new TH1D("h_SL1L160","SL1, run 6505",60,0,60); h_SL1L160->SetBinContent(1,108.5714); h_SL1L160->SetBinContent(2,118.5714); h_SL1L160->SetBinContent(3,102.8571); h_SL1L160->SetBinContent(4,130); h_SL1L160->SetBinContent(5,105.7143); h_SL1L160->SetBinContent(6,102.8571); h_SL1L160->SetBinContent(7,92.85715); h_SL1L160->SetBinContent(8,92.85715); h_SL1L160->SetBinContent(9,100); h_SL1L160->SetBinContent(10,112.8571); h_SL1L160->SetBinContent(11,134.2857); h_SL1L160->SetBinContent(12,161.4286); h_SL1L160->SetBinContent(13,214.2857); h_SL1L160->SetBinContent(14,182.8571); h_SL1L160->SetBinContent(15,161.4286); h_SL1L160->SetBinContent(16,194.2857); h_SL1L160->SetBinContent(17,181.4286); h_SL1L160->SetBinContent(18,278.5714); h_SL1L160->SetBinContent(19,301.4286); h_SL1L160->SetBinContent(20,308.5714); h_SL1L160->SetBinContent(21,370); h_SL1L160->SetBinContent(22,374.2857); h_SL1L160->SetBinContent(23,381.4286); h_SL1L160->SetBinContent(24,398.5714); h_SL1L160->SetBinContent(25,364.2857); h_SL1L160->SetBinContent(26,484.2857); h_SL1L160->SetBinContent(27,507.1429); h_SL1L160->SetBinContent(28,627.1429); h_SL1L160->SetBinContent(29,682.8572); h_SL1L160->SetBinContent(30,914.2858); h_SL1L160->SetBinContent(31,1008.571); h_SL1L160->SetBinContent(32,1598.571); h_SL1L160->SetBinContent(33,5978.572); h_SL1L160->SetBinContent(34,10780); h_SL1L160->SetBinContent(35,12195.71); h_SL1L160->SetBinContent(36,12058.57); h_SL1L160->SetBinContent(37,16271.43); h_SL1L160->SetBinContent(38,13972.86); h_SL1L160->SetBinContent(39,7488.572); h_SL1L160->SetBinContent(40,1494.286); h_SL1L160->SetBinContent(41,1005.714); h_SL1L160->SetBinContent(42,915.7143); h_SL1L160->SetBinContent(43,795.7143); h_SL1L160->SetBinContent(44,771.4286); h_SL1L160->SetBinContent(45,575.7143); h_SL1L160->SetBinContent(46,518.5714); h_SL1L160->SetBinContent(47,528.5714); h_SL1L160->SetBinContent(48,418.5714); h_SL1L160->SetBinContent(49,440); h_SL1L160->SetBinContent(50,392.8571); h_SL1L160->SetBinContent(51,342.8571); h_SL1L160->SetBinContent(52,315.7143); h_SL1L160->SetBinContent(53,334.2857); h_SL1L160->SetBinContent(54,272.8571); h_SL1L160->SetBinContent(55,275.7143); h_SL1L160->SetBinContent(56,227.1429); h_SL1L160->SetBinContent(57,222.8571); h_SL1L160->SetBinContent(58,285.7143); h_SL1L160->SetBinContent(59,295.7143); h_SL1L160->SetMaximum(102502.9); h_SL1L160->SetEntries(60); h_SL1L160->SetDirectory(0); h_SL1L160->SetStats(0); h_SL1L160->SetLineWidth(2); h_SL1L160->GetXaxis()->SetTitle("Cell"); h_SL1L160->GetXaxis()->SetLabelFont(42); h_SL1L160->GetXaxis()->SetLabelSize(0.035); h_SL1L160->GetXaxis()->SetTitleSize(0.035); h_SL1L160->GetXaxis()->SetTitleFont(42); h_SL1L160->GetYaxis()->SetTitle("Hz"); h_SL1L160->GetYaxis()->SetLabelFont(42); h_SL1L160->GetYaxis()->SetLabelSize(0.035); h_SL1L160->GetYaxis()->SetTitleSize(0.035); h_SL1L160->GetYaxis()->SetTitleOffset(1.45); h_SL1L160->GetYaxis()->SetTitleFont(42); h_SL1L160->GetZaxis()->SetLabelFont(42); h_SL1L160->GetZaxis()->SetLabelSize(0.035); h_SL1L160->GetZaxis()->SetTitleSize(0.035); h_SL1L160->GetZaxis()->SetTitleFont(42); h_SL1L160->Draw(""); TH1D *h_SL1L261 = new TH1D("h_SL1L261","",60,0,60); h_SL1L261->SetBinContent(1,318.5714); h_SL1L261->SetBinContent(2,314.2857); h_SL1L261->SetBinContent(3,370); h_SL1L261->SetBinContent(4,375.7143); h_SL1L261->SetBinContent(5,358.5714); h_SL1L261->SetBinContent(6,392.8571); h_SL1L261->SetBinContent(7,407.1429); h_SL1L261->SetBinContent(8,435.7143); h_SL1L261->SetBinContent(9,440); h_SL1L261->SetBinContent(10,501.4286); h_SL1L261->SetBinContent(11,532.8572); h_SL1L261->SetBinContent(12,670); h_SL1L261->SetBinContent(13,691.4286); h_SL1L261->SetBinContent(14,688.5715); h_SL1L261->SetBinContent(15,765.7143); h_SL1L261->SetBinContent(16,717.1429); h_SL1L261->SetBinContent(17,774.2857); h_SL1L261->SetBinContent(18,1047.143); h_SL1L261->SetBinContent(19,1197.143); h_SL1L261->SetBinContent(20,1255.714); h_SL1L261->SetBinContent(21,1318.571); h_SL1L261->SetBinContent(22,1600); h_SL1L261->SetBinContent(23,1678.571); h_SL1L261->SetBinContent(24,1864.286); h_SL1L261->SetBinContent(25,1997.143); h_SL1L261->SetBinContent(26,1902.857); h_SL1L261->SetBinContent(27,2144.286); h_SL1L261->SetBinContent(28,2517.143); h_SL1L261->SetBinContent(29,3097.143); h_SL1L261->SetBinContent(30,3378.572); h_SL1L261->SetBinContent(31,4065.714); h_SL1L261->SetBinContent(32,6394.286); h_SL1L261->SetBinContent(33,15832.86); h_SL1L261->SetBinContent(34,42868.57); h_SL1L261->SetBinContent(35,56967.14); h_SL1L261->SetBinContent(36,69271.43); h_SL1L261->SetBinContent(37,77507.15); h_SL1L261->SetBinContent(38,70378.57); h_SL1L261->SetBinContent(39,49684.29); h_SL1L261->SetBinContent(40,15944.29); h_SL1L261->SetBinContent(41,6741.429); h_SL1L261->SetBinContent(42,4364.286); h_SL1L261->SetBinContent(43,3778.572); h_SL1L261->SetBinContent(44,3495.714); h_SL1L261->SetBinContent(45,3144.286); h_SL1L261->SetBinContent(46,3030); h_SL1L261->SetBinContent(47,2770); h_SL1L261->SetBinContent(48,2494.286); h_SL1L261->SetBinContent(49,2411.429); h_SL1L261->SetBinContent(50,2228.572); h_SL1L261->SetBinContent(51,2212.857); h_SL1L261->SetBinContent(52,1815.714); h_SL1L261->SetBinContent(53,1771.429); h_SL1L261->SetBinContent(54,1665.714); h_SL1L261->SetBinContent(55,1581.429); h_SL1L261->SetBinContent(56,1461.429); h_SL1L261->SetBinContent(57,1391.429); h_SL1L261->SetBinContent(58,1474.286); h_SL1L261->SetBinContent(59,1430); h_SL1L261->SetMaximum(89133.22); h_SL1L261->SetEntries(60); h_SL1L261->SetDirectory(0); h_SL1L261->SetStats(0); Int_t ci; // for color index setting TColor *color; // for color definition with alpha ci = TColor::GetColor("#cc0000"); h_SL1L261->SetLineColor(ci); h_SL1L261->SetLineWidth(2); h_SL1L261->GetXaxis()->SetTitle("Cell"); h_SL1L261->GetXaxis()->SetLabelFont(42); h_SL1L261->GetXaxis()->SetLabelSize(0.035); h_SL1L261->GetXaxis()->SetTitleSize(0.035); h_SL1L261->GetXaxis()->SetTitleFont(42); h_SL1L261->GetYaxis()->SetTitle("Hz"); h_SL1L261->GetYaxis()->SetLabelFont(42); h_SL1L261->GetYaxis()->SetLabelSize(0.035); h_SL1L261->GetYaxis()->SetTitleSize(0.035); h_SL1L261->GetYaxis()->SetTitleOffset(1.45); h_SL1L261->GetYaxis()->SetTitleFont(42); h_SL1L261->GetZaxis()->SetLabelFont(42); h_SL1L261->GetZaxis()->SetLabelSize(0.035); h_SL1L261->GetZaxis()->SetTitleSize(0.035); h_SL1L261->GetZaxis()->SetTitleFont(42); h_SL1L261->Draw("same"); TH1D *h_SL1L362 = new TH1D("h_SL1L362","",60,0,60); h_SL1L362->SetBinContent(1,291.4286); h_SL1L362->SetBinContent(2,308.5714); h_SL1L362->SetBinContent(3,332.8571); h_SL1L362->SetBinContent(4,304.2857); h_SL1L362->SetBinContent(5,330); h_SL1L362->SetBinContent(6,370); h_SL1L362->SetBinContent(7,375.7143); h_SL1L362->SetBinContent(8,411.4286); h_SL1L362->SetBinContent(9,451.4286); h_SL1L362->SetBinContent(10,492.8571); h_SL1L362->SetBinContent(11,568.5715); h_SL1L362->SetBinContent(12,635.7143); h_SL1L362->SetBinContent(13,684.2857); h_SL1L362->SetBinContent(14,658.5715); h_SL1L362->SetBinContent(15,681.4286); h_SL1L362->SetBinContent(16,734.2857); h_SL1L362->SetBinContent(17,805.7143); h_SL1L362->SetBinContent(18,1108.571); h_SL1L362->SetBinContent(19,1111.429); h_SL1L362->SetBinContent(20,1270); h_SL1L362->SetBinContent(21,1372.857); h_SL1L362->SetBinContent(22,1514.286); h_SL1L362->SetBinContent(23,1620); h_SL1L362->SetBinContent(24,1834.286); h_SL1L362->SetBinContent(25,1750); h_SL1L362->SetBinContent(26,1990); h_SL1L362->SetBinContent(27,2101.429); h_SL1L362->SetBinContent(28,2825.714); h_SL1L362->SetBinContent(29,3061.429); h_SL1L362->SetBinContent(30,3567.143); h_SL1L362->SetBinContent(31,4745.714); h_SL1L362->SetBinContent(32,7840); h_SL1L362->SetBinContent(33,31100); h_SL1L362->SetBinContent(34,50825.71); h_SL1L362->SetBinContent(35,62927.14); h_SL1L362->SetBinContent(36,74954.29); h_SL1L362->SetBinContent(37,76902.86); h_SL1L362->SetBinContent(38,60838.57); h_SL1L362->SetBinContent(39,33364.29); h_SL1L362->SetBinContent(40,8071.429); h_SL1L362->SetBinContent(41,4881.429); h_SL1L362->SetBinContent(42,3957.143); h_SL1L362->SetBinContent(43,3525.714); h_SL1L362->SetBinContent(44,3288.572); h_SL1L362->SetBinContent(45,2895.714); h_SL1L362->SetBinContent(46,2740); h_SL1L362->SetBinContent(47,2538.572); h_SL1L362->SetBinContent(48,2305.714); h_SL1L362->SetBinContent(49,2157.143); h_SL1L362->SetBinContent(50,2055.714); h_SL1L362->SetBinContent(51,1922.857); h_SL1L362->SetBinContent(52,1701.429); h_SL1L362->SetBinContent(53,1692.857); h_SL1L362->SetBinContent(54,1525.714); h_SL1L362->SetBinContent(55,1541.429); h_SL1L362->SetBinContent(56,1307.143); h_SL1L362->SetBinContent(57,1388.571); h_SL1L362->SetBinContent(58,1377.143); h_SL1L362->SetBinContent(59,1308.571); h_SL1L362->SetMaximum(89133.22); h_SL1L362->SetEntries(60); h_SL1L362->SetDirectory(0); h_SL1L362->SetStats(0); ci = TColor::GetColor("#009900"); h_SL1L362->SetLineColor(ci); h_SL1L362->SetLineWidth(2); h_SL1L362->GetXaxis()->SetTitle("Cell"); h_SL1L362->GetXaxis()->SetLabelFont(42); h_SL1L362->GetXaxis()->SetLabelSize(0.035); h_SL1L362->GetXaxis()->SetTitleSize(0.035); h_SL1L362->GetXaxis()->SetTitleFont(42); h_SL1L362->GetYaxis()->SetTitle("Hz"); h_SL1L362->GetYaxis()->SetLabelFont(42); h_SL1L362->GetYaxis()->SetLabelSize(0.035); h_SL1L362->GetYaxis()->SetTitleSize(0.035); h_SL1L362->GetYaxis()->SetTitleOffset(1.45); h_SL1L362->GetYaxis()->SetTitleFont(42); h_SL1L362->GetZaxis()->SetLabelFont(42); h_SL1L362->GetZaxis()->SetLabelSize(0.035); h_SL1L362->GetZaxis()->SetTitleSize(0.035); h_SL1L362->GetZaxis()->SetTitleFont(42); h_SL1L362->Draw("same"); TH1D *h_SL1L463 = new TH1D("h_SL1L463","",60,0,60); h_SL1L463->SetBinContent(2,280); h_SL1L463->SetBinContent(3,295.7143); h_SL1L463->SetBinContent(4,300); h_SL1L463->SetBinContent(5,301.4286); h_SL1L463->SetBinContent(6,304.2857); h_SL1L463->SetBinContent(7,382.8571); h_SL1L463->SetBinContent(8,361.4286); h_SL1L463->SetBinContent(9,385.7143); h_SL1L463->SetBinContent(10,434.2857); h_SL1L463->SetBinContent(11,437.1429); h_SL1L463->SetBinContent(12,568.5715); h_SL1L463->SetBinContent(13,592.8572); h_SL1L463->SetBinContent(14,604.2857); h_SL1L463->SetBinContent(15,614.2857); h_SL1L463->SetBinContent(16,667.1429); h_SL1L463->SetBinContent(17,681.4286); h_SL1L463->SetBinContent(18,890); h_SL1L463->SetBinContent(19,1014.286); h_SL1L463->SetBinContent(20,1081.429); h_SL1L463->SetBinContent(21,1170); h_SL1L463->SetBinContent(22,1364.286); h_SL1L463->SetBinContent(23,1418.571); h_SL1L463->SetBinContent(24,1627.143); h_SL1L463->SetBinContent(25,1637.143); h_SL1L463->SetBinContent(26,1755.714); h_SL1L463->SetBinContent(27,1915.714); h_SL1L463->SetBinContent(28,2338.572); h_SL1L463->SetBinContent(29,2691.429); h_SL1L463->SetBinContent(30,3072.857); h_SL1L463->SetBinContent(31,3721.429); h_SL1L463->SetBinContent(32,5781.429); h_SL1L463->SetBinContent(33,14691.43); h_SL1L463->SetBinContent(34,42520); h_SL1L463->SetBinContent(35,56205.71); h_SL1L463->SetBinContent(36,68572.86); h_SL1L463->SetBinContent(37,76180); h_SL1L463->SetBinContent(38,69288.57); h_SL1L463->SetBinContent(39,49650); h_SL1L463->SetBinContent(40,15602.86); h_SL1L463->SetBinContent(41,6374.286); h_SL1L463->SetBinContent(42,4122.857); h_SL1L463->SetBinContent(43,3467.143); h_SL1L463->SetBinContent(44,3244.286); h_SL1L463->SetBinContent(45,2870); h_SL1L463->SetBinContent(46,2722.857); h_SL1L463->SetBinContent(47,2534.286); h_SL1L463->SetBinContent(48,2274.286); h_SL1L463->SetBinContent(49,2101.429); h_SL1L463->SetBinContent(50,2020); h_SL1L463->SetBinContent(51,1962.857); h_SL1L463->SetBinContent(52,1585.714); h_SL1L463->SetBinContent(53,1602.857); h_SL1L463->SetBinContent(54,1491.429); h_SL1L463->SetBinContent(56,1304.286); h_SL1L463->SetBinContent(57,1132.857); h_SL1L463->SetBinContent(58,1314.286); h_SL1L463->SetBinContent(59,1244.286); h_SL1L463->SetMaximum(89133.22); h_SL1L463->SetEntries(60); h_SL1L463->SetDirectory(0); h_SL1L463->SetStats(0); ci = TColor::GetColor("#0000cc"); h_SL1L463->SetLineColor(ci); h_SL1L463->SetLineWidth(2); h_SL1L463->GetXaxis()->SetTitle("Cell"); h_SL1L463->GetXaxis()->SetLabelFont(42); h_SL1L463->GetXaxis()->SetLabelSize(0.035); h_SL1L463->GetXaxis()->SetTitleSize(0.035); h_SL1L463->GetXaxis()->SetTitleFont(42); h_SL1L463->GetYaxis()->SetTitle("Hz"); h_SL1L463->GetYaxis()->SetLabelFont(42); h_SL1L463->GetYaxis()->SetLabelSize(0.035); h_SL1L463->GetYaxis()->SetTitleSize(0.035); h_SL1L463->GetYaxis()->SetTitleOffset(1.45); h_SL1L463->GetYaxis()->SetTitleFont(42); h_SL1L463->GetZaxis()->SetLabelFont(42); h_SL1L463->GetZaxis()->SetLabelSize(0.035); h_SL1L463->GetZaxis()->SetTitleSize(0.035); h_SL1L463->GetZaxis()->SetTitleFont(42); h_SL1L463->Draw("same"); TLegend *leg = new TLegend(0.1,0.83,0.9,0.9,NULL,"brNDC"); leg->SetBorderSize(1); leg->SetLineColor(1); leg->SetLineStyle(1); leg->SetLineWidth(1); leg->SetFillColor(0); leg->SetFillStyle(1001); TLegendEntry *entry=leg->AddEntry("h_SL1L1","Layer 1","l"); entry->SetLineColor(1); entry->SetLineStyle(1); entry->SetLineWidth(2); entry->SetMarkerColor(1); entry->SetMarkerStyle(21); entry->SetMarkerSize(1); entry->SetTextFont(42); entry=leg->AddEntry("h_SL1L2","Layer 2","l"); ci = TColor::GetColor("#cc0000"); entry->SetLineColor(ci); entry->SetLineStyle(1); entry->SetLineWidth(2); entry->SetMarkerColor(1); entry->SetMarkerStyle(21); entry->SetMarkerSize(1); entry->SetTextFont(42); entry=leg->AddEntry("h_SL1L3","Layer 3","l"); ci = TColor::GetColor("#009900"); entry->SetLineColor(ci); entry->SetLineStyle(1); entry->SetLineWidth(2); entry->SetMarkerColor(1); entry->SetMarkerStyle(21); entry->SetMarkerSize(1); entry->SetTextFont(42); entry=leg->AddEntry("h_SL1L4","Layer 4","l"); ci = TColor::GetColor("#0000cc"); entry->SetLineColor(ci); entry->SetLineStyle(1); entry->SetLineWidth(2); entry->SetMarkerColor(1); entry->SetMarkerStyle(21); entry->SetMarkerSize(1); entry->SetTextFont(42); leg->Draw(); TPaveText *pt = new TPaveText(0.3719095,0.9362587,0.6280905,0.995,"blNDC"); pt->SetName("title"); pt->SetBorderSize(0); pt->SetFillColor(0); pt->SetFillStyle(0); pt->SetTextFont(42); TText *AText = pt->AddText("SL1, run 6505"); pt->Draw(); c->Modified(); c->cd(); c->SetSelected(c); }