void RatesPerCell_Removing_noisy_cells_run_4992_SL1() { //=========Macro generated from canvas: c/c //========= (Sun Jan 13 16:11:01 2019) by ROOT version6.02/13 TCanvas *c = new TCanvas("c", "c",0,0,800,600); gStyle->SetOptStat(0); c->Range(-7.500001,-11492.09,67.5,103428.8); c->SetFillColor(0); c->SetBorderMode(0); c->SetBorderSize(2); c->SetFrameBorderMode(0); c->SetFrameBorderMode(0); TH1D *h_SL1L160 = new TH1D("h_SL1L160","SL1, run 4992",60,0,60); h_SL1L160->SetBinContent(1,445.7143); h_SL1L160->SetBinContent(2,476.4286); h_SL1L160->SetBinContent(3,527.1429); h_SL1L160->SetBinContent(4,505.7143); h_SL1L160->SetBinContent(5,552.1429); h_SL1L160->SetBinContent(6,570.7143); h_SL1L160->SetBinContent(7,544.2857); h_SL1L160->SetBinContent(8,580.7143); h_SL1L160->SetBinContent(9,618.5715); h_SL1L160->SetBinContent(10,690); h_SL1L160->SetBinContent(11,772.1429); h_SL1L160->SetBinContent(12,862.1429); h_SL1L160->SetBinContent(13,915.7143); h_SL1L160->SetBinContent(14,970); h_SL1L160->SetBinContent(15,887.1429); h_SL1L160->SetBinContent(16,906.4286); h_SL1L160->SetBinContent(17,1061.429); h_SL1L160->SetBinContent(18,1362.143); h_SL1L160->SetBinContent(19,1470.714); h_SL1L160->SetBinContent(20,1618.571); h_SL1L160->SetBinContent(21,1822.143); h_SL1L160->SetBinContent(22,2077.143); h_SL1L160->SetBinContent(23,2315); h_SL1L160->SetBinContent(24,2544.286); h_SL1L160->SetBinContent(25,2868.572); h_SL1L160->SetBinContent(26,2906.429); h_SL1L160->SetBinContent(27,3287.143); h_SL1L160->SetBinContent(28,4147.143); h_SL1L160->SetBinContent(29,4565.714); h_SL1L160->SetBinContent(30,5035); h_SL1L160->SetBinContent(31,7603.572); h_SL1L160->SetBinContent(32,14020.71); h_SL1L160->SetBinContent(33,64744.29); h_SL1L160->SetBinContent(34,66345.72); h_SL1L160->SetBinContent(35,63872.14); h_SL1L160->SetBinContent(36,62142.14); h_SL1L160->SetBinContent(37,56802.86); h_SL1L160->SetBinContent(38,45400.71); h_SL1L160->SetBinContent(39,26115.71); h_SL1L160->SetBinContent(40,7025.714); h_SL1L160->SetBinContent(41,4650); h_SL1L160->SetBinContent(42,4035); h_SL1L160->SetBinContent(43,3542.143); h_SL1L160->SetBinContent(44,3320.714); h_SL1L160->SetBinContent(45,3022.857); h_SL1L160->SetBinContent(46,2739.286); h_SL1L160->SetBinContent(47,2651.429); h_SL1L160->SetBinContent(48,2452.143); h_SL1L160->SetBinContent(49,2312.857); h_SL1L160->SetBinContent(50,2084.286); h_SL1L160->SetBinContent(51,1817.857); h_SL1L160->SetBinContent(52,1730); h_SL1L160->SetBinContent(53,1779.286); h_SL1L160->SetBinContent(54,1630); h_SL1L160->SetBinContent(55,1597.143); h_SL1L160->SetBinContent(56,1577.857); h_SL1L160->SetBinContent(57,1563.571); h_SL1L160->SetBinContent(58,1591.429); h_SL1L160->SetBinContent(59,1557.857); h_SL1L160->SetMaximum(91936.75); 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,385.7143); h_SL1L261->SetBinContent(2,395.7143); h_SL1L261->SetBinContent(3,460); h_SL1L261->SetBinContent(4,437.1429); h_SL1L261->SetBinContent(5,468.5714); h_SL1L261->SetBinContent(6,484.2857); h_SL1L261->SetBinContent(7,512.8572); h_SL1L261->SetBinContent(8,524.2857); h_SL1L261->SetBinContent(9,560); h_SL1L261->SetBinContent(10,565); h_SL1L261->SetBinContent(11,688.5715); h_SL1L261->SetBinContent(12,704.2857); h_SL1L261->SetBinContent(13,803.5715); h_SL1L261->SetBinContent(14,881.4286); h_SL1L261->SetBinContent(15,872.1429); h_SL1L261->SetBinContent(16,820.7143); h_SL1L261->SetBinContent(17,921.4286); h_SL1L261->SetBinContent(18,1156.429); h_SL1L261->SetBinContent(19,1315.714); h_SL1L261->SetBinContent(20,1474.286); h_SL1L261->SetBinContent(21,1573.571); h_SL1L261->SetBinContent(22,1840); h_SL1L261->SetBinContent(23,2049.286); h_SL1L261->SetBinContent(24,2297.143); h_SL1L261->SetBinContent(25,2557.143); h_SL1L261->SetBinContent(26,2698.572); h_SL1L261->SetBinContent(27,2964.286); h_SL1L261->SetBinContent(28,3672.857); h_SL1L261->SetBinContent(29,4199.286); h_SL1L261->SetBinContent(30,4688.572); h_SL1L261->SetBinContent(31,5439.286); h_SL1L261->SetBinContent(32,10110); h_SL1L261->SetBinContent(33,37791.43); h_SL1L261->SetBinContent(34,69517.86); h_SL1L261->SetBinContent(35,64091.43); h_SL1L261->SetBinContent(36,63367.14); h_SL1L261->SetBinContent(37,60211.43); h_SL1L261->SetBinContent(38,51605); h_SL1L261->SetBinContent(39,38457.14); h_SL1L261->SetBinContent(40,12164.29); h_SL1L261->SetBinContent(41,5952.143); h_SL1L261->SetBinContent(42,4050.714); h_SL1L261->SetBinContent(43,3681.429); h_SL1L261->SetBinContent(44,3285); h_SL1L261->SetBinContent(45,3082.143); h_SL1L261->SetBinContent(46,2812.143); h_SL1L261->SetBinContent(47,2554.286); h_SL1L261->SetBinContent(48,2460); h_SL1L261->SetBinContent(49,2240.714); h_SL1L261->SetBinContent(50,2075); h_SL1L261->SetBinContent(51,1882.143); h_SL1L261->SetBinContent(52,1710); h_SL1L261->SetBinContent(53,1717.857); h_SL1L261->SetBinContent(54,1669.286); h_SL1L261->SetBinContent(55,1543.571); h_SL1L261->SetBinContent(56,1553.571); h_SL1L261->SetBinContent(57,1481.429); h_SL1L261->SetBinContent(58,1547.857); h_SL1L261->SetBinContent(59,1531.429); h_SL1L261->SetMaximum(79945.54); 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,385); h_SL1L362->SetBinContent(2,363.5714); h_SL1L362->SetBinContent(3,407.8571); h_SL1L362->SetBinContent(4,400.7143); h_SL1L362->SetBinContent(5,433.5714); h_SL1L362->SetBinContent(6,447.8571); h_SL1L362->SetBinContent(7,447.1429); h_SL1L362->SetBinContent(8,487.8571); h_SL1L362->SetBinContent(9,505); h_SL1L362->SetBinContent(10,600.7143); h_SL1L362->SetBinContent(11,663.5715); h_SL1L362->SetBinContent(12,683.5715); h_SL1L362->SetBinContent(13,762.1429); h_SL1L362->SetBinContent(14,812.8572); h_SL1L362->SetBinContent(15,769.2857); h_SL1L362->SetBinContent(16,824.2857); h_SL1L362->SetBinContent(17,955.7143); h_SL1L362->SetBinContent(18,1206.429); h_SL1L362->SetBinContent(19,1322.143); h_SL1L362->SetBinContent(20,1442.857); h_SL1L362->SetBinContent(21,1629.286); h_SL1L362->SetBinContent(22,1879.286); h_SL1L362->SetBinContent(23,2098.572); h_SL1L362->SetBinContent(24,2322.857); h_SL1L362->SetBinContent(25,2621.429); h_SL1L362->SetBinContent(26,2724.286); h_SL1L362->SetBinContent(27,3169.286); h_SL1L362->SetBinContent(28,3933.572); h_SL1L362->SetBinContent(29,4366.429); h_SL1L362->SetBinContent(30,4805); h_SL1L362->SetBinContent(31,7469.286); h_SL1L362->SetBinContent(32,14118.57); h_SL1L362->SetBinContent(33,65070); h_SL1L362->SetBinContent(34,66527.86); h_SL1L362->SetBinContent(35,63977.14); h_SL1L362->SetBinContent(36,62435.71); h_SL1L362->SetBinContent(37,57011.43); h_SL1L362->SetBinContent(38,45542.14); h_SL1L362->SetBinContent(39,26199.29); h_SL1L362->SetBinContent(40,6870); h_SL1L362->SetBinContent(41,4456.429); h_SL1L362->SetBinContent(42,3820); h_SL1L362->SetBinContent(43,3360); h_SL1L362->SetBinContent(44,3128.572); h_SL1L362->SetBinContent(45,2817.857); h_SL1L362->SetBinContent(46,2540); h_SL1L362->SetBinContent(47,2398.572); h_SL1L362->SetBinContent(48,2215.714); h_SL1L362->SetBinContent(49,2072.143); h_SL1L362->SetBinContent(50,1903.572); h_SL1L362->SetBinContent(51,1732.143); h_SL1L362->SetBinContent(52,1643.571); h_SL1L362->SetBinContent(53,1626.429); h_SL1L362->SetBinContent(54,1532.857); h_SL1L362->SetBinContent(55,1551.429); h_SL1L362->SetBinContent(56,1505); h_SL1L362->SetBinContent(57,1493.571); h_SL1L362->SetBinContent(58,1482.143); h_SL1L362->SetBinContent(59,1458.571); h_SL1L362->SetMaximum(79945.54); 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,237.1429); h_SL1L463->SetBinContent(3,238.5714); h_SL1L463->SetBinContent(4,258.5714); h_SL1L463->SetBinContent(5,267.1429); h_SL1L463->SetBinContent(6,245.7143); h_SL1L463->SetBinContent(7,278.5714); h_SL1L463->SetBinContent(8,257.8571); h_SL1L463->SetBinContent(9,292.8571); h_SL1L463->SetBinContent(10,334.2857); h_SL1L463->SetBinContent(11,397.1429); h_SL1L463->SetBinContent(12,389.2857); h_SL1L463->SetBinContent(13,462.1429); h_SL1L463->SetBinContent(14,479.2857); h_SL1L463->SetBinContent(15,522.1429); h_SL1L463->SetBinContent(16,453.5714); h_SL1L463->SetBinContent(17,541.4286); h_SL1L463->SetBinContent(18,646.4286); h_SL1L463->SetBinContent(19,776.4286); h_SL1L463->SetBinContent(20,860.7143); h_SL1L463->SetBinContent(21,867.1429); h_SL1L463->SetBinContent(22,1096.429); h_SL1L463->SetBinContent(23,1242.857); h_SL1L463->SetBinContent(24,1383.571); h_SL1L463->SetBinContent(25,1427.143); h_SL1L463->SetBinContent(26,1646.429); h_SL1L463->SetBinContent(27,1860.714); h_SL1L463->SetBinContent(28,2349.286); h_SL1L463->SetBinContent(29,2554.286); h_SL1L463->SetBinContent(30,2841.429); h_SL1L463->SetBinContent(31,3610); h_SL1L463->SetBinContent(32,6423.572); h_SL1L463->SetBinContent(33,23952.14); h_SL1L463->SetBinContent(34,48345.71); h_SL1L463->SetBinContent(35,45861.43); h_SL1L463->SetBinContent(36,44726.43); h_SL1L463->SetBinContent(37,38885.71); h_SL1L463->SetBinContent(38,34781.43); h_SL1L463->SetBinContent(39,27271.43); h_SL1L463->SetBinContent(40,7476.429); h_SL1L463->SetBinContent(41,3940.714); h_SL1L463->SetBinContent(42,2611.429); h_SL1L463->SetBinContent(43,2506.429); h_SL1L463->SetBinContent(44,2214.286); h_SL1L463->SetBinContent(45,1862.857); h_SL1L463->SetBinContent(46,1785); h_SL1L463->SetBinContent(47,1538.571); h_SL1L463->SetBinContent(48,1444.286); h_SL1L463->SetBinContent(49,1265); h_SL1L463->SetBinContent(50,1215.714); h_SL1L463->SetBinContent(51,1190); h_SL1L463->SetBinContent(52,1045); h_SL1L463->SetBinContent(53,1025.714); h_SL1L463->SetBinContent(54,1019.286); h_SL1L463->SetBinContent(56,1049.286); h_SL1L463->SetBinContent(57,905); h_SL1L463->SetBinContent(58,945.7143); h_SL1L463->SetBinContent(59,940); h_SL1L463->SetMaximum(79945.54); 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 4992"); pt->Draw(); c->Modified(); c->cd(); c->SetSelected(c); }