void RatesPerCell_Removing_noisy_cells_run_7485_SL1() { //=========Macro generated from canvas: c/c //========= (Fri Dec 21 17:47:28 2018) by ROOT version6.02/13 TCanvas *c = new TCanvas("c", "c",0,0,800,600); gStyle->SetOptStat(0); c->Range(-7.500001,-7724.694,67.5,69522.24); c->SetFillColor(0); c->SetBorderMode(0); c->SetBorderSize(2); c->SetFrameBorderMode(0); c->SetFrameBorderMode(0); TH1D *h_SL1L160 = new TH1D("h_SL1L160","SL1, run 7485",60,0,60); h_SL1L160->SetBinContent(1,3842.857); h_SL1L160->SetBinContent(2,4471.429); h_SL1L160->SetBinContent(3,3707.143); h_SL1L160->SetBinContent(4,3621.428); h_SL1L160->SetBinContent(5,2764.286); h_SL1L160->SetBinContent(6,3007.143); h_SL1L160->SetBinContent(7,3000); h_SL1L160->SetBinContent(8,3257.143); h_SL1L160->SetBinContent(9,2864.286); h_SL1L160->SetBinContent(10,2757.143); h_SL1L160->SetBinContent(11,2885.714); h_SL1L160->SetBinContent(12,2950); h_SL1L160->SetBinContent(13,3957.143); h_SL1L160->SetBinContent(14,3835.714); h_SL1L160->SetBinContent(15,3778.571); h_SL1L160->SetBinContent(16,2550); h_SL1L160->SetBinContent(17,1257.143); h_SL1L160->SetBinContent(18,1164.286); h_SL1L160->SetBinContent(19,1485.714); h_SL1L160->SetBinContent(20,1314.286); h_SL1L160->SetBinContent(21,1328.571); h_SL1L160->SetBinContent(22,1285.714); h_SL1L160->SetBinContent(23,1157.143); h_SL1L160->SetBinContent(24,728.5714); h_SL1L160->SetBinContent(25,821.4286); h_SL1L160->SetBinContent(26,1064.286); h_SL1L160->SetBinContent(27,957.1428); h_SL1L160->SetBinContent(28,871.4286); h_SL1L160->SetBinContent(29,1035.714); h_SL1L160->SetBinContent(30,1028.571); h_SL1L160->SetBinContent(31,907.1428); h_SL1L160->SetBinContent(32,714.2857); h_SL1L160->SetBinContent(33,6021.429); h_SL1L160->SetBinContent(34,6600); h_SL1L160->SetBinContent(35,6692.857); h_SL1L160->SetBinContent(36,6114.286); h_SL1L160->SetBinContent(37,6578.571); h_SL1L160->SetBinContent(38,6871.429); h_SL1L160->SetBinContent(39,6357.143); h_SL1L160->SetBinContent(41,935.7143); h_SL1L160->SetBinContent(42,1107.143); h_SL1L160->SetBinContent(43,1142.857); h_SL1L160->SetBinContent(44,935.7143); h_SL1L160->SetBinContent(45,600); h_SL1L160->SetBinContent(46,557.1428); h_SL1L160->SetBinContent(47,650); h_SL1L160->SetBinContent(48,535.7143); h_SL1L160->SetBinContent(49,871.4286); h_SL1L160->SetBinContent(50,857.1428); h_SL1L160->SetBinContent(51,778.5714); h_SL1L160->SetBinContent(52,728.5714); h_SL1L160->SetBinContent(53,914.2857); h_SL1L160->SetBinContent(54,878.5714); h_SL1L160->SetBinContent(55,957.1428); h_SL1L160->SetBinContent(56,1042.857); h_SL1L160->SetMaximum(61797.55); 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,36271.43); h_SL1L261->SetBinContent(2,36142.86); h_SL1L261->SetBinContent(3,38764.29); h_SL1L261->SetBinContent(4,39335.71); h_SL1L261->SetBinContent(5,38114.29); h_SL1L261->SetBinContent(6,40521.43); h_SL1L261->SetBinContent(7,39657.14); h_SL1L261->SetBinContent(8,43078.57); h_SL1L261->SetBinContent(9,42014.29); h_SL1L261->SetBinContent(10,41007.14); h_SL1L261->SetBinContent(11,42264.29); h_SL1L261->SetBinContent(12,41785.71); h_SL1L261->SetBinContent(13,43264.29); h_SL1L261->SetBinContent(14,43171.43); h_SL1L261->SetBinContent(15,43335.71); h_SL1L261->SetBinContent(16,41150); h_SL1L261->SetBinContent(17,42364.29); h_SL1L261->SetBinContent(18,46171.43); h_SL1L261->SetBinContent(19,45942.86); h_SL1L261->SetBinContent(20,46300); h_SL1L261->SetBinContent(21,46728.57); h_SL1L261->SetBinContent(22,45585.71); h_SL1L261->SetBinContent(23,44792.86); h_SL1L261->SetBinContent(24,42950); h_SL1L261->SetBinContent(25,44278.57); h_SL1L261->SetBinContent(26,40371.43); h_SL1L261->SetBinContent(27,41107.14); h_SL1L261->SetBinContent(28,43592.86); h_SL1L261->SetBinContent(29,45000); h_SL1L261->SetBinContent(30,46350); h_SL1L261->SetBinContent(31,44128.57); h_SL1L261->SetBinContent(32,43700); h_SL1L261->SetBinContent(33,43014.29); h_SL1L261->SetBinContent(34,43664.29); h_SL1L261->SetBinContent(35,42821.43); h_SL1L261->SetBinContent(36,43964.29); h_SL1L261->SetBinContent(37,45000); h_SL1L261->SetBinContent(38,44864.29); h_SL1L261->SetBinContent(39,45114.29); h_SL1L261->SetBinContent(40,44128.57); h_SL1L261->SetBinContent(41,44500); h_SL1L261->SetBinContent(42,44864.29); h_SL1L261->SetBinContent(43,43028.57); h_SL1L261->SetBinContent(44,42107.14); h_SL1L261->SetBinContent(45,43000); h_SL1L261->SetBinContent(46,44314.29); h_SL1L261->SetBinContent(47,43064.29); h_SL1L261->SetBinContent(48,42728.57); h_SL1L261->SetBinContent(49,45035.71); h_SL1L261->SetBinContent(50,43464.29); h_SL1L261->SetBinContent(51,42750); h_SL1L261->SetBinContent(52,42342.86); h_SL1L261->SetBinContent(53,44050); h_SL1L261->SetBinContent(54,43264.29); h_SL1L261->SetBinContent(55,43164.29); h_SL1L261->SetBinContent(56,42178.57); h_SL1L261->SetMaximum(53737.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,35078.57); h_SL1L362->SetBinContent(2,36185.71); h_SL1L362->SetBinContent(3,38064.29); h_SL1L362->SetBinContent(4,37585.71); h_SL1L362->SetBinContent(5,39114.29); h_SL1L362->SetBinContent(6,40435.71); h_SL1L362->SetBinContent(7,40307.14); h_SL1L362->SetBinContent(8,42285.71); h_SL1L362->SetBinContent(9,40928.57); h_SL1L362->SetBinContent(10,41121.43); h_SL1L362->SetBinContent(11,40828.57); h_SL1L362->SetBinContent(12,42442.86); h_SL1L362->SetBinContent(13,41814.29); h_SL1L362->SetBinContent(14,42364.29); h_SL1L362->SetBinContent(15,42200); h_SL1L362->SetBinContent(16,41521.43); h_SL1L362->SetBinContent(17,43835.71); h_SL1L362->SetBinContent(18,46092.86); h_SL1L362->SetBinContent(19,45878.57); h_SL1L362->SetBinContent(20,46578.57); h_SL1L362->SetBinContent(21,45035.71); h_SL1L362->SetBinContent(22,42085.71); h_SL1L362->SetBinContent(23,43521.43); h_SL1L362->SetBinContent(24,42071.43); h_SL1L362->SetBinContent(25,41364.29); h_SL1L362->SetBinContent(26,39350); h_SL1L362->SetBinContent(27,40028.57); h_SL1L362->SetBinContent(28,43592.86); h_SL1L362->SetBinContent(29,45000); h_SL1L362->SetBinContent(30,44350); h_SL1L362->SetBinContent(31,43671.43); h_SL1L362->SetBinContent(32,41978.57); h_SL1L362->SetBinContent(33,42478.57); h_SL1L362->SetBinContent(34,42078.57); h_SL1L362->SetBinContent(35,40921.43); h_SL1L362->SetBinContent(36,43271.43); h_SL1L362->SetBinContent(37,45635.71); h_SL1L362->SetBinContent(38,44457.14); h_SL1L362->SetBinContent(39,43414.29); h_SL1L362->SetBinContent(40,42557.14); h_SL1L362->SetBinContent(41,44064.29); h_SL1L362->SetBinContent(42,42900); h_SL1L362->SetBinContent(43,41600); h_SL1L362->SetBinContent(44,41214.29); h_SL1L362->SetBinContent(45,42628.57); h_SL1L362->SetBinContent(46,41542.86); h_SL1L362->SetBinContent(47,41500); h_SL1L362->SetBinContent(48,41942.86); h_SL1L362->SetBinContent(49,41807.14); h_SL1L362->SetBinContent(50,42792.86); h_SL1L362->SetBinContent(51,40628.57); h_SL1L362->SetBinContent(52,42635.71); h_SL1L362->SetBinContent(53,42407.14); h_SL1L362->SetBinContent(54,41057.14); h_SL1L362->SetBinContent(55,41364.29); h_SL1L362->SetBinContent(56,42235.71); h_SL1L362->SetMaximum(53737.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,31235.71); h_SL1L463->SetBinContent(3,31692.86); h_SL1L463->SetBinContent(4,31700); h_SL1L463->SetBinContent(5,30285.71); h_SL1L463->SetBinContent(6,31928.57); h_SL1L463->SetBinContent(7,31407.14); h_SL1L463->SetBinContent(8,33692.86); h_SL1L463->SetBinContent(9,34157.14); h_SL1L463->SetBinContent(10,36057.14); h_SL1L463->SetBinContent(11,35535.71); h_SL1L463->SetBinContent(12,37707.14); h_SL1L463->SetBinContent(13,37157.14); h_SL1L463->SetBinContent(14,40392.86); h_SL1L463->SetBinContent(15,37935.71); h_SL1L463->SetBinContent(16,38814.29); h_SL1L463->SetBinContent(17,35614.29); h_SL1L463->SetBinContent(18,38871.43); h_SL1L463->SetBinContent(19,37585.71); h_SL1L463->SetBinContent(20,37778.57); h_SL1L463->SetBinContent(21,37000); h_SL1L463->SetBinContent(22,34271.43); h_SL1L463->SetBinContent(23,33407.14); h_SL1L463->SetBinContent(24,33592.86); h_SL1L463->SetBinContent(25,30935.71); h_SL1L463->SetBinContent(26,29985.71); h_SL1L463->SetBinContent(27,30714.29); h_SL1L463->SetBinContent(28,32335.71); h_SL1L463->SetBinContent(29,31757.14); h_SL1L463->SetBinContent(30,33357.14); h_SL1L463->SetBinContent(31,32042.86); h_SL1L463->SetBinContent(32,31692.86); h_SL1L463->SetBinContent(33,28028.57); h_SL1L463->SetBinContent(34,33300); h_SL1L463->SetBinContent(35,33664.29); h_SL1L463->SetBinContent(36,29164.29); h_SL1L463->SetBinContent(37,5050); h_SL1L463->SetBinContent(38,150); h_SL1L463->SetBinContent(41,27664.29); h_SL1L463->SetBinContent(42,30228.57); h_SL1L463->SetBinContent(43,27750); h_SL1L463->SetBinContent(44,27900); h_SL1L463->SetBinContent(45,25428.57); h_SL1L463->SetBinContent(46,28300); h_SL1L463->SetBinContent(47,25750); h_SL1L463->SetBinContent(48,25635.71); h_SL1L463->SetBinContent(49,25121.43); h_SL1L463->SetBinContent(50,25992.86); h_SL1L463->SetBinContent(51,25907.14); h_SL1L463->SetBinContent(52,27085.71); h_SL1L463->SetBinContent(53,25821.43); h_SL1L463->SetBinContent(54,25628.57); h_SL1L463->SetBinContent(56,26885.71); h_SL1L463->SetMaximum(53737.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 7485"); pt->Draw(); c->Modified(); c->cd(); c->SetSelected(c); }