void RatesPerCell_Removing_noisy_cells_run_6846_SL1() { //=========Macro generated from canvas: c/c //========= (Mon Jan 14 19:49:08 2019) by ROOT version6.02/13 TCanvas *c = new TCanvas("c", "c",0,0,800,600); gStyle->SetOptStat(0); c->Range(-7.500001,-29527.55,67.5,265747.9); c->SetFillColor(0); c->SetBorderMode(0); c->SetBorderSize(2); c->SetFrameBorderMode(0); c->SetFrameBorderMode(0); TH1D *h_SL1L160 = new TH1D("h_SL1L160","SL1, run 6846",60,0,60); h_SL1L160->SetBinContent(1,372.449); h_SL1L160->SetBinContent(2,459.1837); h_SL1L160->SetBinContent(3,525.5102); h_SL1L160->SetBinContent(4,459.1837); h_SL1L160->SetBinContent(5,448.9796); h_SL1L160->SetBinContent(6,489.7959); h_SL1L160->SetBinContent(7,464.2857); h_SL1L160->SetBinContent(8,535.7143); h_SL1L160->SetBinContent(9,602.0408); h_SL1L160->SetBinContent(10,566.3265); h_SL1L160->SetBinContent(11,591.8367); h_SL1L160->SetBinContent(12,775.5102); h_SL1L160->SetBinContent(13,882.6531); h_SL1L160->SetBinContent(14,897.9592); h_SL1L160->SetBinContent(15,785.7143); h_SL1L160->SetBinContent(16,806.1224); h_SL1L160->SetBinContent(17,969.3878); h_SL1L160->SetBinContent(18,1244.898); h_SL1L160->SetBinContent(19,1214.286); h_SL1L160->SetBinContent(20,1479.592); h_SL1L160->SetBinContent(21,1755.102); h_SL1L160->SetBinContent(22,1801.02); h_SL1L160->SetBinContent(23,2010.204); h_SL1L160->SetBinContent(24,1933.673); h_SL1L160->SetBinContent(25,2127.551); h_SL1L160->SetBinContent(26,1989.796); h_SL1L160->SetBinContent(27,2193.877); h_SL1L160->SetBinContent(28,3158.163); h_SL1L160->SetBinContent(29,3117.347); h_SL1L160->SetBinContent(30,4612.245); h_SL1L160->SetBinContent(31,5362.245); h_SL1L160->SetBinContent(32,8739.796); h_SL1L160->SetBinContent(33,37163.27); h_SL1L160->SetBinContent(34,57576.53); h_SL1L160->SetBinContent(35,61734.69); h_SL1L160->SetBinContent(36,65760.2); h_SL1L160->SetBinContent(37,69433.67); h_SL1L160->SetBinContent(38,79852.04); h_SL1L160->SetBinContent(39,39612.25); h_SL1L160->SetBinContent(40,9392.857); h_SL1L160->SetBinContent(41,5479.592); h_SL1L160->SetBinContent(42,4316.327); h_SL1L160->SetBinContent(43,3816.326); h_SL1L160->SetBinContent(44,3673.469); h_SL1L160->SetBinContent(45,3285.714); h_SL1L160->SetBinContent(46,3045.918); h_SL1L160->SetBinContent(47,2862.245); h_SL1L160->SetBinContent(48,2295.918); h_SL1L160->SetBinContent(49,2423.469); h_SL1L160->SetBinContent(50,2311.224); h_SL1L160->SetBinContent(51,1933.673); h_SL1L160->SetBinContent(52,1801.02); h_SL1L160->SetBinContent(53,1954.082); h_SL1L160->SetBinContent(54,1770.408); h_SL1L160->SetBinContent(55,1612.245); h_SL1L160->SetBinContent(56,1510.204); h_SL1L160->SetBinContent(57,1352.041); h_SL1L160->SetBinContent(58,1561.224); h_SL1L160->SetBinContent(59,1428.571); h_SL1L160->SetMaximum(236220.3); 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,535.7143); h_SL1L261->SetBinContent(2,382.653); h_SL1L261->SetBinContent(3,602.0408); h_SL1L261->SetBinContent(4,1056.122); h_SL1L261->SetBinContent(5,367.3469); h_SL1L261->SetBinContent(6,326.5306); h_SL1L261->SetBinContent(7,500); h_SL1L261->SetBinContent(8,484.6939); h_SL1L261->SetBinContent(9,1801.02); h_SL1L261->SetBinContent(10,530.6122); h_SL1L261->SetBinContent(11,505.1021); h_SL1L261->SetBinContent(12,653.0612); h_SL1L261->SetBinContent(13,704.0816); h_SL1L261->SetBinContent(14,826.5306); h_SL1L261->SetBinContent(15,852.0408); h_SL1L261->SetBinContent(16,704.0816); h_SL1L261->SetBinContent(17,877.551); h_SL1L261->SetBinContent(18,1015.306); h_SL1L261->SetBinContent(19,1112.245); h_SL1L261->SetBinContent(20,1260.204); h_SL1L261->SetBinContent(21,1479.592); h_SL1L261->SetBinContent(22,1566.327); h_SL1L261->SetBinContent(23,1744.898); h_SL1L261->SetBinContent(24,1790.816); h_SL1L261->SetBinContent(25,2035.714); h_SL1L261->SetBinContent(26,1780.612); h_SL1L261->SetBinContent(27,2056.122); h_SL1L261->SetBinContent(28,2877.551); h_SL1L261->SetBinContent(29,3035.714); h_SL1L261->SetBinContent(30,3229.592); h_SL1L261->SetBinContent(31,4479.592); h_SL1L261->SetBinContent(32,7255.102); h_SL1L261->SetBinContent(33,19408.16); h_SL1L261->SetBinContent(34,52403.06); h_SL1L261->SetBinContent(35,60938.77); h_SL1L261->SetBinContent(36,65923.47); h_SL1L261->SetBinContent(37,68790.81); h_SL1L261->SetBinContent(38,67260.2); h_SL1L261->SetBinContent(39,56204.08); h_SL1L261->SetBinContent(40,19775.51); h_SL1L261->SetBinContent(41,8540.816); h_SL1L261->SetBinContent(42,4693.877); h_SL1L261->SetBinContent(43,4096.939); h_SL1L261->SetBinContent(44,3663.265); h_SL1L261->SetBinContent(45,3397.959); h_SL1L261->SetBinContent(46,3117.347); h_SL1L261->SetBinContent(47,2897.959); h_SL1L261->SetBinContent(48,2576.531); h_SL1L261->SetBinContent(49,178617.3); h_SL1L261->SetBinContent(50,2158.163); h_SL1L261->SetBinContent(51,2020.408); h_SL1L261->SetBinContent(52,23316.33); h_SL1L261->SetBinContent(53,32193.88); h_SL1L261->SetBinContent(54,1928.571); h_SL1L261->SetBinContent(55,1576.531); h_SL1L261->SetBinContent(56,140581.6); h_SL1L261->SetBinContent(57,10923.47); h_SL1L261->SetBinContent(58,1418.367); h_SL1L261->SetBinContent(59,1362.245); h_SL1L261->SetMaximum(205409.9); 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,311.2245); h_SL1L362->SetBinContent(2,285.7143); h_SL1L362->SetBinContent(3,362.2449); h_SL1L362->SetBinContent(4,321.4286); h_SL1L362->SetBinContent(5,321.4286); h_SL1L362->SetBinContent(6,392.8571); h_SL1L362->SetBinContent(7,540.8163); h_SL1L362->SetBinContent(8,443.8775); h_SL1L362->SetBinContent(9,520.4081); h_SL1L362->SetBinContent(10,469.3878); h_SL1L362->SetBinContent(11,520.4081); h_SL1L362->SetBinContent(12,627.551); h_SL1L362->SetBinContent(13,739.7959); h_SL1L362->SetBinContent(14,816.3265); h_SL1L362->SetBinContent(15,709.1837); h_SL1L362->SetBinContent(16,627.551); h_SL1L362->SetBinContent(17,846.9388); h_SL1L362->SetBinContent(18,1056.122); h_SL1L362->SetBinContent(19,1056.122); h_SL1L362->SetBinContent(20,1295.918); h_SL1L362->SetBinContent(21,1459.184); h_SL1L362->SetBinContent(22,1469.388); h_SL1L362->SetBinContent(23,1586.735); h_SL1L362->SetBinContent(24,1663.265); h_SL1L362->SetBinContent(25,1923.469); h_SL1L362->SetBinContent(26,1913.265); h_SL1L362->SetBinContent(27,2178.571); h_SL1L362->SetBinContent(28,2969.388); h_SL1L362->SetBinContent(29,2979.592); h_SL1L362->SetBinContent(30,3739.796); h_SL1L362->SetBinContent(31,5163.265); h_SL1L362->SetBinContent(32,8989.796); h_SL1L362->SetBinContent(33,38602.04); h_SL1L362->SetBinContent(34,58066.32); h_SL1L362->SetBinContent(35,63729.59); h_SL1L362->SetBinContent(36,68127.55); h_SL1L362->SetBinContent(37,69474.49); h_SL1L362->SetBinContent(38,63122.45); h_SL1L362->SetBinContent(39,40586.73); h_SL1L362->SetBinContent(40,9382.653); h_SL1L362->SetBinContent(41,5494.898); h_SL1L362->SetBinContent(42,4066.326); h_SL1L362->SetBinContent(43,3709.184); h_SL1L362->SetBinContent(44,3545.918); h_SL1L362->SetBinContent(45,3173.469); h_SL1L362->SetBinContent(46,2775.51); h_SL1L362->SetBinContent(47,2647.959); h_SL1L362->SetBinContent(48,2576.531); h_SL1L362->SetBinContent(49,7107.143); h_SL1L362->SetBinContent(50,1913.265); h_SL1L362->SetBinContent(51,1836.735); h_SL1L362->SetBinContent(52,1836.735); h_SL1L362->SetBinContent(53,92693.88); h_SL1L362->SetBinContent(54,1596.939); h_SL1L362->SetBinContent(55,1576.531); h_SL1L362->SetBinContent(56,128801); h_SL1L362->SetBinContent(57,38750); h_SL1L362->SetBinContent(58,1443.878); h_SL1L362->SetBinContent(59,1275.51); h_SL1L362->SetMaximum(205409.9); 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,301.0204); h_SL1L463->SetBinContent(3,306.1224); h_SL1L463->SetBinContent(4,306.1224); h_SL1L463->SetBinContent(5,336.7347); h_SL1L463->SetBinContent(6,244.8979); h_SL1L463->SetBinContent(7,392.8571); h_SL1L463->SetBinContent(8,484.6939); h_SL1L463->SetBinContent(9,454.0816); h_SL1L463->SetBinContent(10,428.5714); h_SL1L463->SetBinContent(11,428.5714); h_SL1L463->SetBinContent(12,469.3878); h_SL1L463->SetBinContent(13,607.1428); h_SL1L463->SetBinContent(14,775.5102); h_SL1L463->SetBinContent(15,642.8571); h_SL1L463->SetBinContent(16,591.8367); h_SL1L463->SetBinContent(17,770.4081); h_SL1L463->SetBinContent(18,903.0612); h_SL1L463->SetBinContent(19,908.1633); h_SL1L463->SetBinContent(20,1025.51); h_SL1L463->SetBinContent(21,1250); h_SL1L463->SetBinContent(22,1331.633); h_SL1L463->SetBinContent(23,1520.408); h_SL1L463->SetBinContent(24,1525.51); h_SL1L463->SetBinContent(25,1755.102); h_SL1L463->SetBinContent(26,1571.429); h_SL1L463->SetBinContent(27,1984.694); h_SL1L463->SetBinContent(28,2520.408); h_SL1L463->SetBinContent(29,2724.49); h_SL1L463->SetBinContent(30,3132.653); h_SL1L463->SetBinContent(31,5188.775); h_SL1L463->SetBinContent(32,6709.184); h_SL1L463->SetBinContent(33,18418.37); h_SL1L463->SetBinContent(34,51413.27); h_SL1L463->SetBinContent(35,75071.43); h_SL1L463->SetBinContent(36,63918.37); h_SL1L463->SetBinContent(37,67316.33); h_SL1L463->SetBinContent(38,64693.88); h_SL1L463->SetBinContent(39,57785.71); h_SL1L463->SetBinContent(40,19413.27); h_SL1L463->SetBinContent(41,7198.979); h_SL1L463->SetBinContent(42,4387.755); h_SL1L463->SetBinContent(43,3882.653); h_SL1L463->SetBinContent(44,3362.245); h_SL1L463->SetBinContent(45,3107.143); h_SL1L463->SetBinContent(46,2591.837); h_SL1L463->SetBinContent(47,2698.979); h_SL1L463->SetBinContent(48,2183.673); h_SL1L463->SetBinContent(49,2071.428); h_SL1L463->SetBinContent(50,1841.837); h_SL1L463->SetBinContent(51,1826.531); h_SL1L463->SetBinContent(52,1586.735); h_SL1L463->SetBinContent(53,1418.367); h_SL1L463->SetBinContent(54,1673.469); h_SL1L463->SetBinContent(56,1469.388); h_SL1L463->SetBinContent(57,1153.061); h_SL1L463->SetBinContent(58,1362.245); h_SL1L463->SetBinContent(59,1331.633); h_SL1L463->SetMaximum(205409.9); 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 6846"); pt->Draw(); c->Modified(); c->cd(); c->SetSelected(c); }