void RatesPerCell_Removing_noisy_cells_run_5271_SL1() { //=========Macro generated from canvas: c/c //========= (Sun Jan 13 15:01:01 2019) by ROOT version6.02/13 TCanvas *c = new TCanvas("c", "c",0,0,800,600); gStyle->SetOptStat(0); c->Range(-7.500001,-12532.41,67.5,112791.7); c->SetFillColor(0); c->SetBorderMode(0); c->SetBorderSize(2); c->SetFrameBorderMode(0); c->SetFrameBorderMode(0); TH1D *h_SL1L160 = new TH1D("h_SL1L160","SL1, run 5271",60,0,60); h_SL1L160->SetBinContent(1,546.4286); h_SL1L160->SetBinContent(2,514.2857); h_SL1L160->SetBinContent(3,582.1428); h_SL1L160->SetBinContent(4,492.8571); h_SL1L160->SetBinContent(5,539.2857); h_SL1L160->SetBinContent(6,632.1428); h_SL1L160->SetBinContent(7,557.1428); h_SL1L160->SetBinContent(8,614.2857); h_SL1L160->SetBinContent(9,671.4286); h_SL1L160->SetBinContent(10,653.5714); h_SL1L160->SetBinContent(11,717.8571); h_SL1L160->SetBinContent(12,878.5714); h_SL1L160->SetBinContent(13,1046.429); h_SL1L160->SetBinContent(14,1067.857); h_SL1L160->SetBinContent(15,978.5714); h_SL1L160->SetBinContent(16,975); h_SL1L160->SetBinContent(17,1167.857); h_SL1L160->SetBinContent(18,1464.286); h_SL1L160->SetBinContent(19,1585.714); h_SL1L160->SetBinContent(20,1560.714); h_SL1L160->SetBinContent(21,1903.571); h_SL1L160->SetBinContent(22,2039.286); h_SL1L160->SetBinContent(23,2510.714); h_SL1L160->SetBinContent(24,2600); h_SL1L160->SetBinContent(25,3182.143); h_SL1L160->SetBinContent(26,3021.428); h_SL1L160->SetBinContent(27,3610.714); h_SL1L160->SetBinContent(28,4421.429); h_SL1L160->SetBinContent(29,4625); h_SL1L160->SetBinContent(30,5221.429); h_SL1L160->SetBinContent(31,7710.714); h_SL1L160->SetBinContent(32,14135.71); h_SL1L160->SetBinContent(33,65221.43); h_SL1L160->SetBinContent(34,66410.71); h_SL1L160->SetBinContent(35,65007.14); h_SL1L160->SetBinContent(36,63271.43); h_SL1L160->SetBinContent(37,57592.86); h_SL1L160->SetBinContent(38,45864.29); h_SL1L160->SetBinContent(39,26075); h_SL1L160->SetBinContent(40,7525); h_SL1L160->SetBinContent(41,4757.143); h_SL1L160->SetBinContent(42,4039.286); h_SL1L160->SetBinContent(43,3642.857); h_SL1L160->SetBinContent(44,3407.143); h_SL1L160->SetBinContent(45,3192.857); h_SL1L160->SetBinContent(46,2903.571); h_SL1L160->SetBinContent(47,2685.714); h_SL1L160->SetBinContent(48,2653.571); h_SL1L160->SetBinContent(49,2510.714); h_SL1L160->SetBinContent(50,2292.857); h_SL1L160->SetBinContent(51,2146.428); h_SL1L160->SetBinContent(52,2107.143); h_SL1L160->SetBinContent(53,1989.286); h_SL1L160->SetBinContent(54,1850); h_SL1L160->SetBinContent(55,1950); h_SL1L160->SetBinContent(56,1742.857); h_SL1L160->SetBinContent(57,1778.571); h_SL1L160->SetBinContent(58,1778.571); h_SL1L160->SetBinContent(59,1775); h_SL1L160->SetMaximum(100259.3); 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,471.4286); h_SL1L261->SetBinContent(2,442.8571); h_SL1L261->SetBinContent(3,546.4286); h_SL1L261->SetBinContent(4,442.8571); h_SL1L261->SetBinContent(5,503.5714); h_SL1L261->SetBinContent(6,496.4286); h_SL1L261->SetBinContent(7,517.8571); h_SL1L261->SetBinContent(8,421.4286); h_SL1L261->SetBinContent(9,592.8571); h_SL1L261->SetBinContent(10,560.7143); h_SL1L261->SetBinContent(11,575); h_SL1L261->SetBinContent(12,785.7143); h_SL1L261->SetBinContent(13,821.4286); h_SL1L261->SetBinContent(14,1028.571); h_SL1L261->SetBinContent(15,928.5714); h_SL1L261->SetBinContent(16,810.7143); h_SL1L261->SetBinContent(17,1135.714); h_SL1L261->SetBinContent(18,1260.714); h_SL1L261->SetBinContent(19,1367.857); h_SL1L261->SetBinContent(20,1485.714); h_SL1L261->SetBinContent(21,1610.714); h_SL1L261->SetBinContent(22,1975); h_SL1L261->SetBinContent(23,2042.857); h_SL1L261->SetBinContent(24,2514.286); h_SL1L261->SetBinContent(25,2935.714); h_SL1L261->SetBinContent(26,2792.857); h_SL1L261->SetBinContent(27,3092.857); h_SL1L261->SetBinContent(28,4210.714); h_SL1L261->SetBinContent(29,4253.571); h_SL1L261->SetBinContent(30,4828.571); h_SL1L261->SetBinContent(31,5542.857); h_SL1L261->SetBinContent(32,10296.43); h_SL1L261->SetBinContent(33,37850); h_SL1L261->SetBinContent(34,69921.43); h_SL1L261->SetBinContent(35,65017.86); h_SL1L261->SetBinContent(36,64646.43); h_SL1L261->SetBinContent(37,61514.29); h_SL1L261->SetBinContent(38,52085.71); h_SL1L261->SetBinContent(39,38275); h_SL1L261->SetBinContent(40,12478.57); h_SL1L261->SetBinContent(41,6125); h_SL1L261->SetBinContent(42,4246.429); h_SL1L261->SetBinContent(43,3778.571); h_SL1L261->SetBinContent(44,3325); h_SL1L261->SetBinContent(45,3260.714); h_SL1L261->SetBinContent(46,2946.428); h_SL1L261->SetBinContent(47,2785.714); h_SL1L261->SetBinContent(48,2542.857); h_SL1L261->SetBinContent(49,2832.143); h_SL1L261->SetBinContent(50,2389.286); h_SL1L261->SetBinContent(51,2171.428); h_SL1L261->SetBinContent(52,1950); h_SL1L261->SetBinContent(53,1925); h_SL1L261->SetBinContent(54,1842.857); h_SL1L261->SetBinContent(55,1753.571); h_SL1L261->SetBinContent(56,1764.286); h_SL1L261->SetBinContent(57,1707.143); h_SL1L261->SetBinContent(58,1646.429); h_SL1L261->SetBinContent(59,1739.286); h_SL1L261->SetMaximum(87182.32); 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,453.5714); h_SL1L362->SetBinContent(2,389.2857); h_SL1L362->SetBinContent(3,442.8571); h_SL1L362->SetBinContent(4,403.5714); h_SL1L362->SetBinContent(5,435.7143); h_SL1L362->SetBinContent(6,489.2857); h_SL1L362->SetBinContent(7,442.8571); h_SL1L362->SetBinContent(8,514.2857); h_SL1L362->SetBinContent(9,546.4286); h_SL1L362->SetBinContent(10,532.1428); h_SL1L362->SetBinContent(11,582.1428); h_SL1L362->SetBinContent(12,800); h_SL1L362->SetBinContent(13,835.7143); h_SL1L362->SetBinContent(14,850); h_SL1L362->SetBinContent(15,853.5714); h_SL1L362->SetBinContent(16,925); h_SL1L362->SetBinContent(17,1010.714); h_SL1L362->SetBinContent(18,1264.286); h_SL1L362->SetBinContent(19,1350); h_SL1L362->SetBinContent(20,1475); h_SL1L362->SetBinContent(21,1667.857); h_SL1L362->SetBinContent(22,1817.857); h_SL1L362->SetBinContent(23,2285.714); h_SL1L362->SetBinContent(24,2446.428); h_SL1L362->SetBinContent(25,2875); h_SL1L362->SetBinContent(26,2650); h_SL1L362->SetBinContent(27,3478.571); h_SL1L362->SetBinContent(28,4239.286); h_SL1L362->SetBinContent(29,4403.571); h_SL1L362->SetBinContent(30,5146.429); h_SL1L362->SetBinContent(31,7642.857); h_SL1L362->SetBinContent(32,14014.29); h_SL1L362->SetBinContent(33,65292.86); h_SL1L362->SetBinContent(34,66275); h_SL1L362->SetBinContent(35,65289.29); h_SL1L362->SetBinContent(36,63792.86); h_SL1L362->SetBinContent(37,57814.29); h_SL1L362->SetBinContent(38,45978.57); h_SL1L362->SetBinContent(39,26132.14); h_SL1L362->SetBinContent(40,7375); h_SL1L362->SetBinContent(41,4660.714); h_SL1L362->SetBinContent(42,3835.714); h_SL1L362->SetBinContent(43,3450); h_SL1L362->SetBinContent(44,3289.286); h_SL1L362->SetBinContent(45,2946.428); h_SL1L362->SetBinContent(46,2796.428); h_SL1L362->SetBinContent(47,2582.143); h_SL1L362->SetBinContent(48,2678.571); h_SL1L362->SetBinContent(49,2292.857); h_SL1L362->SetBinContent(50,2110.714); h_SL1L362->SetBinContent(51,2017.857); h_SL1L362->SetBinContent(52,1878.571); h_SL1L362->SetBinContent(53,1782.143); h_SL1L362->SetBinContent(54,1771.429); h_SL1L362->SetBinContent(55,1721.429); h_SL1L362->SetBinContent(56,1746.429); h_SL1L362->SetBinContent(57,1653.571); h_SL1L362->SetBinContent(58,1532.143); h_SL1L362->SetBinContent(59,1600); h_SL1L362->SetMaximum(87182.32); 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,425); h_SL1L463->SetBinContent(3,453.5714); h_SL1L463->SetBinContent(4,482.1429); h_SL1L463->SetBinContent(5,425); h_SL1L463->SetBinContent(6,475); h_SL1L463->SetBinContent(7,492.8571); h_SL1L463->SetBinContent(8,360.7143); h_SL1L463->SetBinContent(9,585.7143); h_SL1L463->SetBinContent(10,507.1429); h_SL1L463->SetBinContent(11,553.5714); h_SL1L463->SetBinContent(12,778.5714); h_SL1L463->SetBinContent(13,789.2857); h_SL1L463->SetBinContent(14,907.1428); h_SL1L463->SetBinContent(15,914.2857); h_SL1L463->SetBinContent(16,800); h_SL1L463->SetBinContent(17,1107.143); h_SL1L463->SetBinContent(18,1278.571); h_SL1L463->SetBinContent(19,1403.571); h_SL1L463->SetBinContent(20,1457.143); h_SL1L463->SetBinContent(21,1575); h_SL1L463->SetBinContent(22,1928.571); h_SL1L463->SetBinContent(23,2039.286); h_SL1L463->SetBinContent(24,2435.714); h_SL1L463->SetBinContent(25,2860.714); h_SL1L463->SetBinContent(26,2892.857); h_SL1L463->SetBinContent(27,3260.714); h_SL1L463->SetBinContent(28,4057.143); h_SL1L463->SetBinContent(29,4464.286); h_SL1L463->SetBinContent(30,5117.857); h_SL1L463->SetBinContent(31,5810.714); h_SL1L463->SetBinContent(32,10771.43); h_SL1L463->SetBinContent(33,40039.29); h_SL1L463->SetBinContent(34,75810.71); h_SL1L463->SetBinContent(35,70875); h_SL1L463->SetBinContent(36,70839.28); h_SL1L463->SetBinContent(37,66357.14); h_SL1L463->SetBinContent(38,56121.43); h_SL1L463->SetBinContent(39,41639.29); h_SL1L463->SetBinContent(40,13057.14); h_SL1L463->SetBinContent(41,6550); h_SL1L463->SetBinContent(42,4425); h_SL1L463->SetBinContent(43,3789.286); h_SL1L463->SetBinContent(44,3489.286); h_SL1L463->SetBinContent(45,3267.857); h_SL1L463->SetBinContent(46,3028.571); h_SL1L463->SetBinContent(47,2914.286); h_SL1L463->SetBinContent(48,2667.857); h_SL1L463->SetBinContent(49,2475); h_SL1L463->SetBinContent(50,2371.428); h_SL1L463->SetBinContent(51,2182.143); h_SL1L463->SetBinContent(52,2021.429); h_SL1L463->SetBinContent(53,1960.714); h_SL1L463->SetBinContent(54,1803.571); h_SL1L463->SetBinContent(56,1792.857); h_SL1L463->SetBinContent(57,1735.714); h_SL1L463->SetBinContent(58,1678.571); h_SL1L463->SetBinContent(59,1607.143); h_SL1L463->SetMaximum(87182.32); 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.3744221,0.9362587,0.6255779,0.995,"blNDC"); pt->SetName("title"); pt->SetBorderSize(0); pt->SetFillColor(0); pt->SetFillStyle(0); pt->SetTextFont(42); TText *AText = pt->AddText("SL1, run 5271"); pt->Draw(); c->Modified(); c->cd(); c->SetSelected(c); }