void RatesPerCell_Removing_noisy_cells_run_7376_SL1() { //=========Macro generated from canvas: c/c //========= (Fri Jan 18 19:12:29 2019) by ROOT version6.02/13 TCanvas *c = new TCanvas("c", "c",0,0,800,600); gStyle->SetOptStat(0); c->Range(-7.500001,-11871.74,67.5,106845.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 7376",60,0,60); h_SL1L160->SetBinContent(1,40185.71); h_SL1L160->SetBinContent(2,41471.43); h_SL1L160->SetBinContent(3,40535.71); h_SL1L160->SetBinContent(4,39292.86); h_SL1L160->SetBinContent(5,34107.14); h_SL1L160->SetBinContent(6,35128.57); h_SL1L160->SetBinContent(7,34585.71); h_SL1L160->SetBinContent(8,33264.29); h_SL1L160->SetBinContent(9,31550); h_SL1L160->SetBinContent(10,31407.14); h_SL1L160->SetBinContent(11,31207.14); h_SL1L160->SetBinContent(12,28535.71); h_SL1L160->SetBinContent(13,44971.43); h_SL1L160->SetBinContent(14,52428.57); h_SL1L160->SetBinContent(15,52371.43); h_SL1L160->SetBinContent(16,26678.57); h_SL1L160->SetBinContent(17,26907.14); h_SL1L160->SetBinContent(18,29571.43); h_SL1L160->SetBinContent(19,29785.71); h_SL1L160->SetBinContent(20,28564.29); h_SL1L160->SetBinContent(21,29478.57); h_SL1L160->SetBinContent(22,29550); h_SL1L160->SetBinContent(23,27642.86); h_SL1L160->SetBinContent(24,24421.43); h_SL1L160->SetBinContent(25,24271.43); h_SL1L160->SetBinContent(26,25178.57); h_SL1L160->SetBinContent(27,23285.71); h_SL1L160->SetBinContent(28,25400); h_SL1L160->SetBinContent(29,25157.14); h_SL1L160->SetBinContent(30,24228.57); h_SL1L160->SetBinContent(31,23057.14); h_SL1L160->SetBinContent(32,22735.71); h_SL1L160->SetBinContent(33,45242.86); h_SL1L160->SetBinContent(34,47621.43); h_SL1L160->SetBinContent(35,46007.14); h_SL1L160->SetBinContent(36,46128.57); h_SL1L160->SetBinContent(37,48621.43); h_SL1L160->SetBinContent(38,47550); h_SL1L160->SetBinContent(39,47128.57); h_SL1L160->SetBinContent(40,7.142857); h_SL1L160->SetBinContent(41,23635.71); h_SL1L160->SetBinContent(42,24728.57); h_SL1L160->SetBinContent(43,24321.43); h_SL1L160->SetBinContent(44,23164.29); h_SL1L160->SetBinContent(45,23021.43); h_SL1L160->SetBinContent(46,21685.71); h_SL1L160->SetBinContent(47,22207.14); h_SL1L160->SetBinContent(48,23242.86); h_SL1L160->SetBinContent(49,24500); h_SL1L160->SetBinContent(50,26000); h_SL1L160->SetBinContent(51,26535.71); h_SL1L160->SetBinContent(52,26950); h_SL1L160->SetBinContent(53,27328.57); h_SL1L160->SetBinContent(54,27792.86); h_SL1L160->SetBinContent(55,28914.29); h_SL1L160->SetBinContent(56,31214.29); h_SL1L160->SetMaximum(94973.9); 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,43200); h_SL1L261->SetBinContent(2,43657.14); h_SL1L261->SetBinContent(3,48278.57); h_SL1L261->SetBinContent(4,46671.43); h_SL1L261->SetBinContent(5,46242.86); h_SL1L261->SetBinContent(6,47514.29); h_SL1L261->SetBinContent(7,45692.86); h_SL1L261->SetBinContent(8,46164.29); h_SL1L261->SetBinContent(9,60321.43); h_SL1L261->SetBinContent(10,42021.43); h_SL1L261->SetBinContent(11,42378.57); h_SL1L261->SetBinContent(12,38814.29); h_SL1L261->SetBinContent(13,37935.71); h_SL1L261->SetBinContent(14,40657.14); h_SL1L261->SetBinContent(15,42171.43); h_SL1L261->SetBinContent(16,40214.29); h_SL1L261->SetBinContent(17,41285.71); h_SL1L261->SetBinContent(18,43228.57); h_SL1L261->SetBinContent(19,43950); h_SL1L261->SetBinContent(20,46164.29); h_SL1L261->SetBinContent(21,47921.43); h_SL1L261->SetBinContent(22,45892.86); h_SL1L261->SetBinContent(23,46842.86); h_SL1L261->SetBinContent(24,47635.71); h_SL1L261->SetBinContent(25,48535.71); h_SL1L261->SetBinContent(26,43500); h_SL1L261->SetBinContent(27,42450); h_SL1L261->SetBinContent(28,46392.86); h_SL1L261->SetBinContent(29,45857.14); h_SL1L261->SetBinContent(30,45800); h_SL1L261->SetBinContent(31,45757.14); h_SL1L261->SetBinContent(32,45357.14); h_SL1L261->SetBinContent(33,45900); h_SL1L261->SetBinContent(34,45050); h_SL1L261->SetBinContent(35,45685.71); h_SL1L261->SetBinContent(36,44957.14); h_SL1L261->SetBinContent(37,46364.29); h_SL1L261->SetBinContent(38,49257.14); h_SL1L261->SetBinContent(39,47050); h_SL1L261->SetBinContent(40,47392.86); h_SL1L261->SetBinContent(41,48450); h_SL1L261->SetBinContent(42,48978.57); h_SL1L261->SetBinContent(43,48707.14); h_SL1L261->SetBinContent(44,49142.86); h_SL1L261->SetBinContent(45,50271.43); h_SL1L261->SetBinContent(46,53092.86); h_SL1L261->SetBinContent(47,51800); h_SL1L261->SetBinContent(48,54492.86); h_SL1L261->SetBinContent(49,70285.71); h_SL1L261->SetBinContent(50,54835.71); h_SL1L261->SetBinContent(51,55807.14); h_SL1L261->SetBinContent(52,58535.71); h_SL1L261->SetBinContent(53,58814.29); h_SL1L261->SetBinContent(54,59750); h_SL1L261->SetBinContent(55,60678.57); h_SL1L261->SetBinContent(56,62107.14); h_SL1L261->SetMaximum(82586.42); 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,42028.57); h_SL1L362->SetBinContent(2,44035.71); h_SL1L362->SetBinContent(3,45135.71); h_SL1L362->SetBinContent(4,46357.14); h_SL1L362->SetBinContent(5,45692.86); h_SL1L362->SetBinContent(6,44600); h_SL1L362->SetBinContent(7,44721.43); h_SL1L362->SetBinContent(8,43935.71); h_SL1L362->SetBinContent(9,41492.86); h_SL1L362->SetBinContent(10,40835.71); h_SL1L362->SetBinContent(11,39314.29); h_SL1L362->SetBinContent(12,38492.86); h_SL1L362->SetBinContent(13,37407.14); h_SL1L362->SetBinContent(14,42935.71); h_SL1L362->SetBinContent(15,52242.86); h_SL1L362->SetBinContent(16,41514.29); h_SL1L362->SetBinContent(17,42085.71); h_SL1L362->SetBinContent(18,43507.14); h_SL1L362->SetBinContent(19,44035.71); h_SL1L362->SetBinContent(20,45392.86); h_SL1L362->SetBinContent(21,45535.71); h_SL1L362->SetBinContent(22,45442.86); h_SL1L362->SetBinContent(23,45585.71); h_SL1L362->SetBinContent(24,47650); h_SL1L362->SetBinContent(25,44078.57); h_SL1L362->SetBinContent(26,42064.29); h_SL1L362->SetBinContent(27,42550); h_SL1L362->SetBinContent(28,45500); h_SL1L362->SetBinContent(29,45171.43); h_SL1L362->SetBinContent(30,44171.43); h_SL1L362->SetBinContent(31,44507.14); h_SL1L362->SetBinContent(32,43064.29); h_SL1L362->SetBinContent(33,43985.71); h_SL1L362->SetBinContent(34,45578.57); h_SL1L362->SetBinContent(35,44335.71); h_SL1L362->SetBinContent(36,45164.29); h_SL1L362->SetBinContent(37,46642.86); h_SL1L362->SetBinContent(38,45942.86); h_SL1L362->SetBinContent(39,46628.57); h_SL1L362->SetBinContent(40,46071.43); h_SL1L362->SetBinContent(41,47921.43); h_SL1L362->SetBinContent(42,49114.29); h_SL1L362->SetBinContent(43,48885.71); h_SL1L362->SetBinContent(44,49242.86); h_SL1L362->SetBinContent(45,51307.14); h_SL1L362->SetBinContent(46,52021.43); h_SL1L362->SetBinContent(47,53685.71); h_SL1L362->SetBinContent(48,52885.71); h_SL1L362->SetBinContent(49,55821.43); h_SL1L362->SetBinContent(50,53571.43); h_SL1L362->SetBinContent(51,56642.86); h_SL1L362->SetBinContent(52,57657.14); h_SL1L362->SetBinContent(53,62607.14); h_SL1L362->SetBinContent(54,59057.14); h_SL1L362->SetBinContent(55,59428.57); h_SL1L362->SetBinContent(56,67742.86); h_SL1L362->SetMaximum(82586.42); 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,38564.29); h_SL1L463->SetBinContent(3,39342.86); h_SL1L463->SetBinContent(4,36571.43); h_SL1L463->SetBinContent(5,34400); h_SL1L463->SetBinContent(6,34971.43); h_SL1L463->SetBinContent(7,33042.86); h_SL1L463->SetBinContent(8,35014.29); h_SL1L463->SetBinContent(9,34414.29); h_SL1L463->SetBinContent(10,34235.71); h_SL1L463->SetBinContent(11,35550); h_SL1L463->SetBinContent(12,32771.43); h_SL1L463->SetBinContent(13,33764.29); h_SL1L463->SetBinContent(14,71814.28); h_SL1L463->SetBinContent(15,59950); h_SL1L463->SetBinContent(16,59528.57); h_SL1L463->SetBinContent(17,33407.14); h_SL1L463->SetBinContent(18,35835.71); h_SL1L463->SetBinContent(19,35321.43); h_SL1L463->SetBinContent(20,36035.71); h_SL1L463->SetBinContent(21,35750); h_SL1L463->SetBinContent(22,35457.14); h_SL1L463->SetBinContent(23,34100); h_SL1L463->SetBinContent(24,35128.57); h_SL1L463->SetBinContent(25,33092.86); h_SL1L463->SetBinContent(26,31235.71); h_SL1L463->SetBinContent(27,30457.14); h_SL1L463->SetBinContent(28,31971.43); h_SL1L463->SetBinContent(29,30564.29); h_SL1L463->SetBinContent(30,33250); h_SL1L463->SetBinContent(31,31550); h_SL1L463->SetBinContent(32,30914.29); h_SL1L463->SetBinContent(33,28292.86); h_SL1L463->SetBinContent(34,32357.14); h_SL1L463->SetBinContent(35,33214.29); h_SL1L463->SetBinContent(36,29300); h_SL1L463->SetBinContent(37,35.71429); h_SL1L463->SetBinContent(38,78.57143); h_SL1L463->SetBinContent(39,7.142857); h_SL1L463->SetBinContent(41,28971.43); h_SL1L463->SetBinContent(42,30592.86); h_SL1L463->SetBinContent(43,31814.29); h_SL1L463->SetBinContent(44,31564.29); h_SL1L463->SetBinContent(45,28514.29); h_SL1L463->SetBinContent(46,31364.29); h_SL1L463->SetBinContent(47,28828.57); h_SL1L463->SetBinContent(48,28678.57); h_SL1L463->SetBinContent(49,28607.14); h_SL1L463->SetBinContent(50,30535.71); h_SL1L463->SetBinContent(51,30985.71); h_SL1L463->SetBinContent(52,32042.86); h_SL1L463->SetBinContent(53,31857.14); h_SL1L463->SetBinContent(54,31600); h_SL1L463->SetBinContent(55,50); h_SL1L463->SetBinContent(56,36878.57); h_SL1L463->SetMaximum(82586.42); 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 7376"); pt->Draw(); c->Modified(); c->cd(); c->SetSelected(c); }