void RatesPerCell_Removing_noisy_cells_run_5395_SL2() { //=========Macro generated from canvas: c/c //========= (Sun Jan 13 15:36:53 2019) by ROOT version6.02/13 TCanvas *c = new TCanvas("c", "c",0,0,800,600); gStyle->SetOptStat(0); c->Range(-7.500001,-8982.363,67.5,80841.26); c->SetFillColor(0); c->SetBorderMode(0); c->SetBorderSize(2); c->SetFrameBorderMode(0); c->SetFrameBorderMode(0); TH1D *h_SL2L164 = new TH1D("h_SL2L164","SL2, run 5395",60,0,60); h_SL2L164->SetBinContent(1,790); h_SL2L164->SetBinContent(2,877.1429); h_SL2L164->SetBinContent(3,994.2858); h_SL2L164->SetBinContent(4,1107.143); h_SL2L164->SetBinContent(5,1258.571); h_SL2L164->SetBinContent(6,1177.143); h_SL2L164->SetBinContent(7,1122.857); h_SL2L164->SetBinContent(8,1391.429); h_SL2L164->SetBinContent(9,1407.143); h_SL2L164->SetBinContent(10,1487.143); h_SL2L164->SetBinContent(11,1631.429); h_SL2L164->SetBinContent(12,1857.143); h_SL2L164->SetBinContent(13,2032.857); h_SL2L164->SetBinContent(14,2117.143); h_SL2L164->SetBinContent(15,2242.857); h_SL2L164->SetBinContent(16,2512.857); h_SL2L164->SetBinContent(17,2708.572); h_SL2L164->SetBinContent(18,2778.572); h_SL2L164->SetBinContent(19,3077.143); h_SL2L164->SetBinContent(20,3218.572); h_SL2L164->SetBinContent(21,3484.286); h_SL2L164->SetBinContent(22,3697.143); h_SL2L164->SetBinContent(23,4054.286); h_SL2L164->SetBinContent(24,4262.857); h_SL2L164->SetBinContent(25,9258.571); h_SL2L164->SetBinContent(26,29912.86); h_SL2L164->SetBinContent(27,45285.71); h_SL2L164->SetBinContent(28,51961.43); h_SL2L164->SetBinContent(29,54335.71); h_SL2L164->SetBinContent(30,51468.57); h_SL2L164->SetBinContent(31,47588.57); h_SL2L164->SetBinContent(32,47254.29); h_SL2L164->SetBinContent(33,45951.43); h_SL2L164->SetBinContent(34,26245.71); h_SL2L164->SetBinContent(36,4432.857); h_SL2L164->SetBinContent(37,3460); h_SL2L164->SetBinContent(38,3030); h_SL2L164->SetBinContent(39,2620); h_SL2L164->SetBinContent(40,1987.143); h_SL2L164->SetBinContent(41,2002.857); h_SL2L164->SetBinContent(42,2050); h_SL2L164->SetBinContent(43,1720); h_SL2L164->SetBinContent(44,1532.857); h_SL2L164->SetBinContent(45,1574.286); h_SL2L164->SetBinContent(46,1388.571); h_SL2L164->SetBinContent(47,1441.429); h_SL2L164->SetBinContent(48,1314.286); h_SL2L164->SetBinContent(49,1240); h_SL2L164->SetBinContent(50,1072.857); h_SL2L164->SetBinContent(51,1064.286); h_SL2L164->SetBinContent(52,1005.714); h_SL2L164->SetBinContent(53,1020); h_SL2L164->SetBinContent(54,1022.857); h_SL2L164->SetBinContent(55,924.2858); h_SL2L164->SetBinContent(56,884.2857); h_SL2L164->SetBinContent(57,751.4286); h_SL2L164->SetMaximum(71858.9); 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,648.5715); h_SL2L265->SetBinContent(2,848.5715); h_SL2L265->SetBinContent(3,935.7143); h_SL2L265->SetBinContent(4,1061.429); h_SL2L265->SetBinContent(5,1128.571); h_SL2L265->SetBinContent(6,1168.571); h_SL2L265->SetBinContent(7,1151.429); h_SL2L265->SetBinContent(8,1200); h_SL2L265->SetBinContent(9,1401.429); h_SL2L265->SetBinContent(10,1338.571); h_SL2L265->SetBinContent(11,1567.143); h_SL2L265->SetBinContent(12,1675.714); h_SL2L265->SetBinContent(13,1852.857); h_SL2L265->SetBinContent(14,1982.857); h_SL2L265->SetBinContent(15,2154.286); h_SL2L265->SetBinContent(16,2387.143); h_SL2L265->SetBinContent(17,2425.714); h_SL2L265->SetBinContent(18,2750); h_SL2L265->SetBinContent(19,2771.429); h_SL2L265->SetBinContent(20,3162.857); h_SL2L265->SetBinContent(21,3337.143); h_SL2L265->SetBinContent(22,3385.714); h_SL2L265->SetBinContent(23,3784.286); h_SL2L265->SetBinContent(24,3988.572); h_SL2L265->SetBinContent(25,4742.857); h_SL2L265->SetBinContent(26,19071.43); h_SL2L265->SetBinContent(27,38855.71); h_SL2L265->SetBinContent(28,49007.14); h_SL2L265->SetBinContent(29,53740); h_SL2L265->SetBinContent(30,52974.29); h_SL2L265->SetBinContent(31,48777.14); h_SL2L265->SetBinContent(32,46805.71); h_SL2L265->SetBinContent(33,47008.57); h_SL2L265->SetBinContent(34,39202.86); h_SL2L265->SetBinContent(35,14197.14); h_SL2L265->SetBinContent(36,5340); h_SL2L265->SetBinContent(37,3901.429); h_SL2L265->SetBinContent(38,3052.857); h_SL2L265->SetBinContent(39,2715.714); h_SL2L265->SetBinContent(40,2412.857); h_SL2L265->SetBinContent(41,2214.286); h_SL2L265->SetBinContent(42,1951.429); h_SL2L265->SetBinContent(43,1894.286); h_SL2L265->SetBinContent(44,1532.857); h_SL2L265->SetBinContent(45,1568.571); h_SL2L265->SetBinContent(46,1441.429); h_SL2L265->SetBinContent(47,1361.429); h_SL2L265->SetBinContent(48,1335.714); h_SL2L265->SetBinContent(49,1268.571); h_SL2L265->SetBinContent(50,1142.857); h_SL2L265->SetBinContent(51,985.7143); h_SL2L265->SetBinContent(52,1015.714); h_SL2L265->SetBinContent(53,1028.571); h_SL2L265->SetBinContent(54,1015.714); h_SL2L265->SetBinContent(55,974.2858); h_SL2L265->SetBinContent(56,880); h_SL2L265->SetBinContent(57,797.1429); h_SL2L265->SetMaximum(62486.07); 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,772.8572); h_SL2L366->SetBinContent(2,842.8572); h_SL2L366->SetBinContent(3,940); h_SL2L366->SetBinContent(4,1037.143); h_SL2L366->SetBinContent(5,1134.286); h_SL2L366->SetBinContent(6,1134.286); h_SL2L366->SetBinContent(7,1082.857); h_SL2L366->SetBinContent(8,1308.571); h_SL2L366->SetBinContent(9,1300); h_SL2L366->SetBinContent(10,1391.429); h_SL2L366->SetBinContent(11,1535.714); h_SL2L366->SetBinContent(12,1670); h_SL2L366->SetBinContent(13,1957.143); h_SL2L366->SetBinContent(14,2031.429); h_SL2L366->SetBinContent(15,2184.286); h_SL2L366->SetBinContent(16,2341.429); h_SL2L366->SetBinContent(17,2514.286); h_SL2L366->SetBinContent(18,2641.429); h_SL2L366->SetBinContent(19,2920); h_SL2L366->SetBinContent(20,3225.714); h_SL2L366->SetBinContent(21,3375.714); h_SL2L366->SetBinContent(22,3498.572); h_SL2L366->SetBinContent(23,3817.143); h_SL2L366->SetBinContent(24,4178.571); h_SL2L366->SetBinContent(25,9230); h_SL2L366->SetBinContent(26,29834.29); h_SL2L366->SetBinContent(27,45057.14); h_SL2L366->SetBinContent(28,51777.14); h_SL2L366->SetBinContent(29,53832.86); h_SL2L366->SetBinContent(30,51230); h_SL2L366->SetBinContent(31,47340); h_SL2L366->SetBinContent(32,47152.86); h_SL2L366->SetBinContent(33,45591.43); h_SL2L366->SetBinContent(34,26261.43); h_SL2L366->SetBinContent(35,7594.286); h_SL2L366->SetBinContent(36,4322.857); h_SL2L366->SetBinContent(37,3335.714); h_SL2L366->SetBinContent(38,2880); h_SL2L366->SetBinContent(39,2488.572); h_SL2L366->SetBinContent(40,2152.857); h_SL2L366->SetBinContent(41,2055.714); h_SL2L366->SetBinContent(42,1961.429); h_SL2L366->SetBinContent(43,1658.571); h_SL2L366->SetBinContent(44,1428.571); h_SL2L366->SetBinContent(45,1518.571); h_SL2L366->SetBinContent(46,1312.857); h_SL2L366->SetBinContent(47,1321.429); h_SL2L366->SetBinContent(48,1288.571); h_SL2L366->SetBinContent(49,1164.286); h_SL2L366->SetBinContent(50,1042.857); h_SL2L366->SetBinContent(51,1034.286); h_SL2L366->SetBinContent(52,967.1429); h_SL2L366->SetBinContent(53,941.4286); h_SL2L366->SetBinContent(54,972.8572); h_SL2L366->SetBinContent(55,931.4286); h_SL2L366->SetBinContent(56,868.5715); h_SL2L366->SetBinContent(57,748.5715); h_SL2L366->SetMaximum(62486.07); 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,834.2857); h_SL2L467->SetBinContent(3,914.2858); h_SL2L467->SetBinContent(4,958.5715); h_SL2L467->SetBinContent(5,1138.571); h_SL2L467->SetBinContent(6,1042.857); h_SL2L467->SetBinContent(7,1108.571); h_SL2L467->SetBinContent(8,1108.571); h_SL2L467->SetBinContent(9,1331.429); h_SL2L467->SetBinContent(10,1261.429); h_SL2L467->SetBinContent(11,1488.571); h_SL2L467->SetBinContent(12,1572.857); h_SL2L467->SetBinContent(13,1791.429); h_SL2L467->SetBinContent(14,1862.857); h_SL2L467->SetBinContent(15,2038.572); h_SL2L467->SetBinContent(16,2294.286); h_SL2L467->SetBinContent(17,2318.572); h_SL2L467->SetBinContent(18,2572.857); h_SL2L467->SetBinContent(19,2674.286); h_SL2L467->SetBinContent(20,3040); h_SL2L467->SetBinContent(21,3261.429); h_SL2L467->SetBinContent(22,3284.286); h_SL2L467->SetBinContent(23,3617.143); h_SL2L467->SetBinContent(24,3860); h_SL2L467->SetBinContent(25,4622.857); h_SL2L467->SetBinContent(26,19008.57); h_SL2L467->SetBinContent(27,39000); h_SL2L467->SetBinContent(28,48855.71); h_SL2L467->SetBinContent(29,53630); h_SL2L467->SetBinContent(30,53428.57); h_SL2L467->SetBinContent(31,48727.14); h_SL2L467->SetBinContent(32,46955.71); h_SL2L467->SetBinContent(33,47088.57); h_SL2L467->SetBinContent(34,39510); h_SL2L467->SetBinContent(35,14080); h_SL2L467->SetBinContent(36,5212.857); h_SL2L467->SetBinContent(37,3795.714); h_SL2L467->SetBinContent(38,2965.714); h_SL2L467->SetBinContent(39,2578.572); h_SL2L467->SetBinContent(40,2294.286); h_SL2L467->SetBinContent(41,2161.429); h_SL2L467->SetBinContent(42,1888.572); h_SL2L467->SetBinContent(43,1817.143); h_SL2L467->SetBinContent(44,1514.286); h_SL2L467->SetBinContent(45,1470); h_SL2L467->SetBinContent(46,1327.143); h_SL2L467->SetBinContent(47,1284.286); h_SL2L467->SetBinContent(48,1288.571); h_SL2L467->SetBinContent(49,1224.286); h_SL2L467->SetBinContent(50,1111.429); h_SL2L467->SetBinContent(51,994.2858); h_SL2L467->SetBinContent(52,994.2858); h_SL2L467->SetBinContent(53,974.2858); h_SL2L467->SetBinContent(54,982.8572); h_SL2L467->SetBinContent(55,917.1429); h_SL2L467->SetBinContent(56,888.5715); h_SL2L467->SetBinContent(57,795.7143); h_SL2L467->SetMaximum(62486.07); 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 5395"); pt->Draw(); c->Modified(); c->cd(); c->SetSelected(c); }