void RatesPerCell_Removing_noisy_cells_run_6507_SL1() { //=========Macro generated from canvas: c/c //========= (Mon Jan 14 19:20:25 2019) by ROOT version6.02/13 TCanvas *c = new TCanvas("c", "c",0,0,800,600); gStyle->SetOptStat(0); c->Range(-7.500001,-12719.58,67.5,114476.2); c->SetFillColor(0); c->SetBorderMode(0); c->SetBorderSize(2); c->SetFrameBorderMode(0); c->SetFrameBorderMode(0); TH1D *h_SL1L160 = new TH1D("h_SL1L160","SL1, run 6507",60,0,60); h_SL1L160->SetBinContent(1,4.285714); h_SL1L160->SetBinContent(2,8.571428); h_SL1L160->SetBinContent(3,5.714286); h_SL1L160->SetBinContent(4,5.714286); h_SL1L160->SetBinContent(5,2.857143); h_SL1L160->SetBinContent(6,4.285714); h_SL1L160->SetBinContent(7,2.857143); h_SL1L160->SetBinContent(8,8.571428); h_SL1L160->SetBinContent(9,1.428571); h_SL1L160->SetBinContent(10,4.285714); h_SL1L160->SetBinContent(11,14.28572); h_SL1L160->SetBinContent(12,5.714286); h_SL1L160->SetBinContent(13,10); h_SL1L160->SetBinContent(14,7.142858); h_SL1L160->SetBinContent(15,4.285714); h_SL1L160->SetBinContent(16,4.285714); h_SL1L160->SetBinContent(17,7.142858); h_SL1L160->SetBinContent(18,15.71429); h_SL1L160->SetBinContent(19,20); h_SL1L160->SetBinContent(20,5.714286); h_SL1L160->SetBinContent(21,10); h_SL1L160->SetBinContent(22,12.85714); h_SL1L160->SetBinContent(23,18.57143); h_SL1L160->SetBinContent(24,12.85714); h_SL1L160->SetBinContent(25,20); h_SL1L160->SetBinContent(26,22.85714); h_SL1L160->SetBinContent(27,25.71429); h_SL1L160->SetBinContent(28,32.85714); h_SL1L160->SetBinContent(29,42.85714); h_SL1L160->SetBinContent(30,42.85714); h_SL1L160->SetBinContent(31,42.85714); h_SL1L160->SetBinContent(32,45.71429); h_SL1L160->SetBinContent(33,201.4286); h_SL1L160->SetBinContent(34,390); h_SL1L160->SetBinContent(35,418.5714); h_SL1L160->SetBinContent(36,444.2857); h_SL1L160->SetBinContent(37,580); h_SL1L160->SetBinContent(38,494.2857); h_SL1L160->SetBinContent(39,248.5714); h_SL1L160->SetBinContent(40,41.42857); h_SL1L160->SetBinContent(41,44.28572); h_SL1L160->SetBinContent(42,31.42857); h_SL1L160->SetBinContent(43,34.28571); h_SL1L160->SetBinContent(44,25.71429); h_SL1L160->SetBinContent(45,22.85714); h_SL1L160->SetBinContent(46,24.28572); h_SL1L160->SetBinContent(47,25.71429); h_SL1L160->SetBinContent(48,15.71429); h_SL1L160->SetBinContent(49,24.28572); h_SL1L160->SetBinContent(50,17.14286); h_SL1L160->SetBinContent(51,15.71429); h_SL1L160->SetBinContent(52,17.14286); h_SL1L160->SetBinContent(53,14.28572); h_SL1L160->SetBinContent(54,11.42857); h_SL1L160->SetBinContent(55,14.28572); h_SL1L160->SetBinContent(56,8.571428); h_SL1L160->SetBinContent(57,10); h_SL1L160->SetBinContent(58,10); h_SL1L160->SetBinContent(59,10); h_SL1L160->SetMaximum(101756.6); 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,365.7143); h_SL1L261->SetBinContent(2,304.2857); h_SL1L261->SetBinContent(3,354.2857); h_SL1L261->SetBinContent(4,345.7143); h_SL1L261->SetBinContent(5,378.5714); h_SL1L261->SetBinContent(6,424.2857); h_SL1L261->SetBinContent(7,400); h_SL1L261->SetBinContent(8,415.7143); h_SL1L261->SetBinContent(9,475.7143); h_SL1L261->SetBinContent(10,458.5714); h_SL1L261->SetBinContent(11,587.1429); h_SL1L261->SetBinContent(12,604.2857); h_SL1L261->SetBinContent(13,764.2857); h_SL1L261->SetBinContent(14,798.5715); h_SL1L261->SetBinContent(15,801.4286); h_SL1L261->SetBinContent(16,684.2857); h_SL1L261->SetBinContent(17,781.4286); h_SL1L261->SetBinContent(18,1017.143); h_SL1L261->SetBinContent(19,1165.714); h_SL1L261->SetBinContent(20,1228.571); h_SL1L261->SetBinContent(21,1467.143); h_SL1L261->SetBinContent(22,1458.571); h_SL1L261->SetBinContent(23,1775.714); h_SL1L261->SetBinContent(24,1811.429); h_SL1L261->SetBinContent(25,2028.572); h_SL1L261->SetBinContent(26,1881.429); h_SL1L261->SetBinContent(27,2152.857); h_SL1L261->SetBinContent(28,2650); h_SL1L261->SetBinContent(29,3078.572); h_SL1L261->SetBinContent(30,3418.572); h_SL1L261->SetBinContent(31,4155.714); h_SL1L261->SetBinContent(32,6382.857); h_SL1L261->SetBinContent(33,15777.14); h_SL1L261->SetBinContent(34,43570); h_SL1L261->SetBinContent(35,57368.57); h_SL1L261->SetBinContent(36,69528.57); h_SL1L261->SetBinContent(37,76942.86); h_SL1L261->SetBinContent(38,70172.86); h_SL1L261->SetBinContent(39,49491.43); h_SL1L261->SetBinContent(40,15745.71); h_SL1L261->SetBinContent(41,6748.572); h_SL1L261->SetBinContent(42,4314.286); h_SL1L261->SetBinContent(43,3857.143); h_SL1L261->SetBinContent(44,3450); h_SL1L261->SetBinContent(45,3137.143); h_SL1L261->SetBinContent(46,3018.572); h_SL1L261->SetBinContent(47,2841.429); h_SL1L261->SetBinContent(48,2522.857); h_SL1L261->SetBinContent(49,2468.572); h_SL1L261->SetBinContent(50,2188.572); h_SL1L261->SetBinContent(51,2031.429); h_SL1L261->SetBinContent(52,1912.857); h_SL1L261->SetBinContent(53,1911.429); h_SL1L261->SetBinContent(54,1690); h_SL1L261->SetBinContent(55,1551.429); h_SL1L261->SetBinContent(56,1525.714); h_SL1L261->SetBinContent(57,1458.571); h_SL1L261->SetBinContent(58,1410); h_SL1L261->SetBinContent(59,1362.857); h_SL1L261->SetMaximum(88484.29); 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,281.4286); h_SL1L362->SetBinContent(2,285.7143); h_SL1L362->SetBinContent(3,298.5714); h_SL1L362->SetBinContent(4,340); h_SL1L362->SetBinContent(5,364.2857); h_SL1L362->SetBinContent(6,362.8571); h_SL1L362->SetBinContent(7,387.1429); h_SL1L362->SetBinContent(8,411.4286); h_SL1L362->SetBinContent(9,400); h_SL1L362->SetBinContent(10,475.7143); h_SL1L362->SetBinContent(11,534.2857); h_SL1L362->SetBinContent(12,620); h_SL1L362->SetBinContent(13,685.7143); h_SL1L362->SetBinContent(14,782.8572); h_SL1L362->SetBinContent(15,627.1429); h_SL1L362->SetBinContent(16,682.8572); h_SL1L362->SetBinContent(17,855.7143); h_SL1L362->SetBinContent(18,975.7143); h_SL1L362->SetBinContent(19,1145.714); h_SL1L362->SetBinContent(20,1205.714); h_SL1L362->SetBinContent(21,1388.571); h_SL1L362->SetBinContent(22,1628.571); h_SL1L362->SetBinContent(23,1565.714); h_SL1L362->SetBinContent(24,1772.857); h_SL1L362->SetBinContent(25,1872.857); h_SL1L362->SetBinContent(26,1951.429); h_SL1L362->SetBinContent(27,2318.572); h_SL1L362->SetBinContent(28,2810); h_SL1L362->SetBinContent(29,3107.143); h_SL1L362->SetBinContent(30,3687.143); h_SL1L362->SetBinContent(31,4757.143); h_SL1L362->SetBinContent(32,7838.572); h_SL1L362->SetBinContent(33,31334.29); h_SL1L362->SetBinContent(34,51161.43); h_SL1L362->SetBinContent(35,63707.14); h_SL1L362->SetBinContent(36,74962.86); h_SL1L362->SetBinContent(37,76094.29); h_SL1L362->SetBinContent(38,60810); h_SL1L362->SetBinContent(39,33105.71); h_SL1L362->SetBinContent(40,8174.286); h_SL1L362->SetBinContent(41,4854.286); h_SL1L362->SetBinContent(42,3994.286); h_SL1L362->SetBinContent(43,3548.572); h_SL1L362->SetBinContent(44,3148.572); h_SL1L362->SetBinContent(45,2984.286); h_SL1L362->SetBinContent(46,2828.572); h_SL1L362->SetBinContent(47,2584.286); h_SL1L362->SetBinContent(48,2368.572); h_SL1L362->SetBinContent(49,2262.857); h_SL1L362->SetBinContent(50,1987.143); h_SL1L362->SetBinContent(51,1912.857); h_SL1L362->SetBinContent(52,1835.714); h_SL1L362->SetBinContent(53,1728.571); h_SL1L362->SetBinContent(54,1530); h_SL1L362->SetBinContent(55,1485.714); h_SL1L362->SetBinContent(56,1422.857); h_SL1L362->SetBinContent(57,1358.571); h_SL1L362->SetBinContent(58,1338.571); h_SL1L362->SetBinContent(59,1325.714); h_SL1L362->SetMaximum(88484.29); 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,271.4286); h_SL1L463->SetBinContent(3,267.1429); h_SL1L463->SetBinContent(4,297.1429); h_SL1L463->SetBinContent(5,322.8571); h_SL1L463->SetBinContent(6,334.2857); h_SL1L463->SetBinContent(7,367.1429); h_SL1L463->SetBinContent(8,351.4286); h_SL1L463->SetBinContent(9,370); h_SL1L463->SetBinContent(10,394.2857); h_SL1L463->SetBinContent(11,495.7143); h_SL1L463->SetBinContent(12,460); h_SL1L463->SetBinContent(13,624.2857); h_SL1L463->SetBinContent(14,672.8572); h_SL1L463->SetBinContent(15,660); h_SL1L463->SetBinContent(16,587.1429); h_SL1L463->SetBinContent(17,694.2857); h_SL1L463->SetBinContent(18,864.2857); h_SL1L463->SetBinContent(19,1018.571); h_SL1L463->SetBinContent(20,1045.714); h_SL1L463->SetBinContent(21,1242.857); h_SL1L463->SetBinContent(22,1292.857); h_SL1L463->SetBinContent(23,1452.857); h_SL1L463->SetBinContent(24,1511.429); h_SL1L463->SetBinContent(25,1635.714); h_SL1L463->SetBinContent(26,1712.857); h_SL1L463->SetBinContent(27,1895.714); h_SL1L463->SetBinContent(28,2347.143); h_SL1L463->SetBinContent(29,2622.857); h_SL1L463->SetBinContent(30,3087.143); h_SL1L463->SetBinContent(31,3812.857); h_SL1L463->SetBinContent(32,5768.572); h_SL1L463->SetBinContent(33,14625.71); h_SL1L463->SetBinContent(34,42910); h_SL1L463->SetBinContent(35,56745.71); h_SL1L463->SetBinContent(36,68721.43); h_SL1L463->SetBinContent(37,75702.86); h_SL1L463->SetBinContent(38,69227.14); h_SL1L463->SetBinContent(39,49150); h_SL1L463->SetBinContent(40,15387.14); h_SL1L463->SetBinContent(41,6408.572); h_SL1L463->SetBinContent(42,4090); h_SL1L463->SetBinContent(43,3597.143); h_SL1L463->SetBinContent(44,3248.572); h_SL1L463->SetBinContent(45,2868.572); h_SL1L463->SetBinContent(46,2778.572); h_SL1L463->SetBinContent(47,2514.286); h_SL1L463->SetBinContent(48,2322.857); h_SL1L463->SetBinContent(49,2187.143); h_SL1L463->SetBinContent(50,2017.143); h_SL1L463->SetBinContent(51,1820); h_SL1L463->SetBinContent(52,1738.571); h_SL1L463->SetBinContent(53,1650); h_SL1L463->SetBinContent(54,1551.429); h_SL1L463->SetBinContent(55,8.571428); h_SL1L463->SetBinContent(56,1344.286); h_SL1L463->SetBinContent(57,1280); h_SL1L463->SetBinContent(58,1247.143); h_SL1L463->SetBinContent(59,1258.571); h_SL1L463->SetMaximum(88484.29); 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 6507"); pt->Draw(); c->Modified(); c->cd(); c->SetSelected(c); }