void RatesPerCell_Removing_noisy_cells_run_6619_SL2() { //=========Macro generated from canvas: c/c //========= (Sun Jan 13 16:19:35 2019) by ROOT version6.02/13 TCanvas *c = new TCanvas("c", "c",0,0,800,600); gStyle->SetOptStat(0); c->Range(-7.500001,-9901.501,67.5,89113.5); c->SetFillColor(0); c->SetBorderMode(0); c->SetBorderSize(2); c->SetFrameBorderMode(0); c->SetFrameBorderMode(0); TH1D *h_SL2L164 = new TH1D("h_SL2L164","SL2, run 6619",60,0,60); h_SL2L164->SetBinContent(1,302.8571); h_SL2L164->SetBinContent(2,302.8571); h_SL2L164->SetBinContent(3,480); h_SL2L164->SetBinContent(4,495.7143); h_SL2L164->SetBinContent(5,537.1429); h_SL2L164->SetBinContent(6,542.8572); h_SL2L164->SetBinContent(7,590); h_SL2L164->SetBinContent(8,541.4286); h_SL2L164->SetBinContent(9,742.8572); h_SL2L164->SetBinContent(10,822.8572); h_SL2L164->SetBinContent(11,884.2857); h_SL2L164->SetBinContent(12,1031.429); h_SL2L164->SetBinContent(13,1075.714); h_SL2L164->SetBinContent(14,1111.429); h_SL2L164->SetBinContent(15,1241.429); h_SL2L164->SetBinContent(16,1252.857); h_SL2L164->SetBinContent(17,1485.714); h_SL2L164->SetBinContent(18,1588.571); h_SL2L164->SetBinContent(19,1864.286); h_SL2L164->SetBinContent(20,1901.429); h_SL2L164->SetBinContent(21,2007.143); h_SL2L164->SetBinContent(22,2247.143); h_SL2L164->SetBinContent(23,2560); h_SL2L164->SetBinContent(24,3120); h_SL2L164->SetBinContent(25,8467.143); h_SL2L164->SetBinContent(26,27945.71); h_SL2L164->SetBinContent(27,45670); h_SL2L164->SetBinContent(28,56665.71); h_SL2L164->SetBinContent(29,59895.71); h_SL2L164->SetBinContent(30,56161.43); h_SL2L164->SetBinContent(31,48265.71); h_SL2L164->SetBinContent(32,44340); h_SL2L164->SetBinContent(33,39118.57); h_SL2L164->SetBinContent(34,19271.43); h_SL2L164->SetBinContent(35,1.428571); h_SL2L164->SetBinContent(36,2827.143); h_SL2L164->SetBinContent(37,3695.714); h_SL2L164->SetBinContent(38,2784.286); h_SL2L164->SetBinContent(39,4710); h_SL2L164->SetBinContent(40,48741.43); h_SL2L164->SetBinContent(41,47294.29); h_SL2L164->SetBinContent(42,5712.857); h_SL2L164->SetBinContent(43,5738.572); h_SL2L164->SetBinContent(44,5832.857); h_SL2L164->SetBinContent(45,745.7143); h_SL2L164->SetBinContent(46,671.4286); h_SL2L164->SetBinContent(47,560); h_SL2L164->SetBinContent(48,538.5714); h_SL2L164->SetBinContent(49,475.7143); h_SL2L164->SetBinContent(50,460); h_SL2L164->SetBinContent(51,375.7143); h_SL2L164->SetBinContent(52,354.2857); h_SL2L164->SetBinContent(53,331.4286); h_SL2L164->SetBinContent(54,315.7143); h_SL2L164->SetBinContent(55,297.1429); h_SL2L164->SetBinContent(56,187.1429); h_SL2L164->SetBinContent(57,7035.714); h_SL2L164->SetMaximum(79212); h_SL2L164->SetEntries(60); h_SL2L164->SetDirectory(0); h_SL2L164->SetStats(0); h_SL2L164->SetLineWidth(2); h_SL2L164->GetXaxis()->SetTitle("Cell"); h_SL2L164->GetXaxis()->SetLabelFont(42); h_SL2L164->GetXaxis()->SetLabelSize(0.035); h_SL2L164->GetXaxis()->SetTitleSize(0.035); h_SL2L164->GetXaxis()->SetTitleFont(42); h_SL2L164->GetYaxis()->SetTitle("Hz"); h_SL2L164->GetYaxis()->SetLabelFont(42); h_SL2L164->GetYaxis()->SetLabelSize(0.035); h_SL2L164->GetYaxis()->SetTitleSize(0.035); h_SL2L164->GetYaxis()->SetTitleOffset(1.45); h_SL2L164->GetYaxis()->SetTitleFont(42); h_SL2L164->GetZaxis()->SetLabelFont(42); h_SL2L164->GetZaxis()->SetLabelSize(0.035); h_SL2L164->GetZaxis()->SetTitleSize(0.035); h_SL2L164->GetZaxis()->SetTitleFont(42); h_SL2L164->Draw(""); TH1D *h_SL2L265 = new TH1D("h_SL2L265","",60,0,60); h_SL2L265->SetBinContent(1,265.7143); h_SL2L265->SetBinContent(2,321.4286); h_SL2L265->SetBinContent(3,380); h_SL2L265->SetBinContent(4,480); h_SL2L265->SetBinContent(5,522.8572); h_SL2L265->SetBinContent(6,535.7143); h_SL2L265->SetBinContent(7,584.2857); h_SL2L265->SetBinContent(8,534.2857); h_SL2L265->SetBinContent(9,617.1429); h_SL2L265->SetBinContent(10,721.4286); h_SL2L265->SetBinContent(11,844.2857); h_SL2L265->SetBinContent(12,930); h_SL2L265->SetBinContent(13,1045.714); h_SL2L265->SetBinContent(14,1040); h_SL2L265->SetBinContent(15,1188.571); h_SL2L265->SetBinContent(16,1274.286); h_SL2L265->SetBinContent(17,1348.571); h_SL2L265->SetBinContent(18,1528.571); h_SL2L265->SetBinContent(19,1641.429); h_SL2L265->SetBinContent(20,1755.714); h_SL2L265->SetBinContent(21,1941.429); h_SL2L265->SetBinContent(22,1992.857); h_SL2L265->SetBinContent(23,2475.714); h_SL2L265->SetBinContent(24,2711.429); h_SL2L265->SetBinContent(25,3820); h_SL2L265->SetBinContent(26,17888.57); h_SL2L265->SetBinContent(27,37208.57); h_SL2L265->SetBinContent(28,52182.86); h_SL2L265->SetBinContent(29,59165.71); h_SL2L265->SetBinContent(30,58418.57); h_SL2L265->SetBinContent(31,51847.14); h_SL2L265->SetBinContent(32,45582.86); h_SL2L265->SetBinContent(33,42807.14); h_SL2L265->SetBinContent(34,31348.57); h_SL2L265->SetBinContent(35,9814.286); h_SL2L265->SetBinContent(36,3541.429); h_SL2L265->SetBinContent(37,2522.857); h_SL2L265->SetBinContent(38,1902.857); h_SL2L265->SetBinContent(39,2107.143); h_SL2L265->SetBinContent(40,6548.572); h_SL2L265->SetBinContent(41,3360); h_SL2L265->SetBinContent(42,2015.714); h_SL2L265->SetBinContent(43,1317.143); h_SL2L265->SetBinContent(44,1571.429); h_SL2L265->SetBinContent(45,808.5715); h_SL2L265->SetBinContent(46,675.7143); h_SL2L265->SetBinContent(47,667.1429); h_SL2L265->SetBinContent(48,524.2857); h_SL2L265->SetBinContent(49,475.7143); h_SL2L265->SetBinContent(50,451.4286); h_SL2L265->SetBinContent(51,421.4286); h_SL2L265->SetBinContent(52,321.4286); h_SL2L265->SetBinContent(53,321.4286); h_SL2L265->SetBinContent(54,327.1429); h_SL2L265->SetBinContent(55,278.5714); h_SL2L265->SetBinContent(56,231.4286); h_SL2L265->SetBinContent(57,178.5714); h_SL2L265->SetMaximum(68880.07); h_SL2L265->SetEntries(60); h_SL2L265->SetDirectory(0); h_SL2L265->SetStats(0); Int_t ci; // for color index setting TColor *color; // for color definition with alpha ci = TColor::GetColor("#cc0000"); h_SL2L265->SetLineColor(ci); h_SL2L265->SetLineWidth(2); h_SL2L265->GetXaxis()->SetTitle("Cell"); h_SL2L265->GetXaxis()->SetLabelFont(42); h_SL2L265->GetXaxis()->SetLabelSize(0.035); h_SL2L265->GetXaxis()->SetTitleSize(0.035); h_SL2L265->GetXaxis()->SetTitleFont(42); h_SL2L265->GetYaxis()->SetTitle("Hz"); h_SL2L265->GetYaxis()->SetLabelFont(42); h_SL2L265->GetYaxis()->SetLabelSize(0.035); h_SL2L265->GetYaxis()->SetTitleSize(0.035); h_SL2L265->GetYaxis()->SetTitleOffset(1.45); h_SL2L265->GetYaxis()->SetTitleFont(42); h_SL2L265->GetZaxis()->SetLabelFont(42); h_SL2L265->GetZaxis()->SetLabelSize(0.035); h_SL2L265->GetZaxis()->SetTitleSize(0.035); h_SL2L265->GetZaxis()->SetTitleFont(42); h_SL2L265->Draw("same"); TH1D *h_SL2L366 = new TH1D("h_SL2L366","",60,0,60); h_SL2L366->SetBinContent(1,427.1429); h_SL2L366->SetBinContent(2,318.5714); h_SL2L366->SetBinContent(3,467.1429); h_SL2L366->SetBinContent(4,490); h_SL2L366->SetBinContent(5,522.8572); h_SL2L366->SetBinContent(6,560); h_SL2L366->SetBinContent(7,542.8572); h_SL2L366->SetBinContent(8,542.8572); h_SL2L366->SetBinContent(9,670); h_SL2L366->SetBinContent(10,722.8572); h_SL2L366->SetBinContent(11,828.5715); h_SL2L366->SetBinContent(12,932.8572); h_SL2L366->SetBinContent(13,998.5715); h_SL2L366->SetBinContent(14,1058.571); h_SL2L366->SetBinContent(15,1212.857); h_SL2L366->SetBinContent(16,1217.143); h_SL2L366->SetBinContent(17,1390); h_SL2L366->SetBinContent(18,1547.143); h_SL2L366->SetBinContent(19,1782.857); h_SL2L366->SetBinContent(20,1804.286); h_SL2L366->SetBinContent(21,1947.143); h_SL2L366->SetBinContent(22,2188.572); h_SL2L366->SetBinContent(23,2481.429); h_SL2L366->SetBinContent(24,2938.572); h_SL2L366->SetBinContent(25,8371.429); h_SL2L366->SetBinContent(26,28091.43); h_SL2L366->SetBinContent(27,45644.29); h_SL2L366->SetBinContent(28,56534.29); h_SL2L366->SetBinContent(29,59592.86); h_SL2L366->SetBinContent(30,56194.29); h_SL2L366->SetBinContent(31,48295.71); h_SL2L366->SetBinContent(32,44227.14); h_SL2L366->SetBinContent(33,39190); h_SL2L366->SetBinContent(34,19247.14); h_SL2L366->SetBinContent(35,5171.429); h_SL2L366->SetBinContent(36,2790); h_SL2L366->SetBinContent(37,2068.572); h_SL2L366->SetBinContent(38,1705.714); h_SL2L366->SetBinContent(39,1531.429); h_SL2L366->SetBinContent(40,1827.143); h_SL2L366->SetBinContent(41,1397.143); h_SL2L366->SetBinContent(42,920); h_SL2L366->SetBinContent(43,838.5715); h_SL2L366->SetBinContent(44,835.7143); h_SL2L366->SetBinContent(45,675.7143); h_SL2L366->SetBinContent(46,628.5715); h_SL2L366->SetBinContent(47,534.2857); h_SL2L366->SetBinContent(48,498.5714); h_SL2L366->SetBinContent(49,444.2857); h_SL2L366->SetBinContent(50,432.8571); h_SL2L366->SetBinContent(51,417.1429); h_SL2L366->SetBinContent(52,310); h_SL2L366->SetBinContent(53,344.2857); h_SL2L366->SetBinContent(54,294.2857); h_SL2L366->SetBinContent(55,291.4286); h_SL2L366->SetBinContent(56,194.2857); h_SL2L366->SetBinContent(57,257.1429); h_SL2L366->SetMaximum(68880.07); h_SL2L366->SetEntries(60); h_SL2L366->SetDirectory(0); h_SL2L366->SetStats(0); ci = TColor::GetColor("#009900"); h_SL2L366->SetLineColor(ci); h_SL2L366->SetLineWidth(2); h_SL2L366->GetXaxis()->SetTitle("Cell"); h_SL2L366->GetXaxis()->SetLabelFont(42); h_SL2L366->GetXaxis()->SetLabelSize(0.035); h_SL2L366->GetXaxis()->SetTitleSize(0.035); h_SL2L366->GetXaxis()->SetTitleFont(42); h_SL2L366->GetYaxis()->SetTitle("Hz"); h_SL2L366->GetYaxis()->SetLabelFont(42); h_SL2L366->GetYaxis()->SetLabelSize(0.035); h_SL2L366->GetYaxis()->SetTitleSize(0.035); h_SL2L366->GetYaxis()->SetTitleOffset(1.45); h_SL2L366->GetYaxis()->SetTitleFont(42); h_SL2L366->GetZaxis()->SetLabelFont(42); h_SL2L366->GetZaxis()->SetLabelSize(0.035); h_SL2L366->GetZaxis()->SetTitleSize(0.035); h_SL2L366->GetZaxis()->SetTitleFont(42); h_SL2L366->Draw("same"); TH1D *h_SL2L467 = new TH1D("h_SL2L467","",60,0,60); h_SL2L467->SetBinContent(2,331.4286); h_SL2L467->SetBinContent(3,384.2857); h_SL2L467->SetBinContent(4,491.4286); h_SL2L467->SetBinContent(5,495.7143); h_SL2L467->SetBinContent(6,532.8572); h_SL2L467->SetBinContent(7,562.8572); h_SL2L467->SetBinContent(8,495.7143); h_SL2L467->SetBinContent(9,580); h_SL2L467->SetBinContent(10,712.8572); h_SL2L467->SetBinContent(11,785.7143); h_SL2L467->SetBinContent(12,844.2857); h_SL2L467->SetBinContent(13,968.5715); h_SL2L467->SetBinContent(14,957.1429); h_SL2L467->SetBinContent(15,1124.286); h_SL2L467->SetBinContent(16,1190); h_SL2L467->SetBinContent(17,1311.429); h_SL2L467->SetBinContent(18,1390); h_SL2L467->SetBinContent(19,1601.429); h_SL2L467->SetBinContent(20,1654.286); h_SL2L467->SetBinContent(21,1851.429); h_SL2L467->SetBinContent(22,1961.429); h_SL2L467->SetBinContent(23,2382.857); h_SL2L467->SetBinContent(24,2582.857); h_SL2L467->SetBinContent(25,3638.572); h_SL2L467->SetBinContent(26,17860); h_SL2L467->SetBinContent(27,37448.57); h_SL2L467->SetBinContent(28,52004.29); h_SL2L467->SetBinContent(29,59234.29); h_SL2L467->SetBinContent(30,59244.29); h_SL2L467->SetBinContent(31,51867.14); h_SL2L467->SetBinContent(32,45715.71); h_SL2L467->SetBinContent(33,42918.57); h_SL2L467->SetBinContent(34,31322.86); h_SL2L467->SetBinContent(35,9760); h_SL2L467->SetBinContent(36,3474.286); h_SL2L467->SetBinContent(37,2417.143); h_SL2L467->SetBinContent(38,1785.714); h_SL2L467->SetBinContent(39,1570); h_SL2L467->SetBinContent(40,1338.571); h_SL2L467->SetBinContent(41,1052.857); h_SL2L467->SetBinContent(42,1261.429); h_SL2L467->SetBinContent(43,854.2857); h_SL2L467->SetBinContent(44,780); h_SL2L467->SetBinContent(45,715.7143); h_SL2L467->SetBinContent(46,617.1429); h_SL2L467->SetBinContent(47,588.5715); h_SL2L467->SetBinContent(48,504.2857); h_SL2L467->SetBinContent(49,425.7143); h_SL2L467->SetBinContent(50,440); h_SL2L467->SetBinContent(51,385.7143); h_SL2L467->SetBinContent(52,321.4286); h_SL2L467->SetBinContent(53,325.7143); h_SL2L467->SetBinContent(54,291.4286); h_SL2L467->SetBinContent(55,277.1429); h_SL2L467->SetBinContent(56,251.4286); h_SL2L467->SetBinContent(57,182.8571); h_SL2L467->SetMaximum(68880.07); h_SL2L467->SetEntries(60); h_SL2L467->SetDirectory(0); h_SL2L467->SetStats(0); ci = TColor::GetColor("#0000cc"); h_SL2L467->SetLineColor(ci); h_SL2L467->SetLineWidth(2); h_SL2L467->GetXaxis()->SetTitle("Cell"); h_SL2L467->GetXaxis()->SetLabelFont(42); h_SL2L467->GetXaxis()->SetLabelSize(0.035); h_SL2L467->GetXaxis()->SetTitleSize(0.035); h_SL2L467->GetXaxis()->SetTitleFont(42); h_SL2L467->GetYaxis()->SetTitle("Hz"); h_SL2L467->GetYaxis()->SetLabelFont(42); h_SL2L467->GetYaxis()->SetLabelSize(0.035); h_SL2L467->GetYaxis()->SetTitleSize(0.035); h_SL2L467->GetYaxis()->SetTitleOffset(1.45); h_SL2L467->GetYaxis()->SetTitleFont(42); h_SL2L467->GetZaxis()->SetLabelFont(42); h_SL2L467->GetZaxis()->SetLabelSize(0.035); h_SL2L467->GetZaxis()->SetTitleSize(0.035); h_SL2L467->GetZaxis()->SetTitleFont(42); h_SL2L467->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_SL2L1","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_SL2L2","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_SL2L3","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_SL2L4","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("SL2, run 6619"); pt->Draw(); c->Modified(); c->cd(); c->SetSelected(c); }