void RatesPerCell_Removing_noisy_cells_run_6390_SL1() { //=========Macro generated from canvas: c/c //========= (Sun Jan 13 15:38:27 2019) by ROOT version6.02/13 TCanvas *c = new TCanvas("c", "c",0,0,800,600); gStyle->SetOptStat(0); c->Range(-7.500001,-2758.275,67.5,24824.48); c->SetFillColor(0); c->SetBorderMode(0); c->SetBorderSize(2); c->SetFrameBorderMode(0); c->SetFrameBorderMode(0); TH1D *h_SL1L160 = new TH1D("h_SL1L160","SL1, run 6390",60,0,60); h_SL1L160->SetBinContent(1,11596.43); h_SL1L160->SetBinContent(2,12385.71); h_SL1L160->SetBinContent(3,13217.86); h_SL1L160->SetBinContent(4,12839.29); h_SL1L160->SetBinContent(5,12385.71); h_SL1L160->SetBinContent(6,13000); h_SL1L160->SetBinContent(7,12750); h_SL1L160->SetBinContent(8,12946.43); h_SL1L160->SetBinContent(9,13085.71); h_SL1L160->SetBinContent(10,13310.71); h_SL1L160->SetBinContent(11,13450); h_SL1L160->SetBinContent(12,13214.29); h_SL1L160->SetBinContent(13,13146.43); h_SL1L160->SetBinContent(14,12803.57); h_SL1L160->SetBinContent(15,11689.29); h_SL1L160->SetBinContent(16,11264.29); h_SL1L160->SetBinContent(17,10464.29); h_SL1L160->SetBinContent(18,11360.71); h_SL1L160->SetBinContent(19,11517.86); h_SL1L160->SetBinContent(20,11475); h_SL1L160->SetBinContent(21,11664.29); h_SL1L160->SetBinContent(22,11525); h_SL1L160->SetBinContent(23,11017.86); h_SL1L160->SetBinContent(24,10703.57); h_SL1L160->SetBinContent(25,11142.86); h_SL1L160->SetBinContent(26,10767.86); h_SL1L160->SetBinContent(27,10382.14); h_SL1L160->SetBinContent(28,10539.29); h_SL1L160->SetBinContent(29,10989.29); h_SL1L160->SetBinContent(30,10628.57); h_SL1L160->SetBinContent(31,10617.86); h_SL1L160->SetBinContent(32,9896.429); h_SL1L160->SetBinContent(33,10453.57); h_SL1L160->SetBinContent(34,10692.86); h_SL1L160->SetBinContent(35,10517.86); h_SL1L160->SetBinContent(36,10328.57); h_SL1L160->SetBinContent(37,10485.71); h_SL1L160->SetBinContent(38,10825); h_SL1L160->SetBinContent(39,10146.43); h_SL1L160->SetBinContent(40,10139.29); h_SL1L160->SetBinContent(41,10003.57); h_SL1L160->SetBinContent(42,10567.86); h_SL1L160->SetBinContent(43,9178.571); h_SL1L160->SetBinContent(44,10225); h_SL1L160->SetBinContent(45,9464.285); h_SL1L160->SetBinContent(46,8960.714); h_SL1L160->SetBinContent(47,8957.143); h_SL1L160->SetBinContent(48,8646.429); h_SL1L160->SetBinContent(49,8989.285); h_SL1L160->SetBinContent(50,9221.429); h_SL1L160->SetBinContent(51,8517.857); h_SL1L160->SetBinContent(52,8746.429); h_SL1L160->SetBinContent(53,8503.571); h_SL1L160->SetBinContent(54,8600); h_SL1L160->SetBinContent(55,8028.571); h_SL1L160->SetBinContent(56,8303.571); h_SL1L160->SetBinContent(57,9139.285); h_SL1L160->SetBinContent(58,8685.714); h_SL1L160->SetBinContent(59,8482.143); h_SL1L160->SetMaximum(22066.2); 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,11750); h_SL1L261->SetBinContent(2,12492.86); h_SL1L261->SetBinContent(3,13825); h_SL1L261->SetBinContent(4,14889.29); h_SL1L261->SetBinContent(5,14950); h_SL1L261->SetBinContent(6,16107.14); h_SL1L261->SetBinContent(7,15489.29); h_SL1L261->SetBinContent(8,15335.71); h_SL1L261->SetBinContent(9,15810.71); h_SL1L261->SetBinContent(10,15807.14); h_SL1L261->SetBinContent(11,16178.57); h_SL1L261->SetBinContent(12,15953.57); h_SL1L261->SetBinContent(13,16014.29); h_SL1L261->SetBinContent(14,16657.14); h_SL1L261->SetBinContent(15,15189.29); h_SL1L261->SetBinContent(16,14660.71); h_SL1L261->SetBinContent(17,15046.43); h_SL1L261->SetBinContent(18,15510.71); h_SL1L261->SetBinContent(19,15289.29); h_SL1L261->SetBinContent(20,15378.57); h_SL1L261->SetBinContent(21,16110.71); h_SL1L261->SetBinContent(22,16564.29); h_SL1L261->SetBinContent(23,16185.71); h_SL1L261->SetBinContent(24,15367.86); h_SL1L261->SetBinContent(25,15832.14); h_SL1L261->SetBinContent(26,15503.57); h_SL1L261->SetBinContent(27,14746.43); h_SL1L261->SetBinContent(28,15671.43); h_SL1L261->SetBinContent(29,16135.71); h_SL1L261->SetBinContent(30,16535.71); h_SL1L261->SetBinContent(31,16310.71); h_SL1L261->SetBinContent(32,15603.57); h_SL1L261->SetBinContent(33,16464.29); h_SL1L261->SetBinContent(34,16582.14); h_SL1L261->SetBinContent(35,16217.86); h_SL1L261->SetBinContent(36,15721.43); h_SL1L261->SetBinContent(37,16164.29); h_SL1L261->SetBinContent(38,16350); h_SL1L261->SetBinContent(39,16228.57); h_SL1L261->SetBinContent(40,15628.57); h_SL1L261->SetBinContent(41,15800); h_SL1L261->SetBinContent(42,15478.57); h_SL1L261->SetBinContent(43,15221.43); h_SL1L261->SetBinContent(44,15096.43); h_SL1L261->SetBinContent(45,15364.29); h_SL1L261->SetBinContent(46,15560.71); h_SL1L261->SetBinContent(47,14200); h_SL1L261->SetBinContent(48,13742.86); h_SL1L261->SetBinContent(49,13939.29); h_SL1L261->SetBinContent(50,13810.71); h_SL1L261->SetBinContent(51,12921.43); h_SL1L261->SetBinContent(52,12828.57); h_SL1L261->SetBinContent(53,13521.43); h_SL1L261->SetBinContent(54,12903.57); h_SL1L261->SetBinContent(55,12350); h_SL1L261->SetBinContent(56,11946.43); h_SL1L261->SetBinContent(57,11275); h_SL1L261->SetBinContent(58,11225); h_SL1L261->SetBinContent(59,10185.71); h_SL1L261->SetMaximum(19188.57); 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,11878.57); h_SL1L362->SetBinContent(2,12632.14); h_SL1L362->SetBinContent(3,14432.14); h_SL1L362->SetBinContent(4,14964.29); h_SL1L362->SetBinContent(5,15225); h_SL1L362->SetBinContent(6,15457.14); h_SL1L362->SetBinContent(7,15414.29); h_SL1L362->SetBinContent(8,15689.29); h_SL1L362->SetBinContent(9,15832.14); h_SL1L362->SetBinContent(10,15350); h_SL1L362->SetBinContent(11,15453.57); h_SL1L362->SetBinContent(12,15817.86); h_SL1L362->SetBinContent(13,16135.71); h_SL1L362->SetBinContent(14,15614.29); h_SL1L362->SetBinContent(15,14807.14); h_SL1L362->SetBinContent(16,14675); h_SL1L362->SetBinContent(17,15178.57); h_SL1L362->SetBinContent(18,15439.29); h_SL1L362->SetBinContent(19,15096.43); h_SL1L362->SetBinContent(20,15364.29); h_SL1L362->SetBinContent(21,16396.43); h_SL1L362->SetBinContent(22,15753.57); h_SL1L362->SetBinContent(23,15410.71); h_SL1L362->SetBinContent(24,16250); h_SL1L362->SetBinContent(25,15910.71); h_SL1L362->SetBinContent(26,15385.71); h_SL1L362->SetBinContent(27,14800); h_SL1L362->SetBinContent(28,15528.57); h_SL1L362->SetBinContent(29,16250); h_SL1L362->SetBinContent(30,15564.29); h_SL1L362->SetBinContent(31,15778.57); h_SL1L362->SetBinContent(32,16139.29); h_SL1L362->SetBinContent(33,16685.71); h_SL1L362->SetBinContent(34,16250); h_SL1L362->SetBinContent(35,15917.86); h_SL1L362->SetBinContent(36,15921.43); h_SL1L362->SetBinContent(37,16167.86); h_SL1L362->SetBinContent(38,15846.43); h_SL1L362->SetBinContent(39,15625); h_SL1L362->SetBinContent(40,15878.57); h_SL1L362->SetBinContent(41,15482.14); h_SL1L362->SetBinContent(42,15592.86); h_SL1L362->SetBinContent(43,15050); h_SL1L362->SetBinContent(44,14960.71); h_SL1L362->SetBinContent(45,15514.29); h_SL1L362->SetBinContent(46,14732.14); h_SL1L362->SetBinContent(47,13503.57); h_SL1L362->SetBinContent(48,13785.71); h_SL1L362->SetBinContent(49,13750); h_SL1L362->SetBinContent(50,13003.57); h_SL1L362->SetBinContent(51,12121.43); h_SL1L362->SetBinContent(52,12803.57); h_SL1L362->SetBinContent(53,13385.71); h_SL1L362->SetBinContent(54,12221.43); h_SL1L362->SetBinContent(55,11792.86); h_SL1L362->SetBinContent(56,11460.71); h_SL1L362->SetBinContent(57,11239.29); h_SL1L362->SetBinContent(58,10450); h_SL1L362->SetBinContent(59,9207.143); h_SL1L362->SetMaximum(19188.57); 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,10246.43); h_SL1L463->SetBinContent(3,11100); h_SL1L463->SetBinContent(4,11428.57); h_SL1L463->SetBinContent(5,11000); h_SL1L463->SetBinContent(6,11632.14); h_SL1L463->SetBinContent(7,11371.43); h_SL1L463->SetBinContent(8,11542.86); h_SL1L463->SetBinContent(9,12139.29); h_SL1L463->SetBinContent(10,12207.14); h_SL1L463->SetBinContent(11,12450); h_SL1L463->SetBinContent(12,13278.57); h_SL1L463->SetBinContent(13,13489.29); h_SL1L463->SetBinContent(14,13678.57); h_SL1L463->SetBinContent(15,12285.71); h_SL1L463->SetBinContent(16,12146.43); h_SL1L463->SetBinContent(17,11582.14); h_SL1L463->SetBinContent(18,12046.43); h_SL1L463->SetBinContent(19,11935.71); h_SL1L463->SetBinContent(20,11885.71); h_SL1L463->SetBinContent(21,12325); h_SL1L463->SetBinContent(22,12235.71); h_SL1L463->SetBinContent(23,11728.57); h_SL1L463->SetBinContent(24,12157.14); h_SL1L463->SetBinContent(25,11450); h_SL1L463->SetBinContent(26,11267.86); h_SL1L463->SetBinContent(27,10942.86); h_SL1L463->SetBinContent(28,10614.29); h_SL1L463->SetBinContent(29,11353.57); h_SL1L463->SetBinContent(30,11207.14); h_SL1L463->SetBinContent(31,11432.14); h_SL1L463->SetBinContent(32,10417.86); h_SL1L463->SetBinContent(33,10357.14); h_SL1L463->SetBinContent(34,10360.71); h_SL1L463->SetBinContent(35,10435.71); h_SL1L463->SetBinContent(36,9942.857); h_SL1L463->SetBinContent(37,9092.857); h_SL1L463->SetBinContent(38,9707.143); h_SL1L463->SetBinContent(39,10132.14); h_SL1L463->SetBinContent(40,9089.285); h_SL1L463->SetBinContent(41,9075); h_SL1L463->SetBinContent(42,9450); h_SL1L463->SetBinContent(43,9571.429); h_SL1L463->SetBinContent(44,9400); h_SL1L463->SetBinContent(45,8896.429); h_SL1L463->SetBinContent(46,9257.143); h_SL1L463->SetBinContent(47,8496.429); h_SL1L463->SetBinContent(48,8885.714); h_SL1L463->SetBinContent(49,8467.857); h_SL1L463->SetBinContent(50,8400); h_SL1L463->SetBinContent(51,8250); h_SL1L463->SetBinContent(52,8357.143); h_SL1L463->SetBinContent(53,8403.571); h_SL1L463->SetBinContent(54,8271.429); h_SL1L463->SetBinContent(56,8028.571); h_SL1L463->SetBinContent(57,8592.857); h_SL1L463->SetBinContent(58,9128.571); h_SL1L463->SetBinContent(59,8392.857); h_SL1L463->SetMaximum(19188.57); 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 6390"); pt->Draw(); c->Modified(); c->cd(); c->SetSelected(c); }