void RatesPerCell_Removing_noisy_cells_run_4988_SL1() { //=========Macro generated from canvas: c/c //========= (Sun Jan 13 16:19:53 2019) by ROOT version6.02/13 TCanvas *c = new TCanvas("c", "c",0,0,800,600); gStyle->SetOptStat(0); c->Range(-7.500001,-37554.83,67.5,337993.5); c->SetFillColor(0); c->SetBorderMode(0); c->SetBorderSize(2); c->SetFrameBorderMode(0); c->SetFrameBorderMode(0); TH1D *h_SL1L160 = new TH1D("h_SL1L160","SL1, run 4988",60,0,60); h_SL1L160->SetBinContent(1,452.8571); h_SL1L160->SetBinContent(2,449.2857); h_SL1L160->SetBinContent(3,512.1429); h_SL1L160->SetBinContent(4,492.8571); h_SL1L160->SetBinContent(5,482.8571); h_SL1L160->SetBinContent(6,497.8571); h_SL1L160->SetBinContent(7,565.7143); h_SL1L160->SetBinContent(8,600); h_SL1L160->SetBinContent(9,642.1429); h_SL1L160->SetBinContent(10,667.8572); h_SL1L160->SetBinContent(11,774.2857); h_SL1L160->SetBinContent(12,810.7143); h_SL1L160->SetBinContent(13,913.5715); h_SL1L160->SetBinContent(14,942.1429); h_SL1L160->SetBinContent(15,899.2857); h_SL1L160->SetBinContent(16,914.2858); h_SL1L160->SetBinContent(17,1056.429); h_SL1L160->SetBinContent(18,1313.571); h_SL1L160->SetBinContent(19,1488.571); h_SL1L160->SetBinContent(20,1595); h_SL1L160->SetBinContent(21,1760); h_SL1L160->SetBinContent(22,1995.714); h_SL1L160->SetBinContent(23,2299.286); h_SL1L160->SetBinContent(24,2488.572); h_SL1L160->SetBinContent(25,2780); h_SL1L160->SetBinContent(26,2865.714); h_SL1L160->SetBinContent(27,3265.714); h_SL1L160->SetBinContent(28,4114.286); h_SL1L160->SetBinContent(29,4510.714); h_SL1L160->SetBinContent(30,5145.714); h_SL1L160->SetBinContent(31,7653.572); h_SL1L160->SetBinContent(32,14118.57); h_SL1L160->SetBinContent(33,65719.29); h_SL1L160->SetBinContent(34,68000.72); h_SL1L160->SetBinContent(35,65018.57); h_SL1L160->SetBinContent(36,63722.14); h_SL1L160->SetBinContent(37,58720); h_SL1L160->SetBinContent(38,47032.86); h_SL1L160->SetBinContent(39,26830.71); h_SL1L160->SetBinContent(40,7190.714); h_SL1L160->SetBinContent(41,4670); h_SL1L160->SetBinContent(42,4060); h_SL1L160->SetBinContent(43,3647.857); h_SL1L160->SetBinContent(44,3305.714); h_SL1L160->SetBinContent(45,3065.714); h_SL1L160->SetBinContent(46,2868.572); h_SL1L160->SetBinContent(47,2815); h_SL1L160->SetBinContent(48,2530); h_SL1L160->SetBinContent(49,2281.429); h_SL1L160->SetBinContent(50,2007.857); h_SL1L160->SetBinContent(51,1792.857); h_SL1L160->SetBinContent(52,1734.286); h_SL1L160->SetBinContent(53,1676.429); h_SL1L160->SetBinContent(54,1677.857); h_SL1L160->SetBinContent(55,1539.286); h_SL1L160->SetBinContent(56,1440); h_SL1L160->SetBinContent(57,1539.286); h_SL1L160->SetBinContent(58,1505); h_SL1L160->SetBinContent(59,1485.714); h_SL1L160->SetMaximum(300438.6); 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,417.8571); h_SL1L261->SetBinContent(2,402.1429); h_SL1L261->SetBinContent(3,418.5714); h_SL1L261->SetBinContent(4,438.5714); h_SL1L261->SetBinContent(5,442.8571); h_SL1L261->SetBinContent(6,465); h_SL1L261->SetBinContent(7,477.1429); h_SL1L261->SetBinContent(8,508.5714); h_SL1L261->SetBinContent(9,555); h_SL1L261->SetBinContent(10,569.2857); h_SL1L261->SetBinContent(11,652.1429); h_SL1L261->SetBinContent(12,719.2857); h_SL1L261->SetBinContent(13,804.2857); h_SL1L261->SetBinContent(14,830.7143); h_SL1L261->SetBinContent(15,861.4286); h_SL1L261->SetBinContent(16,840); h_SL1L261->SetBinContent(17,917.8572); h_SL1L261->SetBinContent(18,1165.714); h_SL1L261->SetBinContent(19,1339.286); h_SL1L261->SetBinContent(20,1428.571); h_SL1L261->SetBinContent(21,1628.571); h_SL1L261->SetBinContent(22,1805.714); h_SL1L261->SetBinContent(23,2035.714); h_SL1L261->SetBinContent(24,2285.714); h_SL1L261->SetBinContent(25,2612.857); h_SL1L261->SetBinContent(26,2626.429); h_SL1L261->SetBinContent(27,2955); h_SL1L261->SetBinContent(28,3915.714); h_SL1L261->SetBinContent(29,4243.571); h_SL1L261->SetBinContent(30,4625.714); h_SL1L261->SetBinContent(31,5574.286); h_SL1L261->SetBinContent(32,10310); h_SL1L261->SetBinContent(33,38827.86); h_SL1L261->SetBinContent(34,71716.43); h_SL1L261->SetBinContent(35,66278.57); h_SL1L261->SetBinContent(36,65601.43); h_SL1L261->SetBinContent(37,62133.57); h_SL1L261->SetBinContent(38,53671.43); h_SL1L261->SetBinContent(39,39199.29); h_SL1L261->SetBinContent(40,12440); h_SL1L261->SetBinContent(41,6009.286); h_SL1L261->SetBinContent(42,4192.857); h_SL1L261->SetBinContent(43,3738.572); h_SL1L261->SetBinContent(44,3469.286); h_SL1L261->SetBinContent(45,3028.572); h_SL1L261->SetBinContent(46,2850); h_SL1L261->SetBinContent(47,2714.286); h_SL1L261->SetBinContent(48,2580); h_SL1L261->SetBinContent(49,227175); h_SL1L261->SetBinContent(50,2036.429); h_SL1L261->SetBinContent(51,1823.571); h_SL1L261->SetBinContent(52,24856.43); h_SL1L261->SetBinContent(53,26550); h_SL1L261->SetBinContent(54,1637.857); h_SL1L261->SetBinContent(55,1594.286); h_SL1L261->SetBinContent(56,89249.29); h_SL1L261->SetBinContent(57,1415.714); h_SL1L261->SetBinContent(58,1513.571); h_SL1L261->SetBinContent(59,1445); h_SL1L261->SetMaximum(261251.2); 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,372.8571); h_SL1L362->SetBinContent(2,406.4286); h_SL1L362->SetBinContent(3,407.1429); h_SL1L362->SetBinContent(4,381.4286); h_SL1L362->SetBinContent(5,391.4286); h_SL1L362->SetBinContent(6,422.1429); h_SL1L362->SetBinContent(7,456.4286); h_SL1L362->SetBinContent(8,481.4286); h_SL1L362->SetBinContent(9,537.1429); h_SL1L362->SetBinContent(10,555); h_SL1L362->SetBinContent(11,622.1429); h_SL1L362->SetBinContent(12,712.1429); h_SL1L362->SetBinContent(13,784.2857); h_SL1L362->SetBinContent(14,815.7143); h_SL1L362->SetBinContent(15,817.1429); h_SL1L362->SetBinContent(16,835.7143); h_SL1L362->SetBinContent(17,983.5715); h_SL1L362->SetBinContent(18,1141.429); h_SL1L362->SetBinContent(19,1335); h_SL1L362->SetBinContent(20,1496.429); h_SL1L362->SetBinContent(21,1593.571); h_SL1L362->SetBinContent(22,1797.857); h_SL1L362->SetBinContent(23,2114.286); h_SL1L362->SetBinContent(24,2328.572); h_SL1L362->SetBinContent(25,2545.714); h_SL1L362->SetBinContent(26,2705.714); h_SL1L362->SetBinContent(27,3181.429); h_SL1L362->SetBinContent(28,3885.714); h_SL1L362->SetBinContent(29,4357.143); h_SL1L362->SetBinContent(30,4982.857); h_SL1L362->SetBinContent(31,7577.143); h_SL1L362->SetBinContent(32,14278.57); h_SL1L362->SetBinContent(33,66526.43); h_SL1L362->SetBinContent(34,68997.86); h_SL1L362->SetBinContent(35,65797.14); h_SL1L362->SetBinContent(36,64523.57); h_SL1L362->SetBinContent(37,59137.14); h_SL1L362->SetBinContent(38,46856.43); h_SL1L362->SetBinContent(39,26833.57); h_SL1L362->SetBinContent(40,7054.286); h_SL1L362->SetBinContent(41,4500); h_SL1L362->SetBinContent(42,4037.857); h_SL1L362->SetBinContent(43,3472.857); h_SL1L362->SetBinContent(44,3160); h_SL1L362->SetBinContent(45,2826.429); h_SL1L362->SetBinContent(46,2608.572); h_SL1L362->SetBinContent(47,2575.714); h_SL1L362->SetBinContent(48,2340.714); h_SL1L362->SetBinContent(49,13322.14); h_SL1L362->SetBinContent(50,1872.143); h_SL1L362->SetBinContent(51,1725); h_SL1L362->SetBinContent(52,1753.571); h_SL1L362->SetBinContent(53,99055); h_SL1L362->SetBinContent(54,1570.714); h_SL1L362->SetBinContent(55,1452.857); h_SL1L362->SetBinContent(56,114272.9); h_SL1L362->SetBinContent(57,1437.143); h_SL1L362->SetBinContent(58,1446.429); h_SL1L362->SetBinContent(59,1427.857); h_SL1L362->SetMaximum(261251.2); 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,377.8571); h_SL1L463->SetBinContent(3,361.4286); h_SL1L463->SetBinContent(4,363.5714); h_SL1L463->SetBinContent(5,369.2857); h_SL1L463->SetBinContent(6,382.8571); h_SL1L463->SetBinContent(7,439.2857); h_SL1L463->SetBinContent(8,465); h_SL1L463->SetBinContent(9,487.8571); h_SL1L463->SetBinContent(10,502.8571); h_SL1L463->SetBinContent(11,547.8572); h_SL1L463->SetBinContent(12,629.2857); h_SL1L463->SetBinContent(13,692.8572); h_SL1L463->SetBinContent(14,763.5715); h_SL1L463->SetBinContent(15,792.8572); h_SL1L463->SetBinContent(16,796.4286); h_SL1L463->SetBinContent(17,832.1429); h_SL1L463->SetBinContent(18,1076.429); h_SL1L463->SetBinContent(19,1165.714); h_SL1L463->SetBinContent(20,1332.857); h_SL1L463->SetBinContent(21,1486.429); h_SL1L463->SetBinContent(22,1632.143); h_SL1L463->SetBinContent(23,1858.572); h_SL1L463->SetBinContent(24,2105.714); h_SL1L463->SetBinContent(25,2365); h_SL1L463->SetBinContent(26,2504.286); h_SL1L463->SetBinContent(27,2852.857); h_SL1L463->SetBinContent(28,3589.286); h_SL1L463->SetBinContent(29,4070.714); h_SL1L463->SetBinContent(30,4563.572); h_SL1L463->SetBinContent(31,5536.429); h_SL1L463->SetBinContent(32,10154.29); h_SL1L463->SetBinContent(33,38373.57); h_SL1L463->SetBinContent(34,72646.43); h_SL1L463->SetBinContent(35,67945); h_SL1L463->SetBinContent(36,66437.86); h_SL1L463->SetBinContent(37,62645); h_SL1L463->SetBinContent(38,53763.57); h_SL1L463->SetBinContent(39,40226.43); h_SL1L463->SetBinContent(40,12572.86); h_SL1L463->SetBinContent(41,5925); h_SL1L463->SetBinContent(42,4125.714); h_SL1L463->SetBinContent(43,3618.572); h_SL1L463->SetBinContent(44,3293.572); h_SL1L463->SetBinContent(45,2891.429); h_SL1L463->SetBinContent(46,2723.572); h_SL1L463->SetBinContent(47,2539.286); h_SL1L463->SetBinContent(48,2394.286); h_SL1L463->SetBinContent(49,2145); h_SL1L463->SetBinContent(50,1909.286); h_SL1L463->SetBinContent(51,1697.857); h_SL1L463->SetBinContent(52,1652.143); h_SL1L463->SetBinContent(53,1610.714); h_SL1L463->SetBinContent(54,1529.286); h_SL1L463->SetBinContent(55,8.571428); h_SL1L463->SetBinContent(56,1425.714); h_SL1L463->SetBinContent(57,1355.714); h_SL1L463->SetBinContent(58,1477.143); h_SL1L463->SetBinContent(59,1405.714); h_SL1L463->SetMaximum(261251.2); 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 4988"); pt->Draw(); c->Modified(); c->cd(); c->SetSelected(c); }