void RatesPerCell_Removing_noisy_cells_run_7695_SL1() { //=========Macro generated from canvas: c/c //========= (Fri Jan 18 19:19:45 2019) by ROOT version6.02/13 TCanvas *c = new TCanvas("c", "c",0,0,800,600); gStyle->SetOptStat(0); c->Range(-7.500001,-7214.669,67.5,64932.02); c->SetFillColor(0); c->SetBorderMode(0); c->SetBorderSize(2); c->SetFrameBorderMode(0); c->SetFrameBorderMode(0); TH1D *h_SL1L160 = new TH1D("h_SL1L160","SL1, run 7695",60,0,60); h_SL1L160->SetBinContent(1,19914.29); h_SL1L160->SetBinContent(2,19707.14); h_SL1L160->SetBinContent(3,19471.43); h_SL1L160->SetBinContent(4,17571.43); h_SL1L160->SetBinContent(5,15807.14); h_SL1L160->SetBinContent(6,14478.57); h_SL1L160->SetBinContent(7,14742.86); h_SL1L160->SetBinContent(8,16114.29); h_SL1L160->SetBinContent(9,15207.14); h_SL1L160->SetBinContent(10,15728.57); h_SL1L160->SetBinContent(11,16257.14); h_SL1L160->SetBinContent(12,14621.43); h_SL1L160->SetBinContent(13,15078.57); h_SL1L160->SetBinContent(14,13935.71); h_SL1L160->SetBinContent(15,13442.86); h_SL1L160->SetBinContent(16,12907.14); h_SL1L160->SetBinContent(17,12000); h_SL1L160->SetBinContent(18,12164.29); h_SL1L160->SetBinContent(19,12150); h_SL1L160->SetBinContent(20,13392.86); h_SL1L160->SetBinContent(21,12328.57); h_SL1L160->SetBinContent(22,11664.29); h_SL1L160->SetBinContent(23,10492.86); h_SL1L160->SetBinContent(24,9821.429); h_SL1L160->SetBinContent(25,8807.143); h_SL1L160->SetBinContent(26,9857.143); h_SL1L160->SetBinContent(27,9571.429); h_SL1L160->SetBinContent(28,9550); h_SL1L160->SetBinContent(29,11235.71); h_SL1L160->SetBinContent(30,8957.143); h_SL1L160->SetBinContent(31,8907.143); h_SL1L160->SetBinContent(32,8392.857); h_SL1L160->SetBinContent(33,34642.86); h_SL1L160->SetBinContent(34,35707.14); h_SL1L160->SetBinContent(35,34528.57); h_SL1L160->SetBinContent(36,35621.43); h_SL1L160->SetBinContent(37,36657.14); h_SL1L160->SetBinContent(38,37800); h_SL1L160->SetBinContent(39,35157.14); h_SL1L160->SetBinContent(41,8185.714); h_SL1L160->SetBinContent(42,7985.714); h_SL1L160->SetBinContent(43,7414.286); h_SL1L160->SetBinContent(44,7357.143); h_SL1L160->SetBinContent(45,7450); h_SL1L160->SetBinContent(46,6885.714); h_SL1L160->SetBinContent(47,7342.857); h_SL1L160->SetBinContent(48,7100); h_SL1L160->SetBinContent(49,7778.571); h_SL1L160->SetBinContent(50,7500); h_SL1L160->SetBinContent(51,8685.714); h_SL1L160->SetBinContent(52,8757.143); h_SL1L160->SetBinContent(53,8300); h_SL1L160->SetBinContent(54,8707.143); h_SL1L160->SetBinContent(55,8471.429); h_SL1L160->SetBinContent(56,10607.14); h_SL1L160->SetMaximum(57717.35); 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,33014.29); h_SL1L261->SetBinContent(2,34850); h_SL1L261->SetBinContent(3,35171.43); h_SL1L261->SetBinContent(4,35614.29); h_SL1L261->SetBinContent(5,36171.43); h_SL1L261->SetBinContent(6,38142.86); h_SL1L261->SetBinContent(7,36571.43); h_SL1L261->SetBinContent(8,37978.57); h_SL1L261->SetBinContent(9,38228.57); h_SL1L261->SetBinContent(10,38750); h_SL1L261->SetBinContent(11,39114.29); h_SL1L261->SetBinContent(12,39100); h_SL1L261->SetBinContent(13,39964.29); h_SL1L261->SetBinContent(14,38521.43); h_SL1L261->SetBinContent(15,39021.43); h_SL1L261->SetBinContent(16,37735.71); h_SL1L261->SetBinContent(17,39342.86); h_SL1L261->SetBinContent(18,42750); h_SL1L261->SetBinContent(19,43642.86); h_SL1L261->SetBinContent(20,42728.57); h_SL1L261->SetBinContent(21,42700); h_SL1L261->SetBinContent(22,42021.43); h_SL1L261->SetBinContent(23,39921.43); h_SL1L261->SetBinContent(24,39064.29); h_SL1L261->SetBinContent(25,40121.43); h_SL1L261->SetBinContent(26,37114.29); h_SL1L261->SetBinContent(27,36928.57); h_SL1L261->SetBinContent(28,38428.57); h_SL1L261->SetBinContent(29,41878.57); h_SL1L261->SetBinContent(30,41007.14); h_SL1L261->SetBinContent(31,41592.86); h_SL1L261->SetBinContent(32,39707.14); h_SL1L261->SetBinContent(33,38614.29); h_SL1L261->SetBinContent(34,39357.14); h_SL1L261->SetBinContent(35,37942.86); h_SL1L261->SetBinContent(36,38614.29); h_SL1L261->SetBinContent(37,39935.71); h_SL1L261->SetBinContent(38,40535.71); h_SL1L261->SetBinContent(39,40750); h_SL1L261->SetBinContent(40,40050); h_SL1L261->SetBinContent(41,39735.71); h_SL1L261->SetBinContent(42,41728.57); h_SL1L261->SetBinContent(43,39785.71); h_SL1L261->SetBinContent(44,38100); h_SL1L261->SetBinContent(45,39192.86); h_SL1L261->SetBinContent(46,39335.71); h_SL1L261->SetBinContent(47,39364.29); h_SL1L261->SetBinContent(48,39300); h_SL1L261->SetBinContent(49,39464.29); h_SL1L261->SetBinContent(50,40671.43); h_SL1L261->SetBinContent(51,39864.29); h_SL1L261->SetBinContent(52,38692.86); h_SL1L261->SetBinContent(53,40900); h_SL1L261->SetBinContent(54,39507.14); h_SL1L261->SetBinContent(55,39078.57); h_SL1L261->SetBinContent(56,38100); h_SL1L261->SetMaximum(50189.28); 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,33050); h_SL1L362->SetBinContent(2,33542.86); h_SL1L362->SetBinContent(3,34385.71); h_SL1L362->SetBinContent(4,34778.57); h_SL1L362->SetBinContent(5,36264.29); h_SL1L362->SetBinContent(6,36385.71); h_SL1L362->SetBinContent(7,36992.86); h_SL1L362->SetBinContent(8,37464.29); h_SL1L362->SetBinContent(9,36628.57); h_SL1L362->SetBinContent(10,37828.57); h_SL1L362->SetBinContent(11,39457.14); h_SL1L362->SetBinContent(12,39878.57); h_SL1L362->SetBinContent(13,39228.57); h_SL1L362->SetBinContent(14,37835.71); h_SL1L362->SetBinContent(15,37671.43); h_SL1L362->SetBinContent(16,38221.43); h_SL1L362->SetBinContent(17,39864.29); h_SL1L362->SetBinContent(18,42071.43); h_SL1L362->SetBinContent(19,42550); h_SL1L362->SetBinContent(20,42042.86); h_SL1L362->SetBinContent(21,41471.43); h_SL1L362->SetBinContent(22,39100); h_SL1L362->SetBinContent(23,38542.86); h_SL1L362->SetBinContent(24,39707.14); h_SL1L362->SetBinContent(25,37635.71); h_SL1L362->SetBinContent(26,35135.71); h_SL1L362->SetBinContent(27,37264.29); h_SL1L362->SetBinContent(28,40035.71); h_SL1L362->SetBinContent(29,41421.43); h_SL1L362->SetBinContent(30,39921.43); h_SL1L362->SetBinContent(31,40228.57); h_SL1L362->SetBinContent(32,37800); h_SL1L362->SetBinContent(33,38257.14); h_SL1L362->SetBinContent(34,38207.14); h_SL1L362->SetBinContent(35,36842.86); h_SL1L362->SetBinContent(36,37807.14); h_SL1L362->SetBinContent(37,40314.29); h_SL1L362->SetBinContent(38,39935.71); h_SL1L362->SetBinContent(39,38957.14); h_SL1L362->SetBinContent(40,38135.71); h_SL1L362->SetBinContent(41,39600); h_SL1L362->SetBinContent(42,39471.43); h_SL1L362->SetBinContent(43,37664.29); h_SL1L362->SetBinContent(44,37521.43); h_SL1L362->SetBinContent(45,38550); h_SL1L362->SetBinContent(46,38785.71); h_SL1L362->SetBinContent(47,39121.43); h_SL1L362->SetBinContent(48,39100); h_SL1L362->SetBinContent(49,39021.43); h_SL1L362->SetBinContent(50,39128.57); h_SL1L362->SetBinContent(51,37964.29); h_SL1L362->SetBinContent(52,38821.43); h_SL1L362->SetBinContent(53,39257.14); h_SL1L362->SetBinContent(54,37842.86); h_SL1L362->SetBinContent(55,37892.86); h_SL1L362->SetBinContent(56,37542.86); h_SL1L362->SetMaximum(50189.28); 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,16271.43); h_SL1L463->SetBinContent(3,13850); h_SL1L463->SetBinContent(4,13935.71); h_SL1L463->SetBinContent(5,11935.71); h_SL1L463->SetBinContent(6,12700); h_SL1L463->SetBinContent(7,12321.43); h_SL1L463->SetBinContent(8,13064.29); h_SL1L463->SetBinContent(9,14671.43); h_SL1L463->SetBinContent(10,15728.57); h_SL1L463->SetBinContent(11,17714.29); h_SL1L463->SetBinContent(12,19492.86); h_SL1L463->SetBinContent(13,18607.14); h_SL1L463->SetBinContent(14,19085.71); h_SL1L463->SetBinContent(15,17642.86); h_SL1L463->SetBinContent(16,17350); h_SL1L463->SetBinContent(17,15892.86); h_SL1L463->SetBinContent(18,15942.86); h_SL1L463->SetBinContent(19,14900); h_SL1L463->SetBinContent(20,14828.57); h_SL1L463->SetBinContent(21,14128.57); h_SL1L463->SetBinContent(22,14057.14); h_SL1L463->SetBinContent(23,13107.14); h_SL1L463->SetBinContent(24,13121.43); h_SL1L463->SetBinContent(25,11071.43); h_SL1L463->SetBinContent(26,11607.14); h_SL1L463->SetBinContent(27,11364.29); h_SL1L463->SetBinContent(28,11421.43); h_SL1L463->SetBinContent(29,10728.57); h_SL1L463->SetBinContent(30,10450); h_SL1L463->SetBinContent(31,10292.86); h_SL1L463->SetBinContent(32,9321.429); h_SL1L463->SetBinContent(33,9278.571); h_SL1L463->SetBinContent(34,10000); h_SL1L463->SetBinContent(35,9892.857); h_SL1L463->SetBinContent(36,9307.143); h_SL1L463->SetBinContent(37,657.1428); h_SL1L463->SetBinContent(38,21.42857); h_SL1L463->SetBinContent(41,8014.286); h_SL1L463->SetBinContent(42,7592.857); h_SL1L463->SetBinContent(43,8400); h_SL1L463->SetBinContent(44,7700); h_SL1L463->SetBinContent(45,7242.857); h_SL1L463->SetBinContent(46,7750); h_SL1L463->SetBinContent(47,6850); h_SL1L463->SetBinContent(48,7142.857); h_SL1L463->SetBinContent(49,7500); h_SL1L463->SetBinContent(50,7178.571); h_SL1L463->SetBinContent(51,8164.286); h_SL1L463->SetBinContent(52,8042.857); h_SL1L463->SetBinContent(53,8250); h_SL1L463->SetBinContent(54,7421.429); h_SL1L463->SetBinContent(56,8457.143); h_SL1L463->SetMaximum(50189.28); 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 7695"); pt->Draw(); c->Modified(); c->cd(); c->SetSelected(c); }