void RatesPerCell_Removing_noisy_cells_run_5392_SL1() { //=========Macro generated from canvas: c/c //========= (Sun Jan 13 15:02:58 2019) by ROOT version6.02/13 TCanvas *c = new TCanvas("c", "c",0,0,800,600); gStyle->SetOptStat(0); c->Range(-7.500001,-11826.89,67.5,106442); c->SetFillColor(0); c->SetBorderMode(0); c->SetBorderSize(2); c->SetFrameBorderMode(0); c->SetFrameBorderMode(0); TH1D *h_SL1L160 = new TH1D("h_SL1L160","SL1, run 5392",60,0,60); h_SL1L160->SetBinContent(1,450); h_SL1L160->SetBinContent(2,450); h_SL1L160->SetBinContent(3,592.8571); h_SL1L160->SetBinContent(4,600); h_SL1L160->SetBinContent(5,475); h_SL1L160->SetBinContent(6,610.7143); h_SL1L160->SetBinContent(7,546.4286); h_SL1L160->SetBinContent(8,678.5714); h_SL1L160->SetBinContent(9,660.7143); h_SL1L160->SetBinContent(10,839.2857); h_SL1L160->SetBinContent(11,753.5714); h_SL1L160->SetBinContent(12,985.7143); h_SL1L160->SetBinContent(13,1014.286); h_SL1L160->SetBinContent(14,1096.429); h_SL1L160->SetBinContent(15,1014.286); h_SL1L160->SetBinContent(16,1067.857); h_SL1L160->SetBinContent(17,1357.143); h_SL1L160->SetBinContent(18,1425); h_SL1L160->SetBinContent(19,1625); h_SL1L160->SetBinContent(20,1596.429); h_SL1L160->SetBinContent(21,2050); h_SL1L160->SetBinContent(22,2196.428); h_SL1L160->SetBinContent(23,2278.571); h_SL1L160->SetBinContent(24,2757.143); h_SL1L160->SetBinContent(25,2885.714); h_SL1L160->SetBinContent(26,3028.571); h_SL1L160->SetBinContent(27,3435.714); h_SL1L160->SetBinContent(28,4382.143); h_SL1L160->SetBinContent(29,4703.571); h_SL1L160->SetBinContent(30,5267.857); h_SL1L160->SetBinContent(31,7303.571); h_SL1L160->SetBinContent(32,14446.43); h_SL1L160->SetBinContent(33,68114.28); h_SL1L160->SetBinContent(34,68407.14); h_SL1L160->SetBinContent(35,64382.14); h_SL1L160->SetBinContent(36,61503.57); h_SL1L160->SetBinContent(37,56267.86); h_SL1L160->SetBinContent(38,44778.57); h_SL1L160->SetBinContent(39,25171.43); h_SL1L160->SetBinContent(40,7321.429); h_SL1L160->SetBinContent(41,4792.857); h_SL1L160->SetBinContent(42,3950); h_SL1L160->SetBinContent(43,3625); h_SL1L160->SetBinContent(44,3275); h_SL1L160->SetBinContent(45,3385.714); h_SL1L160->SetBinContent(46,2767.857); h_SL1L160->SetBinContent(47,2750); h_SL1L160->SetBinContent(48,2764.286); h_SL1L160->SetBinContent(49,2435.714); h_SL1L160->SetBinContent(50,2164.286); h_SL1L160->SetBinContent(51,2185.714); h_SL1L160->SetBinContent(52,1935.714); h_SL1L160->SetBinContent(53,1846.429); h_SL1L160->SetBinContent(54,1810.714); h_SL1L160->SetBinContent(55,1517.857); h_SL1L160->SetBinContent(56,1553.571); h_SL1L160->SetBinContent(57,1557.143); h_SL1L160->SetBinContent(58,1517.857); h_SL1L160->SetBinContent(59,1575); h_SL1L160->SetMaximum(94615.1); 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,392.8571); h_SL1L261->SetBinContent(2,392.8571); h_SL1L261->SetBinContent(3,435.7143); h_SL1L261->SetBinContent(4,517.8571); h_SL1L261->SetBinContent(5,464.2857); h_SL1L261->SetBinContent(6,482.1429); h_SL1L261->SetBinContent(7,475); h_SL1L261->SetBinContent(8,567.8571); h_SL1L261->SetBinContent(9,571.4286); h_SL1L261->SetBinContent(10,710.7143); h_SL1L261->SetBinContent(11,678.5714); h_SL1L261->SetBinContent(12,878.5714); h_SL1L261->SetBinContent(13,896.4286); h_SL1L261->SetBinContent(14,957.1428); h_SL1L261->SetBinContent(15,1028.571); h_SL1L261->SetBinContent(16,960.7143); h_SL1L261->SetBinContent(17,1175); h_SL1L261->SetBinContent(18,1307.143); h_SL1L261->SetBinContent(19,1435.714); h_SL1L261->SetBinContent(20,1585.714); h_SL1L261->SetBinContent(21,1700); h_SL1L261->SetBinContent(22,1975); h_SL1L261->SetBinContent(23,2164.286); h_SL1L261->SetBinContent(24,2521.428); h_SL1L261->SetBinContent(25,2650); h_SL1L261->SetBinContent(26,2714.286); h_SL1L261->SetBinContent(27,3178.571); h_SL1L261->SetBinContent(28,3746.428); h_SL1L261->SetBinContent(29,4457.143); h_SL1L261->SetBinContent(30,4957.143); h_SL1L261->SetBinContent(31,5560.714); h_SL1L261->SetBinContent(32,9685.714); h_SL1L261->SetBinContent(33,40267.86); h_SL1L261->SetBinContent(34,71542.86); h_SL1L261->SetBinContent(35,65125); h_SL1L261->SetBinContent(36,63710.71); h_SL1L261->SetBinContent(37,59821.43); h_SL1L261->SetBinContent(38,50907.14); h_SL1L261->SetBinContent(39,37192.86); h_SL1L261->SetBinContent(40,11964.29); h_SL1L261->SetBinContent(41,6117.857); h_SL1L261->SetBinContent(42,4075); h_SL1L261->SetBinContent(43,3850); h_SL1L261->SetBinContent(44,3175); h_SL1L261->SetBinContent(45,3246.428); h_SL1L261->SetBinContent(46,2950); h_SL1L261->SetBinContent(47,2657.143); h_SL1L261->SetBinContent(48,2646.428); h_SL1L261->SetBinContent(49,2585.714); h_SL1L261->SetBinContent(50,2260.714); h_SL1L261->SetBinContent(51,1935.714); h_SL1L261->SetBinContent(52,1903.571); h_SL1L261->SetBinContent(53,1857.143); h_SL1L261->SetBinContent(54,1807.143); h_SL1L261->SetBinContent(55,1610.714); h_SL1L261->SetBinContent(56,1457.143); h_SL1L261->SetBinContent(57,1539.286); h_SL1L261->SetBinContent(58,1521.429); h_SL1L261->SetBinContent(59,1403.571); h_SL1L261->SetMaximum(82274.29); 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,353.5714); h_SL1L362->SetBinContent(2,385.7143); h_SL1L362->SetBinContent(3,507.1429); h_SL1L362->SetBinContent(4,475); h_SL1L362->SetBinContent(5,392.8571); h_SL1L362->SetBinContent(6,457.1429); h_SL1L362->SetBinContent(7,460.7143); h_SL1L362->SetBinContent(8,564.2857); h_SL1L362->SetBinContent(9,582.1428); h_SL1L362->SetBinContent(10,714.2857); h_SL1L362->SetBinContent(11,710.7143); h_SL1L362->SetBinContent(12,828.5714); h_SL1L362->SetBinContent(13,892.8571); h_SL1L362->SetBinContent(14,921.4286); h_SL1L362->SetBinContent(15,942.8571); h_SL1L362->SetBinContent(16,1042.857); h_SL1L362->SetBinContent(17,1282.143); h_SL1L362->SetBinContent(18,1246.429); h_SL1L362->SetBinContent(19,1571.429); h_SL1L362->SetBinContent(20,1535.714); h_SL1L362->SetBinContent(21,1896.429); h_SL1L362->SetBinContent(22,1928.571); h_SL1L362->SetBinContent(23,2100); h_SL1L362->SetBinContent(24,2478.571); h_SL1L362->SetBinContent(25,2678.571); h_SL1L362->SetBinContent(26,2742.857); h_SL1L362->SetBinContent(27,3228.571); h_SL1L362->SetBinContent(28,4142.857); h_SL1L362->SetBinContent(29,4528.571); h_SL1L362->SetBinContent(30,5110.714); h_SL1L362->SetBinContent(31,7057.143); h_SL1L362->SetBinContent(32,14335.71); h_SL1L362->SetBinContent(33,68196.43); h_SL1L362->SetBinContent(34,68289.28); h_SL1L362->SetBinContent(35,64117.86); h_SL1L362->SetBinContent(36,61657.14); h_SL1L362->SetBinContent(37,56307.14); h_SL1L362->SetBinContent(38,44742.86); h_SL1L362->SetBinContent(39,25214.29); h_SL1L362->SetBinContent(40,7132.143); h_SL1L362->SetBinContent(41,4617.857); h_SL1L362->SetBinContent(42,3707.143); h_SL1L362->SetBinContent(43,3346.428); h_SL1L362->SetBinContent(44,3085.714); h_SL1L362->SetBinContent(45,3160.714); h_SL1L362->SetBinContent(46,2610.714); h_SL1L362->SetBinContent(47,2439.286); h_SL1L362->SetBinContent(48,2553.571); h_SL1L362->SetBinContent(49,2207.143); h_SL1L362->SetBinContent(50,1982.143); h_SL1L362->SetBinContent(51,2046.429); h_SL1L362->SetBinContent(52,1685.714); h_SL1L362->SetBinContent(53,1742.857); h_SL1L362->SetBinContent(54,1667.857); h_SL1L362->SetBinContent(55,1475); h_SL1L362->SetBinContent(56,1489.286); h_SL1L362->SetBinContent(57,1432.143); h_SL1L362->SetBinContent(58,1403.571); h_SL1L362->SetBinContent(59,1400); h_SL1L362->SetMaximum(82274.29); 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,296.4286); h_SL1L463->SetBinContent(3,289.2857); h_SL1L463->SetBinContent(4,317.8571); h_SL1L463->SetBinContent(5,239.2857); h_SL1L463->SetBinContent(6,253.5714); h_SL1L463->SetBinContent(7,321.4286); h_SL1L463->SetBinContent(8,303.5714); h_SL1L463->SetBinContent(9,364.2857); h_SL1L463->SetBinContent(10,507.1429); h_SL1L463->SetBinContent(11,439.2857); h_SL1L463->SetBinContent(12,592.8571); h_SL1L463->SetBinContent(13,500); h_SL1L463->SetBinContent(14,675); h_SL1L463->SetBinContent(15,707.1428); h_SL1L463->SetBinContent(16,675); h_SL1L463->SetBinContent(17,796.4286); h_SL1L463->SetBinContent(18,764.2857); h_SL1L463->SetBinContent(19,967.8571); h_SL1L463->SetBinContent(20,1107.143); h_SL1L463->SetBinContent(21,1117.857); h_SL1L463->SetBinContent(22,1350); h_SL1L463->SetBinContent(23,1546.429); h_SL1L463->SetBinContent(24,1603.571); h_SL1L463->SetBinContent(25,1657.143); h_SL1L463->SetBinContent(26,1764.286); h_SL1L463->SetBinContent(27,2207.143); h_SL1L463->SetBinContent(28,2546.428); h_SL1L463->SetBinContent(29,2789.286); h_SL1L463->SetBinContent(30,3339.286); h_SL1L463->SetBinContent(31,4057.143); h_SL1L463->SetBinContent(32,6471.429); h_SL1L463->SetBinContent(33,26935.71); h_SL1L463->SetBinContent(34,53421.43); h_SL1L463->SetBinContent(35,51310.71); h_SL1L463->SetBinContent(36,47939.29); h_SL1L463->SetBinContent(37,41957.14); h_SL1L463->SetBinContent(38,37442.86); h_SL1L463->SetBinContent(39,28853.57); h_SL1L463->SetBinContent(40,8439.285); h_SL1L463->SetBinContent(41,4342.857); h_SL1L463->SetBinContent(42,3064.286); h_SL1L463->SetBinContent(43,2796.428); h_SL1L463->SetBinContent(44,2357.143); h_SL1L463->SetBinContent(45,2246.428); h_SL1L463->SetBinContent(46,2125); h_SL1L463->SetBinContent(47,1689.286); h_SL1L463->SetBinContent(48,1710.714); h_SL1L463->SetBinContent(49,1560.714); h_SL1L463->SetBinContent(50,1435.714); h_SL1L463->SetBinContent(51,1325); h_SL1L463->SetBinContent(52,1325); h_SL1L463->SetBinContent(53,1200); h_SL1L463->SetBinContent(54,1071.429); h_SL1L463->SetBinContent(56,1025); h_SL1L463->SetBinContent(57,896.4286); h_SL1L463->SetBinContent(58,989.2857); h_SL1L463->SetBinContent(59,910.7143); h_SL1L463->SetMaximum(82274.29); 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 5392"); pt->Draw(); c->Modified(); c->cd(); c->SetSelected(c); }