void RatesPerCell_Removing_noisy_cells_run_6522_SL1() { //=========Macro generated from canvas: c/c //========= (Mon Jan 14 19:19:50 2019) by ROOT version6.02/13 TCanvas *c = new TCanvas("c", "c",0,0,800,600); gStyle->SetOptStat(0); c->Range(-7.500001,-13053.51,67.5,117481.6); c->SetFillColor(0); c->SetBorderMode(0); c->SetBorderSize(2); c->SetFrameBorderMode(0); c->SetFrameBorderMode(0); TH1D *h_SL1L160 = new TH1D("h_SL1L160","SL1, run 6522",60,0,60); h_SL1L160->SetBinContent(1,410); h_SL1L160->SetBinContent(2,432.8571); h_SL1L160->SetBinContent(3,465.7143); h_SL1L160->SetBinContent(4,430); h_SL1L160->SetBinContent(5,457.1429); h_SL1L160->SetBinContent(6,482.8571); h_SL1L160->SetBinContent(7,522.8572); h_SL1L160->SetBinContent(8,540); h_SL1L160->SetBinContent(9,531.4286); h_SL1L160->SetBinContent(10,642.8572); h_SL1L160->SetBinContent(11,747.1429); h_SL1L160->SetBinContent(12,818.5715); h_SL1L160->SetBinContent(13,861.4286); h_SL1L160->SetBinContent(14,911.4286); h_SL1L160->SetBinContent(15,848.5715); h_SL1L160->SetBinContent(16,880); h_SL1L160->SetBinContent(17,1040); h_SL1L160->SetBinContent(18,1320); h_SL1L160->SetBinContent(19,1352.857); h_SL1L160->SetBinContent(20,1514.286); h_SL1L160->SetBinContent(21,1718.571); h_SL1L160->SetBinContent(22,1882.857); h_SL1L160->SetBinContent(23,2015.714); h_SL1L160->SetBinContent(24,2134.286); h_SL1L160->SetBinContent(25,2121.429); h_SL1L160->SetBinContent(26,2258.572); h_SL1L160->SetBinContent(27,2474.286); h_SL1L160->SetBinContent(28,3235.714); h_SL1L160->SetBinContent(29,3377.143); h_SL1L160->SetBinContent(30,4080); h_SL1L160->SetBinContent(31,5078.572); h_SL1L160->SetBinContent(32,8265.715); h_SL1L160->SetBinContent(33,30987.14); h_SL1L160->SetBinContent(34,50734.29); h_SL1L160->SetBinContent(35,63178.57); h_SL1L160->SetBinContent(36,72428.57); h_SL1L160->SetBinContent(37,74878.57); h_SL1L160->SetBinContent(38,61114.29); h_SL1L160->SetBinContent(39,33432.86); h_SL1L160->SetBinContent(40,8514.286); h_SL1L160->SetBinContent(41,5437.143); h_SL1L160->SetBinContent(42,4511.429); h_SL1L160->SetBinContent(43,4032.857); h_SL1L160->SetBinContent(44,3537.143); h_SL1L160->SetBinContent(45,3328.572); h_SL1L160->SetBinContent(46,3148.572); h_SL1L160->SetBinContent(47,2940); h_SL1L160->SetBinContent(48,2691.429); h_SL1L160->SetBinContent(49,2461.429); h_SL1L160->SetBinContent(50,2461.429); h_SL1L160->SetBinContent(51,2160); h_SL1L160->SetBinContent(52,2041.429); h_SL1L160->SetBinContent(53,1892.857); h_SL1L160->SetBinContent(54,1755.714); h_SL1L160->SetBinContent(55,1815.714); h_SL1L160->SetBinContent(56,1605.714); h_SL1L160->SetBinContent(57,1618.571); h_SL1L160->SetBinContent(58,1587.143); h_SL1L160->SetBinContent(59,1618.571); h_SL1L160->SetMaximum(104428); 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,314.2857); h_SL1L261->SetBinContent(2,350); h_SL1L261->SetBinContent(3,408.5714); h_SL1L261->SetBinContent(4,378.5714); h_SL1L261->SetBinContent(5,387.1429); h_SL1L261->SetBinContent(6,460); h_SL1L261->SetBinContent(7,458.5714); h_SL1L261->SetBinContent(8,455.7143); h_SL1L261->SetBinContent(9,511.4286); h_SL1L261->SetBinContent(10,502.8571); h_SL1L261->SetBinContent(11,648.5715); h_SL1L261->SetBinContent(12,690); h_SL1L261->SetBinContent(13,770); h_SL1L261->SetBinContent(14,814.2857); h_SL1L261->SetBinContent(15,831.4286); h_SL1L261->SetBinContent(16,764.2857); h_SL1L261->SetBinContent(17,854.2857); h_SL1L261->SetBinContent(18,1177.143); h_SL1L261->SetBinContent(19,1227.143); h_SL1L261->SetBinContent(20,1328.571); h_SL1L261->SetBinContent(21,1525.714); h_SL1L261->SetBinContent(22,1740); h_SL1L261->SetBinContent(23,1842.857); h_SL1L261->SetBinContent(24,1948.572); h_SL1L261->SetBinContent(25,2137.143); h_SL1L261->SetBinContent(26,2088.572); h_SL1L261->SetBinContent(27,2297.143); h_SL1L261->SetBinContent(28,2910); h_SL1L261->SetBinContent(29,3142.857); h_SL1L261->SetBinContent(30,3724.286); h_SL1L261->SetBinContent(31,4380); h_SL1L261->SetBinContent(32,6701.429); h_SL1L261->SetBinContent(33,16665.71); h_SL1L261->SetBinContent(34,44694.29); h_SL1L261->SetBinContent(35,58940); h_SL1L261->SetBinContent(36,71621.43); h_SL1L261->SetBinContent(37,78962.86); h_SL1L261->SetBinContent(38,71491.43); h_SL1L261->SetBinContent(39,50788.57); h_SL1L261->SetBinContent(40,16562.86); h_SL1L261->SetBinContent(41,7178.572); h_SL1L261->SetBinContent(42,4760); h_SL1L261->SetBinContent(43,4227.143); h_SL1L261->SetBinContent(44,3680); h_SL1L261->SetBinContent(45,3430); h_SL1L261->SetBinContent(46,3215.714); h_SL1L261->SetBinContent(47,2947.143); h_SL1L261->SetBinContent(48,2790); h_SL1L261->SetBinContent(49,25914.29); h_SL1L261->SetBinContent(50,2434.286); h_SL1L261->SetBinContent(51,2282.857); h_SL1L261->SetBinContent(52,2572.857); h_SL1L261->SetBinContent(53,2395.714); h_SL1L261->SetBinContent(54,1867.143); h_SL1L261->SetBinContent(55,1830); h_SL1L261->SetBinContent(56,8978.571); h_SL1L261->SetBinContent(57,2012.857); h_SL1L261->SetBinContent(58,1624.286); h_SL1L261->SetBinContent(59,1535.714); h_SL1L261->SetMaximum(90807.29); 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,297.1429); h_SL1L362->SetBinContent(2,364.2857); h_SL1L362->SetBinContent(3,362.8571); h_SL1L362->SetBinContent(4,341.4286); h_SL1L362->SetBinContent(5,397.1429); h_SL1L362->SetBinContent(6,404.2857); h_SL1L362->SetBinContent(7,418.5714); h_SL1L362->SetBinContent(8,478.5714); h_SL1L362->SetBinContent(9,420); h_SL1L362->SetBinContent(10,560); h_SL1L362->SetBinContent(11,607.1429); h_SL1L362->SetBinContent(12,677.1429); h_SL1L362->SetBinContent(13,720); h_SL1L362->SetBinContent(14,758.5715); h_SL1L362->SetBinContent(15,800); h_SL1L362->SetBinContent(16,732.8572); h_SL1L362->SetBinContent(17,952.8572); h_SL1L362->SetBinContent(18,1142.857); h_SL1L362->SetBinContent(19,1178.571); h_SL1L362->SetBinContent(20,1322.857); h_SL1L362->SetBinContent(21,1477.143); h_SL1L362->SetBinContent(22,1682.857); h_SL1L362->SetBinContent(23,1802.857); h_SL1L362->SetBinContent(24,1857.143); h_SL1L362->SetBinContent(25,1997.143); h_SL1L362->SetBinContent(26,2071.429); h_SL1L362->SetBinContent(27,2404.286); h_SL1L362->SetBinContent(28,2974.286); h_SL1L362->SetBinContent(29,3177.143); h_SL1L362->SetBinContent(30,3887.143); h_SL1L362->SetBinContent(31,5078.572); h_SL1L362->SetBinContent(32,8398.571); h_SL1L362->SetBinContent(33,32065.71); h_SL1L362->SetBinContent(34,52645.71); h_SL1L362->SetBinContent(35,66061.43); h_SL1L362->SetBinContent(36,76427.15); h_SL1L362->SetBinContent(37,78015.72); h_SL1L362->SetBinContent(38,61767.14); h_SL1L362->SetBinContent(39,34227.14); h_SL1L362->SetBinContent(40,8707.143); h_SL1L362->SetBinContent(41,5382.857); h_SL1L362->SetBinContent(42,4327.143); h_SL1L362->SetBinContent(43,3915.714); h_SL1L362->SetBinContent(44,3410); h_SL1L362->SetBinContent(45,3185.714); h_SL1L362->SetBinContent(46,2987.143); h_SL1L362->SetBinContent(47,2842.857); h_SL1L362->SetBinContent(48,2612.857); h_SL1L362->SetBinContent(49,2345.714); h_SL1L362->SetBinContent(50,2364.286); h_SL1L362->SetBinContent(51,2107.143); h_SL1L362->SetBinContent(52,1897.143); h_SL1L362->SetBinContent(53,7947.143); h_SL1L362->SetBinContent(54,1695.714); h_SL1L362->SetBinContent(55,1808.571); h_SL1L362->SetBinContent(56,10138.57); h_SL1L362->SetBinContent(57,2542.857); h_SL1L362->SetBinContent(58,1485.714); h_SL1L362->SetBinContent(59,1495.714); h_SL1L362->SetMaximum(90807.29); 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,295.7143); h_SL1L463->SetBinContent(3,328.5714); h_SL1L463->SetBinContent(4,335.7143); h_SL1L463->SetBinContent(5,348.5714); h_SL1L463->SetBinContent(6,351.4286); h_SL1L463->SetBinContent(7,391.4286); h_SL1L463->SetBinContent(8,405.7143); h_SL1L463->SetBinContent(9,424.2857); h_SL1L463->SetBinContent(10,447.1429); h_SL1L463->SetBinContent(11,537.1429); h_SL1L463->SetBinContent(12,565.7143); h_SL1L463->SetBinContent(13,630); h_SL1L463->SetBinContent(14,667.1429); h_SL1L463->SetBinContent(15,764.2857); h_SL1L463->SetBinContent(16,712.8572); h_SL1L463->SetBinContent(17,772.8572); h_SL1L463->SetBinContent(18,1018.571); h_SL1L463->SetBinContent(19,1031.429); h_SL1L463->SetBinContent(20,1158.571); h_SL1L463->SetBinContent(21,1311.429); h_SL1L463->SetBinContent(22,1442.857); h_SL1L463->SetBinContent(23,1598.571); h_SL1L463->SetBinContent(24,1651.429); h_SL1L463->SetBinContent(25,1838.572); h_SL1L463->SetBinContent(26,1840); h_SL1L463->SetBinContent(27,2078.572); h_SL1L463->SetBinContent(28,2607.143); h_SL1L463->SetBinContent(29,2807.143); h_SL1L463->SetBinContent(30,3427.143); h_SL1L463->SetBinContent(31,4077.143); h_SL1L463->SetBinContent(32,6277.143); h_SL1L463->SetBinContent(33,15842.86); h_SL1L463->SetBinContent(34,44177.14); h_SL1L463->SetBinContent(35,59160); h_SL1L463->SetBinContent(36,70930); h_SL1L463->SetBinContent(37,77807.15); h_SL1L463->SetBinContent(38,70137.14); h_SL1L463->SetBinContent(39,50595.71); h_SL1L463->SetBinContent(40,16354.29); h_SL1L463->SetBinContent(41,6822.857); h_SL1L463->SetBinContent(42,4592.857); h_SL1L463->SetBinContent(43,3935.714); h_SL1L463->SetBinContent(44,3368.572); h_SL1L463->SetBinContent(45,3142.857); h_SL1L463->SetBinContent(46,3074.286); h_SL1L463->SetBinContent(47,2662.857); h_SL1L463->SetBinContent(48,2672.857); h_SL1L463->SetBinContent(49,2385.714); h_SL1L463->SetBinContent(50,2257.143); h_SL1L463->SetBinContent(51,2028.572); h_SL1L463->SetBinContent(52,1945.714); h_SL1L463->SetBinContent(53,1777.143); h_SL1L463->SetBinContent(54,1734.286); h_SL1L463->SetBinContent(55,11.42857); h_SL1L463->SetBinContent(56,1560); h_SL1L463->SetBinContent(57,1464.286); h_SL1L463->SetBinContent(58,1440); h_SL1L463->SetBinContent(59,1438.571); h_SL1L463->SetMaximum(90807.29); 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 6522"); pt->Draw(); c->Modified(); c->cd(); c->SetSelected(c); }