void RatesPerCell_Removing_noisy_cells_run_6520_SL2() { //=========Macro generated from canvas: c/c //========= (Tue Jan 15 10:01:22 2019) by ROOT version6.02/13 TCanvas *c = new TCanvas("c", "c",0,0,800,600); gStyle->SetOptStat(0); c->Range(-7.500001,-16060.47,67.5,144544.2); c->SetFillColor(0); c->SetBorderMode(0); c->SetBorderSize(2); c->SetFrameBorderMode(0); c->SetFrameBorderMode(0); TH1D *h_SL2L164 = new TH1D("h_SL2L164","SL2, run 6520",60,0,60); h_SL2L164->SetBinContent(1,734.2857); h_SL2L164->SetBinContent(2,858.5715); h_SL2L164->SetBinContent(3,965.7143); h_SL2L164->SetBinContent(4,1044.286); h_SL2L164->SetBinContent(5,1010); h_SL2L164->SetBinContent(6,1078.571); h_SL2L164->SetBinContent(7,1207.143); h_SL2L164->SetBinContent(8,1284.286); h_SL2L164->SetBinContent(9,1398.571); h_SL2L164->SetBinContent(10,1445.714); h_SL2L164->SetBinContent(11,1522.857); h_SL2L164->SetBinContent(12,1628.571); h_SL2L164->SetBinContent(13,1834.286); h_SL2L164->SetBinContent(14,2037.143); h_SL2L164->SetBinContent(15,2080); h_SL2L164->SetBinContent(16,2217.143); h_SL2L164->SetBinContent(17,2250); h_SL2L164->SetBinContent(18,2432.857); h_SL2L164->SetBinContent(19,2601.429); h_SL2L164->SetBinContent(20,2692.857); h_SL2L164->SetBinContent(21,2910); h_SL2L164->SetBinContent(22,3152.857); h_SL2L164->SetBinContent(23,3444.286); h_SL2L164->SetBinContent(24,4027.143); h_SL2L164->SetBinContent(25,8240); h_SL2L164->SetBinContent(26,26381.43); h_SL2L164->SetBinContent(27,46061.43); h_SL2L164->SetBinContent(28,60380); h_SL2L164->SetBinContent(29,64511.43); h_SL2L164->SetBinContent(30,56075.71); h_SL2L164->SetBinContent(31,43545.71); h_SL2L164->SetBinContent(32,40094.29); h_SL2L164->SetBinContent(33,40677.14); h_SL2L164->SetBinContent(34,25991.43); h_SL2L164->SetBinContent(36,4275.714); h_SL2L164->SetBinContent(37,8455.715); h_SL2L164->SetBinContent(38,5018.572); h_SL2L164->SetBinContent(39,6900); h_SL2L164->SetBinContent(40,30441.43); h_SL2L164->SetBinContent(41,97152.86); h_SL2L164->SetBinContent(42,13215.71); h_SL2L164->SetBinContent(43,12980); h_SL2L164->SetBinContent(44,13334.29); h_SL2L164->SetBinContent(45,1418.571); h_SL2L164->SetBinContent(46,1304.286); h_SL2L164->SetBinContent(47,1275.714); h_SL2L164->SetBinContent(48,1082.857); h_SL2L164->SetBinContent(49,1005.714); h_SL2L164->SetBinContent(50,951.4286); h_SL2L164->SetBinContent(51,961.4286); h_SL2L164->SetBinContent(52,811.4286); h_SL2L164->SetBinContent(53,751.4286); h_SL2L164->SetBinContent(54,794.2857); h_SL2L164->SetBinContent(55,661.4286); h_SL2L164->SetBinContent(56,617.1429); h_SL2L164->SetBinContent(57,23502.86); h_SL2L164->SetMaximum(128483.7); 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,670); h_SL2L265->SetBinContent(2,775.7143); h_SL2L265->SetBinContent(3,922.8572); h_SL2L265->SetBinContent(4,968.5715); h_SL2L265->SetBinContent(5,1021.429); h_SL2L265->SetBinContent(6,1065.714); h_SL2L265->SetBinContent(7,1072.857); h_SL2L265->SetBinContent(8,1324.286); h_SL2L265->SetBinContent(9,1314.286); h_SL2L265->SetBinContent(10,1388.571); h_SL2L265->SetBinContent(11,1442.857); h_SL2L265->SetBinContent(12,1512.857); h_SL2L265->SetBinContent(13,1690); h_SL2L265->SetBinContent(14,1897.143); h_SL2L265->SetBinContent(15,2018.572); h_SL2L265->SetBinContent(16,2118.572); h_SL2L265->SetBinContent(17,2158.572); h_SL2L265->SetBinContent(18,2288.572); h_SL2L265->SetBinContent(19,2534.286); h_SL2L265->SetBinContent(20,2618.572); h_SL2L265->SetBinContent(21,2851.429); h_SL2L265->SetBinContent(22,2987.143); h_SL2L265->SetBinContent(23,3195.714); h_SL2L265->SetBinContent(24,3588.572); h_SL2L265->SetBinContent(25,4612.857); h_SL2L265->SetBinContent(26,16415.71); h_SL2L265->SetBinContent(27,36198.57); h_SL2L265->SetBinContent(28,55058.57); h_SL2L265->SetBinContent(29,63251.43); h_SL2L265->SetBinContent(30,61205.71); h_SL2L265->SetBinContent(31,48835.71); h_SL2L265->SetBinContent(32,40725.71); h_SL2L265->SetBinContent(33,40500); h_SL2L265->SetBinContent(34,36514.29); h_SL2L265->SetBinContent(35,14281.43); h_SL2L265->SetBinContent(36,4971.429); h_SL2L265->SetBinContent(37,3515.714); h_SL2L265->SetBinContent(38,2845.714); h_SL2L265->SetBinContent(39,4081.429); h_SL2L265->SetBinContent(40,5521.429); h_SL2L265->SetBinContent(41,3738.572); h_SL2L265->SetBinContent(42,3637.143); h_SL2L265->SetBinContent(43,2272.857); h_SL2L265->SetBinContent(44,3590); h_SL2L265->SetBinContent(45,1398.571); h_SL2L265->SetBinContent(46,1324.286); h_SL2L265->SetBinContent(47,1245.714); h_SL2L265->SetBinContent(48,1114.286); h_SL2L265->SetBinContent(49,1014.286); h_SL2L265->SetBinContent(50,907.1429); h_SL2L265->SetBinContent(51,981.4286); h_SL2L265->SetBinContent(52,850); h_SL2L265->SetBinContent(53,812.8572); h_SL2L265->SetBinContent(54,668.5715); h_SL2L265->SetBinContent(55,757.1429); h_SL2L265->SetBinContent(56,594.2857); h_SL2L265->SetBinContent(57,562.8572); h_SL2L265->SetMaximum(111725.8); 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,1102.857); h_SL2L366->SetBinContent(2,770); h_SL2L366->SetBinContent(3,942.8572); h_SL2L366->SetBinContent(4,945.7143); h_SL2L366->SetBinContent(5,948.5715); h_SL2L366->SetBinContent(6,1105.714); h_SL2L366->SetBinContent(7,1171.429); h_SL2L366->SetBinContent(8,1272.857); h_SL2L366->SetBinContent(9,1397.143); h_SL2L366->SetBinContent(10,1410); h_SL2L366->SetBinContent(11,1450); h_SL2L366->SetBinContent(12,1597.143); h_SL2L366->SetBinContent(13,1808.571); h_SL2L366->SetBinContent(14,1985.714); h_SL2L366->SetBinContent(15,2045.714); h_SL2L366->SetBinContent(16,2108.572); h_SL2L366->SetBinContent(17,2177.143); h_SL2L366->SetBinContent(18,2375.714); h_SL2L366->SetBinContent(19,2455.714); h_SL2L366->SetBinContent(20,2722.857); h_SL2L366->SetBinContent(21,2791.429); h_SL2L366->SetBinContent(22,3088.572); h_SL2L366->SetBinContent(23,3234.286); h_SL2L366->SetBinContent(24,3911.429); h_SL2L366->SetBinContent(25,8131.429); h_SL2L366->SetBinContent(26,26220); h_SL2L366->SetBinContent(27,45894.29); h_SL2L366->SetBinContent(28,60068.57); h_SL2L366->SetBinContent(29,63754.29); h_SL2L366->SetBinContent(30,55778.57); h_SL2L366->SetBinContent(31,43460); h_SL2L366->SetBinContent(32,40072.86); h_SL2L366->SetBinContent(33,40594.29); h_SL2L366->SetBinContent(34,25964.29); h_SL2L366->SetBinContent(35,7394.286); h_SL2L366->SetBinContent(36,4110); h_SL2L366->SetBinContent(37,3052.857); h_SL2L366->SetBinContent(38,2630); h_SL2L366->SetBinContent(39,2321.429); h_SL2L366->SetBinContent(40,4142.857); h_SL2L366->SetBinContent(41,2505.714); h_SL2L366->SetBinContent(42,1874.286); h_SL2L366->SetBinContent(43,1615.714); h_SL2L366->SetBinContent(44,1445.714); h_SL2L366->SetBinContent(45,1310); h_SL2L366->SetBinContent(46,1208.571); h_SL2L366->SetBinContent(47,1192.857); h_SL2L366->SetBinContent(48,1034.286); h_SL2L366->SetBinContent(49,955.7143); h_SL2L366->SetBinContent(50,882.8572); h_SL2L366->SetBinContent(51,870); h_SL2L366->SetBinContent(52,782.8572); h_SL2L366->SetBinContent(53,751.4286); h_SL2L366->SetBinContent(54,721.4286); h_SL2L366->SetBinContent(55,647.1429); h_SL2L366->SetBinContent(56,600); h_SL2L366->SetBinContent(57,1028.571); h_SL2L366->SetMaximum(111725.8); 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,784.2857); h_SL2L467->SetBinContent(3,870); h_SL2L467->SetBinContent(4,918.5715); h_SL2L467->SetBinContent(5,947.1429); h_SL2L467->SetBinContent(6,987.1429); h_SL2L467->SetBinContent(7,1080); h_SL2L467->SetBinContent(8,1241.429); h_SL2L467->SetBinContent(9,1278.571); h_SL2L467->SetBinContent(10,1355.714); h_SL2L467->SetBinContent(11,1414.286); h_SL2L467->SetBinContent(12,1445.714); h_SL2L467->SetBinContent(13,1635.714); h_SL2L467->SetBinContent(14,1880); h_SL2L467->SetBinContent(15,1907.143); h_SL2L467->SetBinContent(16,2028.572); h_SL2L467->SetBinContent(17,2084.286); h_SL2L467->SetBinContent(18,2178.572); h_SL2L467->SetBinContent(19,2448.572); h_SL2L467->SetBinContent(20,2567.143); h_SL2L467->SetBinContent(21,2710); h_SL2L467->SetBinContent(22,2875.714); h_SL2L467->SetBinContent(23,3087.143); h_SL2L467->SetBinContent(24,3377.143); h_SL2L467->SetBinContent(25,4472.857); h_SL2L467->SetBinContent(26,16302.86); h_SL2L467->SetBinContent(27,36368.57); h_SL2L467->SetBinContent(28,54727.14); h_SL2L467->SetBinContent(29,63181.43); h_SL2L467->SetBinContent(30,62004.29); h_SL2L467->SetBinContent(31,48821.43); h_SL2L467->SetBinContent(32,40808.57); h_SL2L467->SetBinContent(33,40550); h_SL2L467->SetBinContent(34,36521.43); h_SL2L467->SetBinContent(35,14212.86); h_SL2L467->SetBinContent(36,4892.857); h_SL2L467->SetBinContent(37,3464.286); h_SL2L467->SetBinContent(38,2815.714); h_SL2L467->SetBinContent(39,2390); h_SL2L467->SetBinContent(40,2051.429); h_SL2L467->SetBinContent(41,1872.857); h_SL2L467->SetBinContent(42,2470); h_SL2L467->SetBinContent(43,1651.429); h_SL2L467->SetBinContent(44,1542.857); h_SL2L467->SetBinContent(45,1318.571); h_SL2L467->SetBinContent(46,1264.286); h_SL2L467->SetBinContent(47,1202.857); h_SL2L467->SetBinContent(48,1058.571); h_SL2L467->SetBinContent(49,1012.857); h_SL2L467->SetBinContent(50,881.4286); h_SL2L467->SetBinContent(51,882.8572); h_SL2L467->SetBinContent(52,800); h_SL2L467->SetBinContent(53,752.8572); h_SL2L467->SetBinContent(54,675.7143); h_SL2L467->SetBinContent(55,717.1429); h_SL2L467->SetBinContent(56,545.7143); h_SL2L467->SetBinContent(57,568.5715); h_SL2L467->SetMaximum(111725.8); 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 6520"); pt->Draw(); c->Modified(); c->cd(); c->SetSelected(c); }