void RatesPerCell_Removing_noisy_cells_run_7634_SL1() { //=========Macro generated from canvas: c/c //========= (Mon Jan 21 13:19:31 2019) by ROOT version6.02/13 TCanvas *c = new TCanvas("c", "c",0,0,800,600); gStyle->SetOptStat(0); c->Range(-7.500001,-13907.38,67.5,125166.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 7634",60,0,60); h_SL1L160->SetBinContent(1,39450); h_SL1L160->SetBinContent(2,39564.29); h_SL1L160->SetBinContent(3,40150); h_SL1L160->SetBinContent(4,38735.71); h_SL1L160->SetBinContent(5,35871.43); h_SL1L160->SetBinContent(6,37400); h_SL1L160->SetBinContent(7,36864.29); h_SL1L160->SetBinContent(8,38250); h_SL1L160->SetBinContent(9,36150); h_SL1L160->SetBinContent(10,36700); h_SL1L160->SetBinContent(11,36978.57); h_SL1L160->SetBinContent(12,37221.43); h_SL1L160->SetBinContent(13,59957.14); h_SL1L160->SetBinContent(14,67442.86); h_SL1L160->SetBinContent(15,67107.14); h_SL1L160->SetBinContent(16,34757.14); h_SL1L160->SetBinContent(17,33578.57); h_SL1L160->SetBinContent(18,36528.57); h_SL1L160->SetBinContent(19,36000); h_SL1L160->SetBinContent(20,36421.43); h_SL1L160->SetBinContent(21,34528.57); h_SL1L160->SetBinContent(22,34692.86); h_SL1L160->SetBinContent(23,32357.14); h_SL1L160->SetBinContent(24,30114.29); h_SL1L160->SetBinContent(25,27535.71); h_SL1L160->SetBinContent(26,29478.57); h_SL1L160->SetBinContent(27,28257.14); h_SL1L160->SetBinContent(28,30557.14); h_SL1L160->SetBinContent(29,31928.57); h_SL1L160->SetBinContent(30,30671.43); h_SL1L160->SetBinContent(31,28542.86); h_SL1L160->SetBinContent(32,26485.71); h_SL1L160->SetBinContent(33,44064.29); h_SL1L160->SetBinContent(34,45957.14); h_SL1L160->SetBinContent(35,44707.14); h_SL1L160->SetBinContent(36,45314.29); h_SL1L160->SetBinContent(37,47157.14); h_SL1L160->SetBinContent(38,45907.14); h_SL1L160->SetBinContent(39,44864.29); h_SL1L160->SetBinContent(41,27357.14); h_SL1L160->SetBinContent(42,29585.71); h_SL1L160->SetBinContent(43,27400); h_SL1L160->SetBinContent(44,26057.14); h_SL1L160->SetBinContent(45,25728.57); h_SL1L160->SetBinContent(46,24500); h_SL1L160->SetBinContent(47,24842.86); h_SL1L160->SetBinContent(48,24521.43); h_SL1L160->SetBinContent(49,26257.14); h_SL1L160->SetBinContent(50,28078.57); h_SL1L160->SetBinContent(51,27257.14); h_SL1L160->SetBinContent(52,26700); h_SL1L160->SetBinContent(53,26492.86); h_SL1L160->SetBinContent(54,25935.71); h_SL1L160->SetBinContent(55,26792.86); h_SL1L160->SetBinContent(56,29235.71); h_SL1L160->SetMaximum(111259); 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,37250); h_SL1L261->SetBinContent(2,38771.43); h_SL1L261->SetBinContent(3,39864.29); h_SL1L261->SetBinContent(4,40592.86); h_SL1L261->SetBinContent(5,40785.71); h_SL1L261->SetBinContent(6,42078.57); h_SL1L261->SetBinContent(7,41642.86); h_SL1L261->SetBinContent(8,42371.43); h_SL1L261->SetBinContent(9,42185.71); h_SL1L261->SetBinContent(10,42064.29); h_SL1L261->SetBinContent(11,42121.43); h_SL1L261->SetBinContent(12,42707.14); h_SL1L261->SetBinContent(13,42035.71); h_SL1L261->SetBinContent(14,45735.71); h_SL1L261->SetBinContent(15,49550); h_SL1L261->SetBinContent(16,43328.57); h_SL1L261->SetBinContent(17,44542.86); h_SL1L261->SetBinContent(18,47892.86); h_SL1L261->SetBinContent(19,46721.43); h_SL1L261->SetBinContent(20,46785.71); h_SL1L261->SetBinContent(21,46664.29); h_SL1L261->SetBinContent(22,45250); h_SL1L261->SetBinContent(23,44092.86); h_SL1L261->SetBinContent(24,43478.57); h_SL1L261->SetBinContent(25,43564.29); h_SL1L261->SetBinContent(26,40557.14); h_SL1L261->SetBinContent(27,40635.71); h_SL1L261->SetBinContent(28,44021.43); h_SL1L261->SetBinContent(29,44721.43); h_SL1L261->SetBinContent(30,45242.86); h_SL1L261->SetBinContent(31,44492.86); h_SL1L261->SetBinContent(32,42728.57); h_SL1L261->SetBinContent(33,43735.71); h_SL1L261->SetBinContent(34,43464.29); h_SL1L261->SetBinContent(35,42107.14); h_SL1L261->SetBinContent(36,43342.86); h_SL1L261->SetBinContent(37,44250); h_SL1L261->SetBinContent(38,45585.71); h_SL1L261->SetBinContent(39,44500); h_SL1L261->SetBinContent(40,42800); h_SL1L261->SetBinContent(41,44507.14); h_SL1L261->SetBinContent(42,45928.57); h_SL1L261->SetBinContent(43,43814.29); h_SL1L261->SetBinContent(44,42457.14); h_SL1L261->SetBinContent(45,42878.57); h_SL1L261->SetBinContent(46,43985.71); h_SL1L261->SetBinContent(47,44221.43); h_SL1L261->SetBinContent(48,42907.14); h_SL1L261->SetBinContent(49,49978.57); h_SL1L261->SetBinContent(50,44442.86); h_SL1L261->SetBinContent(51,43692.86); h_SL1L261->SetBinContent(52,43442.86); h_SL1L261->SetBinContent(53,45528.57); h_SL1L261->SetBinContent(54,44442.86); h_SL1L261->SetBinContent(55,42814.29); h_SL1L261->SetBinContent(56,42950); h_SL1L261->SetMaximum(96747.86); 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,35907.14); h_SL1L362->SetBinContent(2,38664.29); h_SL1L362->SetBinContent(3,39985.71); h_SL1L362->SetBinContent(4,39557.14); h_SL1L362->SetBinContent(5,41500); h_SL1L362->SetBinContent(6,40885.71); h_SL1L362->SetBinContent(7,41542.86); h_SL1L362->SetBinContent(8,41521.43); h_SL1L362->SetBinContent(9,41135.71); h_SL1L362->SetBinContent(10,42407.14); h_SL1L362->SetBinContent(11,41885.71); h_SL1L362->SetBinContent(12,42692.86); h_SL1L362->SetBinContent(13,41335.71); h_SL1L362->SetBinContent(14,50385.71); h_SL1L362->SetBinContent(15,64185.71); h_SL1L362->SetBinContent(16,46385.71); h_SL1L362->SetBinContent(17,45314.29); h_SL1L362->SetBinContent(18,46807.14); h_SL1L362->SetBinContent(19,46671.43); h_SL1L362->SetBinContent(20,46964.29); h_SL1L362->SetBinContent(21,45521.43); h_SL1L362->SetBinContent(22,44007.14); h_SL1L362->SetBinContent(23,42985.71); h_SL1L362->SetBinContent(24,42228.57); h_SL1L362->SetBinContent(25,41835.71); h_SL1L362->SetBinContent(26,39550); h_SL1L362->SetBinContent(27,40228.57); h_SL1L362->SetBinContent(28,44600); h_SL1L362->SetBinContent(29,44014.29); h_SL1L362->SetBinContent(30,44178.57); h_SL1L362->SetBinContent(31,43171.43); h_SL1L362->SetBinContent(32,40514.29); h_SL1L362->SetBinContent(33,42042.86); h_SL1L362->SetBinContent(34,43014.29); h_SL1L362->SetBinContent(35,41492.86); h_SL1L362->SetBinContent(36,43550); h_SL1L362->SetBinContent(37,45085.71); h_SL1L362->SetBinContent(38,44435.71); h_SL1L362->SetBinContent(39,42392.86); h_SL1L362->SetBinContent(40,43735.71); h_SL1L362->SetBinContent(41,43614.29); h_SL1L362->SetBinContent(42,42371.43); h_SL1L362->SetBinContent(43,41342.86); h_SL1L362->SetBinContent(44,41578.57); h_SL1L362->SetBinContent(45,42442.86); h_SL1L362->SetBinContent(46,42814.29); h_SL1L362->SetBinContent(47,42878.57); h_SL1L362->SetBinContent(48,43307.14); h_SL1L362->SetBinContent(49,43650); h_SL1L362->SetBinContent(50,45057.14); h_SL1L362->SetBinContent(51,43342.86); h_SL1L362->SetBinContent(52,42550); h_SL1L362->SetBinContent(53,44114.29); h_SL1L362->SetBinContent(54,41814.29); h_SL1L362->SetBinContent(55,41707.14); h_SL1L362->SetBinContent(56,42642.86); h_SL1L362->SetMaximum(96747.86); 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,32128.57); h_SL1L463->SetBinContent(3,31228.57); h_SL1L463->SetBinContent(4,31900); h_SL1L463->SetBinContent(5,30107.14); h_SL1L463->SetBinContent(6,29457.14); h_SL1L463->SetBinContent(7,30378.57); h_SL1L463->SetBinContent(8,32264.29); h_SL1L463->SetBinContent(9,33821.43); h_SL1L463->SetBinContent(10,33928.57); h_SL1L463->SetBinContent(11,36392.86); h_SL1L463->SetBinContent(12,36985.71); h_SL1L463->SetBinContent(13,38807.14); h_SL1L463->SetBinContent(14,84128.57); h_SL1L463->SetBinContent(15,71357.14); h_SL1L463->SetBinContent(16,69114.28); h_SL1L463->SetBinContent(17,35471.43); h_SL1L463->SetBinContent(18,38164.29); h_SL1L463->SetBinContent(19,36628.57); h_SL1L463->SetBinContent(20,36571.43); h_SL1L463->SetBinContent(21,34878.57); h_SL1L463->SetBinContent(22,33671.43); h_SL1L463->SetBinContent(23,31664.29); h_SL1L463->SetBinContent(24,32335.71); h_SL1L463->SetBinContent(25,29828.57); h_SL1L463->SetBinContent(26,29550); h_SL1L463->SetBinContent(27,28100); h_SL1L463->SetBinContent(28,30335.71); h_SL1L463->SetBinContent(29,30000); h_SL1L463->SetBinContent(30,30600); h_SL1L463->SetBinContent(31,30042.86); h_SL1L463->SetBinContent(32,28564.29); h_SL1L463->SetBinContent(33,26700); h_SL1L463->SetBinContent(34,30107.14); h_SL1L463->SetBinContent(35,31314.29); h_SL1L463->SetBinContent(36,29100); h_SL1L463->SetBinContent(37,5714.286); h_SL1L463->SetBinContent(38,50); h_SL1L463->SetBinContent(41,24735.71); h_SL1L463->SetBinContent(42,26607.14); h_SL1L463->SetBinContent(43,26407.14); h_SL1L463->SetBinContent(44,25400); h_SL1L463->SetBinContent(45,23250); h_SL1L463->SetBinContent(46,25307.14); h_SL1L463->SetBinContent(47,23492.86); h_SL1L463->SetBinContent(48,22378.57); h_SL1L463->SetBinContent(49,23435.71); h_SL1L463->SetBinContent(50,24957.14); h_SL1L463->SetBinContent(51,23950); h_SL1L463->SetBinContent(52,24235.71); h_SL1L463->SetBinContent(53,24150); h_SL1L463->SetBinContent(54,23000); h_SL1L463->SetBinContent(55,7.142857); h_SL1L463->SetBinContent(56,24507.14); h_SL1L463->SetMaximum(96747.86); 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 7634"); pt->Draw(); c->Modified(); c->cd(); c->SetSelected(c); }