void RatesPerCell_Removing_noisy_cells_run_6503_SL1() { //=========Macro generated from canvas: c/c //========= (Mon Jan 14 19:55:44 2019) by ROOT version6.02/13 TCanvas *c = new TCanvas("c", "c",0,0,800,600); gStyle->SetOptStat(0); c->Range(-7.500001,-12610.47,67.5,113494.2); c->SetFillColor(0); c->SetBorderMode(0); c->SetBorderSize(2); c->SetFrameBorderMode(0); c->SetFrameBorderMode(0); TH1D *h_SL1L160 = new TH1D("h_SL1L160","SL1, run 6503",60,0,60); h_SL1L160->SetBinContent(1,275.7143); h_SL1L160->SetBinContent(2,248.5714); h_SL1L160->SetBinContent(3,307.1429); h_SL1L160->SetBinContent(4,278.5714); h_SL1L160->SetBinContent(5,304.2857); h_SL1L160->SetBinContent(6,298.5714); h_SL1L160->SetBinContent(7,334.2857); h_SL1L160->SetBinContent(8,334.2857); h_SL1L160->SetBinContent(9,310); h_SL1L160->SetBinContent(10,380); h_SL1L160->SetBinContent(11,471.4286); h_SL1L160->SetBinContent(12,442.8571); h_SL1L160->SetBinContent(13,552.8572); h_SL1L160->SetBinContent(14,590); h_SL1L160->SetBinContent(15,477.1429); h_SL1L160->SetBinContent(16,475.7143); h_SL1L160->SetBinContent(17,547.1429); h_SL1L160->SetBinContent(18,780); h_SL1L160->SetBinContent(19,875.7143); h_SL1L160->SetBinContent(20,1008.571); h_SL1L160->SetBinContent(21,1061.429); h_SL1L160->SetBinContent(22,1105.714); h_SL1L160->SetBinContent(23,1112.857); h_SL1L160->SetBinContent(24,1222.857); h_SL1L160->SetBinContent(25,1270); h_SL1L160->SetBinContent(26,1367.143); h_SL1L160->SetBinContent(27,1572.857); h_SL1L160->SetBinContent(28,2002.857); h_SL1L160->SetBinContent(29,2135.714); h_SL1L160->SetBinContent(30,2780); h_SL1L160->SetBinContent(31,3315.714); h_SL1L160->SetBinContent(32,5228.572); h_SL1L160->SetBinContent(33,21297.14); h_SL1L160->SetBinContent(34,36900); h_SL1L160->SetBinContent(35,44085.71); h_SL1L160->SetBinContent(36,48162.86); h_SL1L160->SetBinContent(37,54981.43); h_SL1L160->SetBinContent(38,45575.71); h_SL1L160->SetBinContent(39,24658.57); h_SL1L160->SetBinContent(40,5658.572); h_SL1L160->SetBinContent(41,3488.572); h_SL1L160->SetBinContent(42,2858.572); h_SL1L160->SetBinContent(43,2572.857); h_SL1L160->SetBinContent(44,2361.429); h_SL1L160->SetBinContent(45,2004.286); h_SL1L160->SetBinContent(46,1725.714); h_SL1L160->SetBinContent(47,1755.714); h_SL1L160->SetBinContent(48,1458.571); h_SL1L160->SetBinContent(49,1464.286); h_SL1L160->SetBinContent(50,1402.857); h_SL1L160->SetBinContent(51,1337.143); h_SL1L160->SetBinContent(52,1144.286); h_SL1L160->SetBinContent(53,1120); h_SL1L160->SetBinContent(54,1005.714); h_SL1L160->SetBinContent(55,870); h_SL1L160->SetBinContent(56,875.7143); h_SL1L160->SetBinContent(57,857.1429); h_SL1L160->SetBinContent(58,850); h_SL1L160->SetBinContent(59,951.4286); h_SL1L160->SetMaximum(100883.7); 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,328.5714); h_SL1L261->SetBinContent(2,324.2857); h_SL1L261->SetBinContent(3,334.2857); h_SL1L261->SetBinContent(4,342.8571); h_SL1L261->SetBinContent(5,360); h_SL1L261->SetBinContent(6,344.2857); h_SL1L261->SetBinContent(7,364.2857); h_SL1L261->SetBinContent(8,428.5714); h_SL1L261->SetBinContent(9,400); h_SL1L261->SetBinContent(10,475.7143); h_SL1L261->SetBinContent(11,490); h_SL1L261->SetBinContent(12,602.8572); h_SL1L261->SetBinContent(13,670); h_SL1L261->SetBinContent(14,685.7143); h_SL1L261->SetBinContent(15,672.8572); h_SL1L261->SetBinContent(16,684.2857); h_SL1L261->SetBinContent(17,698.5715); h_SL1L261->SetBinContent(18,944.2858); h_SL1L261->SetBinContent(19,1088.571); h_SL1L261->SetBinContent(20,1224.286); h_SL1L261->SetBinContent(21,1335.714); h_SL1L261->SetBinContent(22,1450); h_SL1L261->SetBinContent(23,1601.429); h_SL1L261->SetBinContent(24,1685.714); h_SL1L261->SetBinContent(25,1834.286); h_SL1L261->SetBinContent(26,1740); h_SL1L261->SetBinContent(27,2078.572); h_SL1L261->SetBinContent(28,2501.429); h_SL1L261->SetBinContent(29,2827.143); h_SL1L261->SetBinContent(30,3330); h_SL1L261->SetBinContent(31,3924.286); h_SL1L261->SetBinContent(32,6270); h_SL1L261->SetBinContent(33,15702.86); h_SL1L261->SetBinContent(34,43438.57); h_SL1L261->SetBinContent(35,56425.71); h_SL1L261->SetBinContent(36,68430); h_SL1L261->SetBinContent(37,76138.57); h_SL1L261->SetBinContent(38,70277.15); h_SL1L261->SetBinContent(39,49380); h_SL1L261->SetBinContent(40,15804.29); h_SL1L261->SetBinContent(41,6690); h_SL1L261->SetBinContent(42,4172.857); h_SL1L261->SetBinContent(43,3655.714); h_SL1L261->SetBinContent(44,3145.714); h_SL1L261->SetBinContent(45,3005.714); h_SL1L261->SetBinContent(46,2734.286); h_SL1L261->SetBinContent(47,2557.143); h_SL1L261->SetBinContent(48,2355.714); h_SL1L261->SetBinContent(49,2201.429); h_SL1L261->SetBinContent(50,2092.857); h_SL1L261->SetBinContent(51,1917.143); h_SL1L261->SetBinContent(52,1892.857); h_SL1L261->SetBinContent(53,1652.857); h_SL1L261->SetBinContent(54,1634.286); h_SL1L261->SetBinContent(55,1474.286); h_SL1L261->SetBinContent(56,1462.857); h_SL1L261->SetBinContent(57,1308.571); h_SL1L261->SetBinContent(58,1298.571); h_SL1L261->SetBinContent(59,1257.143); h_SL1L261->SetMaximum(87725.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,301.4286); h_SL1L362->SetBinContent(2,255.7143); h_SL1L362->SetBinContent(3,348.5714); h_SL1L362->SetBinContent(4,322.8571); h_SL1L362->SetBinContent(5,314.2857); h_SL1L362->SetBinContent(6,335.7143); h_SL1L362->SetBinContent(7,360); h_SL1L362->SetBinContent(8,371.4286); h_SL1L362->SetBinContent(9,370); h_SL1L362->SetBinContent(10,398.5714); h_SL1L362->SetBinContent(11,510); h_SL1L362->SetBinContent(12,544.2857); h_SL1L362->SetBinContent(13,652.8572); h_SL1L362->SetBinContent(14,621.4286); h_SL1L362->SetBinContent(15,604.2857); h_SL1L362->SetBinContent(16,681.4286); h_SL1L362->SetBinContent(17,788.5715); h_SL1L362->SetBinContent(18,964.2858); h_SL1L362->SetBinContent(19,1090); h_SL1L362->SetBinContent(20,1192.857); h_SL1L362->SetBinContent(21,1328.571); h_SL1L362->SetBinContent(22,1390); h_SL1L362->SetBinContent(23,1572.857); h_SL1L362->SetBinContent(24,1615.714); h_SL1L362->SetBinContent(25,1732.857); h_SL1L362->SetBinContent(26,1802.857); h_SL1L362->SetBinContent(27,2114.286); h_SL1L362->SetBinContent(28,2674.286); h_SL1L362->SetBinContent(29,2808.572); h_SL1L362->SetBinContent(30,3591.429); h_SL1L362->SetBinContent(31,4497.143); h_SL1L362->SetBinContent(32,7771.429); h_SL1L362->SetBinContent(33,31130); h_SL1L362->SetBinContent(34,50921.43); h_SL1L362->SetBinContent(35,62861.43); h_SL1L362->SetBinContent(36,73277.15); h_SL1L362->SetBinContent(37,76282.86); h_SL1L362->SetBinContent(38,60872.86); h_SL1L362->SetBinContent(39,32980); h_SL1L362->SetBinContent(40,8134.286); h_SL1L362->SetBinContent(41,4802.857); h_SL1L362->SetBinContent(42,3778.572); h_SL1L362->SetBinContent(43,3317.143); h_SL1L362->SetBinContent(44,3071.429); h_SL1L362->SetBinContent(45,2695.714); h_SL1L362->SetBinContent(46,2520); h_SL1L362->SetBinContent(47,2294.286); h_SL1L362->SetBinContent(48,2138.572); h_SL1L362->SetBinContent(49,2078.572); h_SL1L362->SetBinContent(50,1961.429); h_SL1L362->SetBinContent(51,1807.143); h_SL1L362->SetBinContent(52,1680); h_SL1L362->SetBinContent(53,1515.714); h_SL1L362->SetBinContent(54,1532.857); h_SL1L362->SetBinContent(55,1371.429); h_SL1L362->SetBinContent(56,1310); h_SL1L362->SetBinContent(57,1235.714); h_SL1L362->SetBinContent(58,1248.571); h_SL1L362->SetBinContent(59,1194.286); h_SL1L362->SetMaximum(87725.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,285.7143); h_SL1L463->SetBinContent(3,270); h_SL1L463->SetBinContent(4,281.4286); h_SL1L463->SetBinContent(5,294.2857); h_SL1L463->SetBinContent(6,294.2857); h_SL1L463->SetBinContent(7,322.8571); h_SL1L463->SetBinContent(8,338.5714); h_SL1L463->SetBinContent(9,340); h_SL1L463->SetBinContent(10,358.5714); h_SL1L463->SetBinContent(11,394.2857); h_SL1L463->SetBinContent(12,482.8571); h_SL1L463->SetBinContent(13,562.8572); h_SL1L463->SetBinContent(14,575.7143); h_SL1L463->SetBinContent(15,575.7143); h_SL1L463->SetBinContent(16,612.8572); h_SL1L463->SetBinContent(17,648.5715); h_SL1L463->SetBinContent(18,837.1429); h_SL1L463->SetBinContent(19,895.7143); h_SL1L463->SetBinContent(20,1002.857); h_SL1L463->SetBinContent(21,1155.714); h_SL1L463->SetBinContent(22,1272.857); h_SL1L463->SetBinContent(23,1375.714); h_SL1L463->SetBinContent(24,1481.429); h_SL1L463->SetBinContent(25,1512.857); h_SL1L463->SetBinContent(26,1560); h_SL1L463->SetBinContent(27,1872.857); h_SL1L463->SetBinContent(28,2277.143); h_SL1L463->SetBinContent(29,2544.286); h_SL1L463->SetBinContent(30,3162.857); h_SL1L463->SetBinContent(31,3610); h_SL1L463->SetBinContent(32,5912.857); h_SL1L463->SetBinContent(33,15011.43); h_SL1L463->SetBinContent(34,43117.14); h_SL1L463->SetBinContent(35,56368.57); h_SL1L463->SetBinContent(36,68014.29); h_SL1L463->SetBinContent(37,75541.43); h_SL1L463->SetBinContent(38,69382.86); h_SL1L463->SetBinContent(39,49362.86); h_SL1L463->SetBinContent(40,15595.71); h_SL1L463->SetBinContent(41,6391.429); h_SL1L463->SetBinContent(42,4018.572); h_SL1L463->SetBinContent(43,3404.286); h_SL1L463->SetBinContent(44,2984.286); h_SL1L463->SetBinContent(45,2802.857); h_SL1L463->SetBinContent(46,2601.429); h_SL1L463->SetBinContent(47,2232.857); h_SL1L463->SetBinContent(48,2101.429); h_SL1L463->SetBinContent(49,2014.286); h_SL1L463->SetBinContent(50,1897.143); h_SL1L463->SetBinContent(51,1722.857); h_SL1L463->SetBinContent(52,1700); h_SL1L463->SetBinContent(53,1520); h_SL1L463->SetBinContent(54,1478.571); h_SL1L463->SetBinContent(56,1277.143); h_SL1L463->SetBinContent(57,1138.571); h_SL1L463->SetBinContent(58,1148.571); h_SL1L463->SetBinContent(59,1125.714); h_SL1L463->SetMaximum(87725.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 6503"); pt->Draw(); c->Modified(); c->cd(); c->SetSelected(c); }