void RatesPerCell_Removing_noisy_cells_run_5581_SL2() { //=========Macro generated from canvas: c/c //========= (Sun Jan 13 14:46:16 2019) by ROOT version6.02/13 TCanvas *c = new TCanvas("c", "c",0,0,800,600); gStyle->SetOptStat(0); c->Range(-7.500001,-9770.544,67.5,87934.89); c->SetFillColor(0); c->SetBorderMode(0); c->SetBorderSize(2); c->SetFrameBorderMode(0); c->SetFrameBorderMode(0); TH1D *h_SL2L164 = new TH1D("h_SL2L164","SL2, run 5581",60,0,60); h_SL2L164->SetBinContent(1,860.7143); h_SL2L164->SetBinContent(2,928.5714); h_SL2L164->SetBinContent(3,1114.286); h_SL2L164->SetBinContent(4,1157.143); h_SL2L164->SetBinContent(5,1246.429); h_SL2L164->SetBinContent(6,1303.571); h_SL2L164->SetBinContent(7,1357.143); h_SL2L164->SetBinContent(8,1400); h_SL2L164->SetBinContent(9,1553.571); h_SL2L164->SetBinContent(10,1660.714); h_SL2L164->SetBinContent(11,1857.143); h_SL2L164->SetBinContent(12,2075); h_SL2L164->SetBinContent(13,2250); h_SL2L164->SetBinContent(14,2492.857); h_SL2L164->SetBinContent(15,2382.143); h_SL2L164->SetBinContent(16,2771.428); h_SL2L164->SetBinContent(17,2725); h_SL2L164->SetBinContent(18,3107.143); h_SL2L164->SetBinContent(19,3217.857); h_SL2L164->SetBinContent(20,3335.714); h_SL2L164->SetBinContent(21,3564.286); h_SL2L164->SetBinContent(22,3967.857); h_SL2L164->SetBinContent(23,4321.429); h_SL2L164->SetBinContent(24,4585.714); h_SL2L164->SetBinContent(25,9675); h_SL2L164->SetBinContent(26,32560.71); h_SL2L164->SetBinContent(27,50439.29); h_SL2L164->SetBinContent(28,57335.71); h_SL2L164->SetBinContent(29,58910.71); h_SL2L164->SetBinContent(30,52357.14); h_SL2L164->SetBinContent(31,44567.86); h_SL2L164->SetBinContent(32,41828.57); h_SL2L164->SetBinContent(33,39517.86); h_SL2L164->SetBinContent(34,22360.71); h_SL2L164->SetBinContent(36,4064.286); h_SL2L164->SetBinContent(37,3200); h_SL2L164->SetBinContent(38,2839.286); h_SL2L164->SetBinContent(39,2471.428); h_SL2L164->SetBinContent(40,1835.714); h_SL2L164->SetBinContent(41,1928.571); h_SL2L164->SetBinContent(42,1817.857); h_SL2L164->SetBinContent(43,1685.714); h_SL2L164->SetBinContent(44,1503.571); h_SL2L164->SetBinContent(45,1471.429); h_SL2L164->SetBinContent(46,1425); h_SL2L164->SetBinContent(47,1314.286); h_SL2L164->SetBinContent(48,1092.857); h_SL2L164->SetBinContent(49,1217.857); h_SL2L164->SetBinContent(50,1117.857); h_SL2L164->SetBinContent(51,1110.714); h_SL2L164->SetBinContent(52,971.4286); h_SL2L164->SetBinContent(53,953.5714); h_SL2L164->SetBinContent(54,1014.286); h_SL2L164->SetBinContent(55,867.8571); h_SL2L164->SetBinContent(56,835.7143); h_SL2L164->SetBinContent(57,857.1428); h_SL2L164->SetMaximum(78164.35); 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,675); h_SL2L265->SetBinContent(2,900); h_SL2L265->SetBinContent(3,1039.286); h_SL2L265->SetBinContent(4,1125); h_SL2L265->SetBinContent(5,1157.143); h_SL2L265->SetBinContent(6,1232.143); h_SL2L265->SetBinContent(7,1267.857); h_SL2L265->SetBinContent(8,1292.857); h_SL2L265->SetBinContent(9,1414.286); h_SL2L265->SetBinContent(10,1550); h_SL2L265->SetBinContent(11,1646.429); h_SL2L265->SetBinContent(12,1939.286); h_SL2L265->SetBinContent(13,2153.571); h_SL2L265->SetBinContent(14,2178.571); h_SL2L265->SetBinContent(15,2246.428); h_SL2L265->SetBinContent(16,2496.428); h_SL2L265->SetBinContent(17,2514.286); h_SL2L265->SetBinContent(18,2975); h_SL2L265->SetBinContent(19,3092.857); h_SL2L265->SetBinContent(20,3175); h_SL2L265->SetBinContent(21,3464.286); h_SL2L265->SetBinContent(22,3767.857); h_SL2L265->SetBinContent(23,3964.286); h_SL2L265->SetBinContent(24,4450); h_SL2L265->SetBinContent(25,4875); h_SL2L265->SetBinContent(26,20325); h_SL2L265->SetBinContent(27,42328.57); h_SL2L265->SetBinContent(28,54739.29); h_SL2L265->SetBinContent(29,58910.71); h_SL2L265->SetBinContent(30,56278.57); h_SL2L265->SetBinContent(31,47907.14); h_SL2L265->SetBinContent(32,42410.71); h_SL2L265->SetBinContent(33,40800); h_SL2L265->SetBinContent(34,33417.86); h_SL2L265->SetBinContent(35,11789.29); h_SL2L265->SetBinContent(36,4764.286); h_SL2L265->SetBinContent(37,3517.857); h_SL2L265->SetBinContent(38,2853.571); h_SL2L265->SetBinContent(39,2610.714); h_SL2L265->SetBinContent(40,2239.286); h_SL2L265->SetBinContent(41,1971.429); h_SL2L265->SetBinContent(42,1932.143); h_SL2L265->SetBinContent(43,1685.714); h_SL2L265->SetBinContent(44,1510.714); h_SL2L265->SetBinContent(45,1428.571); h_SL2L265->SetBinContent(46,1282.143); h_SL2L265->SetBinContent(47,1332.143); h_SL2L265->SetBinContent(48,1207.143); h_SL2L265->SetBinContent(49,1142.857); h_SL2L265->SetBinContent(50,1110.714); h_SL2L265->SetBinContent(51,1146.429); h_SL2L265->SetBinContent(52,967.8571); h_SL2L265->SetBinContent(53,964.2857); h_SL2L265->SetBinContent(54,971.4286); h_SL2L265->SetBinContent(55,1003.571); h_SL2L265->SetBinContent(56,821.4286); h_SL2L265->SetBinContent(57,810.7143); h_SL2L265->SetMaximum(67969.11); 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,835.7143); h_SL2L366->SetBinContent(2,882.1428); h_SL2L366->SetBinContent(3,1096.429); h_SL2L366->SetBinContent(4,1092.857); h_SL2L366->SetBinContent(5,1200); h_SL2L366->SetBinContent(6,1250); h_SL2L366->SetBinContent(7,1271.429); h_SL2L366->SetBinContent(8,1307.143); h_SL2L366->SetBinContent(9,1428.571); h_SL2L366->SetBinContent(10,1603.571); h_SL2L366->SetBinContent(11,1817.857); h_SL2L366->SetBinContent(12,1989.286); h_SL2L366->SetBinContent(13,2096.428); h_SL2L366->SetBinContent(14,2275); h_SL2L366->SetBinContent(15,2275); h_SL2L366->SetBinContent(16,2496.428); h_SL2L366->SetBinContent(17,2757.143); h_SL2L366->SetBinContent(18,3017.857); h_SL2L366->SetBinContent(19,3171.428); h_SL2L366->SetBinContent(20,3357.143); h_SL2L366->SetBinContent(21,3471.428); h_SL2L366->SetBinContent(22,3828.571); h_SL2L366->SetBinContent(23,4260.714); h_SL2L366->SetBinContent(24,4321.429); h_SL2L366->SetBinContent(25,9546.429); h_SL2L366->SetBinContent(26,32478.57); h_SL2L366->SetBinContent(27,50196.43); h_SL2L366->SetBinContent(28,57110.71); h_SL2L366->SetBinContent(29,58532.14); h_SL2L366->SetBinContent(30,51978.57); h_SL2L366->SetBinContent(31,44400); h_SL2L366->SetBinContent(32,41696.43); h_SL2L366->SetBinContent(33,39514.29); h_SL2L366->SetBinContent(34,22217.86); h_SL2L366->SetBinContent(35,6689.286); h_SL2L366->SetBinContent(36,4028.571); h_SL2L366->SetBinContent(37,3078.571); h_SL2L366->SetBinContent(38,2564.286); h_SL2L366->SetBinContent(39,2400); h_SL2L366->SetBinContent(40,1914.286); h_SL2L366->SetBinContent(41,1932.143); h_SL2L366->SetBinContent(42,1846.429); h_SL2L366->SetBinContent(43,1603.571); h_SL2L366->SetBinContent(44,1400); h_SL2L366->SetBinContent(45,1382.143); h_SL2L366->SetBinContent(46,1396.429); h_SL2L366->SetBinContent(47,1285.714); h_SL2L366->SetBinContent(48,1132.143); h_SL2L366->SetBinContent(49,1196.429); h_SL2L366->SetBinContent(50,1096.429); h_SL2L366->SetBinContent(51,1050); h_SL2L366->SetBinContent(52,935.7143); h_SL2L366->SetBinContent(53,950); h_SL2L366->SetBinContent(54,942.8571); h_SL2L366->SetBinContent(55,914.2857); h_SL2L366->SetBinContent(56,782.1428); h_SL2L366->SetBinContent(57,767.8571); h_SL2L366->SetMaximum(67969.11); 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,928.5714); h_SL2L467->SetBinContent(3,960.7143); h_SL2L467->SetBinContent(4,1075); h_SL2L467->SetBinContent(5,1192.857); h_SL2L467->SetBinContent(6,1117.857); h_SL2L467->SetBinContent(7,1221.429); h_SL2L467->SetBinContent(8,1278.571); h_SL2L467->SetBinContent(9,1353.571); h_SL2L467->SetBinContent(10,1507.143); h_SL2L467->SetBinContent(11,1678.571); h_SL2L467->SetBinContent(12,1967.857); h_SL2L467->SetBinContent(13,2046.429); h_SL2L467->SetBinContent(14,2121.428); h_SL2L467->SetBinContent(15,2164.286); h_SL2L467->SetBinContent(16,2428.571); h_SL2L467->SetBinContent(17,2471.428); h_SL2L467->SetBinContent(18,2839.286); h_SL2L467->SetBinContent(19,3153.571); h_SL2L467->SetBinContent(20,3157.143); h_SL2L467->SetBinContent(21,3432.143); h_SL2L467->SetBinContent(22,3700); h_SL2L467->SetBinContent(23,3882.143); h_SL2L467->SetBinContent(24,4235.714); h_SL2L467->SetBinContent(25,4746.429); h_SL2L467->SetBinContent(26,20471.43); h_SL2L467->SetBinContent(27,42400); h_SL2L467->SetBinContent(28,54710.71); h_SL2L467->SetBinContent(29,59103.57); h_SL2L467->SetBinContent(30,56639.29); h_SL2L467->SetBinContent(31,47875); h_SL2L467->SetBinContent(32,42300); h_SL2L467->SetBinContent(33,41146.43); h_SL2L467->SetBinContent(34,33617.86); h_SL2L467->SetBinContent(35,11735.71); h_SL2L467->SetBinContent(36,4910.714); h_SL2L467->SetBinContent(37,3528.571); h_SL2L467->SetBinContent(38,2814.286); h_SL2L467->SetBinContent(39,2453.571); h_SL2L467->SetBinContent(40,2185.714); h_SL2L467->SetBinContent(41,1885.714); h_SL2L467->SetBinContent(42,1860.714); h_SL2L467->SetBinContent(43,1607.143); h_SL2L467->SetBinContent(44,1528.571); h_SL2L467->SetBinContent(45,1414.286); h_SL2L467->SetBinContent(46,1282.143); h_SL2L467->SetBinContent(47,1300); h_SL2L467->SetBinContent(48,1103.571); h_SL2L467->SetBinContent(49,1160.714); h_SL2L467->SetBinContent(50,1157.143); h_SL2L467->SetBinContent(51,1121.429); h_SL2L467->SetBinContent(52,896.4286); h_SL2L467->SetBinContent(53,982.1428); h_SL2L467->SetBinContent(54,892.8571); h_SL2L467->SetBinContent(55,975); h_SL2L467->SetBinContent(56,882.1428); h_SL2L467->SetBinContent(57,746.4286); h_SL2L467->SetMaximum(67969.11); 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.3744221,0.9362587,0.6255779,0.995,"blNDC"); pt->SetName("title"); pt->SetBorderSize(0); pt->SetFillColor(0); pt->SetFillStyle(0); pt->SetTextFont(42); TText *AText = pt->AddText("SL2, run 5581"); pt->Draw(); c->Modified(); c->cd(); c->SetSelected(c); }