void RatesPerCell_Removing_noisy_cells_run_7557_SL1() { //=========Macro generated from canvas: c/c //========= (Fri Dec 21 17:29:04 2018) by ROOT version6.02/13 TCanvas *c = new TCanvas("c", "c",0,0,800,600); gStyle->SetOptStat(0); c->Range(-7.500001,-7823.882,67.5,70414.93); c->SetFillColor(0); c->SetBorderMode(0); c->SetBorderSize(2); c->SetFrameBorderMode(0); c->SetFrameBorderMode(0); TH1D *h_SL1L160 = new TH1D("h_SL1L160","SL1, run 7557",60,0,60); h_SL1L160->SetBinContent(1,3878.571); h_SL1L160->SetBinContent(2,4057.143); h_SL1L160->SetBinContent(3,3578.571); h_SL1L160->SetBinContent(4,3335.714); h_SL1L160->SetBinContent(5,2714.286); h_SL1L160->SetBinContent(6,2807.143); h_SL1L160->SetBinContent(7,2864.286); h_SL1L160->SetBinContent(8,3035.714); h_SL1L160->SetBinContent(9,2628.571); h_SL1L160->SetBinContent(10,2750); h_SL1L160->SetBinContent(11,2742.857); h_SL1L160->SetBinContent(12,2878.571); h_SL1L160->SetBinContent(13,4150); h_SL1L160->SetBinContent(14,4192.857); h_SL1L160->SetBinContent(15,3671.428); h_SL1L160->SetBinContent(16,2585.714); h_SL1L160->SetBinContent(17,1121.429); h_SL1L160->SetBinContent(18,1214.286); h_SL1L160->SetBinContent(19,1200); h_SL1L160->SetBinContent(20,1257.143); h_SL1L160->SetBinContent(21,1092.857); h_SL1L160->SetBinContent(22,1207.143); h_SL1L160->SetBinContent(23,1092.857); h_SL1L160->SetBinContent(24,792.8571); h_SL1L160->SetBinContent(25,678.5714); h_SL1L160->SetBinContent(26,1092.857); h_SL1L160->SetBinContent(27,828.5714); h_SL1L160->SetBinContent(28,950); h_SL1L160->SetBinContent(29,978.5714); h_SL1L160->SetBinContent(30,985.7143); h_SL1L160->SetBinContent(31,921.4286); h_SL1L160->SetBinContent(32,821.4286); h_SL1L160->SetBinContent(33,5714.286); h_SL1L160->SetBinContent(34,5971.429); h_SL1L160->SetBinContent(35,6471.429); h_SL1L160->SetBinContent(36,6185.714); h_SL1L160->SetBinContent(37,5914.286); h_SL1L160->SetBinContent(38,6607.143); h_SL1L160->SetBinContent(39,5814.286); h_SL1L160->SetBinContent(41,835.7143); h_SL1L160->SetBinContent(42,850); h_SL1L160->SetBinContent(43,935.7143); h_SL1L160->SetBinContent(44,771.4286); h_SL1L160->SetBinContent(45,585.7143); h_SL1L160->SetBinContent(46,442.8571); h_SL1L160->SetBinContent(47,578.5714); h_SL1L160->SetBinContent(48,585.7143); h_SL1L160->SetBinContent(49,528.5714); h_SL1L160->SetBinContent(50,600); h_SL1L160->SetBinContent(51,678.5714); h_SL1L160->SetBinContent(52,600); h_SL1L160->SetBinContent(53,621.4286); h_SL1L160->SetBinContent(54,592.8571); h_SL1L160->SetBinContent(55,1085.714); h_SL1L160->SetBinContent(56,878.5714); h_SL1L160->SetMaximum(62591.05); 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,37257.14); h_SL1L261->SetBinContent(2,36685.71); h_SL1L261->SetBinContent(3,37985.71); h_SL1L261->SetBinContent(4,39807.14); h_SL1L261->SetBinContent(5,40142.86); h_SL1L261->SetBinContent(6,42407.14); h_SL1L261->SetBinContent(7,40928.57); h_SL1L261->SetBinContent(8,41692.86); h_SL1L261->SetBinContent(9,42814.29); h_SL1L261->SetBinContent(10,40935.71); h_SL1L261->SetBinContent(11,42392.86); h_SL1L261->SetBinContent(12,42492.86); h_SL1L261->SetBinContent(13,43242.86); h_SL1L261->SetBinContent(14,43242.86); h_SL1L261->SetBinContent(15,43385.71); h_SL1L261->SetBinContent(16,41921.43); h_SL1L261->SetBinContent(17,42435.71); h_SL1L261->SetBinContent(18,45400); h_SL1L261->SetBinContent(19,46535.71); h_SL1L261->SetBinContent(20,45092.86); h_SL1L261->SetBinContent(21,46528.57); h_SL1L261->SetBinContent(22,45071.43); h_SL1L261->SetBinContent(23,42907.14); h_SL1L261->SetBinContent(24,43307.14); h_SL1L261->SetBinContent(25,44014.29); h_SL1L261->SetBinContent(26,40678.57); h_SL1L261->SetBinContent(27,40978.57); h_SL1L261->SetBinContent(28,43707.14); h_SL1L261->SetBinContent(29,45485.71); h_SL1L261->SetBinContent(30,45135.71); h_SL1L261->SetBinContent(31,45207.14); h_SL1L261->SetBinContent(32,44135.71); h_SL1L261->SetBinContent(33,43235.71); h_SL1L261->SetBinContent(34,43371.43); h_SL1L261->SetBinContent(35,41814.29); h_SL1L261->SetBinContent(36,42564.29); h_SL1L261->SetBinContent(37,45042.86); h_SL1L261->SetBinContent(38,46871.43); h_SL1L261->SetBinContent(39,44778.57); h_SL1L261->SetBinContent(40,42685.71); h_SL1L261->SetBinContent(41,44442.86); h_SL1L261->SetBinContent(42,43735.71); h_SL1L261->SetBinContent(43,43971.43); h_SL1L261->SetBinContent(44,41328.57); h_SL1L261->SetBinContent(45,42750); h_SL1L261->SetBinContent(46,43185.71); h_SL1L261->SetBinContent(47,42864.29); h_SL1L261->SetBinContent(48,42550); h_SL1L261->SetBinContent(49,47328.57); h_SL1L261->SetBinContent(50,43821.43); h_SL1L261->SetBinContent(51,42000); h_SL1L261->SetBinContent(52,41785.71); h_SL1L261->SetBinContent(53,42664.29); h_SL1L261->SetBinContent(54,43600); h_SL1L261->SetBinContent(55,43000); h_SL1L261->SetBinContent(56,41100); h_SL1L261->SetMaximum(54427.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,35192.86); h_SL1L362->SetBinContent(2,37414.29); h_SL1L362->SetBinContent(3,37614.29); h_SL1L362->SetBinContent(4,38121.43); h_SL1L362->SetBinContent(5,40235.71); h_SL1L362->SetBinContent(6,39071.43); h_SL1L362->SetBinContent(7,40471.43); h_SL1L362->SetBinContent(8,42021.43); h_SL1L362->SetBinContent(9,40871.43); h_SL1L362->SetBinContent(10,41800); h_SL1L362->SetBinContent(11,42471.43); h_SL1L362->SetBinContent(12,41750); h_SL1L362->SetBinContent(13,42778.57); h_SL1L362->SetBinContent(14,41478.57); h_SL1L362->SetBinContent(15,42357.14); h_SL1L362->SetBinContent(16,41285.71); h_SL1L362->SetBinContent(17,43585.71); h_SL1L362->SetBinContent(18,45857.14); h_SL1L362->SetBinContent(19,44907.14); h_SL1L362->SetBinContent(20,46178.57); h_SL1L362->SetBinContent(21,45535.71); h_SL1L362->SetBinContent(22,42542.86); h_SL1L362->SetBinContent(23,40864.29); h_SL1L362->SetBinContent(24,42571.43); h_SL1L362->SetBinContent(25,40642.86); h_SL1L362->SetBinContent(26,39657.14); h_SL1L362->SetBinContent(27,40014.29); h_SL1L362->SetBinContent(28,43750); h_SL1L362->SetBinContent(29,44585.71); h_SL1L362->SetBinContent(30,44000); h_SL1L362->SetBinContent(31,43457.14); h_SL1L362->SetBinContent(32,42178.57); h_SL1L362->SetBinContent(33,42021.43); h_SL1L362->SetBinContent(34,43835.71); h_SL1L362->SetBinContent(35,41285.71); h_SL1L362->SetBinContent(36,44150); h_SL1L362->SetBinContent(37,45721.43); h_SL1L362->SetBinContent(38,43742.86); h_SL1L362->SetBinContent(39,43964.29); h_SL1L362->SetBinContent(40,43628.57); h_SL1L362->SetBinContent(41,43842.86); h_SL1L362->SetBinContent(42,42642.86); h_SL1L362->SetBinContent(43,41378.57); h_SL1L362->SetBinContent(44,41157.14); h_SL1L362->SetBinContent(45,42478.57); h_SL1L362->SetBinContent(46,42228.57); h_SL1L362->SetBinContent(47,41985.71); h_SL1L362->SetBinContent(48,42085.71); h_SL1L362->SetBinContent(49,43214.29); h_SL1L362->SetBinContent(50,42214.29); h_SL1L362->SetBinContent(51,41307.14); h_SL1L362->SetBinContent(52,43450); h_SL1L362->SetBinContent(53,42642.86); h_SL1L362->SetBinContent(54,40957.14); h_SL1L362->SetBinContent(55,40600); h_SL1L362->SetBinContent(56,41871.43); h_SL1L362->SetMaximum(54427.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,32607.14); h_SL1L463->SetBinContent(3,30935.71); h_SL1L463->SetBinContent(4,31607.14); h_SL1L463->SetBinContent(5,31250); h_SL1L463->SetBinContent(6,31557.14); h_SL1L463->SetBinContent(7,31621.43); h_SL1L463->SetBinContent(8,32607.14); h_SL1L463->SetBinContent(9,34192.86); h_SL1L463->SetBinContent(10,35335.71); h_SL1L463->SetBinContent(11,37264.29); h_SL1L463->SetBinContent(12,38357.14); h_SL1L463->SetBinContent(13,37642.86); h_SL1L463->SetBinContent(14,40400); h_SL1L463->SetBinContent(15,38821.43); h_SL1L463->SetBinContent(16,38135.71); h_SL1L463->SetBinContent(17,35571.43); h_SL1L463->SetBinContent(18,38635.71); h_SL1L463->SetBinContent(19,36635.71); h_SL1L463->SetBinContent(20,36692.86); h_SL1L463->SetBinContent(21,36578.57); h_SL1L463->SetBinContent(22,34442.86); h_SL1L463->SetBinContent(23,32707.14); h_SL1L463->SetBinContent(24,32792.86); h_SL1L463->SetBinContent(25,31228.57); h_SL1L463->SetBinContent(26,30478.57); h_SL1L463->SetBinContent(27,29828.57); h_SL1L463->SetBinContent(28,31078.57); h_SL1L463->SetBinContent(29,32164.29); h_SL1L463->SetBinContent(30,32400); h_SL1L463->SetBinContent(31,31414.29); h_SL1L463->SetBinContent(32,31428.57); h_SL1L463->SetBinContent(33,29507.14); h_SL1L463->SetBinContent(34,32114.29); h_SL1L463->SetBinContent(35,32442.86); h_SL1L463->SetBinContent(36,29207.14); h_SL1L463->SetBinContent(37,4850); h_SL1L463->SetBinContent(38,64.28571); h_SL1L463->SetBinContent(39,7.142857); h_SL1L463->SetBinContent(41,25442.86); h_SL1L463->SetBinContent(42,28257.14); h_SL1L463->SetBinContent(43,28421.43); h_SL1L463->SetBinContent(44,26871.43); h_SL1L463->SetBinContent(45,25057.14); h_SL1L463->SetBinContent(46,26171.43); h_SL1L463->SetBinContent(47,24900); h_SL1L463->SetBinContent(48,24392.86); h_SL1L463->SetBinContent(49,23778.57); h_SL1L463->SetBinContent(50,25842.86); h_SL1L463->SetBinContent(51,24357.14); h_SL1L463->SetBinContent(52,26214.29); h_SL1L463->SetBinContent(53,25428.57); h_SL1L463->SetBinContent(54,24014.29); h_SL1L463->SetBinContent(55,7.142857); h_SL1L463->SetBinContent(56,25842.86); h_SL1L463->SetMaximum(54427.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 7557"); pt->Draw(); c->Modified(); c->cd(); c->SetSelected(c); }