void RatesPerCell_Removing_noisy_cells_run_5286_SL1() { //=========Macro generated from canvas: c/c //========= (Sun Jan 13 14:52:48 2019) by ROOT version6.02/13 TCanvas *c = new TCanvas("c", "c",0,0,800,600); gStyle->SetOptStat(0); c->Range(-7.500001,-11702.83,67.5,105325.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 5286",60,0,60); h_SL1L160->SetBinContent(1,285.7143); h_SL1L160->SetBinContent(2,307.1429); h_SL1L160->SetBinContent(3,367.8571); h_SL1L160->SetBinContent(4,360.7143); h_SL1L160->SetBinContent(5,310.7143); h_SL1L160->SetBinContent(6,353.5714); h_SL1L160->SetBinContent(7,292.8571); h_SL1L160->SetBinContent(8,300); h_SL1L160->SetBinContent(9,389.2857); h_SL1L160->SetBinContent(10,450); h_SL1L160->SetBinContent(11,407.1429); h_SL1L160->SetBinContent(12,382.1429); h_SL1L160->SetBinContent(13,589.2857); h_SL1L160->SetBinContent(14,603.5714); h_SL1L160->SetBinContent(15,542.8571); h_SL1L160->SetBinContent(16,603.5714); h_SL1L160->SetBinContent(17,660.7143); h_SL1L160->SetBinContent(18,860.7143); h_SL1L160->SetBinContent(19,907.1428); h_SL1L160->SetBinContent(20,946.4286); h_SL1L160->SetBinContent(21,1053.571); h_SL1L160->SetBinContent(22,1314.286); h_SL1L160->SetBinContent(23,1464.286); h_SL1L160->SetBinContent(24,1450); h_SL1L160->SetBinContent(25,1817.857); h_SL1L160->SetBinContent(26,1703.571); h_SL1L160->SetBinContent(27,1992.857); h_SL1L160->SetBinContent(28,2589.286); h_SL1L160->SetBinContent(29,3178.571); h_SL1L160->SetBinContent(30,3578.571); h_SL1L160->SetBinContent(31,4935.714); h_SL1L160->SetBinContent(32,9146.429); h_SL1L160->SetBinContent(33,45957.14); h_SL1L160->SetBinContent(34,49428.57); h_SL1L160->SetBinContent(35,48510.71); h_SL1L160->SetBinContent(36,45357.14); h_SL1L160->SetBinContent(37,44289.29); h_SL1L160->SetBinContent(38,35132.14); h_SL1L160->SetBinContent(39,20060.71); h_SL1L160->SetBinContent(40,4725); h_SL1L160->SetBinContent(41,3078.571); h_SL1L160->SetBinContent(42,2792.857); h_SL1L160->SetBinContent(43,2553.571); h_SL1L160->SetBinContent(44,2282.143); h_SL1L160->SetBinContent(45,1953.571); h_SL1L160->SetBinContent(46,1850); h_SL1L160->SetBinContent(47,1728.571); h_SL1L160->SetBinContent(48,1442.857); h_SL1L160->SetBinContent(49,1578.571); h_SL1L160->SetBinContent(50,1564.286); h_SL1L160->SetBinContent(51,1514.286); h_SL1L160->SetBinContent(52,1314.286); h_SL1L160->SetBinContent(53,1203.571); h_SL1L160->SetBinContent(54,1039.286); h_SL1L160->SetBinContent(55,960.7143); h_SL1L160->SetBinContent(56,1067.857); h_SL1L160->SetBinContent(57,1121.429); h_SL1L160->SetBinContent(58,960.7143); h_SL1L160->SetBinContent(59,1103.571); h_SL1L160->SetMaximum(93622.65); 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,325); h_SL1L261->SetBinContent(2,403.5714); h_SL1L261->SetBinContent(3,392.8571); h_SL1L261->SetBinContent(4,421.4286); h_SL1L261->SetBinContent(5,410.7143); h_SL1L261->SetBinContent(6,492.8571); h_SL1L261->SetBinContent(7,396.4286); h_SL1L261->SetBinContent(8,467.8571); h_SL1L261->SetBinContent(9,525); h_SL1L261->SetBinContent(10,539.2857); h_SL1L261->SetBinContent(11,617.8571); h_SL1L261->SetBinContent(12,592.8571); h_SL1L261->SetBinContent(13,696.4286); h_SL1L261->SetBinContent(14,739.2857); h_SL1L261->SetBinContent(15,853.5714); h_SL1L261->SetBinContent(16,707.1428); h_SL1L261->SetBinContent(17,850); h_SL1L261->SetBinContent(18,1039.286); h_SL1L261->SetBinContent(19,1246.429); h_SL1L261->SetBinContent(20,1203.571); h_SL1L261->SetBinContent(21,1467.857); h_SL1L261->SetBinContent(22,1714.286); h_SL1L261->SetBinContent(23,1921.429); h_SL1L261->SetBinContent(24,2078.571); h_SL1L261->SetBinContent(25,2407.143); h_SL1L261->SetBinContent(26,2500); h_SL1L261->SetBinContent(27,2950); h_SL1L261->SetBinContent(28,3296.428); h_SL1L261->SetBinContent(29,3864.286); h_SL1L261->SetBinContent(30,4407.143); h_SL1L261->SetBinContent(31,5182.143); h_SL1L261->SetBinContent(32,9364.285); h_SL1L261->SetBinContent(33,37432.14); h_SL1L261->SetBinContent(34,69878.57); h_SL1L261->SetBinContent(35,65057.14); h_SL1L261->SetBinContent(36,64482.14); h_SL1L261->SetBinContent(37,59907.14); h_SL1L261->SetBinContent(38,51585.71); h_SL1L261->SetBinContent(39,38025); h_SL1L261->SetBinContent(40,11996.43); h_SL1L261->SetBinContent(41,5564.286); h_SL1L261->SetBinContent(42,3714.286); h_SL1L261->SetBinContent(43,3567.857); h_SL1L261->SetBinContent(44,3192.857); h_SL1L261->SetBinContent(45,2960.714); h_SL1L261->SetBinContent(46,2685.714); h_SL1L261->SetBinContent(47,2396.428); h_SL1L261->SetBinContent(48,2171.428); h_SL1L261->SetBinContent(49,2450); h_SL1L261->SetBinContent(50,2035.714); h_SL1L261->SetBinContent(51,2014.286); h_SL1L261->SetBinContent(52,1785.714); h_SL1L261->SetBinContent(53,1707.143); h_SL1L261->SetBinContent(54,1600); h_SL1L261->SetBinContent(55,1428.571); h_SL1L261->SetBinContent(56,1510.714); h_SL1L261->SetBinContent(57,1500); h_SL1L261->SetBinContent(58,1492.857); h_SL1L261->SetBinContent(59,1382.143); h_SL1L261->SetMaximum(81411.79); 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,350); h_SL1L362->SetBinContent(2,375); h_SL1L362->SetBinContent(3,403.5714); h_SL1L362->SetBinContent(4,371.4286); h_SL1L362->SetBinContent(5,385.7143); h_SL1L362->SetBinContent(6,407.1429); h_SL1L362->SetBinContent(7,439.2857); h_SL1L362->SetBinContent(8,446.4286); h_SL1L362->SetBinContent(9,489.2857); h_SL1L362->SetBinContent(10,557.1428); h_SL1L362->SetBinContent(11,582.1428); h_SL1L362->SetBinContent(12,517.8571); h_SL1L362->SetBinContent(13,621.4286); h_SL1L362->SetBinContent(14,696.4286); h_SL1L362->SetBinContent(15,725); h_SL1L362->SetBinContent(16,767.8571); h_SL1L362->SetBinContent(17,900); h_SL1L362->SetBinContent(18,978.5714); h_SL1L362->SetBinContent(19,1200); h_SL1L362->SetBinContent(20,1210.714); h_SL1L362->SetBinContent(21,1525); h_SL1L362->SetBinContent(22,1696.429); h_SL1L362->SetBinContent(23,1853.571); h_SL1L362->SetBinContent(24,2160.714); h_SL1L362->SetBinContent(25,2400); h_SL1L362->SetBinContent(26,2571.428); h_SL1L362->SetBinContent(27,2910.714); h_SL1L362->SetBinContent(28,3617.857); h_SL1L362->SetBinContent(29,3992.857); h_SL1L362->SetBinContent(30,4489.286); h_SL1L362->SetBinContent(31,7267.857); h_SL1L362->SetBinContent(32,13314.29); h_SL1L362->SetBinContent(33,64953.57); h_SL1L362->SetBinContent(34,66996.43); h_SL1L362->SetBinContent(35,65492.86); h_SL1L362->SetBinContent(36,62453.57); h_SL1L362->SetBinContent(37,56700); h_SL1L362->SetBinContent(38,45171.43); h_SL1L362->SetBinContent(39,25796.43); h_SL1L362->SetBinContent(40,6650); h_SL1L362->SetBinContent(41,4064.286); h_SL1L362->SetBinContent(42,3664.286); h_SL1L362->SetBinContent(43,3207.143); h_SL1L362->SetBinContent(44,3164.286); h_SL1L362->SetBinContent(45,2610.714); h_SL1L362->SetBinContent(46,2557.143); h_SL1L362->SetBinContent(47,2378.571); h_SL1L362->SetBinContent(48,2003.571); h_SL1L362->SetBinContent(49,1985.714); h_SL1L362->SetBinContent(50,1982.143); h_SL1L362->SetBinContent(51,1871.429); h_SL1L362->SetBinContent(52,1642.857); h_SL1L362->SetBinContent(53,1607.143); h_SL1L362->SetBinContent(54,1485.714); h_SL1L362->SetBinContent(55,1317.857); h_SL1L362->SetBinContent(56,1396.429); h_SL1L362->SetBinContent(57,1471.429); h_SL1L362->SetBinContent(58,1471.429); h_SL1L362->SetBinContent(59,1385.714); h_SL1L362->SetMaximum(81411.79); 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,360.7143); h_SL1L463->SetBinContent(3,328.5714); h_SL1L463->SetBinContent(4,353.5714); h_SL1L463->SetBinContent(5,396.4286); h_SL1L463->SetBinContent(6,382.1429); h_SL1L463->SetBinContent(7,314.2857); h_SL1L463->SetBinContent(8,375); h_SL1L463->SetBinContent(9,442.8571); h_SL1L463->SetBinContent(10,467.8571); h_SL1L463->SetBinContent(11,471.4286); h_SL1L463->SetBinContent(12,525); h_SL1L463->SetBinContent(13,525); h_SL1L463->SetBinContent(14,635.7143); h_SL1L463->SetBinContent(15,685.7143); h_SL1L463->SetBinContent(16,685.7143); h_SL1L463->SetBinContent(17,800); h_SL1L463->SetBinContent(18,928.5714); h_SL1L463->SetBinContent(19,1017.857); h_SL1L463->SetBinContent(20,1153.571); h_SL1L463->SetBinContent(21,1307.143); h_SL1L463->SetBinContent(22,1535.714); h_SL1L463->SetBinContent(23,1646.429); h_SL1L463->SetBinContent(24,1907.143); h_SL1L463->SetBinContent(25,2185.714); h_SL1L463->SetBinContent(26,2396.428); h_SL1L463->SetBinContent(27,2771.428); h_SL1L463->SetBinContent(28,3164.286); h_SL1L463->SetBinContent(29,3717.857); h_SL1L463->SetBinContent(30,4203.571); h_SL1L463->SetBinContent(31,5071.429); h_SL1L463->SetBinContent(32,9335.714); h_SL1L463->SetBinContent(33,36839.29); h_SL1L463->SetBinContent(34,70792.86); h_SL1L463->SetBinContent(35,65828.57); h_SL1L463->SetBinContent(36,64928.57); h_SL1L463->SetBinContent(37,60425); h_SL1L463->SetBinContent(38,51796.43); h_SL1L463->SetBinContent(39,38275); h_SL1L463->SetBinContent(40,12164.29); h_SL1L463->SetBinContent(41,5600); h_SL1L463->SetBinContent(42,3564.286); h_SL1L463->SetBinContent(43,3453.571); h_SL1L463->SetBinContent(44,3135.714); h_SL1L463->SetBinContent(45,2750); h_SL1L463->SetBinContent(46,2550); h_SL1L463->SetBinContent(47,2267.857); h_SL1L463->SetBinContent(48,2157.143); h_SL1L463->SetBinContent(49,2032.143); h_SL1L463->SetBinContent(50,1982.143); h_SL1L463->SetBinContent(51,1864.286); h_SL1L463->SetBinContent(52,1635.714); h_SL1L463->SetBinContent(53,1567.857); h_SL1L463->SetBinContent(54,1471.429); h_SL1L463->SetBinContent(56,1425); h_SL1L463->SetBinContent(57,1407.143); h_SL1L463->SetBinContent(58,1396.429); h_SL1L463->SetBinContent(59,1303.571); h_SL1L463->SetMaximum(81411.79); 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 5286"); pt->Draw(); c->Modified(); c->cd(); c->SetSelected(c); }