void RatesPerCell_Removing_noisy_cells_run_7439_SL1() { //=========Macro generated from canvas: c/c //========= (Sun Dec 23 11:47:36 2018) by ROOT version6.02/13 TCanvas *c = new TCanvas("c", "c",0,0,800,600); gStyle->SetOptStat(0); c->Range(-7.500001,-4947.444,67.5,44526.99); c->SetFillColor(0); c->SetBorderMode(0); c->SetBorderSize(2); c->SetFrameBorderMode(0); c->SetFrameBorderMode(0); TH1D *h_SL1L160 = new TH1D("h_SL1L160","SL1, run 7439",60,0,60); h_SL1L160->SetBinContent(1,16221.43); h_SL1L160->SetBinContent(2,17292.86); h_SL1L160->SetBinContent(3,17007.14); h_SL1L160->SetBinContent(4,16464.29); h_SL1L160->SetBinContent(5,14657.14); h_SL1L160->SetBinContent(6,15971.43); h_SL1L160->SetBinContent(7,14321.43); h_SL1L160->SetBinContent(8,16171.43); h_SL1L160->SetBinContent(9,15285.71); h_SL1L160->SetBinContent(10,15228.57); h_SL1L160->SetBinContent(11,16671.43); h_SL1L160->SetBinContent(12,14992.86); h_SL1L160->SetBinContent(13,15778.57); h_SL1L160->SetBinContent(14,24635.71); h_SL1L160->SetBinContent(15,23271.43); h_SL1L160->SetBinContent(16,14250); h_SL1L160->SetBinContent(17,13507.14); h_SL1L160->SetBinContent(18,14414.29); h_SL1L160->SetBinContent(19,14592.86); h_SL1L160->SetBinContent(20,15007.14); h_SL1L160->SetBinContent(21,14321.43); h_SL1L160->SetBinContent(22,13835.71); h_SL1L160->SetBinContent(23,13107.14); h_SL1L160->SetBinContent(24,11850); h_SL1L160->SetBinContent(25,12057.14); h_SL1L160->SetBinContent(26,12507.14); h_SL1L160->SetBinContent(27,12542.86); h_SL1L160->SetBinContent(28,12435.71); h_SL1L160->SetBinContent(29,12721.43); h_SL1L160->SetBinContent(30,12335.71); h_SL1L160->SetBinContent(31,11735.71); h_SL1L160->SetBinContent(32,11185.71); h_SL1L160->SetBinContent(33,26478.57); h_SL1L160->SetBinContent(34,26735.71); h_SL1L160->SetBinContent(35,25850); h_SL1L160->SetBinContent(36,25621.43); h_SL1L160->SetBinContent(37,26192.86); h_SL1L160->SetBinContent(38,26678.57); h_SL1L160->SetBinContent(39,26228.57); h_SL1L160->SetBinContent(41,11507.14); h_SL1L160->SetBinContent(42,11871.43); h_SL1L160->SetBinContent(43,11878.57); h_SL1L160->SetBinContent(44,10885.71); h_SL1L160->SetBinContent(45,11392.86); h_SL1L160->SetBinContent(46,10414.29); h_SL1L160->SetBinContent(47,10528.57); h_SL1L160->SetBinContent(48,10035.71); h_SL1L160->SetBinContent(49,11114.29); h_SL1L160->SetBinContent(50,11342.86); h_SL1L160->SetBinContent(51,11921.43); h_SL1L160->SetBinContent(52,11314.29); h_SL1L160->SetBinContent(53,11785.71); h_SL1L160->SetBinContent(54,11578.57); h_SL1L160->SetBinContent(55,11257.14); h_SL1L160->SetBinContent(56,11728.57); h_SL1L160->SetMaximum(39579.55); 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,21071.43); h_SL1L261->SetBinContent(2,19842.86); h_SL1L261->SetBinContent(3,21935.71); h_SL1L261->SetBinContent(4,23100); h_SL1L261->SetBinContent(5,23792.86); h_SL1L261->SetBinContent(6,24807.14); h_SL1L261->SetBinContent(7,24592.86); h_SL1L261->SetBinContent(8,24607.14); h_SL1L261->SetBinContent(9,25757.14); h_SL1L261->SetBinContent(10,25214.29); h_SL1L261->SetBinContent(11,25378.57); h_SL1L261->SetBinContent(12,24678.57); h_SL1L261->SetBinContent(13,25878.57); h_SL1L261->SetBinContent(14,26178.57); h_SL1L261->SetBinContent(15,25078.57); h_SL1L261->SetBinContent(16,25400); h_SL1L261->SetBinContent(17,25785.71); h_SL1L261->SetBinContent(18,26621.43); h_SL1L261->SetBinContent(19,27178.57); h_SL1L261->SetBinContent(20,27521.43); h_SL1L261->SetBinContent(21,27785.71); h_SL1L261->SetBinContent(22,26864.29); h_SL1L261->SetBinContent(23,25742.86); h_SL1L261->SetBinContent(24,26364.29); h_SL1L261->SetBinContent(25,26350); h_SL1L261->SetBinContent(26,25185.71); h_SL1L261->SetBinContent(27,25000); h_SL1L261->SetBinContent(28,26057.14); h_SL1L261->SetBinContent(29,26942.86); h_SL1L261->SetBinContent(30,26864.29); h_SL1L261->SetBinContent(31,26650); h_SL1L261->SetBinContent(32,26735.71); h_SL1L261->SetBinContent(33,26350); h_SL1L261->SetBinContent(34,26164.29); h_SL1L261->SetBinContent(35,25921.43); h_SL1L261->SetBinContent(36,24414.29); h_SL1L261->SetBinContent(37,26607.14); h_SL1L261->SetBinContent(38,27600); h_SL1L261->SetBinContent(39,26664.29); h_SL1L261->SetBinContent(40,25850); h_SL1L261->SetBinContent(41,26428.57); h_SL1L261->SetBinContent(42,26850); h_SL1L261->SetBinContent(43,26592.86); h_SL1L261->SetBinContent(44,24521.43); h_SL1L261->SetBinContent(45,25457.14); h_SL1L261->SetBinContent(46,25700); h_SL1L261->SetBinContent(47,25871.43); h_SL1L261->SetBinContent(48,25657.14); h_SL1L261->SetBinContent(49,25250); h_SL1L261->SetBinContent(50,25250); h_SL1L261->SetBinContent(51,25328.57); h_SL1L261->SetBinContent(52,25071.43); h_SL1L261->SetBinContent(53,25771.43); h_SL1L261->SetBinContent(54,25292.86); h_SL1L261->SetBinContent(55,24785.71); h_SL1L261->SetBinContent(56,23707.14); h_SL1L261->SetMaximum(34417.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,19707.14); h_SL1L362->SetBinContent(2,21235.71); h_SL1L362->SetBinContent(3,22300); h_SL1L362->SetBinContent(4,23414.29); h_SL1L362->SetBinContent(5,23992.86); h_SL1L362->SetBinContent(6,24471.43); h_SL1L362->SetBinContent(7,23935.71); h_SL1L362->SetBinContent(8,24464.29); h_SL1L362->SetBinContent(9,24835.71); h_SL1L362->SetBinContent(10,25564.29); h_SL1L362->SetBinContent(11,25142.86); h_SL1L362->SetBinContent(12,25021.43); h_SL1L362->SetBinContent(13,25328.57); h_SL1L362->SetBinContent(14,25135.71); h_SL1L362->SetBinContent(15,24528.57); h_SL1L362->SetBinContent(16,24885.71); h_SL1L362->SetBinContent(17,26450); h_SL1L362->SetBinContent(18,26750); h_SL1L362->SetBinContent(19,26300); h_SL1L362->SetBinContent(20,27364.29); h_SL1L362->SetBinContent(21,27600); h_SL1L362->SetBinContent(22,25700); h_SL1L362->SetBinContent(23,25057.14); h_SL1L362->SetBinContent(24,25821.43); h_SL1L362->SetBinContent(25,24771.43); h_SL1L362->SetBinContent(26,23685.71); h_SL1L362->SetBinContent(27,24885.71); h_SL1L362->SetBinContent(28,27028.57); h_SL1L362->SetBinContent(29,26964.29); h_SL1L362->SetBinContent(30,25607.14); h_SL1L362->SetBinContent(31,26228.57); h_SL1L362->SetBinContent(32,25642.86); h_SL1L362->SetBinContent(33,26171.43); h_SL1L362->SetBinContent(34,26400); h_SL1L362->SetBinContent(35,24521.43); h_SL1L362->SetBinContent(36,24557.14); h_SL1L362->SetBinContent(37,27185.71); h_SL1L362->SetBinContent(38,26021.43); h_SL1L362->SetBinContent(39,26057.14); h_SL1L362->SetBinContent(40,25707.14); h_SL1L362->SetBinContent(41,27271.43); h_SL1L362->SetBinContent(42,25892.86); h_SL1L362->SetBinContent(43,24300); h_SL1L362->SetBinContent(44,23528.57); h_SL1L362->SetBinContent(45,25064.29); h_SL1L362->SetBinContent(46,25557.14); h_SL1L362->SetBinContent(47,25500); h_SL1L362->SetBinContent(48,24321.43); h_SL1L362->SetBinContent(49,24142.86); h_SL1L362->SetBinContent(50,25328.57); h_SL1L362->SetBinContent(51,24200); h_SL1L362->SetBinContent(52,25235.71); h_SL1L362->SetBinContent(53,25050); h_SL1L362->SetBinContent(54,24264.29); h_SL1L362->SetBinContent(55,23700); h_SL1L362->SetBinContent(56,23000); h_SL1L362->SetMaximum(34417.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,13892.86); h_SL1L463->SetBinContent(3,13764.29); h_SL1L463->SetBinContent(4,13821.43); h_SL1L463->SetBinContent(5,13542.86); h_SL1L463->SetBinContent(6,14078.57); h_SL1L463->SetBinContent(7,14500); h_SL1L463->SetBinContent(8,14492.86); h_SL1L463->SetBinContent(9,15321.43); h_SL1L463->SetBinContent(10,15842.86); h_SL1L463->SetBinContent(11,17257.14); h_SL1L463->SetBinContent(12,18021.43); h_SL1L463->SetBinContent(13,17264.29); h_SL1L463->SetBinContent(14,18664.29); h_SL1L463->SetBinContent(15,29928.57); h_SL1L463->SetBinContent(16,20964.29); h_SL1L463->SetBinContent(17,16421.43); h_SL1L463->SetBinContent(18,16250); h_SL1L463->SetBinContent(19,15614.29); h_SL1L463->SetBinContent(20,15400); h_SL1L463->SetBinContent(21,15821.43); h_SL1L463->SetBinContent(22,15178.57); h_SL1L463->SetBinContent(23,13300); h_SL1L463->SetBinContent(24,14185.71); h_SL1L463->SetBinContent(25,13378.57); h_SL1L463->SetBinContent(26,13521.43); h_SL1L463->SetBinContent(27,13257.14); h_SL1L463->SetBinContent(28,13064.29); h_SL1L463->SetBinContent(29,12971.43); h_SL1L463->SetBinContent(30,13171.43); h_SL1L463->SetBinContent(31,12857.14); h_SL1L463->SetBinContent(32,12350); h_SL1L463->SetBinContent(33,12007.14); h_SL1L463->SetBinContent(34,12742.86); h_SL1L463->SetBinContent(35,13064.29); h_SL1L463->SetBinContent(36,11650); h_SL1L463->SetBinContent(37,307.1429); h_SL1L463->SetBinContent(38,7.142857); h_SL1L463->SetBinContent(41,10614.29); h_SL1L463->SetBinContent(42,11735.71); h_SL1L463->SetBinContent(43,11564.29); h_SL1L463->SetBinContent(44,11985.71); h_SL1L463->SetBinContent(45,10714.29); h_SL1L463->SetBinContent(46,11621.43); h_SL1L463->SetBinContent(47,10900); h_SL1L463->SetBinContent(48,9800); h_SL1L463->SetBinContent(49,9985.714); h_SL1L463->SetBinContent(50,10314.29); h_SL1L463->SetBinContent(51,10750); h_SL1L463->SetBinContent(52,11264.29); h_SL1L463->SetBinContent(53,10842.86); h_SL1L463->SetBinContent(54,10857.14); h_SL1L463->SetBinContent(56,11942.86); h_SL1L463->SetMaximum(34417.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 7439"); pt->Draw(); c->Modified(); c->cd(); c->SetSelected(c); }