void RatesPerCell_Removing_noisy_cells_run_5362_SL1() { //=========Macro generated from canvas: c/c //========= (Sun Jan 13 15:31:33 2019) by ROOT version6.02/13 TCanvas *c = new TCanvas("c", "c",0,0,800,600); gStyle->SetOptStat(0); c->Range(-7.500001,-12061.78,67.5,108556); c->SetFillColor(0); c->SetBorderMode(0); c->SetBorderSize(2); c->SetFrameBorderMode(0); c->SetFrameBorderMode(0); TH1D *h_SL1L160 = new TH1D("h_SL1L160","SL1, run 5362",60,0,60); h_SL1L160->SetBinContent(1,381.4286); h_SL1L160->SetBinContent(2,338.5714); h_SL1L160->SetBinContent(3,404.2857); h_SL1L160->SetBinContent(4,415.7143); h_SL1L160->SetBinContent(5,407.1429); h_SL1L160->SetBinContent(6,412.8571); h_SL1L160->SetBinContent(7,424.2857); h_SL1L160->SetBinContent(8,562.8572); h_SL1L160->SetBinContent(9,445.7143); h_SL1L160->SetBinContent(10,584.2857); h_SL1L160->SetBinContent(11,645.7143); h_SL1L160->SetBinContent(12,660); h_SL1L160->SetBinContent(13,725.7143); h_SL1L160->SetBinContent(14,764.2857); h_SL1L160->SetBinContent(15,772.8572); h_SL1L160->SetBinContent(16,730); h_SL1L160->SetBinContent(17,794.2857); h_SL1L160->SetBinContent(18,1181.429); h_SL1L160->SetBinContent(19,1190); h_SL1L160->SetBinContent(20,1330); h_SL1L160->SetBinContent(21,1517.143); h_SL1L160->SetBinContent(22,1695.714); h_SL1L160->SetBinContent(23,1761.429); h_SL1L160->SetBinContent(24,1990); h_SL1L160->SetBinContent(25,2172.857); h_SL1L160->SetBinContent(26,2430); h_SL1L160->SetBinContent(27,2842.857); h_SL1L160->SetBinContent(28,3317.143); h_SL1L160->SetBinContent(29,3757.143); h_SL1L160->SetBinContent(30,4068.572); h_SL1L160->SetBinContent(31,5602.857); h_SL1L160->SetBinContent(32,10701.43); h_SL1L160->SetBinContent(33,55634.29); h_SL1L160->SetBinContent(34,56831.43); h_SL1L160->SetBinContent(35,54125.71); h_SL1L160->SetBinContent(36,51170); h_SL1L160->SetBinContent(37,48934.29); h_SL1L160->SetBinContent(38,39220); h_SL1L160->SetBinContent(39,22142.86); h_SL1L160->SetBinContent(40,5585.714); h_SL1L160->SetBinContent(41,3871.429); h_SL1L160->SetBinContent(42,3317.143); h_SL1L160->SetBinContent(43,2921.429); h_SL1L160->SetBinContent(44,2635.714); h_SL1L160->SetBinContent(45,2420); h_SL1L160->SetBinContent(46,2184.286); h_SL1L160->SetBinContent(47,2181.429); h_SL1L160->SetBinContent(48,1902.857); h_SL1L160->SetBinContent(49,1921.429); h_SL1L160->SetBinContent(50,1757.143); h_SL1L160->SetBinContent(51,1627.143); h_SL1L160->SetBinContent(52,1447.143); h_SL1L160->SetBinContent(53,1477.143); h_SL1L160->SetBinContent(54,1368.571); h_SL1L160->SetBinContent(55,1201.429); h_SL1L160->SetBinContent(56,1128.571); h_SL1L160->SetBinContent(57,1252.857); h_SL1L160->SetBinContent(58,1162.857); h_SL1L160->SetBinContent(59,1174.286); h_SL1L160->SetMaximum(96494.2); 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,402.8571); h_SL1L261->SetBinContent(2,395.7143); h_SL1L261->SetBinContent(3,395.7143); h_SL1L261->SetBinContent(4,464.2857); h_SL1L261->SetBinContent(5,478.5714); h_SL1L261->SetBinContent(6,424.2857); h_SL1L261->SetBinContent(7,524.2857); h_SL1L261->SetBinContent(8,537.1429); h_SL1L261->SetBinContent(9,582.8572); h_SL1L261->SetBinContent(10,571.4286); h_SL1L261->SetBinContent(11,700); h_SL1L261->SetBinContent(12,748.5715); h_SL1L261->SetBinContent(13,802.8572); h_SL1L261->SetBinContent(14,902.8572); h_SL1L261->SetBinContent(15,950); h_SL1L261->SetBinContent(16,937.1429); h_SL1L261->SetBinContent(17,965.7143); h_SL1L261->SetBinContent(18,1262.857); h_SL1L261->SetBinContent(19,1308.571); h_SL1L261->SetBinContent(20,1480); h_SL1L261->SetBinContent(21,1731.429); h_SL1L261->SetBinContent(22,1937.143); h_SL1L261->SetBinContent(23,2067.143); h_SL1L261->SetBinContent(24,2407.143); h_SL1L261->SetBinContent(25,2651.429); h_SL1L261->SetBinContent(26,2672.857); h_SL1L261->SetBinContent(27,3161.429); h_SL1L261->SetBinContent(28,3857.143); h_SL1L261->SetBinContent(29,4341.429); h_SL1L261->SetBinContent(30,4562.857); h_SL1L261->SetBinContent(31,5412.857); h_SL1L261->SetBinContent(32,9678.571); h_SL1L261->SetBinContent(33,39580); h_SL1L261->SetBinContent(34,72094.29); h_SL1L261->SetBinContent(35,64750); h_SL1L261->SetBinContent(36,63755.71); h_SL1L261->SetBinContent(37,59407.14); h_SL1L261->SetBinContent(38,51361.43); h_SL1L261->SetBinContent(39,37622.86); h_SL1L261->SetBinContent(40,12098.57); h_SL1L261->SetBinContent(41,5805.714); h_SL1L261->SetBinContent(42,4095.714); h_SL1L261->SetBinContent(43,3640); h_SL1L261->SetBinContent(44,3281.429); h_SL1L261->SetBinContent(45,3070); h_SL1L261->SetBinContent(46,2777.143); h_SL1L261->SetBinContent(47,2614.286); h_SL1L261->SetBinContent(48,2447.143); h_SL1L261->SetBinContent(49,2410); h_SL1L261->SetBinContent(50,2197.143); h_SL1L261->SetBinContent(51,1967.143); h_SL1L261->SetBinContent(52,1924.286); h_SL1L261->SetBinContent(53,1815.714); h_SL1L261->SetBinContent(54,1765.714); h_SL1L261->SetBinContent(55,1508.571); h_SL1L261->SetBinContent(56,1534.286); h_SL1L261->SetBinContent(57,1418.571); h_SL1L261->SetBinContent(58,1484.286); h_SL1L261->SetBinContent(59,1378.571); h_SL1L261->SetMaximum(83908.93); 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,375.7143); h_SL1L362->SetBinContent(2,351.4286); h_SL1L362->SetBinContent(3,384.2857); h_SL1L362->SetBinContent(4,432.8571); h_SL1L362->SetBinContent(5,441.4286); h_SL1L362->SetBinContent(6,437.1429); h_SL1L362->SetBinContent(7,424.2857); h_SL1L362->SetBinContent(8,564.2857); h_SL1L362->SetBinContent(9,497.1429); h_SL1L362->SetBinContent(10,635.7143); h_SL1L362->SetBinContent(11,661.4286); h_SL1L362->SetBinContent(12,770); h_SL1L362->SetBinContent(13,782.8572); h_SL1L362->SetBinContent(14,888.5715); h_SL1L362->SetBinContent(15,852.8572); h_SL1L362->SetBinContent(16,931.4286); h_SL1L362->SetBinContent(17,1015.714); h_SL1L362->SetBinContent(18,1238.571); h_SL1L362->SetBinContent(19,1357.143); h_SL1L362->SetBinContent(20,1551.429); h_SL1L362->SetBinContent(21,1725.714); h_SL1L362->SetBinContent(22,1980); h_SL1L362->SetBinContent(23,2107.143); h_SL1L362->SetBinContent(24,2462.857); h_SL1L362->SetBinContent(25,2660); h_SL1L362->SetBinContent(26,2902.857); h_SL1L362->SetBinContent(27,3348.572); h_SL1L362->SetBinContent(28,3997.143); h_SL1L362->SetBinContent(29,4460); h_SL1L362->SetBinContent(30,4804.286); h_SL1L362->SetBinContent(31,7118.572); h_SL1L362->SetBinContent(32,13941.43); h_SL1L362->SetBinContent(33,68181.43); h_SL1L362->SetBinContent(34,67900); h_SL1L362->SetBinContent(35,64370); h_SL1L362->SetBinContent(36,61838.57); h_SL1L362->SetBinContent(37,56360); h_SL1L362->SetBinContent(38,45265.71); h_SL1L362->SetBinContent(39,25575.71); h_SL1L362->SetBinContent(40,6830); h_SL1L362->SetBinContent(41,4568.572); h_SL1L362->SetBinContent(42,3837.143); h_SL1L362->SetBinContent(43,3387.143); h_SL1L362->SetBinContent(44,3088.572); h_SL1L362->SetBinContent(45,2834.286); h_SL1L362->SetBinContent(46,2674.286); h_SL1L362->SetBinContent(47,2521.429); h_SL1L362->SetBinContent(48,2342.857); h_SL1L362->SetBinContent(49,2125.714); h_SL1L362->SetBinContent(50,2015.714); h_SL1L362->SetBinContent(51,1892.857); h_SL1L362->SetBinContent(52,1742.857); h_SL1L362->SetBinContent(53,1731.429); h_SL1L362->SetBinContent(54,1547.143); h_SL1L362->SetBinContent(55,1461.429); h_SL1L362->SetBinContent(56,1348.571); h_SL1L362->SetBinContent(57,1425.714); h_SL1L362->SetBinContent(58,1391.429); h_SL1L362->SetBinContent(59,1300); h_SL1L362->SetMaximum(83908.93); 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,460); h_SL1L463->SetBinContent(3,335.7143); h_SL1L463->SetBinContent(4,362.8571); h_SL1L463->SetBinContent(5,427.1429); h_SL1L463->SetBinContent(6,364.2857); h_SL1L463->SetBinContent(7,450); h_SL1L463->SetBinContent(8,462.8571); h_SL1L463->SetBinContent(9,484.2857); h_SL1L463->SetBinContent(10,501.4286); h_SL1L463->SetBinContent(11,598.5715); h_SL1L463->SetBinContent(12,651.4286); h_SL1L463->SetBinContent(13,698.5715); h_SL1L463->SetBinContent(14,777.1429); h_SL1L463->SetBinContent(15,832.8572); h_SL1L463->SetBinContent(16,847.1429); h_SL1L463->SetBinContent(17,880); h_SL1L463->SetBinContent(18,1141.429); h_SL1L463->SetBinContent(19,1190); h_SL1L463->SetBinContent(20,1382.857); h_SL1L463->SetBinContent(21,1551.429); h_SL1L463->SetBinContent(22,1742.857); h_SL1L463->SetBinContent(23,1875.714); h_SL1L463->SetBinContent(24,2210); h_SL1L463->SetBinContent(25,2441.429); h_SL1L463->SetBinContent(26,2602.857); h_SL1L463->SetBinContent(27,3060); h_SL1L463->SetBinContent(28,3584.286); h_SL1L463->SetBinContent(29,4134.286); h_SL1L463->SetBinContent(30,4441.429); h_SL1L463->SetBinContent(31,5244.286); h_SL1L463->SetBinContent(32,9518.571); h_SL1L463->SetBinContent(33,39405.71); h_SL1L463->SetBinContent(34,72964.29); h_SL1L463->SetBinContent(35,65521.43); h_SL1L463->SetBinContent(36,64074.29); h_SL1L463->SetBinContent(37,59752.86); h_SL1L463->SetBinContent(38,51408.57); h_SL1L463->SetBinContent(39,37887.14); h_SL1L463->SetBinContent(40,12174.29); h_SL1L463->SetBinContent(41,5731.429); h_SL1L463->SetBinContent(42,4118.571); h_SL1L463->SetBinContent(43,3518.572); h_SL1L463->SetBinContent(44,3145.714); h_SL1L463->SetBinContent(45,2904.286); h_SL1L463->SetBinContent(46,2707.143); h_SL1L463->SetBinContent(47,2448.572); h_SL1L463->SetBinContent(48,2282.857); h_SL1L463->SetBinContent(49,2191.429); h_SL1L463->SetBinContent(50,2014.286); h_SL1L463->SetBinContent(51,1827.143); h_SL1L463->SetBinContent(52,1807.143); h_SL1L463->SetBinContent(53,1671.429); h_SL1L463->SetBinContent(54,1677.143); h_SL1L463->SetBinContent(55,28.57143); h_SL1L463->SetBinContent(56,1352.857); h_SL1L463->SetBinContent(57,1342.857); h_SL1L463->SetBinContent(58,1424.286); h_SL1L463->SetBinContent(59,1271.429); h_SL1L463->SetMaximum(83908.93); 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 5362"); pt->Draw(); c->Modified(); c->cd(); c->SetSelected(c); }