void RatesPerCell_Removing_noisy_cells_run_7360_SL1() { //=========Macro generated from canvas: c/c //========= (Fri Jan 18 19:12:14 2019) by ROOT version6.02/13 TCanvas *c = new TCanvas("c", "c",0,0,800,600); gStyle->SetOptStat(0); c->Range(-7.500001,-9152.276,67.5,82370.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 7360",60,0,60); h_SL1L160->SetBinContent(1,34450); h_SL1L160->SetBinContent(2,35828.57); h_SL1L160->SetBinContent(3,35850); h_SL1L160->SetBinContent(4,35421.43); h_SL1L160->SetBinContent(5,31992.86); h_SL1L160->SetBinContent(6,31857.14); h_SL1L160->SetBinContent(7,31171.43); h_SL1L160->SetBinContent(8,32928.57); h_SL1L160->SetBinContent(9,31492.86); h_SL1L160->SetBinContent(10,31857.14); h_SL1L160->SetBinContent(11,31542.86); h_SL1L160->SetBinContent(12,30364.29); h_SL1L160->SetBinContent(13,30100); h_SL1L160->SetBinContent(14,45085.71); h_SL1L160->SetBinContent(15,42664.29); h_SL1L160->SetBinContent(16,26771.43); h_SL1L160->SetBinContent(17,26828.57); h_SL1L160->SetBinContent(18,28028.57); h_SL1L160->SetBinContent(19,28578.57); h_SL1L160->SetBinContent(20,27607.14); h_SL1L160->SetBinContent(21,28592.86); h_SL1L160->SetBinContent(22,28121.43); h_SL1L160->SetBinContent(23,27721.43); h_SL1L160->SetBinContent(24,24957.14); h_SL1L160->SetBinContent(25,24650); h_SL1L160->SetBinContent(26,23092.86); h_SL1L160->SetBinContent(27,22364.29); h_SL1L160->SetBinContent(28,23085.71); h_SL1L160->SetBinContent(29,23350); h_SL1L160->SetBinContent(30,22564.29); h_SL1L160->SetBinContent(31,21742.86); h_SL1L160->SetBinContent(32,21792.86); h_SL1L160->SetBinContent(33,37721.43); h_SL1L160->SetBinContent(34,37335.71); h_SL1L160->SetBinContent(35,37150); h_SL1L160->SetBinContent(36,37750); h_SL1L160->SetBinContent(37,39050); h_SL1L160->SetBinContent(38,38878.57); h_SL1L160->SetBinContent(39,39171.43); h_SL1L160->SetBinContent(41,20842.86); h_SL1L160->SetBinContent(42,21185.71); h_SL1L160->SetBinContent(43,21242.86); h_SL1L160->SetBinContent(44,20757.14); h_SL1L160->SetBinContent(45,20885.71); h_SL1L160->SetBinContent(46,20492.86); h_SL1L160->SetBinContent(47,20450); h_SL1L160->SetBinContent(48,20100); h_SL1L160->SetBinContent(49,21192.86); h_SL1L160->SetBinContent(50,22007.14); h_SL1L160->SetBinContent(51,22350); h_SL1L160->SetBinContent(52,22507.14); h_SL1L160->SetBinContent(53,23392.86); h_SL1L160->SetBinContent(54,23842.86); h_SL1L160->SetBinContent(55,25071.43); h_SL1L160->SetBinContent(56,28557.14); h_SL1L160->SetMaximum(73218.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,35535.71); h_SL1L261->SetBinContent(2,36392.86); h_SL1L261->SetBinContent(3,38714.29); h_SL1L261->SetBinContent(4,37914.29); h_SL1L261->SetBinContent(5,38042.86); h_SL1L261->SetBinContent(6,39821.43); h_SL1L261->SetBinContent(7,38985.71); h_SL1L261->SetBinContent(8,38807.14); h_SL1L261->SetBinContent(9,39550); h_SL1L261->SetBinContent(10,37414.29); h_SL1L261->SetBinContent(11,37928.57); h_SL1L261->SetBinContent(12,36685.71); h_SL1L261->SetBinContent(13,36071.43); h_SL1L261->SetBinContent(14,36850); h_SL1L261->SetBinContent(15,36714.29); h_SL1L261->SetBinContent(16,35500); h_SL1L261->SetBinContent(17,35821.43); h_SL1L261->SetBinContent(18,36492.86); h_SL1L261->SetBinContent(19,38928.57); h_SL1L261->SetBinContent(20,38614.29); h_SL1L261->SetBinContent(21,40200); h_SL1L261->SetBinContent(22,39528.57); h_SL1L261->SetBinContent(23,38464.29); h_SL1L261->SetBinContent(24,38642.86); h_SL1L261->SetBinContent(25,39021.43); h_SL1L261->SetBinContent(26,36042.86); h_SL1L261->SetBinContent(27,34785.71); h_SL1L261->SetBinContent(28,36450); h_SL1L261->SetBinContent(29,37857.14); h_SL1L261->SetBinContent(30,36892.86); h_SL1L261->SetBinContent(31,36857.14); h_SL1L261->SetBinContent(32,36178.57); h_SL1L261->SetBinContent(33,37192.86); h_SL1L261->SetBinContent(34,37164.29); h_SL1L261->SetBinContent(35,38250); h_SL1L261->SetBinContent(36,37321.43); h_SL1L261->SetBinContent(37,37200); h_SL1L261->SetBinContent(38,38171.43); h_SL1L261->SetBinContent(39,38271.43); h_SL1L261->SetBinContent(40,37585.71); h_SL1L261->SetBinContent(41,39100); h_SL1L261->SetBinContent(42,40250); h_SL1L261->SetBinContent(43,39335.71); h_SL1L261->SetBinContent(44,39800); h_SL1L261->SetBinContent(45,39992.86); h_SL1L261->SetBinContent(46,41214.29); h_SL1L261->SetBinContent(47,43721.43); h_SL1L261->SetBinContent(48,43114.29); h_SL1L261->SetBinContent(49,43600); h_SL1L261->SetBinContent(50,45164.29); h_SL1L261->SetBinContent(51,45950); h_SL1L261->SetBinContent(52,45700); h_SL1L261->SetBinContent(53,48335.71); h_SL1L261->SetBinContent(54,48607.14); h_SL1L261->SetBinContent(55,50207.14); h_SL1L261->SetBinContent(56,51485.71); h_SL1L261->SetMaximum(63668.93); 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,34950); h_SL1L362->SetBinContent(2,36607.14); h_SL1L362->SetBinContent(3,37157.14); h_SL1L362->SetBinContent(4,38485.71); h_SL1L362->SetBinContent(5,38257.14); h_SL1L362->SetBinContent(6,37507.14); h_SL1L362->SetBinContent(7,37521.43); h_SL1L362->SetBinContent(8,37314.29); h_SL1L362->SetBinContent(9,37864.29); h_SL1L362->SetBinContent(10,37571.43); h_SL1L362->SetBinContent(11,35885.71); h_SL1L362->SetBinContent(12,36478.57); h_SL1L362->SetBinContent(13,36907.14); h_SL1L362->SetBinContent(14,35571.43); h_SL1L362->SetBinContent(15,35007.14); h_SL1L362->SetBinContent(16,34400); h_SL1L362->SetBinContent(17,34664.29); h_SL1L362->SetBinContent(18,36885.71); h_SL1L362->SetBinContent(19,36957.14); h_SL1L362->SetBinContent(20,39342.86); h_SL1L362->SetBinContent(21,39307.14); h_SL1L362->SetBinContent(22,38878.57); h_SL1L362->SetBinContent(23,38471.43); h_SL1L362->SetBinContent(24,38271.43); h_SL1L362->SetBinContent(25,36092.86); h_SL1L362->SetBinContent(26,33950); h_SL1L362->SetBinContent(27,34414.29); h_SL1L362->SetBinContent(28,35950); h_SL1L362->SetBinContent(29,36285.71); h_SL1L362->SetBinContent(30,36442.86); h_SL1L362->SetBinContent(31,36271.43); h_SL1L362->SetBinContent(32,35921.43); h_SL1L362->SetBinContent(33,36200); h_SL1L362->SetBinContent(34,37650); h_SL1L362->SetBinContent(35,36450); h_SL1L362->SetBinContent(36,37192.86); h_SL1L362->SetBinContent(37,38507.14); h_SL1L362->SetBinContent(38,37678.57); h_SL1L362->SetBinContent(39,37550); h_SL1L362->SetBinContent(40,37700); h_SL1L362->SetBinContent(41,38964.29); h_SL1L362->SetBinContent(42,39771.43); h_SL1L362->SetBinContent(43,38357.14); h_SL1L362->SetBinContent(44,38550); h_SL1L362->SetBinContent(45,40192.86); h_SL1L362->SetBinContent(46,42114.29); h_SL1L362->SetBinContent(47,43371.43); h_SL1L362->SetBinContent(48,42957.14); h_SL1L362->SetBinContent(49,44100); h_SL1L362->SetBinContent(50,43500); h_SL1L362->SetBinContent(51,45478.57); h_SL1L362->SetBinContent(52,47371.43); h_SL1L362->SetBinContent(53,47500); h_SL1L362->SetBinContent(54,49114.29); h_SL1L362->SetBinContent(55,49778.57); h_SL1L362->SetBinContent(56,50278.57); h_SL1L362->SetMaximum(63668.93); 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,31357.14); h_SL1L463->SetBinContent(3,30985.71); h_SL1L463->SetBinContent(4,29228.57); h_SL1L463->SetBinContent(5,27064.29); h_SL1L463->SetBinContent(6,26935.71); h_SL1L463->SetBinContent(7,26850); h_SL1L463->SetBinContent(8,28292.86); h_SL1L463->SetBinContent(9,29971.43); h_SL1L463->SetBinContent(10,30000); h_SL1L463->SetBinContent(11,31114.29); h_SL1L463->SetBinContent(12,30921.43); h_SL1L463->SetBinContent(13,32357.14); h_SL1L463->SetBinContent(14,31514.29); h_SL1L463->SetBinContent(15,55364.29); h_SL1L463->SetBinContent(16,34914.29); h_SL1L463->SetBinContent(17,28714.29); h_SL1L463->SetBinContent(18,28864.29); h_SL1L463->SetBinContent(19,29250); h_SL1L463->SetBinContent(20,28435.71); h_SL1L463->SetBinContent(21,29257.14); h_SL1L463->SetBinContent(22,29385.71); h_SL1L463->SetBinContent(23,27550); h_SL1L463->SetBinContent(24,28471.43); h_SL1L463->SetBinContent(25,26035.71); h_SL1L463->SetBinContent(26,25250); h_SL1L463->SetBinContent(27,24578.57); h_SL1L463->SetBinContent(28,24014.29); h_SL1L463->SetBinContent(29,24050); h_SL1L463->SetBinContent(30,23992.86); h_SL1L463->SetBinContent(31,23550); h_SL1L463->SetBinContent(32,23178.57); h_SL1L463->SetBinContent(33,21914.29); h_SL1L463->SetBinContent(34,23835.71); h_SL1L463->SetBinContent(35,22971.43); h_SL1L463->SetBinContent(36,22714.29); h_SL1L463->SetBinContent(37,257.1429); h_SL1L463->SetBinContent(41,20621.43); h_SL1L463->SetBinContent(42,21900); h_SL1L463->SetBinContent(43,21457.14); h_SL1L463->SetBinContent(44,21078.57); h_SL1L463->SetBinContent(45,20635.71); h_SL1L463->SetBinContent(46,21407.14); h_SL1L463->SetBinContent(47,20085.71); h_SL1L463->SetBinContent(48,20471.43); h_SL1L463->SetBinContent(49,20057.14); h_SL1L463->SetBinContent(50,20271.43); h_SL1L463->SetBinContent(51,21050); h_SL1L463->SetBinContent(52,21292.86); h_SL1L463->SetBinContent(53,21350); h_SL1L463->SetBinContent(54,21121.43); h_SL1L463->SetBinContent(55,14.28571); h_SL1L463->SetBinContent(56,24871.43); h_SL1L463->SetMaximum(63668.93); 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 7360"); pt->Draw(); c->Modified(); c->cd(); c->SetSelected(c); }