void RatesPerCell_Removing_noisy_cells_run_6529_SL1() { //=========Macro generated from canvas: c/c //========= (Sun Jan 13 16:03:17 2019) by ROOT version6.02/13 TCanvas *c = new TCanvas("c", "c",0,0,800,600); gStyle->SetOptStat(0); c->Range(-7.500001,-11665.6,67.5,104990.4); c->SetFillColor(0); c->SetBorderMode(0); c->SetBorderSize(2); c->SetFrameBorderMode(0); c->SetFrameBorderMode(0); TH1D *h_SL1L160 = new TH1D("h_SL1L160","SL1, run 6529",60,0,60); h_SL1L160->SetBinContent(1,364.2857); h_SL1L160->SetBinContent(2,450); h_SL1L160->SetBinContent(3,437.1429); h_SL1L160->SetBinContent(4,418.5714); h_SL1L160->SetBinContent(5,462.8571); h_SL1L160->SetBinContent(6,471.4286); h_SL1L160->SetBinContent(7,531.4286); h_SL1L160->SetBinContent(8,568.5715); h_SL1L160->SetBinContent(9,564.2857); h_SL1L160->SetBinContent(10,668.5715); h_SL1L160->SetBinContent(11,694.2857); h_SL1L160->SetBinContent(12,811.4286); h_SL1L160->SetBinContent(13,874.2857); h_SL1L160->SetBinContent(14,864.2857); h_SL1L160->SetBinContent(15,828.5715); h_SL1L160->SetBinContent(16,925.7143); h_SL1L160->SetBinContent(17,1011.429); h_SL1L160->SetBinContent(18,1291.429); h_SL1L160->SetBinContent(19,1414.286); h_SL1L160->SetBinContent(20,1531.429); h_SL1L160->SetBinContent(21,1642.857); h_SL1L160->SetBinContent(22,1854.286); h_SL1L160->SetBinContent(23,1984.286); h_SL1L160->SetBinContent(24,2210); h_SL1L160->SetBinContent(25,2150); h_SL1L160->SetBinContent(26,2207.143); h_SL1L160->SetBinContent(27,2457.143); h_SL1L160->SetBinContent(28,3218.572); h_SL1L160->SetBinContent(29,3514.286); h_SL1L160->SetBinContent(30,3931.429); h_SL1L160->SetBinContent(31,5378.572); h_SL1L160->SetBinContent(32,9245.715); h_SL1L160->SetBinContent(33,36185.71); h_SL1L160->SetBinContent(34,54361.43); h_SL1L160->SetBinContent(35,59675.71); h_SL1L160->SetBinContent(36,64604.29); h_SL1L160->SetBinContent(37,68690); h_SL1L160->SetBinContent(38,62760); h_SL1L160->SetBinContent(39,38807.14); h_SL1L160->SetBinContent(40,9431.429); h_SL1L160->SetBinContent(41,5712.857); h_SL1L160->SetBinContent(42,4457.143); h_SL1L160->SetBinContent(43,4081.429); h_SL1L160->SetBinContent(44,3625.714); h_SL1L160->SetBinContent(45,3211.429); h_SL1L160->SetBinContent(46,3014.286); h_SL1L160->SetBinContent(47,2785.714); h_SL1L160->SetBinContent(48,2634.286); h_SL1L160->SetBinContent(49,2558.572); h_SL1L160->SetBinContent(50,2347.143); h_SL1L160->SetBinContent(51,2120); h_SL1L160->SetBinContent(52,2024.286); h_SL1L160->SetBinContent(53,1984.286); h_SL1L160->SetBinContent(54,1771.429); h_SL1L160->SetBinContent(55,1790); h_SL1L160->SetBinContent(56,1602.857); h_SL1L160->SetBinContent(57,1642.857); h_SL1L160->SetBinContent(58,1570); h_SL1L160->SetBinContent(59,814.2857); h_SL1L160->SetMaximum(93324.8); 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,328.5714); h_SL1L261->SetBinContent(2,377.1429); h_SL1L261->SetBinContent(3,421.4286); h_SL1L261->SetBinContent(4,372.8571); h_SL1L261->SetBinContent(5,410); h_SL1L261->SetBinContent(6,441.4286); h_SL1L261->SetBinContent(7,471.4286); h_SL1L261->SetBinContent(8,475.7143); h_SL1L261->SetBinContent(9,517.1429); h_SL1L261->SetBinContent(10,572.8572); h_SL1L261->SetBinContent(11,601.4286); h_SL1L261->SetBinContent(12,675.7143); h_SL1L261->SetBinContent(13,751.4286); h_SL1L261->SetBinContent(14,825.7143); h_SL1L261->SetBinContent(15,848.5715); h_SL1L261->SetBinContent(16,774.2857); h_SL1L261->SetBinContent(17,898.5715); h_SL1L261->SetBinContent(18,1091.429); h_SL1L261->SetBinContent(19,1201.429); h_SL1L261->SetBinContent(20,1348.571); h_SL1L261->SetBinContent(21,1471.429); h_SL1L261->SetBinContent(22,1632.857); h_SL1L261->SetBinContent(23,1804.286); h_SL1L261->SetBinContent(24,2011.429); h_SL1L261->SetBinContent(25,2062.857); h_SL1L261->SetBinContent(26,2070); h_SL1L261->SetBinContent(27,2300); h_SL1L261->SetBinContent(28,2934.286); h_SL1L261->SetBinContent(29,3200); h_SL1L261->SetBinContent(30,3527.143); h_SL1L261->SetBinContent(31,4377.143); h_SL1L261->SetBinContent(32,7364.286); h_SL1L261->SetBinContent(33,18998.57); h_SL1L261->SetBinContent(34,50085.71); h_SL1L261->SetBinContent(35,58674.29); h_SL1L261->SetBinContent(36,64207.14); h_SL1L261->SetBinContent(37,68545.72); h_SL1L261->SetBinContent(38,68565.72); h_SL1L261->SetBinContent(39,55740); h_SL1L261->SetBinContent(40,19165.71); h_SL1L261->SetBinContent(41,7818.572); h_SL1L261->SetBinContent(42,4680); h_SL1L261->SetBinContent(43,4122.857); h_SL1L261->SetBinContent(44,3701.429); h_SL1L261->SetBinContent(45,3411.429); h_SL1L261->SetBinContent(46,3017.143); h_SL1L261->SetBinContent(47,2827.143); h_SL1L261->SetBinContent(48,2638.572); h_SL1L261->SetBinContent(49,18018.57); h_SL1L261->SetBinContent(50,2330); h_SL1L261->SetBinContent(51,2185.714); h_SL1L261->SetBinContent(52,2140); h_SL1L261->SetBinContent(53,2162.857); h_SL1L261->SetBinContent(54,1830); h_SL1L261->SetBinContent(55,1718.571); h_SL1L261->SetBinContent(56,5942.857); h_SL1L261->SetBinContent(57,1822.857); h_SL1L261->SetBinContent(58,1600); h_SL1L261->SetBinContent(59,885.7143); h_SL1L261->SetMaximum(81152.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,310); h_SL1L362->SetBinContent(2,355.7143); h_SL1L362->SetBinContent(3,357.1429); h_SL1L362->SetBinContent(4,352.8571); h_SL1L362->SetBinContent(5,407.1429); h_SL1L362->SetBinContent(6,392.8571); h_SL1L362->SetBinContent(7,434.2857); h_SL1L362->SetBinContent(8,454.2857); h_SL1L362->SetBinContent(9,491.4286); h_SL1L362->SetBinContent(10,585.7143); h_SL1L362->SetBinContent(11,584.2857); h_SL1L362->SetBinContent(12,688.5715); h_SL1L362->SetBinContent(13,721.4286); h_SL1L362->SetBinContent(14,798.5715); h_SL1L362->SetBinContent(15,768.5715); h_SL1L362->SetBinContent(16,881.4286); h_SL1L362->SetBinContent(17,967.1429); h_SL1L362->SetBinContent(18,1082.857); h_SL1L362->SetBinContent(19,1171.429); h_SL1L362->SetBinContent(20,1362.857); h_SL1L362->SetBinContent(21,1367.143); h_SL1L362->SetBinContent(22,1617.143); h_SL1L362->SetBinContent(23,1805.714); h_SL1L362->SetBinContent(24,1890); h_SL1L362->SetBinContent(25,1940); h_SL1L362->SetBinContent(26,2025.714); h_SL1L362->SetBinContent(27,2392.857); h_SL1L362->SetBinContent(28,3042.857); h_SL1L362->SetBinContent(29,3180); h_SL1L362->SetBinContent(30,3880); h_SL1L362->SetBinContent(31,5317.143); h_SL1L362->SetBinContent(32,9305.715); h_SL1L362->SetBinContent(33,37048.57); h_SL1L362->SetBinContent(34,55977.14); h_SL1L362->SetBinContent(35,61174.29); h_SL1L362->SetBinContent(36,66228.57); h_SL1L362->SetBinContent(37,70567.15); h_SL1L362->SetBinContent(38,63848.57); h_SL1L362->SetBinContent(39,39517.14); h_SL1L362->SetBinContent(40,9441.429); h_SL1L362->SetBinContent(41,5580); h_SL1L362->SetBinContent(42,4354.286); h_SL1L362->SetBinContent(43,3867.143); h_SL1L362->SetBinContent(44,3397.143); h_SL1L362->SetBinContent(45,3002.857); h_SL1L362->SetBinContent(46,2851.429); h_SL1L362->SetBinContent(47,2548.572); h_SL1L362->SetBinContent(48,2412.857); h_SL1L362->SetBinContent(49,2355.714); h_SL1L362->SetBinContent(50,2197.143); h_SL1L362->SetBinContent(51,2028.572); h_SL1L362->SetBinContent(52,1867.143); h_SL1L362->SetBinContent(53,5012.857); h_SL1L362->SetBinContent(54,1711.429); h_SL1L362->SetBinContent(55,1647.143); h_SL1L362->SetBinContent(56,6507.143); h_SL1L362->SetBinContent(57,2077.143); h_SL1L362->SetBinContent(58,1492.857); h_SL1L362->SetBinContent(59,810); h_SL1L362->SetMaximum(81152.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,68.57143); h_SL1L463->SetBinContent(3,75.71429); h_SL1L463->SetBinContent(4,68.57143); h_SL1L463->SetBinContent(5,85.71429); h_SL1L463->SetBinContent(6,104.2857); h_SL1L463->SetBinContent(7,104.2857); h_SL1L463->SetBinContent(8,97.14286); h_SL1L463->SetBinContent(9,102.8571); h_SL1L463->SetBinContent(10,111.4286); h_SL1L463->SetBinContent(11,117.1429); h_SL1L463->SetBinContent(12,132.8571); h_SL1L463->SetBinContent(13,160); h_SL1L463->SetBinContent(14,204.2857); h_SL1L463->SetBinContent(15,185.7143); h_SL1L463->SetBinContent(16,198.5714); h_SL1L463->SetBinContent(17,180); h_SL1L463->SetBinContent(18,175.7143); h_SL1L463->SetBinContent(19,217.1429); h_SL1L463->SetBinContent(20,257.1429); h_SL1L463->SetBinContent(21,252.8571); h_SL1L463->SetBinContent(22,325.7143); h_SL1L463->SetBinContent(23,315.7143); h_SL1L463->SetBinContent(24,348.5714); h_SL1L463->SetBinContent(25,298.5714); h_SL1L463->SetBinContent(26,365.7143); h_SL1L463->SetBinContent(27,417.1429); h_SL1L463->SetBinContent(28,490); h_SL1L463->SetBinContent(29,514.2857); h_SL1L463->SetBinContent(30,637.1429); h_SL1L463->SetBinContent(31,1058.571); h_SL1L463->SetBinContent(32,1382.857); h_SL1L463->SetBinContent(33,3275.714); h_SL1L463->SetBinContent(34,13028.57); h_SL1L463->SetBinContent(35,21511.43); h_SL1L463->SetBinContent(36,16818.57); h_SL1L463->SetBinContent(37,13347.14); h_SL1L463->SetBinContent(38,16554.29); h_SL1L463->SetBinContent(39,18587.14); h_SL1L463->SetBinContent(40,4087.143); h_SL1L463->SetBinContent(41,1830); h_SL1L463->SetBinContent(42,1194.286); h_SL1L463->SetBinContent(43,1211.429); h_SL1L463->SetBinContent(44,1095.714); h_SL1L463->SetBinContent(45,772.8572); h_SL1L463->SetBinContent(46,774.2857); h_SL1L463->SetBinContent(47,602.8572); h_SL1L463->SetBinContent(48,600); h_SL1L463->SetBinContent(49,461.4286); h_SL1L463->SetBinContent(50,452.8571); h_SL1L463->SetBinContent(51,421.4286); h_SL1L463->SetBinContent(52,361.4286); h_SL1L463->SetBinContent(53,350); h_SL1L463->SetBinContent(54,345.7143); h_SL1L463->SetBinContent(56,305.7143); h_SL1L463->SetBinContent(57,177.1429); h_SL1L463->SetBinContent(58,238.5714); h_SL1L463->SetBinContent(59,158.5714); h_SL1L463->SetMaximum(81152.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 6529"); pt->Draw(); c->Modified(); c->cd(); c->SetSelected(c); }