void RatesPerCell_Removing_noisy_cells_run_5670_SL1() { //=========Macro generated from canvas: c/c //========= (Sun Jan 13 15:26:57 2019) by ROOT version6.02/13 TCanvas *c = new TCanvas("c", "c",0,0,800,600); gStyle->SetOptStat(0); c->Range(-7.500001,-11786.06,67.5,106074.6); c->SetFillColor(0); c->SetBorderMode(0); c->SetBorderSize(2); c->SetFrameBorderMode(0); c->SetFrameBorderMode(0); TH1D *h_SL1L160 = new TH1D("h_SL1L160","SL1, run 5670",60,0,60); h_SL1L160->SetBinContent(1,15.71429); h_SL1L160->SetBinContent(2,15.71429); h_SL1L160->SetBinContent(3,8.571428); h_SL1L160->SetBinContent(4,4.285714); h_SL1L160->SetBinContent(5,7.142858); h_SL1L160->SetBinContent(6,2.857143); h_SL1L160->SetBinContent(7,8.571428); h_SL1L160->SetBinContent(8,12.85714); h_SL1L160->SetBinContent(9,12.85714); h_SL1L160->SetBinContent(10,11.42857); h_SL1L160->SetBinContent(11,15.71429); h_SL1L160->SetBinContent(12,11.42857); h_SL1L160->SetBinContent(13,17.14286); h_SL1L160->SetBinContent(14,21.42857); h_SL1L160->SetBinContent(15,14.28572); h_SL1L160->SetBinContent(16,18.57143); h_SL1L160->SetBinContent(17,20); h_SL1L160->SetBinContent(18,17.14286); h_SL1L160->SetBinContent(19,27.14286); h_SL1L160->SetBinContent(20,11.42857); h_SL1L160->SetBinContent(21,37.14286); h_SL1L160->SetBinContent(22,31.42857); h_SL1L160->SetBinContent(23,30); h_SL1L160->SetBinContent(24,24.28572); h_SL1L160->SetBinContent(25,31.42857); h_SL1L160->SetBinContent(26,38.57143); h_SL1L160->SetBinContent(27,52.85714); h_SL1L160->SetBinContent(28,38.57143); h_SL1L160->SetBinContent(29,58.57143); h_SL1L160->SetBinContent(30,91.42857); h_SL1L160->SetBinContent(31,94.28571); h_SL1L160->SetBinContent(32,114.2857); h_SL1L160->SetBinContent(33,571.4286); h_SL1L160->SetBinContent(34,847.1429); h_SL1L160->SetBinContent(35,947.1429); h_SL1L160->SetBinContent(36,1030); h_SL1L160->SetBinContent(37,1414.286); h_SL1L160->SetBinContent(38,1274.286); h_SL1L160->SetBinContent(39,777.1429); h_SL1L160->SetBinContent(40,172.8571); h_SL1L160->SetBinContent(41,92.85715); h_SL1L160->SetBinContent(42,102.8571); h_SL1L160->SetBinContent(43,88.57143); h_SL1L160->SetBinContent(44,68.57143); h_SL1L160->SetBinContent(45,52.85714); h_SL1L160->SetBinContent(46,65.71429); h_SL1L160->SetBinContent(47,55.71429); h_SL1L160->SetBinContent(48,48.57143); h_SL1L160->SetBinContent(49,60); h_SL1L160->SetBinContent(50,41.42857); h_SL1L160->SetBinContent(51,41.42857); h_SL1L160->SetBinContent(52,32.85714); h_SL1L160->SetBinContent(53,37.14286); h_SL1L160->SetBinContent(54,34.28571); h_SL1L160->SetBinContent(55,30); h_SL1L160->SetBinContent(56,38.57143); h_SL1L160->SetBinContent(57,25.71429); h_SL1L160->SetBinContent(58,34.28571); h_SL1L160->SetBinContent(59,30); h_SL1L160->SetMaximum(94288.5); 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,337.1429); h_SL1L261->SetBinContent(2,330); h_SL1L261->SetBinContent(3,340); h_SL1L261->SetBinContent(4,408.5714); h_SL1L261->SetBinContent(5,360); h_SL1L261->SetBinContent(6,420); h_SL1L261->SetBinContent(7,398.5714); h_SL1L261->SetBinContent(8,442.8571); h_SL1L261->SetBinContent(9,434.2857); h_SL1L261->SetBinContent(10,472.8571); h_SL1L261->SetBinContent(11,581.4286); h_SL1L261->SetBinContent(12,592.8572); h_SL1L261->SetBinContent(13,648.5715); h_SL1L261->SetBinContent(14,680); h_SL1L261->SetBinContent(15,655.7143); h_SL1L261->SetBinContent(16,620); h_SL1L261->SetBinContent(17,700); h_SL1L261->SetBinContent(18,905.7143); h_SL1L261->SetBinContent(19,1001.429); h_SL1L261->SetBinContent(20,1080); h_SL1L261->SetBinContent(21,1264.286); h_SL1L261->SetBinContent(22,1387.143); h_SL1L261->SetBinContent(23,1588.571); h_SL1L261->SetBinContent(24,1675.714); h_SL1L261->SetBinContent(25,1875.714); h_SL1L261->SetBinContent(26,1971.429); h_SL1L261->SetBinContent(27,2162.857); h_SL1L261->SetBinContent(28,2585.714); h_SL1L261->SetBinContent(29,3018.572); h_SL1L261->SetBinContent(30,3484.286); h_SL1L261->SetBinContent(31,4071.429); h_SL1L261->SetBinContent(32,6695.714); h_SL1L261->SetBinContent(33,19767.14); h_SL1L261->SetBinContent(34,45752.86); h_SL1L261->SetBinContent(35,53792.86); h_SL1L261->SetBinContent(36,61538.57); h_SL1L261->SetBinContent(37,69187.14); h_SL1L261->SetBinContent(38,70405.72); h_SL1L261->SetBinContent(39,58534.29); h_SL1L261->SetBinContent(40,19798.57); h_SL1L261->SetBinContent(41,7664.286); h_SL1L261->SetBinContent(42,4680); h_SL1L261->SetBinContent(43,4088.572); h_SL1L261->SetBinContent(44,3741.429); h_SL1L261->SetBinContent(45,3340); h_SL1L261->SetBinContent(46,3075.714); h_SL1L261->SetBinContent(47,2900); h_SL1L261->SetBinContent(48,2651.429); h_SL1L261->SetBinContent(49,2515.714); h_SL1L261->SetBinContent(50,2230); h_SL1L261->SetBinContent(51,2065.714); h_SL1L261->SetBinContent(52,1832.857); h_SL1L261->SetBinContent(53,1900); h_SL1L261->SetBinContent(54,1678.571); h_SL1L261->SetBinContent(55,1572.857); h_SL1L261->SetBinContent(56,1461.429); h_SL1L261->SetBinContent(57,1454.286); h_SL1L261->SetBinContent(58,1341.429); h_SL1L261->SetBinContent(59,1337.143); h_SL1L261->SetMaximum(81990.08); 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,320); h_SL1L362->SetBinContent(2,272.8571); h_SL1L362->SetBinContent(3,318.5714); h_SL1L362->SetBinContent(4,350); h_SL1L362->SetBinContent(5,345.7143); h_SL1L362->SetBinContent(6,357.1429); h_SL1L362->SetBinContent(7,340); h_SL1L362->SetBinContent(8,381.4286); h_SL1L362->SetBinContent(9,411.4286); h_SL1L362->SetBinContent(10,518.5714); h_SL1L362->SetBinContent(11,484.2857); h_SL1L362->SetBinContent(12,552.8572); h_SL1L362->SetBinContent(13,624.2857); h_SL1L362->SetBinContent(14,644.2857); h_SL1L362->SetBinContent(15,564.2857); h_SL1L362->SetBinContent(16,577.1429); h_SL1L362->SetBinContent(17,774.2857); h_SL1L362->SetBinContent(18,865.7143); h_SL1L362->SetBinContent(19,955.7143); h_SL1L362->SetBinContent(20,1058.571); h_SL1L362->SetBinContent(21,1261.429); h_SL1L362->SetBinContent(22,1371.429); h_SL1L362->SetBinContent(23,1545.714); h_SL1L362->SetBinContent(24,1690); h_SL1L362->SetBinContent(25,1827.143); h_SL1L362->SetBinContent(26,1967.143); h_SL1L362->SetBinContent(27,2268.572); h_SL1L362->SetBinContent(28,2785.714); h_SL1L362->SetBinContent(29,3187.143); h_SL1L362->SetBinContent(30,3611.429); h_SL1L362->SetBinContent(31,5070); h_SL1L362->SetBinContent(32,8471.429); h_SL1L362->SetBinContent(33,36950); h_SL1L362->SetBinContent(34,50312.86); h_SL1L362->SetBinContent(35,57641.43); h_SL1L362->SetBinContent(36,66144.29); h_SL1L362->SetBinContent(37,71295.72); h_SL1L362->SetBinContent(38,65692.86); h_SL1L362->SetBinContent(39,43088.57); h_SL1L362->SetBinContent(40,9338.571); h_SL1L362->SetBinContent(41,5312.857); h_SL1L362->SetBinContent(42,4365.714); h_SL1L362->SetBinContent(43,3840); h_SL1L362->SetBinContent(44,3444.286); h_SL1L362->SetBinContent(45,3157.143); h_SL1L362->SetBinContent(46,2918.572); h_SL1L362->SetBinContent(47,2691.429); h_SL1L362->SetBinContent(48,2422.857); h_SL1L362->SetBinContent(49,2265.714); h_SL1L362->SetBinContent(50,2032.857); h_SL1L362->SetBinContent(51,1852.857); h_SL1L362->SetBinContent(52,1841.429); h_SL1L362->SetBinContent(53,1755.714); h_SL1L362->SetBinContent(54,1572.857); h_SL1L362->SetBinContent(55,1487.143); h_SL1L362->SetBinContent(56,1392.857); h_SL1L362->SetBinContent(57,1380); h_SL1L362->SetBinContent(58,1224.286); h_SL1L362->SetBinContent(59,1221.429); h_SL1L362->SetMaximum(81990.08); 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,295.7143); h_SL1L463->SetBinContent(3,265.7143); h_SL1L463->SetBinContent(4,317.1429); h_SL1L463->SetBinContent(5,292.8571); h_SL1L463->SetBinContent(6,334.2857); h_SL1L463->SetBinContent(7,317.1429); h_SL1L463->SetBinContent(8,357.1429); h_SL1L463->SetBinContent(9,354.2857); h_SL1L463->SetBinContent(10,420); h_SL1L463->SetBinContent(11,430); h_SL1L463->SetBinContent(12,502.8571); h_SL1L463->SetBinContent(13,535.7143); h_SL1L463->SetBinContent(14,584.2857); h_SL1L463->SetBinContent(15,561.4286); h_SL1L463->SetBinContent(16,550); h_SL1L463->SetBinContent(17,592.8572); h_SL1L463->SetBinContent(18,790); h_SL1L463->SetBinContent(19,854.2857); h_SL1L463->SetBinContent(20,942.8572); h_SL1L463->SetBinContent(21,1084.286); h_SL1L463->SetBinContent(22,1251.429); h_SL1L463->SetBinContent(23,1388.571); h_SL1L463->SetBinContent(24,1551.429); h_SL1L463->SetBinContent(25,1585.714); h_SL1L463->SetBinContent(26,1834.286); h_SL1L463->SetBinContent(27,2021.429); h_SL1L463->SetBinContent(28,2408.572); h_SL1L463->SetBinContent(29,2931.429); h_SL1L463->SetBinContent(30,3310); h_SL1L463->SetBinContent(31,3915.714); h_SL1L463->SetBinContent(32,6728.572); h_SL1L463->SetBinContent(33,19602.86); h_SL1L463->SetBinContent(34,46258.57); h_SL1L463->SetBinContent(35,54104.29); h_SL1L463->SetBinContent(36,61954.29); h_SL1L463->SetBinContent(37,69550); h_SL1L463->SetBinContent(38,70291.43); h_SL1L463->SetBinContent(39,59030); h_SL1L463->SetBinContent(40,20171.43); h_SL1L463->SetBinContent(41,7567.143); h_SL1L463->SetBinContent(42,4728.572); h_SL1L463->SetBinContent(43,4011.429); h_SL1L463->SetBinContent(44,3634.286); h_SL1L463->SetBinContent(45,3167.143); h_SL1L463->SetBinContent(46,2950); h_SL1L463->SetBinContent(47,2738.572); h_SL1L463->SetBinContent(48,2500); h_SL1L463->SetBinContent(49,2270); h_SL1L463->SetBinContent(50,2025.714); h_SL1L463->SetBinContent(51,1867.143); h_SL1L463->SetBinContent(52,1721.429); h_SL1L463->SetBinContent(53,1770); h_SL1L463->SetBinContent(54,1555.714); h_SL1L463->SetBinContent(56,1355.714); h_SL1L463->SetBinContent(57,1334.286); h_SL1L463->SetBinContent(58,1264.286); h_SL1L463->SetBinContent(59,1162.857); h_SL1L463->SetMaximum(81990.08); 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 5670"); pt->Draw(); c->Modified(); c->cd(); c->SetSelected(c); }