void RatesPerCell_Removing_noisy_cells_run_6543_SL1() { //=========Macro generated from canvas: c/c //========= (Mon Jan 14 20:08:43 2019) by ROOT version6.02/13 TCanvas *c = new TCanvas("c", "c",0,0,800,600); gStyle->SetOptStat(0); c->Range(-7.500001,-11421.37,67.5,102792.3); c->SetFillColor(0); c->SetBorderMode(0); c->SetBorderSize(2); c->SetFrameBorderMode(0); c->SetFrameBorderMode(0); TH1D *h_SL1L160 = new TH1D("h_SL1L160","SL1, run 6543",60,0,60); h_SL1L160->SetBinContent(1,67.14286); h_SL1L160->SetBinContent(2,34.28571); h_SL1L160->SetBinContent(3,58.57143); h_SL1L160->SetBinContent(4,44.28572); h_SL1L160->SetBinContent(5,42.85714); h_SL1L160->SetBinContent(6,60); h_SL1L160->SetBinContent(7,44.28572); h_SL1L160->SetBinContent(8,41.42857); h_SL1L160->SetBinContent(9,48.57143); h_SL1L160->SetBinContent(10,67.14286); h_SL1L160->SetBinContent(11,77.14286); h_SL1L160->SetBinContent(12,68.57143); h_SL1L160->SetBinContent(13,100); h_SL1L160->SetBinContent(14,68.57143); h_SL1L160->SetBinContent(15,77.14286); h_SL1L160->SetBinContent(16,34.28571); h_SL1L160->SetBinContent(17,84.28571); h_SL1L160->SetBinContent(18,117.1429); h_SL1L160->SetBinContent(19,115.7143); h_SL1L160->SetBinContent(20,144.2857); h_SL1L160->SetBinContent(21,145.7143); h_SL1L160->SetBinContent(22,168.5714); h_SL1L160->SetBinContent(23,177.1429); h_SL1L160->SetBinContent(24,157.1429); h_SL1L160->SetBinContent(25,174.2857); h_SL1L160->SetBinContent(26,181.4286); h_SL1L160->SetBinContent(27,232.8571); h_SL1L160->SetBinContent(28,275.7143); h_SL1L160->SetBinContent(29,352.8571); h_SL1L160->SetBinContent(30,385.7143); h_SL1L160->SetBinContent(31,548.5714); h_SL1L160->SetBinContent(32,747.1429); h_SL1L160->SetBinContent(33,3022.857); h_SL1L160->SetBinContent(34,5461.429); h_SL1L160->SetBinContent(35,5875.714); h_SL1L160->SetBinContent(36,5222.857); h_SL1L160->SetBinContent(37,8370); h_SL1L160->SetBinContent(38,8985.715); h_SL1L160->SetBinContent(39,4374.286); h_SL1L160->SetBinContent(40,755.7143); h_SL1L160->SetBinContent(41,527.1429); h_SL1L160->SetBinContent(42,481.4286); h_SL1L160->SetBinContent(43,420); h_SL1L160->SetBinContent(44,382.8571); h_SL1L160->SetBinContent(45,301.4286); h_SL1L160->SetBinContent(46,211.4286); h_SL1L160->SetBinContent(47,235.7143); h_SL1L160->SetBinContent(48,178.5714); h_SL1L160->SetBinContent(49,224.2857); h_SL1L160->SetBinContent(50,182.8571); h_SL1L160->SetBinContent(51,161.4286); h_SL1L160->SetBinContent(52,154.2857); h_SL1L160->SetBinContent(53,164.2857); h_SL1L160->SetBinContent(54,130); h_SL1L160->SetBinContent(55,134.2857); h_SL1L160->SetBinContent(56,115.7143); h_SL1L160->SetBinContent(57,148.5714); h_SL1L160->SetBinContent(58,105.7143); h_SL1L160->SetBinContent(59,161.4286); h_SL1L160->SetMaximum(91370.95); 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,327.1429); h_SL1L261->SetBinContent(2,375.7143); h_SL1L261->SetBinContent(3,385.7143); h_SL1L261->SetBinContent(4,388.5714); h_SL1L261->SetBinContent(5,391.4286); h_SL1L261->SetBinContent(6,462.8571); h_SL1L261->SetBinContent(7,471.4286); h_SL1L261->SetBinContent(8,438.5714); h_SL1L261->SetBinContent(9,474.2857); h_SL1L261->SetBinContent(10,520); h_SL1L261->SetBinContent(11,638.5715); h_SL1L261->SetBinContent(12,651.4286); h_SL1L261->SetBinContent(13,760); h_SL1L261->SetBinContent(14,830); h_SL1L261->SetBinContent(15,837.1429); h_SL1L261->SetBinContent(16,777.1429); h_SL1L261->SetBinContent(17,851.4286); h_SL1L261->SetBinContent(18,1191.429); h_SL1L261->SetBinContent(19,1301.429); h_SL1L261->SetBinContent(20,1401.429); h_SL1L261->SetBinContent(21,1540); h_SL1L261->SetBinContent(22,1720); h_SL1L261->SetBinContent(23,1757.143); h_SL1L261->SetBinContent(24,2018.572); h_SL1L261->SetBinContent(25,2187.143); h_SL1L261->SetBinContent(26,2130); h_SL1L261->SetBinContent(27,2205.714); h_SL1L261->SetBinContent(28,2754.286); h_SL1L261->SetBinContent(29,3212.857); h_SL1L261->SetBinContent(30,3867.143); h_SL1L261->SetBinContent(31,4445.714); h_SL1L261->SetBinContent(32,7561.429); h_SL1L261->SetBinContent(33,19375.71); h_SL1L261->SetBinContent(34,51347.14); h_SL1L261->SetBinContent(35,59040); h_SL1L261->SetBinContent(36,62510); h_SL1L261->SetBinContent(37,67534.29); h_SL1L261->SetBinContent(38,67535.72); h_SL1L261->SetBinContent(39,56460); h_SL1L261->SetBinContent(40,19507.14); h_SL1L261->SetBinContent(41,7950); h_SL1L261->SetBinContent(42,4710); h_SL1L261->SetBinContent(43,4074.286); h_SL1L261->SetBinContent(44,3590); h_SL1L261->SetBinContent(45,3375.714); h_SL1L261->SetBinContent(46,3102.857); h_SL1L261->SetBinContent(47,2790); h_SL1L261->SetBinContent(48,2704.286); h_SL1L261->SetBinContent(49,15642.86); h_SL1L261->SetBinContent(50,2252.857); h_SL1L261->SetBinContent(51,2215.714); h_SL1L261->SetBinContent(52,2107.143); h_SL1L261->SetBinContent(53,2020); h_SL1L261->SetBinContent(54,1815.714); h_SL1L261->SetBinContent(55,1780); h_SL1L261->SetBinContent(56,5644.286); h_SL1L261->SetBinContent(57,1652.857); h_SL1L261->SetBinContent(58,1612.857); h_SL1L261->SetBinContent(59,1567.143); h_SL1L261->SetMaximum(79453.5); 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,302.8571); h_SL1L362->SetBinContent(2,331.4286); h_SL1L362->SetBinContent(3,367.1429); h_SL1L362->SetBinContent(4,335.7143); h_SL1L362->SetBinContent(5,400); h_SL1L362->SetBinContent(6,401.4286); h_SL1L362->SetBinContent(7,380); h_SL1L362->SetBinContent(8,424.2857); h_SL1L362->SetBinContent(9,458.5714); h_SL1L362->SetBinContent(10,517.1429); h_SL1L362->SetBinContent(11,601.4286); h_SL1L362->SetBinContent(12,661.4286); h_SL1L362->SetBinContent(13,761.4286); h_SL1L362->SetBinContent(14,794.2857); h_SL1L362->SetBinContent(15,755.7143); h_SL1L362->SetBinContent(16,751.4286); h_SL1L362->SetBinContent(17,947.1429); h_SL1L362->SetBinContent(18,1187.143); h_SL1L362->SetBinContent(19,1197.143); h_SL1L362->SetBinContent(20,1350); h_SL1L362->SetBinContent(21,1512.857); h_SL1L362->SetBinContent(22,1585.714); h_SL1L362->SetBinContent(23,1847.143); h_SL1L362->SetBinContent(24,1972.857); h_SL1L362->SetBinContent(25,2020); h_SL1L362->SetBinContent(26,2162.857); h_SL1L362->SetBinContent(27,2261.429); h_SL1L362->SetBinContent(28,3024.286); h_SL1L362->SetBinContent(29,3367.143); h_SL1L362->SetBinContent(30,3870); h_SL1L362->SetBinContent(31,5415.714); h_SL1L362->SetBinContent(32,9404.286); h_SL1L362->SetBinContent(33,37865.71); h_SL1L362->SetBinContent(34,56737.14); h_SL1L362->SetBinContent(35,60744.29); h_SL1L362->SetBinContent(36,65190); h_SL1L362->SetBinContent(37,69090); h_SL1L362->SetBinContent(38,63677.14); h_SL1L362->SetBinContent(39,40310); h_SL1L362->SetBinContent(40,9778.571); h_SL1L362->SetBinContent(41,5571.429); h_SL1L362->SetBinContent(42,4217.143); h_SL1L362->SetBinContent(43,3744.286); h_SL1L362->SetBinContent(44,3328.572); h_SL1L362->SetBinContent(45,3104.286); h_SL1L362->SetBinContent(46,2775.714); h_SL1L362->SetBinContent(47,2688.572); h_SL1L362->SetBinContent(48,2431.429); h_SL1L362->SetBinContent(49,2195.714); h_SL1L362->SetBinContent(50,2132.857); h_SL1L362->SetBinContent(51,2001.429); h_SL1L362->SetBinContent(52,1848.572); h_SL1L362->SetBinContent(53,4548.572); h_SL1L362->SetBinContent(54,1781.429); h_SL1L362->SetBinContent(55,1624.286); h_SL1L362->SetBinContent(56,6270); h_SL1L362->SetBinContent(57,1792.857); h_SL1L362->SetBinContent(58,1517.143); h_SL1L362->SetBinContent(59,1448.571); h_SL1L362->SetMaximum(79453.5); 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,292.8571); h_SL1L463->SetBinContent(3,297.1429); h_SL1L463->SetBinContent(4,297.1429); h_SL1L463->SetBinContent(5,381.4286); h_SL1L463->SetBinContent(6,348.5714); h_SL1L463->SetBinContent(7,381.4286); h_SL1L463->SetBinContent(8,370); h_SL1L463->SetBinContent(9,414.2857); h_SL1L463->SetBinContent(10,455.7143); h_SL1L463->SetBinContent(11,550); h_SL1L463->SetBinContent(12,538.5714); h_SL1L463->SetBinContent(13,651.4286); h_SL1L463->SetBinContent(14,698.5715); h_SL1L463->SetBinContent(15,740); h_SL1L463->SetBinContent(16,684.2857); h_SL1L463->SetBinContent(17,808.5715); h_SL1L463->SetBinContent(18,1045.714); h_SL1L463->SetBinContent(19,1048.571); h_SL1L463->SetBinContent(20,1257.143); h_SL1L463->SetBinContent(21,1320); h_SL1L463->SetBinContent(22,1464.286); h_SL1L463->SetBinContent(23,1514.286); h_SL1L463->SetBinContent(24,1737.143); h_SL1L463->SetBinContent(25,1901.429); h_SL1L463->SetBinContent(26,1930); h_SL1L463->SetBinContent(27,2032.857); h_SL1L463->SetBinContent(28,2544.286); h_SL1L463->SetBinContent(29,2932.857); h_SL1L463->SetBinContent(30,3447.143); h_SL1L463->SetBinContent(31,4168.571); h_SL1L463->SetBinContent(32,7141.429); h_SL1L463->SetBinContent(33,18572.86); h_SL1L463->SetBinContent(34,51004.29); h_SL1L463->SetBinContent(35,58452.86); h_SL1L463->SetBinContent(36,61757.14); h_SL1L463->SetBinContent(37,66577.14); h_SL1L463->SetBinContent(38,66092.86); h_SL1L463->SetBinContent(39,56152.86); h_SL1L463->SetBinContent(40,19338.57); h_SL1L463->SetBinContent(41,7520); h_SL1L463->SetBinContent(42,4567.143); h_SL1L463->SetBinContent(43,3694.286); h_SL1L463->SetBinContent(44,3341.429); h_SL1L463->SetBinContent(45,3134.286); h_SL1L463->SetBinContent(46,2861.429); h_SL1L463->SetBinContent(47,2537.143); h_SL1L463->SetBinContent(48,2505.714); h_SL1L463->SetBinContent(49,2170); h_SL1L463->SetBinContent(50,2140); h_SL1L463->SetBinContent(51,1928.572); h_SL1L463->SetBinContent(52,1840); h_SL1L463->SetBinContent(53,1727.143); h_SL1L463->SetBinContent(54,1674.286); h_SL1L463->SetBinContent(55,1.428571); h_SL1L463->SetBinContent(56,1481.429); h_SL1L463->SetBinContent(57,1428.571); h_SL1L463->SetBinContent(58,1458.571); h_SL1L463->SetBinContent(59,1378.571); h_SL1L463->SetMaximum(79453.5); 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 6543"); pt->Draw(); c->Modified(); c->cd(); c->SetSelected(c); }