void RatesPerCell_Removing_noisy_cells_run_7628_SL1() { //=========Macro generated from canvas: c/c //========= (Mon Jan 21 13:19:26 2019) by ROOT version6.02/13 TCanvas *c = new TCanvas("c", "c",0,0,800,600); gStyle->SetOptStat(0); c->Range(-7.500001,-8097.869,67.5,72880.82); c->SetFillColor(0); c->SetBorderMode(0); c->SetBorderSize(2); c->SetFrameBorderMode(0); c->SetFrameBorderMode(0); TH1D *h_SL1L160 = new TH1D("h_SL1L160","SL1, run 7628",60,0,60); h_SL1L160->SetBinContent(1,11114.29); h_SL1L160->SetBinContent(2,10921.43); h_SL1L160->SetBinContent(3,10500); h_SL1L160->SetBinContent(4,9428.571); h_SL1L160->SetBinContent(5,7750); h_SL1L160->SetBinContent(6,8550); h_SL1L160->SetBinContent(7,8428.571); h_SL1L160->SetBinContent(8,9107.143); h_SL1L160->SetBinContent(9,8092.857); h_SL1L160->SetBinContent(10,8057.143); h_SL1L160->SetBinContent(11,8292.857); h_SL1L160->SetBinContent(12,8450); h_SL1L160->SetBinContent(13,13414.29); h_SL1L160->SetBinContent(14,14021.43); h_SL1L160->SetBinContent(15,13171.43); h_SL1L160->SetBinContent(16,7107.143); h_SL1L160->SetBinContent(17,6350); h_SL1L160->SetBinContent(18,6907.143); h_SL1L160->SetBinContent(19,7035.714); h_SL1L160->SetBinContent(20,6807.143); h_SL1L160->SetBinContent(21,6592.857); h_SL1L160->SetBinContent(22,6378.571); h_SL1L160->SetBinContent(23,5978.571); h_SL1L160->SetBinContent(24,5600); h_SL1L160->SetBinContent(25,4921.429); h_SL1L160->SetBinContent(26,5857.143); h_SL1L160->SetBinContent(27,5207.143); h_SL1L160->SetBinContent(28,5450); h_SL1L160->SetBinContent(29,6035.714); h_SL1L160->SetBinContent(30,5700); h_SL1L160->SetBinContent(31,5114.286); h_SL1L160->SetBinContent(32,5178.571); h_SL1L160->SetBinContent(33,20757.14); h_SL1L160->SetBinContent(34,23350); h_SL1L160->SetBinContent(35,23121.43); h_SL1L160->SetBinContent(36,22957.14); h_SL1L160->SetBinContent(37,23528.57); h_SL1L160->SetBinContent(38,23250); h_SL1L160->SetBinContent(39,22885.71); h_SL1L160->SetBinContent(41,5035.714); h_SL1L160->SetBinContent(42,5035.714); h_SL1L160->SetBinContent(43,5364.286); h_SL1L160->SetBinContent(44,5292.857); h_SL1L160->SetBinContent(45,4385.714); h_SL1L160->SetBinContent(46,4085.714); h_SL1L160->SetBinContent(47,4214.286); h_SL1L160->SetBinContent(48,4221.429); h_SL1L160->SetBinContent(49,4800); h_SL1L160->SetBinContent(50,4964.286); h_SL1L160->SetBinContent(51,4607.143); h_SL1L160->SetBinContent(52,4642.857); h_SL1L160->SetBinContent(53,4892.857); h_SL1L160->SetBinContent(54,4807.143); h_SL1L160->SetBinContent(55,5171.429); h_SL1L160->SetBinContent(56,5535.714); h_SL1L160->SetMaximum(64782.95); 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,37021.43); h_SL1L261->SetBinContent(2,38828.57); h_SL1L261->SetBinContent(3,38771.43); h_SL1L261->SetBinContent(4,40971.43); h_SL1L261->SetBinContent(5,40700); h_SL1L261->SetBinContent(6,41392.86); h_SL1L261->SetBinContent(7,42542.86); h_SL1L261->SetBinContent(8,42978.57); h_SL1L261->SetBinContent(9,43907.14); h_SL1L261->SetBinContent(10,42000); h_SL1L261->SetBinContent(11,43628.57); h_SL1L261->SetBinContent(12,44100); h_SL1L261->SetBinContent(13,43621.43); h_SL1L261->SetBinContent(14,44871.43); h_SL1L261->SetBinContent(15,45550); h_SL1L261->SetBinContent(16,42707.14); h_SL1L261->SetBinContent(17,44028.57); h_SL1L261->SetBinContent(18,46485.71); h_SL1L261->SetBinContent(19,47185.71); h_SL1L261->SetBinContent(20,46892.86); h_SL1L261->SetBinContent(21,47264.29); h_SL1L261->SetBinContent(22,46407.14); h_SL1L261->SetBinContent(23,43728.57); h_SL1L261->SetBinContent(24,45142.86); h_SL1L261->SetBinContent(25,44242.86); h_SL1L261->SetBinContent(26,41471.43); h_SL1L261->SetBinContent(27,40907.14); h_SL1L261->SetBinContent(28,44321.43); h_SL1L261->SetBinContent(29,45342.86); h_SL1L261->SetBinContent(30,46100); h_SL1L261->SetBinContent(31,44700); h_SL1L261->SetBinContent(32,44564.29); h_SL1L261->SetBinContent(33,42821.43); h_SL1L261->SetBinContent(34,43650); h_SL1L261->SetBinContent(35,42807.14); h_SL1L261->SetBinContent(36,43514.29); h_SL1L261->SetBinContent(37,45785.71); h_SL1L261->SetBinContent(38,46128.57); h_SL1L261->SetBinContent(39,46028.57); h_SL1L261->SetBinContent(40,43871.43); h_SL1L261->SetBinContent(41,45271.43); h_SL1L261->SetBinContent(42,45571.43); h_SL1L261->SetBinContent(43,44878.57); h_SL1L261->SetBinContent(44,42842.86); h_SL1L261->SetBinContent(45,43292.86); h_SL1L261->SetBinContent(46,43928.57); h_SL1L261->SetBinContent(47,44314.29); h_SL1L261->SetBinContent(48,43957.14); h_SL1L261->SetBinContent(49,48985.71); h_SL1L261->SetBinContent(50,45300); h_SL1L261->SetBinContent(51,43842.86); h_SL1L261->SetBinContent(52,43557.14); h_SL1L261->SetBinContent(53,44592.86); h_SL1L261->SetBinContent(54,44264.29); h_SL1L261->SetBinContent(55,43700); h_SL1L261->SetBinContent(56,42471.43); h_SL1L261->SetMaximum(56333.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,36071.43); h_SL1L362->SetBinContent(2,37657.14); h_SL1L362->SetBinContent(3,38735.71); h_SL1L362->SetBinContent(4,39378.57); h_SL1L362->SetBinContent(5,39657.14); h_SL1L362->SetBinContent(6,40821.43); h_SL1L362->SetBinContent(7,41450); h_SL1L362->SetBinContent(8,43471.43); h_SL1L362->SetBinContent(9,42071.43); h_SL1L362->SetBinContent(10,41785.71); h_SL1L362->SetBinContent(11,42485.71); h_SL1L362->SetBinContent(12,42792.86); h_SL1L362->SetBinContent(13,42485.71); h_SL1L362->SetBinContent(14,43878.57); h_SL1L362->SetBinContent(15,45464.29); h_SL1L362->SetBinContent(16,43235.71); h_SL1L362->SetBinContent(17,43935.71); h_SL1L362->SetBinContent(18,46164.29); h_SL1L362->SetBinContent(19,45371.43); h_SL1L362->SetBinContent(20,47600); h_SL1L362->SetBinContent(21,46871.43); h_SL1L362->SetBinContent(22,44250); h_SL1L362->SetBinContent(23,43150); h_SL1L362->SetBinContent(24,43014.29); h_SL1L362->SetBinContent(25,41550); h_SL1L362->SetBinContent(26,40092.86); h_SL1L362->SetBinContent(27,40985.71); h_SL1L362->SetBinContent(28,43907.14); h_SL1L362->SetBinContent(29,44814.29); h_SL1L362->SetBinContent(30,43114.29); h_SL1L362->SetBinContent(31,43678.57); h_SL1L362->SetBinContent(32,41950); h_SL1L362->SetBinContent(33,42078.57); h_SL1L362->SetBinContent(34,43171.43); h_SL1L362->SetBinContent(35,41235.71); h_SL1L362->SetBinContent(36,43864.29); h_SL1L362->SetBinContent(37,47985.71); h_SL1L362->SetBinContent(38,44357.14); h_SL1L362->SetBinContent(39,42064.29); h_SL1L362->SetBinContent(40,44092.86); h_SL1L362->SetBinContent(41,45450); h_SL1L362->SetBinContent(42,44385.71); h_SL1L362->SetBinContent(43,42442.86); h_SL1L362->SetBinContent(44,40392.86); h_SL1L362->SetBinContent(45,41400); h_SL1L362->SetBinContent(46,42750); h_SL1L362->SetBinContent(47,42507.14); h_SL1L362->SetBinContent(48,44100); h_SL1L362->SetBinContent(49,44071.43); h_SL1L362->SetBinContent(50,43521.43); h_SL1L362->SetBinContent(51,42550); h_SL1L362->SetBinContent(52,43071.43); h_SL1L362->SetBinContent(53,42450); h_SL1L362->SetBinContent(54,43157.14); h_SL1L362->SetBinContent(55,42014.29); h_SL1L362->SetBinContent(56,42192.86); h_SL1L362->SetMaximum(56333.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,32950); h_SL1L463->SetBinContent(3,31485.71); h_SL1L463->SetBinContent(4,31942.86); h_SL1L463->SetBinContent(5,30850); h_SL1L463->SetBinContent(6,30392.86); h_SL1L463->SetBinContent(7,31564.29); h_SL1L463->SetBinContent(8,32700); h_SL1L463->SetBinContent(9,34264.29); h_SL1L463->SetBinContent(10,35214.29); h_SL1L463->SetBinContent(11,35092.86); h_SL1L463->SetBinContent(12,37721.43); h_SL1L463->SetBinContent(13,38242.86); h_SL1L463->SetBinContent(14,46385.71); h_SL1L463->SetBinContent(15,43178.57); h_SL1L463->SetBinContent(16,42864.29); h_SL1L463->SetBinContent(17,35571.43); h_SL1L463->SetBinContent(18,37707.14); h_SL1L463->SetBinContent(19,36678.57); h_SL1L463->SetBinContent(20,37285.71); h_SL1L463->SetBinContent(21,35457.14); h_SL1L463->SetBinContent(22,34892.86); h_SL1L463->SetBinContent(23,32714.29); h_SL1L463->SetBinContent(24,32485.71); h_SL1L463->SetBinContent(25,30250); h_SL1L463->SetBinContent(26,29300); h_SL1L463->SetBinContent(27,29578.57); h_SL1L463->SetBinContent(28,30321.43); h_SL1L463->SetBinContent(29,30378.57); h_SL1L463->SetBinContent(30,31521.43); h_SL1L463->SetBinContent(31,30342.86); h_SL1L463->SetBinContent(32,28664.29); h_SL1L463->SetBinContent(33,26885.71); h_SL1L463->SetBinContent(34,30935.71); h_SL1L463->SetBinContent(35,31314.29); h_SL1L463->SetBinContent(36,27971.43); h_SL1L463->SetBinContent(37,6642.857); h_SL1L463->SetBinContent(41,25471.43); h_SL1L463->SetBinContent(42,27985.71); h_SL1L463->SetBinContent(43,26521.43); h_SL1L463->SetBinContent(44,26228.57); h_SL1L463->SetBinContent(45,24214.29); h_SL1L463->SetBinContent(46,25321.43); h_SL1L463->SetBinContent(47,24635.71); h_SL1L463->SetBinContent(48,23971.43); h_SL1L463->SetBinContent(49,23285.71); h_SL1L463->SetBinContent(50,24707.14); h_SL1L463->SetBinContent(51,24507.14); h_SL1L463->SetBinContent(52,25157.14); h_SL1L463->SetBinContent(53,25492.86); h_SL1L463->SetBinContent(54,24192.86); h_SL1L463->SetBinContent(56,26057.14); h_SL1L463->SetMaximum(56333.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 7628"); pt->Draw(); c->Modified(); c->cd(); c->SetSelected(c); }