void RatesPerCell_Removing_noisy_cells_run_5168_SL2() { //=========Macro generated from canvas: c/c //========= (Sun Jan 13 15:33:28 2019) by ROOT version6.02/13 TCanvas *c = new TCanvas("c", "c",0,0,800,600); gStyle->SetOptStat(0); c->Range(-7.500001,-11131.57,67.5,100184.1); c->SetFillColor(0); c->SetBorderMode(0); c->SetBorderSize(2); c->SetFrameBorderMode(0); c->SetFrameBorderMode(0); TH1D *h_SL2L164 = new TH1D("h_SL2L164","SL2, run 5168",60,0,60); h_SL2L164->SetBinContent(1,602.8572); h_SL2L164->SetBinContent(2,784.2857); h_SL2L164->SetBinContent(3,922.8572); h_SL2L164->SetBinContent(4,1034.286); h_SL2L164->SetBinContent(5,1065.714); h_SL2L164->SetBinContent(6,1048.571); h_SL2L164->SetBinContent(7,1002.857); h_SL2L164->SetBinContent(8,1148.571); h_SL2L164->SetBinContent(9,1241.429); h_SL2L164->SetBinContent(10,1427.143); h_SL2L164->SetBinContent(11,1475.714); h_SL2L164->SetBinContent(12,1652.857); h_SL2L164->SetBinContent(13,1794.286); h_SL2L164->SetBinContent(14,1874.286); h_SL2L164->SetBinContent(15,2088.572); h_SL2L164->SetBinContent(16,2227.143); h_SL2L164->SetBinContent(17,2384.286); h_SL2L164->SetBinContent(18,2541.429); h_SL2L164->SetBinContent(19,2770); h_SL2L164->SetBinContent(20,3004.286); h_SL2L164->SetBinContent(21,3227.143); h_SL2L164->SetBinContent(22,3352.857); h_SL2L164->SetBinContent(23,3614.286); h_SL2L164->SetBinContent(24,4018.572); h_SL2L164->SetBinContent(25,8674.286); h_SL2L164->SetBinContent(26,28375.71); h_SL2L164->SetBinContent(27,43820); h_SL2L164->SetBinContent(28,51197.14); h_SL2L164->SetBinContent(29,53721.43); h_SL2L164->SetBinContent(30,51250); h_SL2L164->SetBinContent(31,47028.57); h_SL2L164->SetBinContent(32,47294.29); h_SL2L164->SetBinContent(33,45125.71); h_SL2L164->SetBinContent(34,26185.71); h_SL2L164->SetBinContent(36,4251.429); h_SL2L164->SetBinContent(37,3730); h_SL2L164->SetBinContent(38,3102.857); h_SL2L164->SetBinContent(39,3017.143); h_SL2L164->SetBinContent(40,67337.14); h_SL2L164->SetBinContent(41,3305.714); h_SL2L164->SetBinContent(42,3358.572); h_SL2L164->SetBinContent(43,3302.857); h_SL2L164->SetBinContent(44,3157.143); h_SL2L164->SetBinContent(45,1321.429); h_SL2L164->SetBinContent(46,1308.571); h_SL2L164->SetBinContent(47,1168.571); h_SL2L164->SetBinContent(48,1130); h_SL2L164->SetBinContent(49,977.1429); h_SL2L164->SetBinContent(50,834.2857); h_SL2L164->SetBinContent(51,797.1429); h_SL2L164->SetBinContent(52,764.2857); h_SL2L164->SetBinContent(53,765.7143); h_SL2L164->SetBinContent(54,662.8572); h_SL2L164->SetBinContent(55,657.1429); h_SL2L164->SetBinContent(56,528.5714); h_SL2L164->SetBinContent(57,444.2857); h_SL2L164->SetMaximum(89052.55); h_SL2L164->SetEntries(60); h_SL2L164->SetDirectory(0); h_SL2L164->SetStats(0); h_SL2L164->SetLineWidth(2); h_SL2L164->GetXaxis()->SetTitle("Cell"); h_SL2L164->GetXaxis()->SetLabelFont(42); h_SL2L164->GetXaxis()->SetLabelSize(0.035); h_SL2L164->GetXaxis()->SetTitleSize(0.035); h_SL2L164->GetXaxis()->SetTitleFont(42); h_SL2L164->GetYaxis()->SetTitle("Hz"); h_SL2L164->GetYaxis()->SetLabelFont(42); h_SL2L164->GetYaxis()->SetLabelSize(0.035); h_SL2L164->GetYaxis()->SetTitleSize(0.035); h_SL2L164->GetYaxis()->SetTitleOffset(1.45); h_SL2L164->GetYaxis()->SetTitleFont(42); h_SL2L164->GetZaxis()->SetLabelFont(42); h_SL2L164->GetZaxis()->SetLabelSize(0.035); h_SL2L164->GetZaxis()->SetTitleSize(0.035); h_SL2L164->GetZaxis()->SetTitleFont(42); h_SL2L164->Draw(""); TH1D *h_SL2L265 = new TH1D("h_SL2L265","",60,0,60); h_SL2L265->SetBinContent(1,585.7143); h_SL2L265->SetBinContent(2,692.8572); h_SL2L265->SetBinContent(3,842.8572); h_SL2L265->SetBinContent(4,952.8572); h_SL2L265->SetBinContent(5,1020); h_SL2L265->SetBinContent(6,1037.143); h_SL2L265->SetBinContent(7,990); h_SL2L265->SetBinContent(8,1034.286); h_SL2L265->SetBinContent(9,1172.857); h_SL2L265->SetBinContent(10,1258.571); h_SL2L265->SetBinContent(11,1394.286); h_SL2L265->SetBinContent(12,1518.571); h_SL2L265->SetBinContent(13,1701.429); h_SL2L265->SetBinContent(14,1780); h_SL2L265->SetBinContent(15,1972.857); h_SL2L265->SetBinContent(16,2174.286); h_SL2L265->SetBinContent(17,2197.143); h_SL2L265->SetBinContent(18,2465.714); h_SL2L265->SetBinContent(19,2578.572); h_SL2L265->SetBinContent(20,2854.286); h_SL2L265->SetBinContent(21,2947.143); h_SL2L265->SetBinContent(22,3240); h_SL2L265->SetBinContent(23,3484.286); h_SL2L265->SetBinContent(24,3704.286); h_SL2L265->SetBinContent(25,4495.714); h_SL2L265->SetBinContent(26,17935.71); h_SL2L265->SetBinContent(27,37118.57); h_SL2L265->SetBinContent(28,47988.57); h_SL2L265->SetBinContent(29,52718.57); h_SL2L265->SetBinContent(30,52941.43); h_SL2L265->SetBinContent(31,48385.71); h_SL2L265->SetBinContent(32,46468.57); h_SL2L265->SetBinContent(33,46550); h_SL2L265->SetBinContent(34,39081.43); h_SL2L265->SetBinContent(35,14187.14); h_SL2L265->SetBinContent(36,5165.714); h_SL2L265->SetBinContent(37,3591.429); h_SL2L265->SetBinContent(38,2990); h_SL2L265->SetBinContent(39,2648.572); h_SL2L265->SetBinContent(40,2841.429); h_SL2L265->SetBinContent(41,2137.143); h_SL2L265->SetBinContent(42,1950); h_SL2L265->SetBinContent(43,1572.857); h_SL2L265->SetBinContent(44,1692.857); h_SL2L265->SetBinContent(45,1310); h_SL2L265->SetBinContent(46,1297.143); h_SL2L265->SetBinContent(47,1188.571); h_SL2L265->SetBinContent(48,1125.714); h_SL2L265->SetBinContent(49,1001.429); h_SL2L265->SetBinContent(50,958.5715); h_SL2L265->SetBinContent(51,810); h_SL2L265->SetBinContent(52,778.5715); h_SL2L265->SetBinContent(53,687.1429); h_SL2L265->SetBinContent(54,725.7143); h_SL2L265->SetBinContent(55,640); h_SL2L265->SetBinContent(56,561.4286); h_SL2L265->SetBinContent(57,511.4286); h_SL2L265->SetMaximum(77437.71); h_SL2L265->SetEntries(60); h_SL2L265->SetDirectory(0); h_SL2L265->SetStats(0); Int_t ci; // for color index setting TColor *color; // for color definition with alpha ci = TColor::GetColor("#cc0000"); h_SL2L265->SetLineColor(ci); h_SL2L265->SetLineWidth(2); h_SL2L265->GetXaxis()->SetTitle("Cell"); h_SL2L265->GetXaxis()->SetLabelFont(42); h_SL2L265->GetXaxis()->SetLabelSize(0.035); h_SL2L265->GetXaxis()->SetTitleSize(0.035); h_SL2L265->GetXaxis()->SetTitleFont(42); h_SL2L265->GetYaxis()->SetTitle("Hz"); h_SL2L265->GetYaxis()->SetLabelFont(42); h_SL2L265->GetYaxis()->SetLabelSize(0.035); h_SL2L265->GetYaxis()->SetTitleSize(0.035); h_SL2L265->GetYaxis()->SetTitleOffset(1.45); h_SL2L265->GetYaxis()->SetTitleFont(42); h_SL2L265->GetZaxis()->SetLabelFont(42); h_SL2L265->GetZaxis()->SetLabelSize(0.035); h_SL2L265->GetZaxis()->SetTitleSize(0.035); h_SL2L265->GetZaxis()->SetTitleFont(42); h_SL2L265->Draw("same"); TH1D *h_SL2L366 = new TH1D("h_SL2L366","",60,0,60); h_SL2L366->SetBinContent(1,598.5715); h_SL2L366->SetBinContent(2,750); h_SL2L366->SetBinContent(3,835.7143); h_SL2L366->SetBinContent(4,977.1429); h_SL2L366->SetBinContent(5,1021.429); h_SL2L366->SetBinContent(6,950); h_SL2L366->SetBinContent(7,975.7143); h_SL2L366->SetBinContent(8,1140); h_SL2L366->SetBinContent(9,1171.429); h_SL2L366->SetBinContent(10,1298.571); h_SL2L366->SetBinContent(11,1388.571); h_SL2L366->SetBinContent(12,1515.714); h_SL2L366->SetBinContent(13,1681.429); h_SL2L366->SetBinContent(14,1740); h_SL2L366->SetBinContent(15,1988.572); h_SL2L366->SetBinContent(16,2070); h_SL2L366->SetBinContent(17,2314.286); h_SL2L366->SetBinContent(18,2431.429); h_SL2L366->SetBinContent(19,2655.714); h_SL2L366->SetBinContent(20,2872.857); h_SL2L366->SetBinContent(21,3084.286); h_SL2L366->SetBinContent(22,3245.714); h_SL2L366->SetBinContent(23,3401.429); h_SL2L366->SetBinContent(24,3958.572); h_SL2L366->SetBinContent(25,8537.143); h_SL2L366->SetBinContent(26,28358.57); h_SL2L366->SetBinContent(27,43677.14); h_SL2L366->SetBinContent(28,51058.57); h_SL2L366->SetBinContent(29,53384.29); h_SL2L366->SetBinContent(30,50714.29); h_SL2L366->SetBinContent(31,46878.57); h_SL2L366->SetBinContent(32,46992.86); h_SL2L366->SetBinContent(33,44780); h_SL2L366->SetBinContent(34,26115.71); h_SL2L366->SetBinContent(35,7548.572); h_SL2L366->SetBinContent(36,4218.571); h_SL2L366->SetBinContent(37,3141.429); h_SL2L366->SetBinContent(38,2687.143); h_SL2L366->SetBinContent(39,2310); h_SL2L366->SetBinContent(40,2237.143); h_SL2L366->SetBinContent(41,1881.429); h_SL2L366->SetBinContent(42,1648.571); h_SL2L366->SetBinContent(43,1537.143); h_SL2L366->SetBinContent(44,1388.571); h_SL2L366->SetBinContent(45,1222.857); h_SL2L366->SetBinContent(46,1228.571); h_SL2L366->SetBinContent(47,1080); h_SL2L366->SetBinContent(48,991.4286); h_SL2L366->SetBinContent(49,924.2858); h_SL2L366->SetBinContent(50,845.7143); h_SL2L366->SetBinContent(51,744.2857); h_SL2L366->SetBinContent(52,692.8572); h_SL2L366->SetBinContent(53,712.8572); h_SL2L366->SetBinContent(54,612.8572); h_SL2L366->SetBinContent(55,607.1429); h_SL2L366->SetBinContent(56,521.4286); h_SL2L366->SetBinContent(57,458.5714); h_SL2L366->SetMaximum(77437.71); h_SL2L366->SetEntries(60); h_SL2L366->SetDirectory(0); h_SL2L366->SetStats(0); ci = TColor::GetColor("#009900"); h_SL2L366->SetLineColor(ci); h_SL2L366->SetLineWidth(2); h_SL2L366->GetXaxis()->SetTitle("Cell"); h_SL2L366->GetXaxis()->SetLabelFont(42); h_SL2L366->GetXaxis()->SetLabelSize(0.035); h_SL2L366->GetXaxis()->SetTitleSize(0.035); h_SL2L366->GetXaxis()->SetTitleFont(42); h_SL2L366->GetYaxis()->SetTitle("Hz"); h_SL2L366->GetYaxis()->SetLabelFont(42); h_SL2L366->GetYaxis()->SetLabelSize(0.035); h_SL2L366->GetYaxis()->SetTitleSize(0.035); h_SL2L366->GetYaxis()->SetTitleOffset(1.45); h_SL2L366->GetYaxis()->SetTitleFont(42); h_SL2L366->GetZaxis()->SetLabelFont(42); h_SL2L366->GetZaxis()->SetLabelSize(0.035); h_SL2L366->GetZaxis()->SetTitleSize(0.035); h_SL2L366->GetZaxis()->SetTitleFont(42); h_SL2L366->Draw("same"); TH1D *h_SL2L467 = new TH1D("h_SL2L467","",60,0,60); h_SL2L467->SetBinContent(2,694.2857); h_SL2L467->SetBinContent(3,768.5715); h_SL2L467->SetBinContent(4,915.7143); h_SL2L467->SetBinContent(5,995.7143); h_SL2L467->SetBinContent(6,1001.429); h_SL2L467->SetBinContent(7,950); h_SL2L467->SetBinContent(8,981.4286); h_SL2L467->SetBinContent(9,1157.143); h_SL2L467->SetBinContent(10,1207.143); h_SL2L467->SetBinContent(11,1358.571); h_SL2L467->SetBinContent(12,1407.143); h_SL2L467->SetBinContent(13,1600); h_SL2L467->SetBinContent(14,1640); h_SL2L467->SetBinContent(15,1902.857); h_SL2L467->SetBinContent(16,1975.714); h_SL2L467->SetBinContent(17,2068.572); h_SL2L467->SetBinContent(18,2311.429); h_SL2L467->SetBinContent(19,2488.572); h_SL2L467->SetBinContent(20,2797.143); h_SL2L467->SetBinContent(21,2811.429); h_SL2L467->SetBinContent(22,3118.572); h_SL2L467->SetBinContent(23,3405.714); h_SL2L467->SetBinContent(24,3620); h_SL2L467->SetBinContent(25,4418.572); h_SL2L467->SetBinContent(26,17888.57); h_SL2L467->SetBinContent(27,37115.71); h_SL2L467->SetBinContent(28,47898.57); h_SL2L467->SetBinContent(29,52725.71); h_SL2L467->SetBinContent(30,53434.29); h_SL2L467->SetBinContent(31,48268.57); h_SL2L467->SetBinContent(32,46717.14); h_SL2L467->SetBinContent(33,46588.57); h_SL2L467->SetBinContent(34,39111.43); h_SL2L467->SetBinContent(35,14150); h_SL2L467->SetBinContent(36,5097.143); h_SL2L467->SetBinContent(37,3520); h_SL2L467->SetBinContent(38,2831.429); h_SL2L467->SetBinContent(39,2424.286); h_SL2L467->SetBinContent(40,2077.143); h_SL2L467->SetBinContent(41,1981.429); h_SL2L467->SetBinContent(42,1800); h_SL2L467->SetBinContent(43,1512.857); h_SL2L467->SetBinContent(44,1387.143); h_SL2L467->SetBinContent(45,1274.286); h_SL2L467->SetBinContent(46,1222.857); h_SL2L467->SetBinContent(47,1084.286); h_SL2L467->SetBinContent(48,1045.714); h_SL2L467->SetBinContent(49,947.1429); h_SL2L467->SetBinContent(50,915.7143); h_SL2L467->SetBinContent(51,785.7143); h_SL2L467->SetBinContent(52,747.1429); h_SL2L467->SetBinContent(53,612.8572); h_SL2L467->SetBinContent(54,682.8572); h_SL2L467->SetBinContent(55,602.8572); h_SL2L467->SetBinContent(56,510); h_SL2L467->SetBinContent(57,501.4286); h_SL2L467->SetMaximum(77437.71); h_SL2L467->SetEntries(60); h_SL2L467->SetDirectory(0); h_SL2L467->SetStats(0); ci = TColor::GetColor("#0000cc"); h_SL2L467->SetLineColor(ci); h_SL2L467->SetLineWidth(2); h_SL2L467->GetXaxis()->SetTitle("Cell"); h_SL2L467->GetXaxis()->SetLabelFont(42); h_SL2L467->GetXaxis()->SetLabelSize(0.035); h_SL2L467->GetXaxis()->SetTitleSize(0.035); h_SL2L467->GetXaxis()->SetTitleFont(42); h_SL2L467->GetYaxis()->SetTitle("Hz"); h_SL2L467->GetYaxis()->SetLabelFont(42); h_SL2L467->GetYaxis()->SetLabelSize(0.035); h_SL2L467->GetYaxis()->SetTitleSize(0.035); h_SL2L467->GetYaxis()->SetTitleOffset(1.45); h_SL2L467->GetYaxis()->SetTitleFont(42); h_SL2L467->GetZaxis()->SetLabelFont(42); h_SL2L467->GetZaxis()->SetLabelSize(0.035); h_SL2L467->GetZaxis()->SetTitleSize(0.035); h_SL2L467->GetZaxis()->SetTitleFont(42); h_SL2L467->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_SL2L1","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_SL2L2","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_SL2L3","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_SL2L4","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("SL2, run 5168"); pt->Draw(); c->Modified(); c->cd(); c->SetSelected(c); }