void RatesPerCell_Removing_noisy_cells_run_6614_SL2() { //=========Macro generated from canvas: c/c //========= (Sun Jan 13 16:22:01 2019) by ROOT version6.02/13 TCanvas *c = new TCanvas("c", "c",0,0,800,600); gStyle->SetOptStat(0); c->Range(-7.500001,-10053.73,67.5,90483.58); c->SetFillColor(0); c->SetBorderMode(0); c->SetBorderSize(2); c->SetFrameBorderMode(0); c->SetFrameBorderMode(0); TH1D *h_SL2L164 = new TH1D("h_SL2L164","SL2, run 6614",60,0,60); h_SL2L164->SetBinContent(1,321.4286); h_SL2L164->SetBinContent(2,401.4286); h_SL2L164->SetBinContent(3,487.1429); h_SL2L164->SetBinContent(4,580); h_SL2L164->SetBinContent(5,540); h_SL2L164->SetBinContent(6,602.8572); h_SL2L164->SetBinContent(7,582.8572); h_SL2L164->SetBinContent(8,631.4286); h_SL2L164->SetBinContent(9,675.7143); h_SL2L164->SetBinContent(10,800); h_SL2L164->SetBinContent(11,925.7143); h_SL2L164->SetBinContent(12,955.7143); h_SL2L164->SetBinContent(13,1040); h_SL2L164->SetBinContent(14,1190); h_SL2L164->SetBinContent(15,1237.143); h_SL2L164->SetBinContent(16,1388.571); h_SL2L164->SetBinContent(17,1440); h_SL2L164->SetBinContent(18,1684.286); h_SL2L164->SetBinContent(19,1817.143); h_SL2L164->SetBinContent(20,1861.429); h_SL2L164->SetBinContent(21,2128.572); h_SL2L164->SetBinContent(22,2351.429); h_SL2L164->SetBinContent(23,2728.572); h_SL2L164->SetBinContent(24,3217.143); h_SL2L164->SetBinContent(25,8338.571); h_SL2L164->SetBinContent(26,28135.71); h_SL2L164->SetBinContent(27,45552.86); h_SL2L164->SetBinContent(28,57087.14); h_SL2L164->SetBinContent(29,60817.14); h_SL2L164->SetBinContent(30,56831.43); h_SL2L164->SetBinContent(31,48201.43); h_SL2L164->SetBinContent(32,44180); h_SL2L164->SetBinContent(33,38722.86); h_SL2L164->SetBinContent(34,19102.86); h_SL2L164->SetBinContent(35,1.428571); h_SL2L164->SetBinContent(36,2774.286); h_SL2L164->SetBinContent(37,3638.572); h_SL2L164->SetBinContent(38,2598.572); h_SL2L164->SetBinContent(39,3181.429); h_SL2L164->SetBinContent(40,43697.14); h_SL2L164->SetBinContent(41,3672.857); h_SL2L164->SetBinContent(42,3874.286); h_SL2L164->SetBinContent(43,3955.714); h_SL2L164->SetBinContent(44,3734.286); h_SL2L164->SetBinContent(45,754.2857); h_SL2L164->SetBinContent(46,704.2857); h_SL2L164->SetBinContent(47,577.1429); h_SL2L164->SetBinContent(48,587.1429); h_SL2L164->SetBinContent(49,501.4286); h_SL2L164->SetBinContent(50,418.5714); h_SL2L164->SetBinContent(51,407.1429); h_SL2L164->SetBinContent(52,358.5714); h_SL2L164->SetBinContent(53,330); h_SL2L164->SetBinContent(54,324.2857); h_SL2L164->SetBinContent(55,300); h_SL2L164->SetBinContent(56,264.2857); h_SL2L164->SetBinContent(57,7672.857); h_SL2L164->SetMaximum(80429.85); 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,262.8571); h_SL2L265->SetBinContent(2,372.8571); h_SL2L265->SetBinContent(3,480); h_SL2L265->SetBinContent(4,530); h_SL2L265->SetBinContent(5,548.5714); h_SL2L265->SetBinContent(6,578.5715); h_SL2L265->SetBinContent(7,540); h_SL2L265->SetBinContent(8,552.8572); h_SL2L265->SetBinContent(9,640); h_SL2L265->SetBinContent(10,741.4286); h_SL2L265->SetBinContent(11,897.1429); h_SL2L265->SetBinContent(12,865.7143); h_SL2L265->SetBinContent(13,998.5715); h_SL2L265->SetBinContent(14,1118.571); h_SL2L265->SetBinContent(15,1154.286); h_SL2L265->SetBinContent(16,1305.714); h_SL2L265->SetBinContent(17,1334.286); h_SL2L265->SetBinContent(18,1490); h_SL2L265->SetBinContent(19,1764.286); h_SL2L265->SetBinContent(20,1791.429); h_SL2L265->SetBinContent(21,1928.572); h_SL2L265->SetBinContent(22,2134.286); h_SL2L265->SetBinContent(23,2515.714); h_SL2L265->SetBinContent(24,2917.143); h_SL2L265->SetBinContent(25,3891.429); h_SL2L265->SetBinContent(26,17688.57); h_SL2L265->SetBinContent(27,37334.29); h_SL2L265->SetBinContent(28,52241.43); h_SL2L265->SetBinContent(29,59564.29); h_SL2L265->SetBinContent(30,59537.14); h_SL2L265->SetBinContent(31,52171.43); h_SL2L265->SetBinContent(32,45640); h_SL2L265->SetBinContent(33,42372.86); h_SL2L265->SetBinContent(34,30627.14); h_SL2L265->SetBinContent(35,9965.715); h_SL2L265->SetBinContent(36,3548.572); h_SL2L265->SetBinContent(37,2454.286); h_SL2L265->SetBinContent(38,2041.429); h_SL2L265->SetBinContent(39,1961.429); h_SL2L265->SetBinContent(40,3625.714); h_SL2L265->SetBinContent(41,1470); h_SL2L265->SetBinContent(42,1410); h_SL2L265->SetBinContent(43,1155.714); h_SL2L265->SetBinContent(44,1364.286); h_SL2L265->SetBinContent(45,761.4286); h_SL2L265->SetBinContent(46,710); h_SL2L265->SetBinContent(47,642.8572); h_SL2L265->SetBinContent(48,545.7143); h_SL2L265->SetBinContent(49,515.7143); h_SL2L265->SetBinContent(50,441.4286); h_SL2L265->SetBinContent(51,387.1429); h_SL2L265->SetBinContent(52,385.7143); h_SL2L265->SetBinContent(53,302.8571); h_SL2L265->SetBinContent(54,327.1429); h_SL2L265->SetBinContent(55,298.5714); h_SL2L265->SetBinContent(56,277.1429); h_SL2L265->SetBinContent(57,217.1429); h_SL2L265->SetMaximum(69939.72); 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,515.7143); h_SL2L366->SetBinContent(2,424.2857); h_SL2L366->SetBinContent(3,471.4286); h_SL2L366->SetBinContent(4,517.1429); h_SL2L366->SetBinContent(5,500); h_SL2L366->SetBinContent(6,555.7143); h_SL2L366->SetBinContent(7,521.4286); h_SL2L366->SetBinContent(8,584.2857); h_SL2L366->SetBinContent(9,661.4286); h_SL2L366->SetBinContent(10,764.2857); h_SL2L366->SetBinContent(11,850); h_SL2L366->SetBinContent(12,858.5715); h_SL2L366->SetBinContent(13,992.8572); h_SL2L366->SetBinContent(14,1141.429); h_SL2L366->SetBinContent(15,1135.714); h_SL2L366->SetBinContent(16,1318.571); h_SL2L366->SetBinContent(17,1348.571); h_SL2L366->SetBinContent(18,1622.857); h_SL2L366->SetBinContent(19,1788.571); h_SL2L366->SetBinContent(20,1784.286); h_SL2L366->SetBinContent(21,2002.857); h_SL2L366->SetBinContent(22,2244.286); h_SL2L366->SetBinContent(23,2554.286); h_SL2L366->SetBinContent(24,3137.143); h_SL2L366->SetBinContent(25,8235.715); h_SL2L366->SetBinContent(26,28235.71); h_SL2L366->SetBinContent(27,45431.43); h_SL2L366->SetBinContent(28,57170); h_SL2L366->SetBinContent(29,60097.14); h_SL2L366->SetBinContent(30,56747.14); h_SL2L366->SetBinContent(31,48307.14); h_SL2L366->SetBinContent(32,44402.86); h_SL2L366->SetBinContent(33,38530); h_SL2L366->SetBinContent(34,19094.29); h_SL2L366->SetBinContent(35,5337.143); h_SL2L366->SetBinContent(36,2764.286); h_SL2L366->SetBinContent(37,2207.143); h_SL2L366->SetBinContent(38,1752.857); h_SL2L366->SetBinContent(39,1427.143); h_SL2L366->SetBinContent(40,1701.429); h_SL2L366->SetBinContent(41,1148.571); h_SL2L366->SetBinContent(42,954.2858); h_SL2L366->SetBinContent(43,872.8572); h_SL2L366->SetBinContent(44,787.1429); h_SL2L366->SetBinContent(45,722.8572); h_SL2L366->SetBinContent(46,665.7143); h_SL2L366->SetBinContent(47,587.1429); h_SL2L366->SetBinContent(48,552.8572); h_SL2L366->SetBinContent(49,450); h_SL2L366->SetBinContent(50,407.1429); h_SL2L366->SetBinContent(51,341.4286); h_SL2L366->SetBinContent(52,357.1429); h_SL2L366->SetBinContent(53,331.4286); h_SL2L366->SetBinContent(54,320); h_SL2L366->SetBinContent(55,281.4286); h_SL2L366->SetBinContent(56,260); h_SL2L366->SetBinContent(57,278.5714); h_SL2L366->SetMaximum(69939.72); 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,370); h_SL2L467->SetBinContent(3,432.8571); h_SL2L467->SetBinContent(4,475.7143); h_SL2L467->SetBinContent(5,508.5714); h_SL2L467->SetBinContent(6,518.5714); h_SL2L467->SetBinContent(7,498.5714); h_SL2L467->SetBinContent(8,514.2857); h_SL2L467->SetBinContent(9,597.1429); h_SL2L467->SetBinContent(10,692.8572); h_SL2L467->SetBinContent(11,837.1429); h_SL2L467->SetBinContent(12,798.5715); h_SL2L467->SetBinContent(13,945.7143); h_SL2L467->SetBinContent(14,1027.143); h_SL2L467->SetBinContent(15,1087.143); h_SL2L467->SetBinContent(16,1208.571); h_SL2L467->SetBinContent(17,1261.429); h_SL2L467->SetBinContent(18,1475.714); h_SL2L467->SetBinContent(19,1690); h_SL2L467->SetBinContent(20,1727.143); h_SL2L467->SetBinContent(21,1810); h_SL2L467->SetBinContent(22,2062.857); h_SL2L467->SetBinContent(23,2412.857); h_SL2L467->SetBinContent(24,2847.143); h_SL2L467->SetBinContent(25,3724.286); h_SL2L467->SetBinContent(26,17614.29); h_SL2L467->SetBinContent(27,37412.86); h_SL2L467->SetBinContent(28,52242.86); h_SL2L467->SetBinContent(29,59504.29); h_SL2L467->SetBinContent(30,60188.57); h_SL2L467->SetBinContent(31,52142.86); h_SL2L467->SetBinContent(32,45788.57); h_SL2L467->SetBinContent(33,42407.14); h_SL2L467->SetBinContent(34,30548.57); h_SL2L467->SetBinContent(35,9971.429); h_SL2L467->SetBinContent(36,3477.143); h_SL2L467->SetBinContent(37,2325.714); h_SL2L467->SetBinContent(38,1950); h_SL2L467->SetBinContent(39,1552.857); h_SL2L467->SetBinContent(40,1232.857); h_SL2L467->SetBinContent(41,1187.143); h_SL2L467->SetBinContent(42,1020); h_SL2L467->SetBinContent(43,901.4286); h_SL2L467->SetBinContent(44,782.8572); h_SL2L467->SetBinContent(45,682.8572); h_SL2L467->SetBinContent(46,658.5715); h_SL2L467->SetBinContent(47,582.8572); h_SL2L467->SetBinContent(48,507.1429); h_SL2L467->SetBinContent(49,501.4286); h_SL2L467->SetBinContent(50,390); h_SL2L467->SetBinContent(51,344.2857); h_SL2L467->SetBinContent(52,377.1429); h_SL2L467->SetBinContent(53,300); h_SL2L467->SetBinContent(54,302.8571); h_SL2L467->SetBinContent(55,277.1429); h_SL2L467->SetBinContent(56,284.2857); h_SL2L467->SetBinContent(57,237.1429); h_SL2L467->SetMaximum(69939.72); 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 6614"); pt->Draw(); c->Modified(); c->cd(); c->SetSelected(c); }