void RatesPerCell_Removing_noisy_cells_run_4976_SL1() { //=========Macro generated from canvas: c/c //========= (Sun Jan 13 16:09:26 2019) by ROOT version6.02/13 TCanvas *c = new TCanvas("c", "c",0,0,800,600); gStyle->SetOptStat(0); c->Range(-7.500001,-37514.15,67.5,337627.4); c->SetFillColor(0); c->SetBorderMode(0); c->SetBorderSize(2); c->SetFrameBorderMode(0); c->SetFrameBorderMode(0); TH1D *h_SL1L160 = new TH1D("h_SL1L160","SL1, run 4976",60,0,60); h_SL1L160->SetBinContent(1,464.2857); h_SL1L160->SetBinContent(2,452.1429); h_SL1L160->SetBinContent(3,476.4286); h_SL1L160->SetBinContent(4,502.1429); h_SL1L160->SetBinContent(5,472.8571); h_SL1L160->SetBinContent(6,534.2857); h_SL1L160->SetBinContent(7,520.7143); h_SL1L160->SetBinContent(8,611.4286); h_SL1L160->SetBinContent(9,592.8572); h_SL1L160->SetBinContent(10,640.7143); h_SL1L160->SetBinContent(11,746.4286); h_SL1L160->SetBinContent(12,842.1429); h_SL1L160->SetBinContent(13,895.7143); h_SL1L160->SetBinContent(14,958.5715); h_SL1L160->SetBinContent(15,880.7143); h_SL1L160->SetBinContent(16,904.2857); h_SL1L160->SetBinContent(17,990); h_SL1L160->SetBinContent(18,1338.571); h_SL1L160->SetBinContent(19,1438.571); h_SL1L160->SetBinContent(20,1635); h_SL1L160->SetBinContent(21,1850.714); h_SL1L160->SetBinContent(22,1986.429); h_SL1L160->SetBinContent(23,2322.143); h_SL1L160->SetBinContent(24,2507.143); h_SL1L160->SetBinContent(25,2750.714); h_SL1L160->SetBinContent(26,2722.857); h_SL1L160->SetBinContent(27,3230.714); h_SL1L160->SetBinContent(28,3992.857); h_SL1L160->SetBinContent(29,4440); h_SL1L160->SetBinContent(30,5028.572); h_SL1L160->SetBinContent(31,7516.429); h_SL1L160->SetBinContent(32,14055.71); h_SL1L160->SetBinContent(33,66281.43); h_SL1L160->SetBinContent(34,69165); h_SL1L160->SetBinContent(35,65900.72); h_SL1L160->SetBinContent(36,64394.29); h_SL1L160->SetBinContent(37,59833.57); h_SL1L160->SetBinContent(38,47618.57); h_SL1L160->SetBinContent(39,28807.86); h_SL1L160->SetBinContent(40,6983.572); h_SL1L160->SetBinContent(41,4642.143); h_SL1L160->SetBinContent(42,4100.714); h_SL1L160->SetBinContent(43,3580.714); h_SL1L160->SetBinContent(44,3352.143); h_SL1L160->SetBinContent(45,3110.714); h_SL1L160->SetBinContent(46,2864.286); h_SL1L160->SetBinContent(47,2755); h_SL1L160->SetBinContent(48,2462.857); h_SL1L160->SetBinContent(49,2182.143); h_SL1L160->SetBinContent(50,2002.857); h_SL1L160->SetBinContent(51,1774.286); h_SL1L160->SetBinContent(52,1735); h_SL1L160->SetBinContent(53,1638.571); h_SL1L160->SetBinContent(54,1643.571); h_SL1L160->SetBinContent(55,1487.857); h_SL1L160->SetBinContent(56,1468.571); h_SL1L160->SetBinContent(57,1585.714); h_SL1L160->SetBinContent(58,1558.571); h_SL1L160->SetBinContent(59,1491.429); h_SL1L160->SetMaximum(300113.2); 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); h_SL1L261->SetBinContent(2,416.4286); h_SL1L261->SetBinContent(3,400.7143); h_SL1L261->SetBinContent(4,439.2857); h_SL1L261->SetBinContent(5,426.4286); h_SL1L261->SetBinContent(6,474.2857); h_SL1L261->SetBinContent(7,451.4286); h_SL1L261->SetBinContent(8,478.5714); h_SL1L261->SetBinContent(9,521.4286); h_SL1L261->SetBinContent(10,577.1429); h_SL1L261->SetBinContent(11,629.2857); h_SL1L261->SetBinContent(12,682.8572); h_SL1L261->SetBinContent(13,789.2857); h_SL1L261->SetBinContent(14,852.8572); h_SL1L261->SetBinContent(15,848.5715); h_SL1L261->SetBinContent(16,807.8572); h_SL1L261->SetBinContent(17,890.7143); h_SL1L261->SetBinContent(18,1087.143); h_SL1L261->SetBinContent(19,1272.143); h_SL1L261->SetBinContent(20,1412.857); h_SL1L261->SetBinContent(21,1590.714); h_SL1L261->SetBinContent(22,1874.286); h_SL1L261->SetBinContent(23,2004.286); h_SL1L261->SetBinContent(24,2324.286); h_SL1L261->SetBinContent(25,2532.143); h_SL1L261->SetBinContent(26,2552.857); h_SL1L261->SetBinContent(27,2841.429); h_SL1L261->SetBinContent(28,3850); h_SL1L261->SetBinContent(29,4035); h_SL1L261->SetBinContent(30,4484.286); h_SL1L261->SetBinContent(31,5452.143); h_SL1L261->SetBinContent(32,10015); h_SL1L261->SetBinContent(33,38527.14); h_SL1L261->SetBinContent(34,71555.72); h_SL1L261->SetBinContent(35,66227.86); h_SL1L261->SetBinContent(36,65209.29); h_SL1L261->SetBinContent(37,62411.43); h_SL1L261->SetBinContent(38,53455); h_SL1L261->SetBinContent(39,39370.71); h_SL1L261->SetBinContent(40,12357.14); h_SL1L261->SetBinContent(41,6011.429); h_SL1L261->SetBinContent(42,4162.143); h_SL1L261->SetBinContent(43,3667.857); h_SL1L261->SetBinContent(44,3295); h_SL1L261->SetBinContent(45,3037.143); h_SL1L261->SetBinContent(46,2911.429); h_SL1L261->SetBinContent(47,2619.286); h_SL1L261->SetBinContent(48,2465.714); h_SL1L261->SetBinContent(49,226929.3); h_SL1L261->SetBinContent(50,1964.286); h_SL1L261->SetBinContent(51,1796.429); h_SL1L261->SetBinContent(52,25020); h_SL1L261->SetBinContent(53,26332.14); h_SL1L261->SetBinContent(54,1557.143); h_SL1L261->SetBinContent(55,1509.286); h_SL1L261->SetBinContent(56,88846.43); h_SL1L261->SetBinContent(57,1429.286); h_SL1L261->SetBinContent(58,1548.571); h_SL1L261->SetBinContent(59,1429.286); h_SL1L261->SetMaximum(260968.7); 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,350.7143); h_SL1L362->SetBinContent(2,380); h_SL1L362->SetBinContent(3,365); h_SL1L362->SetBinContent(4,393.5714); h_SL1L362->SetBinContent(5,391.4286); h_SL1L362->SetBinContent(6,432.1429); h_SL1L362->SetBinContent(7,440.7143); h_SL1L362->SetBinContent(8,473.5714); h_SL1L362->SetBinContent(9,488.5714); h_SL1L362->SetBinContent(10,547.1429); h_SL1L362->SetBinContent(11,600.7143); h_SL1L362->SetBinContent(12,682.1429); h_SL1L362->SetBinContent(13,753.5715); h_SL1L362->SetBinContent(14,812.8572); h_SL1L362->SetBinContent(15,781.4286); h_SL1L362->SetBinContent(16,836.4286); h_SL1L362->SetBinContent(17,927.1429); h_SL1L362->SetBinContent(18,1119.286); h_SL1L362->SetBinContent(19,1289.286); h_SL1L362->SetBinContent(20,1452.857); h_SL1L362->SetBinContent(21,1646.429); h_SL1L362->SetBinContent(22,1774.286); h_SL1L362->SetBinContent(23,2105.714); h_SL1L362->SetBinContent(24,2297.857); h_SL1L362->SetBinContent(25,2462.857); h_SL1L362->SetBinContent(26,2535); h_SL1L362->SetBinContent(27,3135); h_SL1L362->SetBinContent(28,3756.429); h_SL1L362->SetBinContent(29,4170.714); h_SL1L362->SetBinContent(30,4794.286); h_SL1L362->SetBinContent(31,7352.857); h_SL1L362->SetBinContent(32,13960); h_SL1L362->SetBinContent(33,66319.29); h_SL1L362->SetBinContent(34,69040); h_SL1L362->SetBinContent(35,65708.57); h_SL1L362->SetBinContent(36,64314.29); h_SL1L362->SetBinContent(37,59140); h_SL1L362->SetBinContent(38,46597.14); h_SL1L362->SetBinContent(39,26765.71); h_SL1L362->SetBinContent(40,6946.429); h_SL1L362->SetBinContent(41,4418.572); h_SL1L362->SetBinContent(42,3865.714); h_SL1L362->SetBinContent(43,3380); h_SL1L362->SetBinContent(44,3112.143); h_SL1L362->SetBinContent(45,2877.143); h_SL1L362->SetBinContent(46,2600); h_SL1L362->SetBinContent(47,2539.286); h_SL1L362->SetBinContent(48,2190); h_SL1L362->SetBinContent(49,13228.57); h_SL1L362->SetBinContent(50,1837.143); h_SL1L362->SetBinContent(51,1670.714); h_SL1L362->SetBinContent(52,1751.429); h_SL1L362->SetBinContent(53,99043.57); h_SL1L362->SetBinContent(54,1524.286); h_SL1L362->SetBinContent(55,1413.571); h_SL1L362->SetBinContent(56,113402.1); h_SL1L362->SetBinContent(57,1467.857); h_SL1L362->SetBinContent(58,1442.143); h_SL1L362->SetBinContent(59,1406.429); h_SL1L362->SetMaximum(260968.7); 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,337.8571); h_SL1L463->SetBinContent(3,286.4286); h_SL1L463->SetBinContent(4,306.4286); h_SL1L463->SetBinContent(5,315.7143); h_SL1L463->SetBinContent(6,351.4286); h_SL1L463->SetBinContent(7,327.1429); h_SL1L463->SetBinContent(8,342.1429); h_SL1L463->SetBinContent(9,385.7143); h_SL1L463->SetBinContent(10,428.5714); h_SL1L463->SetBinContent(11,430.7143); h_SL1L463->SetBinContent(12,520); h_SL1L463->SetBinContent(13,572.1429); h_SL1L463->SetBinContent(14,650.7143); h_SL1L463->SetBinContent(15,666.4286); h_SL1L463->SetBinContent(16,650); h_SL1L463->SetBinContent(17,735.7143); h_SL1L463->SetBinContent(18,837.1429); h_SL1L463->SetBinContent(19,981.4286); h_SL1L463->SetBinContent(20,1131.429); h_SL1L463->SetBinContent(21,1270); h_SL1L463->SetBinContent(22,1448.571); h_SL1L463->SetBinContent(23,1634.286); h_SL1L463->SetBinContent(24,1860.714); h_SL1L463->SetBinContent(25,1939.286); h_SL1L463->SetBinContent(26,2082.857); h_SL1L463->SetBinContent(27,2376.429); h_SL1L463->SetBinContent(28,3089.286); h_SL1L463->SetBinContent(29,3418.572); h_SL1L463->SetBinContent(30,3894.286); h_SL1L463->SetBinContent(31,4962.857); h_SL1L463->SetBinContent(32,8755); h_SL1L463->SetBinContent(33,33660); h_SL1L463->SetBinContent(34,66860); h_SL1L463->SetBinContent(35,63407.86); h_SL1L463->SetBinContent(36,60562.14); h_SL1L463->SetBinContent(37,55456.43); h_SL1L463->SetBinContent(38,48392.14); h_SL1L463->SetBinContent(39,37454.29); h_SL1L463->SetBinContent(40,11092.14); h_SL1L463->SetBinContent(41,5247.143); h_SL1L463->SetBinContent(42,3748.572); h_SL1L463->SetBinContent(43,3321.429); h_SL1L463->SetBinContent(44,2957.857); h_SL1L463->SetBinContent(45,2562.143); h_SL1L463->SetBinContent(46,2447.857); h_SL1L463->SetBinContent(47,2218.572); h_SL1L463->SetBinContent(48,2022.857); h_SL1L463->SetBinContent(49,1798.571); h_SL1L463->SetBinContent(50,1589.286); h_SL1L463->SetBinContent(51,1495.714); h_SL1L463->SetBinContent(52,1409.286); h_SL1L463->SetBinContent(53,1374.286); h_SL1L463->SetBinContent(54,1280.714); h_SL1L463->SetBinContent(55,4.285714); h_SL1L463->SetBinContent(56,1194.286); h_SL1L463->SetBinContent(57,1124.286); h_SL1L463->SetBinContent(58,1328.571); h_SL1L463->SetBinContent(59,1156.429); h_SL1L463->SetMaximum(260968.7); 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 4976"); pt->Draw(); c->Modified(); c->cd(); c->SetSelected(c); }