void RatesPerCell_Removing_noisy_cells_run_5008_SL1() { //=========Macro generated from canvas: c/c //========= (Sun Jan 13 15:09:13 2019) by ROOT version6.02/13 TCanvas *c = new TCanvas("c", "c",0,0,800,600); gStyle->SetOptStat(0); c->Range(-7.500001,-15573.3,67.5,140159.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 5008",60,0,60); h_SL1L160->SetBinContent(1,91.42857); h_SL1L160->SetBinContent(2,102.8571); h_SL1L160->SetBinContent(3,110); h_SL1L160->SetBinContent(4,102.8571); h_SL1L160->SetBinContent(5,74.28571); h_SL1L160->SetBinContent(6,122.8571); h_SL1L160->SetBinContent(7,101.4286); h_SL1L160->SetBinContent(8,101.4286); h_SL1L160->SetBinContent(9,87.14286); h_SL1L160->SetBinContent(10,97.14286); h_SL1L160->SetBinContent(11,144.2857); h_SL1L160->SetBinContent(12,141.4286); h_SL1L160->SetBinContent(13,198.5714); h_SL1L160->SetBinContent(14,180); h_SL1L160->SetBinContent(15,164.2857); h_SL1L160->SetBinContent(16,132.8571); h_SL1L160->SetBinContent(17,151.4286); h_SL1L160->SetBinContent(18,268.5714); h_SL1L160->SetBinContent(19,275.7143); h_SL1L160->SetBinContent(20,265.7143); h_SL1L160->SetBinContent(21,328.5714); h_SL1L160->SetBinContent(22,351.4286); h_SL1L160->SetBinContent(23,427.1429); h_SL1L160->SetBinContent(24,405.7143); h_SL1L160->SetBinContent(25,457.1429); h_SL1L160->SetBinContent(26,545.7143); h_SL1L160->SetBinContent(27,595.7143); h_SL1L160->SetBinContent(28,704.2857); h_SL1L160->SetBinContent(29,801.4286); h_SL1L160->SetBinContent(30,1042.857); h_SL1L160->SetBinContent(31,1364.286); h_SL1L160->SetBinContent(32,2190); h_SL1L160->SetBinContent(33,12705.71); h_SL1L160->SetBinContent(34,15987.14); h_SL1L160->SetBinContent(35,16437.14); h_SL1L160->SetBinContent(36,13534.29); h_SL1L160->SetBinContent(37,17708.57); h_SL1L160->SetBinContent(38,14684.29); h_SL1L160->SetBinContent(39,6688.572); h_SL1L160->SetBinContent(40,1332.857); h_SL1L160->SetBinContent(41,1020); h_SL1L160->SetBinContent(42,935.7143); h_SL1L160->SetBinContent(43,875.7143); h_SL1L160->SetBinContent(44,772.8572); h_SL1L160->SetBinContent(45,592.8572); h_SL1L160->SetBinContent(46,541.4286); h_SL1L160->SetBinContent(47,541.4286); h_SL1L160->SetBinContent(48,380); h_SL1L160->SetBinContent(49,488.5714); h_SL1L160->SetBinContent(50,411.4286); h_SL1L160->SetBinContent(51,378.5714); h_SL1L160->SetBinContent(52,274.2857); h_SL1L160->SetBinContent(53,331.4286); h_SL1L160->SetBinContent(54,288.5714); h_SL1L160->SetBinContent(55,278.5714); h_SL1L160->SetBinContent(56,245.7143); h_SL1L160->SetBinContent(57,268.5714); h_SL1L160->SetBinContent(58,220); h_SL1L160->SetBinContent(59,261.4286); h_SL1L160->SetMaximum(124586.4); 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,374.2857); h_SL1L261->SetBinContent(2,365.7143); h_SL1L261->SetBinContent(3,397.1429); h_SL1L261->SetBinContent(4,381.4286); h_SL1L261->SetBinContent(5,384.2857); h_SL1L261->SetBinContent(6,438.5714); h_SL1L261->SetBinContent(7,454.2857); h_SL1L261->SetBinContent(8,482.8571); h_SL1L261->SetBinContent(9,497.1429); h_SL1L261->SetBinContent(10,511.4286); h_SL1L261->SetBinContent(11,620); h_SL1L261->SetBinContent(12,631.4286); h_SL1L261->SetBinContent(13,794.2857); h_SL1L261->SetBinContent(14,810); h_SL1L261->SetBinContent(15,797.1429); h_SL1L261->SetBinContent(16,744.2857); h_SL1L261->SetBinContent(17,950); h_SL1L261->SetBinContent(18,1072.857); h_SL1L261->SetBinContent(19,1288.571); h_SL1L261->SetBinContent(20,1385.714); h_SL1L261->SetBinContent(21,1507.143); h_SL1L261->SetBinContent(22,1754.286); h_SL1L261->SetBinContent(23,2037.143); h_SL1L261->SetBinContent(24,2254.286); h_SL1L261->SetBinContent(25,2558.572); h_SL1L261->SetBinContent(26,2462.857); h_SL1L261->SetBinContent(27,2735.714); h_SL1L261->SetBinContent(28,3722.857); h_SL1L261->SetBinContent(29,3927.143); h_SL1L261->SetBinContent(30,4221.429); h_SL1L261->SetBinContent(31,5307.143); h_SL1L261->SetBinContent(32,9641.429); h_SL1L261->SetBinContent(33,38521.43); h_SL1L261->SetBinContent(34,71095.72); h_SL1L261->SetBinContent(35,66324.29); h_SL1L261->SetBinContent(36,65684.29); h_SL1L261->SetBinContent(37,61571.43); h_SL1L261->SetBinContent(38,53382.86); h_SL1L261->SetBinContent(39,38972.86); h_SL1L261->SetBinContent(40,12142.86); h_SL1L261->SetBinContent(41,5907.143); h_SL1L261->SetBinContent(42,4097.143); h_SL1L261->SetBinContent(43,3622.857); h_SL1L261->SetBinContent(44,3291.429); h_SL1L261->SetBinContent(45,2911.429); h_SL1L261->SetBinContent(46,2822.857); h_SL1L261->SetBinContent(47,2645.714); h_SL1L261->SetBinContent(48,2351.429); h_SL1L261->SetBinContent(50,1945.714); h_SL1L261->SetBinContent(51,1785.714); h_SL1L261->SetBinContent(52,20845.71); h_SL1L261->SetBinContent(53,21935.71); h_SL1L261->SetBinContent(54,1482.857); h_SL1L261->SetBinContent(55,1378.571); h_SL1L261->SetBinContent(56,72618.57); h_SL1L261->SetBinContent(57,1347.143); h_SL1L261->SetBinContent(58,1388.571); h_SL1L261->SetBinContent(59,1270); h_SL1L261->SetMaximum(108336.6); 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,317.1429); h_SL1L362->SetBinContent(2,351.4286); h_SL1L362->SetBinContent(3,322.8571); h_SL1L362->SetBinContent(4,357.1429); h_SL1L362->SetBinContent(5,351.4286); h_SL1L362->SetBinContent(6,398.5714); h_SL1L362->SetBinContent(7,405.7143); h_SL1L362->SetBinContent(8,457.1429); h_SL1L362->SetBinContent(9,475.7143); h_SL1L362->SetBinContent(10,504.2857); h_SL1L362->SetBinContent(11,581.4286); h_SL1L362->SetBinContent(12,647.1429); h_SL1L362->SetBinContent(13,721.4286); h_SL1L362->SetBinContent(14,755.7143); h_SL1L362->SetBinContent(15,760); h_SL1L362->SetBinContent(16,774.2857); h_SL1L362->SetBinContent(17,910); h_SL1L362->SetBinContent(18,1125.714); h_SL1L362->SetBinContent(19,1245.714); h_SL1L362->SetBinContent(20,1401.429); h_SL1L362->SetBinContent(21,1602.857); h_SL1L362->SetBinContent(22,1740); h_SL1L362->SetBinContent(23,2035.714); h_SL1L362->SetBinContent(24,2338.572); h_SL1L362->SetBinContent(25,2415.714); h_SL1L362->SetBinContent(26,2590); h_SL1L362->SetBinContent(27,2945.714); h_SL1L362->SetBinContent(28,3711.429); h_SL1L362->SetBinContent(29,3977.143); h_SL1L362->SetBinContent(30,4662.857); h_SL1L362->SetBinContent(31,7258.572); h_SL1L362->SetBinContent(32,13761.43); h_SL1L362->SetBinContent(33,65967.14); h_SL1L362->SetBinContent(34,68875.72); h_SL1L362->SetBinContent(35,65645.72); h_SL1L362->SetBinContent(36,64444.29); h_SL1L362->SetBinContent(37,58347.14); h_SL1L362->SetBinContent(38,46514.29); h_SL1L362->SetBinContent(39,26531.43); h_SL1L362->SetBinContent(40,6834.286); h_SL1L362->SetBinContent(41,4327.143); h_SL1L362->SetBinContent(42,3868.572); h_SL1L362->SetBinContent(43,3360); h_SL1L362->SetBinContent(44,3011.429); h_SL1L362->SetBinContent(45,2751.429); h_SL1L362->SetBinContent(46,2661.429); h_SL1L362->SetBinContent(47,2351.429); h_SL1L362->SetBinContent(48,2068.572); h_SL1L362->SetBinContent(49,11061.43); h_SL1L362->SetBinContent(50,1761.429); h_SL1L362->SetBinContent(51,1637.143); h_SL1L362->SetBinContent(52,1480); h_SL1L362->SetBinContent(53,80548.57); h_SL1L362->SetBinContent(54,1405.714); h_SL1L362->SetBinContent(55,1377.143); h_SL1L362->SetBinContent(56,94205.72); h_SL1L362->SetBinContent(57,1311.429); h_SL1L362->SetBinContent(58,1265.714); h_SL1L362->SetBinContent(59,1215.714); h_SL1L362->SetMaximum(108336.6); 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,21.42857); h_SL1L463->SetBinContent(3,14.28572); h_SL1L463->SetBinContent(4,15.71429); h_SL1L463->SetBinContent(5,17.14286); h_SL1L463->SetBinContent(6,17.14286); h_SL1L463->SetBinContent(7,20); h_SL1L463->SetBinContent(8,18.57143); h_SL1L463->SetBinContent(9,27.14286); h_SL1L463->SetBinContent(10,32.85714); h_SL1L463->SetBinContent(11,35.71429); h_SL1L463->SetBinContent(12,34.28571); h_SL1L463->SetBinContent(13,40); h_SL1L463->SetBinContent(14,37.14286); h_SL1L463->SetBinContent(15,47.14286); h_SL1L463->SetBinContent(16,27.14286); h_SL1L463->SetBinContent(17,37.14286); h_SL1L463->SetBinContent(18,50); h_SL1L463->SetBinContent(19,71.42857); h_SL1L463->SetBinContent(20,72.85715); h_SL1L463->SetBinContent(21,71.42857); h_SL1L463->SetBinContent(22,117.1429); h_SL1L463->SetBinContent(23,85.71429); h_SL1L463->SetBinContent(24,87.14286); h_SL1L463->SetBinContent(25,87.14286); h_SL1L463->SetBinContent(26,98.57143); h_SL1L463->SetBinContent(27,124.2857); h_SL1L463->SetBinContent(28,167.1429); h_SL1L463->SetBinContent(29,145.7143); h_SL1L463->SetBinContent(30,222.8571); h_SL1L463->SetBinContent(31,397.1429); h_SL1L463->SetBinContent(32,430); h_SL1L463->SetBinContent(33,1368.571); h_SL1L463->SetBinContent(34,3572.857); h_SL1L463->SetBinContent(35,4617.143); h_SL1L463->SetBinContent(36,3445.714); h_SL1L463->SetBinContent(37,2314.286); h_SL1L463->SetBinContent(38,2342.857); h_SL1L463->SetBinContent(39,2610); h_SL1L463->SetBinContent(40,528.5714); h_SL1L463->SetBinContent(41,307.1429); h_SL1L463->SetBinContent(42,241.4286); h_SL1L463->SetBinContent(43,272.8571); h_SL1L463->SetBinContent(44,237.1429); h_SL1L463->SetBinContent(45,152.8571); h_SL1L463->SetBinContent(46,167.1429); h_SL1L463->SetBinContent(47,135.7143); h_SL1L463->SetBinContent(48,135.7143); h_SL1L463->SetBinContent(49,71.42857); h_SL1L463->SetBinContent(50,82.85715); h_SL1L463->SetBinContent(51,80); h_SL1L463->SetBinContent(52,70); h_SL1L463->SetBinContent(53,55.71429); h_SL1L463->SetBinContent(54,58.57143); h_SL1L463->SetBinContent(56,82.85715); h_SL1L463->SetBinContent(57,58.57143); h_SL1L463->SetBinContent(58,62.85714); h_SL1L463->SetBinContent(59,47.14286); h_SL1L463->SetMaximum(108336.6); 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 5008"); pt->Draw(); c->Modified(); c->cd(); c->SetSelected(c); }