void RatesPerCell_Removing_noisy_cells_run_5288_SL1() { //=========Macro generated from canvas: c/c //========= (Tue Jan 15 09:46:38 2019) by ROOT version6.02/13 TCanvas *c = new TCanvas("c", "c",0,0,800,600); gStyle->SetOptStat(0); c->Range(-7.500001,-11553.48,67.5,103981.3); c->SetFillColor(0); c->SetBorderMode(0); c->SetBorderSize(2); c->SetFrameBorderMode(0); c->SetFrameBorderMode(0); TH1D *h_SL1L160 = new TH1D("h_SL1L160","SL1, run 5288",60,0,60); h_SL1L160->SetBinContent(1,92.85714); h_SL1L160->SetBinContent(2,89.28571); h_SL1L160->SetBinContent(3,135.7143); h_SL1L160->SetBinContent(4,117.8571); h_SL1L160->SetBinContent(5,135.7143); h_SL1L160->SetBinContent(6,85.71429); h_SL1L160->SetBinContent(7,117.8571); h_SL1L160->SetBinContent(8,114.2857); h_SL1L160->SetBinContent(9,125); h_SL1L160->SetBinContent(10,135.7143); h_SL1L160->SetBinContent(11,139.2857); h_SL1L160->SetBinContent(12,150); h_SL1L160->SetBinContent(13,182.1429); h_SL1L160->SetBinContent(14,175); h_SL1L160->SetBinContent(15,160.7143); h_SL1L160->SetBinContent(16,150); h_SL1L160->SetBinContent(17,210.7143); h_SL1L160->SetBinContent(18,246.4286); h_SL1L160->SetBinContent(19,264.2857); h_SL1L160->SetBinContent(20,271.4286); h_SL1L160->SetBinContent(21,378.5714); h_SL1L160->SetBinContent(22,296.4286); h_SL1L160->SetBinContent(23,378.5714); h_SL1L160->SetBinContent(24,500); h_SL1L160->SetBinContent(25,442.8571); h_SL1L160->SetBinContent(26,557.1428); h_SL1L160->SetBinContent(27,639.2857); h_SL1L160->SetBinContent(28,696.4286); h_SL1L160->SetBinContent(29,1028.571); h_SL1L160->SetBinContent(30,1357.143); h_SL1L160->SetBinContent(31,1503.571); h_SL1L160->SetBinContent(32,2403.571); h_SL1L160->SetBinContent(33,12739.29); h_SL1L160->SetBinContent(34,15585.71); h_SL1L160->SetBinContent(35,15471.43); h_SL1L160->SetBinContent(36,13539.29); h_SL1L160->SetBinContent(37,15589.29); h_SL1L160->SetBinContent(38,12485.71); h_SL1L160->SetBinContent(39,6539.286); h_SL1L160->SetBinContent(40,1335.714); h_SL1L160->SetBinContent(41,1121.429); h_SL1L160->SetBinContent(42,907.1428); h_SL1L160->SetBinContent(43,803.5714); h_SL1L160->SetBinContent(44,789.2857); h_SL1L160->SetBinContent(45,589.2857); h_SL1L160->SetBinContent(46,564.2857); h_SL1L160->SetBinContent(47,475); h_SL1L160->SetBinContent(48,407.1429); h_SL1L160->SetBinContent(49,567.8571); h_SL1L160->SetBinContent(50,482.1429); h_SL1L160->SetBinContent(51,471.4286); h_SL1L160->SetBinContent(52,450); h_SL1L160->SetBinContent(53,300); h_SL1L160->SetBinContent(54,339.2857); h_SL1L160->SetBinContent(55,325); h_SL1L160->SetBinContent(56,328.5714); h_SL1L160->SetBinContent(57,350); h_SL1L160->SetBinContent(58,310.7143); h_SL1L160->SetBinContent(59,292.8571); h_SL1L160->SetMaximum(92427.8); 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,357.1429); h_SL1L261->SetBinContent(2,360.7143); h_SL1L261->SetBinContent(3,378.5714); h_SL1L261->SetBinContent(4,417.8571); h_SL1L261->SetBinContent(5,450); h_SL1L261->SetBinContent(6,410.7143); h_SL1L261->SetBinContent(7,457.1429); h_SL1L261->SetBinContent(8,475); h_SL1L261->SetBinContent(9,482.1429); h_SL1L261->SetBinContent(10,539.2857); h_SL1L261->SetBinContent(11,650); h_SL1L261->SetBinContent(12,614.2857); h_SL1L261->SetBinContent(13,757.1428); h_SL1L261->SetBinContent(14,739.2857); h_SL1L261->SetBinContent(15,842.8571); h_SL1L261->SetBinContent(16,792.8571); h_SL1L261->SetBinContent(17,864.2857); h_SL1L261->SetBinContent(18,1089.286); h_SL1L261->SetBinContent(19,1264.286); h_SL1L261->SetBinContent(20,1296.429); h_SL1L261->SetBinContent(21,1560.714); h_SL1L261->SetBinContent(22,1750); h_SL1L261->SetBinContent(23,2135.714); h_SL1L261->SetBinContent(24,2192.857); h_SL1L261->SetBinContent(25,2300); h_SL1L261->SetBinContent(26,2553.571); h_SL1L261->SetBinContent(27,2810.714); h_SL1L261->SetBinContent(28,3542.857); h_SL1L261->SetBinContent(29,3992.857); h_SL1L261->SetBinContent(30,4442.857); h_SL1L261->SetBinContent(31,5260.714); h_SL1L261->SetBinContent(32,9653.571); h_SL1L261->SetBinContent(33,37632.14); h_SL1L261->SetBinContent(34,69203.57); h_SL1L261->SetBinContent(35,65125); h_SL1L261->SetBinContent(36,64289.29); h_SL1L261->SetBinContent(37,60300); h_SL1L261->SetBinContent(38,51821.43); h_SL1L261->SetBinContent(39,38378.57); h_SL1L261->SetBinContent(40,12085.71); h_SL1L261->SetBinContent(41,5939.286); h_SL1L261->SetBinContent(42,3914.286); h_SL1L261->SetBinContent(43,3475); h_SL1L261->SetBinContent(44,3296.428); h_SL1L261->SetBinContent(45,2871.428); h_SL1L261->SetBinContent(46,2885.714); h_SL1L261->SetBinContent(47,2771.428); h_SL1L261->SetBinContent(48,2307.143); h_SL1L261->SetBinContent(49,2478.571); h_SL1L261->SetBinContent(50,2296.428); h_SL1L261->SetBinContent(51,1914.286); h_SL1L261->SetBinContent(52,1839.286); h_SL1L261->SetBinContent(53,1742.857); h_SL1L261->SetBinContent(54,1525); h_SL1L261->SetBinContent(55,1542.857); h_SL1L261->SetBinContent(56,1660.714); h_SL1L261->SetBinContent(57,1628.571); h_SL1L261->SetBinContent(58,1450); h_SL1L261->SetBinContent(59,1450); h_SL1L261->SetMaximum(80372.67); 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,328.5714); h_SL1L362->SetBinContent(2,339.2857); h_SL1L362->SetBinContent(3,396.4286); h_SL1L362->SetBinContent(4,364.2857); h_SL1L362->SetBinContent(5,407.1429); h_SL1L362->SetBinContent(6,364.2857); h_SL1L362->SetBinContent(7,475); h_SL1L362->SetBinContent(8,428.5714); h_SL1L362->SetBinContent(9,432.1429); h_SL1L362->SetBinContent(10,535.7143); h_SL1L362->SetBinContent(11,653.5714); h_SL1L362->SetBinContent(12,650); h_SL1L362->SetBinContent(13,710.7143); h_SL1L362->SetBinContent(14,800); h_SL1L362->SetBinContent(15,689.2857); h_SL1L362->SetBinContent(16,775); h_SL1L362->SetBinContent(17,871.4286); h_SL1L362->SetBinContent(18,1135.714); h_SL1L362->SetBinContent(19,1253.571); h_SL1L362->SetBinContent(20,1257.143); h_SL1L362->SetBinContent(21,1592.857); h_SL1L362->SetBinContent(22,1764.286); h_SL1L362->SetBinContent(23,1996.429); h_SL1L362->SetBinContent(24,2028.571); h_SL1L362->SetBinContent(25,2403.571); h_SL1L362->SetBinContent(26,2685.714); h_SL1L362->SetBinContent(27,2907.143); h_SL1L362->SetBinContent(28,3832.143); h_SL1L362->SetBinContent(29,3964.286); h_SL1L362->SetBinContent(30,4725); h_SL1L362->SetBinContent(31,7117.857); h_SL1L362->SetBinContent(32,13767.86); h_SL1L362->SetBinContent(33,64878.57); h_SL1L362->SetBinContent(34,66660.71); h_SL1L362->SetBinContent(35,65557.14); h_SL1L362->SetBinContent(36,62903.57); h_SL1L362->SetBinContent(37,57478.57); h_SL1L362->SetBinContent(38,45450); h_SL1L362->SetBinContent(39,26292.86); h_SL1L362->SetBinContent(40,7032.143); h_SL1L362->SetBinContent(41,4360.714); h_SL1L362->SetBinContent(42,3689.286); h_SL1L362->SetBinContent(43,3250); h_SL1L362->SetBinContent(44,2967.857); h_SL1L362->SetBinContent(45,2871.428); h_SL1L362->SetBinContent(46,2714.286); h_SL1L362->SetBinContent(47,2453.571); h_SL1L362->SetBinContent(48,2157.143); h_SL1L362->SetBinContent(49,2178.571); h_SL1L362->SetBinContent(50,2071.428); h_SL1L362->SetBinContent(51,1792.857); h_SL1L362->SetBinContent(52,1739.286); h_SL1L362->SetBinContent(53,1621.429); h_SL1L362->SetBinContent(54,1528.571); h_SL1L362->SetBinContent(55,1575); h_SL1L362->SetBinContent(56,1521.429); h_SL1L362->SetBinContent(57,1557.143); h_SL1L362->SetBinContent(58,1403.571); h_SL1L362->SetBinContent(59,1403.571); h_SL1L362->SetMaximum(80372.67); 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,310.7143); h_SL1L463->SetBinContent(3,307.1429); h_SL1L463->SetBinContent(4,339.2857); h_SL1L463->SetBinContent(5,396.4286); h_SL1L463->SetBinContent(6,375); h_SL1L463->SetBinContent(7,382.1429); h_SL1L463->SetBinContent(8,450); h_SL1L463->SetBinContent(9,367.8571); h_SL1L463->SetBinContent(10,439.2857); h_SL1L463->SetBinContent(11,617.8571); h_SL1L463->SetBinContent(12,471.4286); h_SL1L463->SetBinContent(13,689.2857); h_SL1L463->SetBinContent(14,657.1428); h_SL1L463->SetBinContent(15,721.4286); h_SL1L463->SetBinContent(16,717.8571); h_SL1L463->SetBinContent(17,807.1428); h_SL1L463->SetBinContent(18,989.2857); h_SL1L463->SetBinContent(19,1117.857); h_SL1L463->SetBinContent(20,1171.429); h_SL1L463->SetBinContent(21,1314.286); h_SL1L463->SetBinContent(22,1639.286); h_SL1L463->SetBinContent(23,1825); h_SL1L463->SetBinContent(24,1946.429); h_SL1L463->SetBinContent(25,2132.143); h_SL1L463->SetBinContent(26,2371.428); h_SL1L463->SetBinContent(27,2721.428); h_SL1L463->SetBinContent(28,3300); h_SL1L463->SetBinContent(29,3914.286); h_SL1L463->SetBinContent(30,4285.714); h_SL1L463->SetBinContent(31,5114.286); h_SL1L463->SetBinContent(32,9550); h_SL1L463->SetBinContent(33,37485.71); h_SL1L463->SetBinContent(34,69889.28); h_SL1L463->SetBinContent(35,65685.71); h_SL1L463->SetBinContent(36,64700); h_SL1L463->SetBinContent(37,60700); h_SL1L463->SetBinContent(38,52339.29); h_SL1L463->SetBinContent(39,39057.14); h_SL1L463->SetBinContent(40,12221.43); h_SL1L463->SetBinContent(41,5925); h_SL1L463->SetBinContent(42,3832.143); h_SL1L463->SetBinContent(43,3357.143); h_SL1L463->SetBinContent(44,3192.857); h_SL1L463->SetBinContent(45,2700); h_SL1L463->SetBinContent(46,2721.428); h_SL1L463->SetBinContent(47,2632.143); h_SL1L463->SetBinContent(48,2146.428); h_SL1L463->SetBinContent(49,2085.714); h_SL1L463->SetBinContent(50,2053.571); h_SL1L463->SetBinContent(51,1750); h_SL1L463->SetBinContent(52,1803.571); h_SL1L463->SetBinContent(53,1635.714); h_SL1L463->SetBinContent(54,1375); h_SL1L463->SetBinContent(56,1507.143); h_SL1L463->SetBinContent(57,1492.857); h_SL1L463->SetBinContent(58,1385.714); h_SL1L463->SetBinContent(59,1303.571); h_SL1L463->SetMaximum(80372.67); 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 5288"); pt->Draw(); c->Modified(); c->cd(); c->SetSelected(c); }