void RatesPerCell_Removing_noisy_cells_run_7245_SL1() { //=========Macro generated from canvas: c/c //========= (Fri Dec 21 17:19:51 2018) by ROOT version6.02/13 TCanvas *c = new TCanvas("c", "c",0,0,800,600); gStyle->SetOptStat(0); c->Range(-7.500001,-4600.288,67.5,41402.59); c->SetFillColor(0); c->SetBorderMode(0); c->SetBorderSize(2); c->SetFrameBorderMode(0); c->SetFrameBorderMode(0); TH1D *h_SL1L160 = new TH1D("h_SL1L160","SL1, run 7245",60,0,60); h_SL1L160->SetBinContent(1,6364.286); h_SL1L160->SetBinContent(2,5817.857); h_SL1L160->SetBinContent(3,5321.429); h_SL1L160->SetBinContent(4,5503.571); h_SL1L160->SetBinContent(5,4842.857); h_SL1L160->SetBinContent(6,5157.143); h_SL1L160->SetBinContent(7,5007.143); h_SL1L160->SetBinContent(8,5096.429); h_SL1L160->SetBinContent(9,5214.286); h_SL1L160->SetBinContent(10,4885.714); h_SL1L160->SetBinContent(11,5167.857); h_SL1L160->SetBinContent(12,5042.857); h_SL1L160->SetBinContent(13,5171.429); h_SL1L160->SetBinContent(14,7182.143); h_SL1L160->SetBinContent(15,6917.857); h_SL1L160->SetBinContent(16,3853.571); h_SL1L160->SetBinContent(17,3803.571); h_SL1L160->SetBinContent(18,3889.286); h_SL1L160->SetBinContent(19,4439.286); h_SL1L160->SetBinContent(20,4521.429); h_SL1L160->SetBinContent(21,5014.286); h_SL1L160->SetBinContent(22,5167.857); h_SL1L160->SetBinContent(23,5053.571); h_SL1L160->SetBinContent(24,4810.714); h_SL1L160->SetBinContent(25,6375); h_SL1L160->SetBinContent(26,9757.143); h_SL1L160->SetBinContent(27,12728.57); h_SL1L160->SetBinContent(28,15300); h_SL1L160->SetBinContent(29,15139.29); h_SL1L160->SetBinContent(30,12157.14); h_SL1L160->SetBinContent(31,7685.714); h_SL1L160->SetBinContent(32,4714.286); h_SL1L160->SetBinContent(33,7889.286); h_SL1L160->SetBinContent(34,7557.143); h_SL1L160->SetBinContent(35,6696.429); h_SL1L160->SetBinContent(36,6317.857); h_SL1L160->SetBinContent(37,6346.429); h_SL1L160->SetBinContent(38,5735.714); h_SL1L160->SetBinContent(39,5414.286); h_SL1L160->SetBinContent(41,3117.857); h_SL1L160->SetBinContent(42,3060.714); h_SL1L160->SetBinContent(43,3378.571); h_SL1L160->SetBinContent(44,3175); h_SL1L160->SetBinContent(45,2921.428); h_SL1L160->SetBinContent(46,2603.571); h_SL1L160->SetBinContent(47,2535.714); h_SL1L160->SetBinContent(48,2535.714); h_SL1L160->SetBinContent(49,2753.571); h_SL1L160->SetBinContent(50,2792.857); h_SL1L160->SetBinContent(51,2675); h_SL1L160->SetBinContent(52,2564.286); h_SL1L160->SetBinContent(53,2371.428); h_SL1L160->SetBinContent(54,2385.714); h_SL1L160->SetBinContent(55,2675); h_SL1L160->SetBinContent(56,2578.571); h_SL1L160->SetMaximum(36802.3); 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,7367.857); h_SL1L261->SetBinContent(2,6721.429); h_SL1L261->SetBinContent(3,6350); h_SL1L261->SetBinContent(4,6400); h_SL1L261->SetBinContent(5,6203.571); h_SL1L261->SetBinContent(6,6546.429); h_SL1L261->SetBinContent(7,6603.571); h_SL1L261->SetBinContent(8,6592.857); h_SL1L261->SetBinContent(9,6710.714); h_SL1L261->SetBinContent(10,6378.571); h_SL1L261->SetBinContent(11,6289.286); h_SL1L261->SetBinContent(12,6621.429); h_SL1L261->SetBinContent(13,6846.429); h_SL1L261->SetBinContent(14,6810.714); h_SL1L261->SetBinContent(15,6714.286); h_SL1L261->SetBinContent(16,6332.143); h_SL1L261->SetBinContent(17,5553.571); h_SL1L261->SetBinContent(18,5521.429); h_SL1L261->SetBinContent(19,6000); h_SL1L261->SetBinContent(20,6703.571); h_SL1L261->SetBinContent(21,7092.857); h_SL1L261->SetBinContent(22,7525); h_SL1L261->SetBinContent(23,7632.143); h_SL1L261->SetBinContent(24,8360.714); h_SL1L261->SetBinContent(25,9428.571); h_SL1L261->SetBinContent(26,14046.43); h_SL1L261->SetBinContent(27,18146.43); h_SL1L261->SetBinContent(28,22189.29); h_SL1L261->SetBinContent(29,27828.57); h_SL1L261->SetBinContent(30,26078.57); h_SL1L261->SetBinContent(31,18521.43); h_SL1L261->SetBinContent(32,11414.29); h_SL1L261->SetBinContent(33,8232.143); h_SL1L261->SetBinContent(34,7121.429); h_SL1L261->SetBinContent(35,7103.571); h_SL1L261->SetBinContent(36,5975); h_SL1L261->SetBinContent(37,6285.714); h_SL1L261->SetBinContent(38,5925); h_SL1L261->SetBinContent(39,5653.571); h_SL1L261->SetBinContent(40,5221.429); h_SL1L261->SetBinContent(41,5214.286); h_SL1L261->SetBinContent(42,5375); h_SL1L261->SetBinContent(43,5382.143); h_SL1L261->SetBinContent(44,5089.286); h_SL1L261->SetBinContent(45,4835.714); h_SL1L261->SetBinContent(46,4346.429); h_SL1L261->SetBinContent(47,4289.286); h_SL1L261->SetBinContent(48,4332.143); h_SL1L261->SetBinContent(49,4546.429); h_SL1L261->SetBinContent(50,4610.714); h_SL1L261->SetBinContent(51,4467.857); h_SL1L261->SetBinContent(52,4146.429); h_SL1L261->SetBinContent(53,3885.714); h_SL1L261->SetBinContent(54,3828.571); h_SL1L261->SetBinContent(55,3878.571); h_SL1L261->SetBinContent(56,3992.857); h_SL1L261->SetMaximum(32002.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,6917.857); h_SL1L362->SetBinContent(2,6275); h_SL1L362->SetBinContent(3,5964.286); h_SL1L362->SetBinContent(4,5950); h_SL1L362->SetBinContent(5,6078.571); h_SL1L362->SetBinContent(6,6078.571); h_SL1L362->SetBinContent(7,6442.857); h_SL1L362->SetBinContent(8,6542.857); h_SL1L362->SetBinContent(9,6400); h_SL1L362->SetBinContent(10,6153.571); h_SL1L362->SetBinContent(11,6110.714); h_SL1L362->SetBinContent(12,6539.286); h_SL1L362->SetBinContent(13,6517.857); h_SL1L362->SetBinContent(14,6489.286); h_SL1L362->SetBinContent(15,6464.286); h_SL1L362->SetBinContent(16,5917.857); h_SL1L362->SetBinContent(17,5550); h_SL1L362->SetBinContent(18,5296.429); h_SL1L362->SetBinContent(19,6385.714); h_SL1L362->SetBinContent(20,6603.571); h_SL1L362->SetBinContent(21,7060.714); h_SL1L362->SetBinContent(22,7396.429); h_SL1L362->SetBinContent(23,7500); h_SL1L362->SetBinContent(24,8221.429); h_SL1L362->SetBinContent(25,11539.29); h_SL1L362->SetBinContent(26,15935.71); h_SL1L362->SetBinContent(27,20839.29); h_SL1L362->SetBinContent(28,26107.14); h_SL1L362->SetBinContent(29,27742.86); h_SL1L362->SetBinContent(30,21767.86); h_SL1L362->SetBinContent(31,14807.14); h_SL1L362->SetBinContent(32,8450); h_SL1L362->SetBinContent(33,7260.714); h_SL1L362->SetBinContent(34,6689.286); h_SL1L362->SetBinContent(35,6403.571); h_SL1L362->SetBinContent(36,6100); h_SL1L362->SetBinContent(37,5800); h_SL1L362->SetBinContent(38,5435.714); h_SL1L362->SetBinContent(39,5189.286); h_SL1L362->SetBinContent(40,5035.714); h_SL1L362->SetBinContent(41,5092.857); h_SL1L362->SetBinContent(42,5153.571); h_SL1L362->SetBinContent(43,5214.286); h_SL1L362->SetBinContent(44,4753.571); h_SL1L362->SetBinContent(45,4803.571); h_SL1L362->SetBinContent(46,3971.428); h_SL1L362->SetBinContent(47,4296.429); h_SL1L362->SetBinContent(48,4146.429); h_SL1L362->SetBinContent(49,4303.571); h_SL1L362->SetBinContent(50,4560.714); h_SL1L362->SetBinContent(51,3975); h_SL1L362->SetBinContent(52,3771.428); h_SL1L362->SetBinContent(53,3596.428); h_SL1L362->SetBinContent(54,3571.428); h_SL1L362->SetBinContent(55,3842.857); h_SL1L362->SetBinContent(56,3685.714); h_SL1L362->SetMaximum(32002.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,5103.571); h_SL1L463->SetBinContent(3,4625); h_SL1L463->SetBinContent(4,4221.429); h_SL1L463->SetBinContent(5,3950); h_SL1L463->SetBinContent(6,4614.286); h_SL1L463->SetBinContent(7,4378.571); h_SL1L463->SetBinContent(8,4496.429); h_SL1L463->SetBinContent(9,4978.571); h_SL1L463->SetBinContent(10,5392.857); h_SL1L463->SetBinContent(11,5432.143); h_SL1L463->SetBinContent(12,5153.571); h_SL1L463->SetBinContent(13,5157.143); h_SL1L463->SetBinContent(14,5278.571); h_SL1L463->SetBinContent(15,9128.571); h_SL1L463->SetBinContent(16,5664.286); h_SL1L463->SetBinContent(17,4064.286); h_SL1L463->SetBinContent(18,3835.714); h_SL1L463->SetBinContent(19,3900); h_SL1L463->SetBinContent(20,4228.571); h_SL1L463->SetBinContent(21,4625); h_SL1L463->SetBinContent(22,4485.714); h_SL1L463->SetBinContent(23,4917.857); h_SL1L463->SetBinContent(24,4928.571); h_SL1L463->SetBinContent(25,5546.429); h_SL1L463->SetBinContent(26,9432.143); h_SL1L463->SetBinContent(27,11542.86); h_SL1L463->SetBinContent(28,13625); h_SL1L463->SetBinContent(29,13739.29); h_SL1L463->SetBinContent(30,13700); h_SL1L463->SetBinContent(31,8964.285); h_SL1L463->SetBinContent(32,6128.571); h_SL1L463->SetBinContent(33,4564.286); h_SL1L463->SetBinContent(34,5039.286); h_SL1L463->SetBinContent(35,4482.143); h_SL1L463->SetBinContent(36,4253.571); h_SL1L463->SetBinContent(37,7.142857); h_SL1L463->SetBinContent(38,21.42857); h_SL1L463->SetBinContent(41,3050); h_SL1L463->SetBinContent(42,3310.714); h_SL1L463->SetBinContent(43,3257.143); h_SL1L463->SetBinContent(44,3407.143); h_SL1L463->SetBinContent(45,3128.571); h_SL1L463->SetBinContent(46,2785.714); h_SL1L463->SetBinContent(47,2857.143); h_SL1L463->SetBinContent(48,2821.428); h_SL1L463->SetBinContent(49,3014.286); h_SL1L463->SetBinContent(50,2867.857); h_SL1L463->SetBinContent(51,2760.714); h_SL1L463->SetBinContent(52,2825); h_SL1L463->SetBinContent(53,2360.714); h_SL1L463->SetBinContent(54,2225); h_SL1L463->SetBinContent(56,2396.428); h_SL1L463->SetMaximum(32002.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 7245"); pt->Draw(); c->Modified(); c->cd(); c->SetSelected(c); }