void RatesPerCell_Removing_noisy_cells_run_6722_SL1() { //=========Macro generated from canvas: c/c //========= (Sun Jan 13 15:59:16 2019) by ROOT version6.02/13 TCanvas *c = new TCanvas("c", "c",0,0,800,600); gStyle->SetOptStat(0); c->Range(-7.500001,-19070.16,67.5,171631.5); c->SetFillColor(0); c->SetBorderMode(0); c->SetBorderSize(2); c->SetFrameBorderMode(0); c->SetFrameBorderMode(0); TH1D *h_SL1L160 = new TH1D("h_SL1L160","SL1, run 6722",60,0,60); h_SL1L160->SetBinContent(1,50931.57); h_SL1L160->SetBinContent(2,48979.81); h_SL1L160->SetBinContent(3,48893.66); h_SL1L160->SetBinContent(4,46083.12); h_SL1L160->SetBinContent(5,43342.58); h_SL1L160->SetBinContent(6,45315.88); h_SL1L160->SetBinContent(7,42454.19); h_SL1L160->SetBinContent(8,42648.02); h_SL1L160->SetBinContent(9,39067.55); h_SL1L160->SetBinContent(10,36286.62); h_SL1L160->SetBinContent(11,35479); h_SL1L160->SetBinContent(12,35508.61); h_SL1L160->SetBinContent(13,37880.34); h_SL1L160->SetBinContent(14,35435.93); h_SL1L160->SetBinContent(15,35872.04); h_SL1L160->SetBinContent(16,34068.34); h_SL1L160->SetBinContent(17,34776.36); h_SL1L160->SetBinContent(18,35966.27); h_SL1L160->SetBinContent(19,38012.25); h_SL1L160->SetBinContent(20,36294.7); h_SL1L160->SetBinContent(21,39194.08); h_SL1L160->SetBinContent(22,38399.91); h_SL1L160->SetBinContent(23,37796.88); h_SL1L160->SetBinContent(24,34587.92); h_SL1L160->SetBinContent(25,34935.2); h_SL1L160->SetBinContent(26,35155.95); h_SL1L160->SetBinContent(27,33524.54); h_SL1L160->SetBinContent(28,33844.9); h_SL1L160->SetBinContent(29,32485.4); h_SL1L160->SetBinContent(30,32046.59); h_SL1L160->SetBinContent(31,30199.82); h_SL1L160->SetBinContent(32,29343.73); h_SL1L160->SetBinContent(33,38811.8); h_SL1L160->SetBinContent(34,46080.43); h_SL1L160->SetBinContent(35,48710.6); h_SL1L160->SetBinContent(36,46306.57); h_SL1L160->SetBinContent(37,50272.01); h_SL1L160->SetBinContent(38,50438.92); h_SL1L160->SetBinContent(39,41043.54); h_SL1L160->SetBinContent(40,29446.03); h_SL1L160->SetBinContent(41,28369.2); h_SL1L160->SetBinContent(42,28040.77); h_SL1L160->SetBinContent(43,27456.58); h_SL1L160->SetBinContent(44,26853.55); h_SL1L160->SetBinContent(45,25774.03); h_SL1L160->SetBinContent(46,24164.16); h_SL1L160->SetBinContent(47,23601.52); h_SL1L160->SetBinContent(48,22050.88); h_SL1L160->SetBinContent(49,23633.82); h_SL1L160->SetBinContent(50,24460.29); h_SL1L160->SetBinContent(51,24032.25); h_SL1L160->SetBinContent(52,23571.9); h_SL1L160->SetBinContent(53,24745.65); h_SL1L160->SetBinContent(54,23052.33); h_SL1L160->SetBinContent(55,24681.04); h_SL1L160->SetBinContent(56,26258.6); h_SL1L160->SetBinContent(57,29023.38); h_SL1L160->SetBinContent(58,31093.59); h_SL1L160->SetBinContent(59,33462.62); h_SL1L160->SetMaximum(152561.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,57196.05); h_SL1L261->SetBinContent(2,54969.7); h_SL1L261->SetBinContent(3,54818.94); h_SL1L261->SetBinContent(4,55368.13); h_SL1L261->SetBinContent(5,54792.02); h_SL1L261->SetBinContent(6,59478.94); h_SL1L261->SetBinContent(7,57696.78); h_SL1L261->SetBinContent(8,57511.03); h_SL1L261->SetBinContent(9,55728.87); h_SL1L261->SetBinContent(10,49071.34); h_SL1L261->SetBinContent(11,47523.39); h_SL1L261->SetBinContent(12,48815.59); h_SL1L261->SetBinContent(13,50885.8); h_SL1L261->SetBinContent(14,54754.33); h_SL1L261->SetBinContent(15,54818.94); h_SL1L261->SetBinContent(16,53655.96); h_SL1L261->SetBinContent(17,52307.23); h_SL1L261->SetBinContent(18,53604.81); h_SL1L261->SetBinContent(19,55777.32); h_SL1L261->SetBinContent(20,56504.19); h_SL1L261->SetBinContent(21,58464.03); h_SL1L261->SetBinContent(22,60055.05); h_SL1L261->SetBinContent(23,61489.93); h_SL1L261->SetBinContent(24,61008.05); h_SL1L261->SetBinContent(25,61640.69); h_SL1L261->SetBinContent(26,59169.35); h_SL1L261->SetBinContent(27,56617.25); h_SL1L261->SetBinContent(28,56286.13); h_SL1L261->SetBinContent(29,59182.81); h_SL1L261->SetBinContent(30,58515.18); h_SL1L261->SetBinContent(31,57074.91); h_SL1L261->SetBinContent(32,57037.22); h_SL1L261->SetBinContent(33,66836.41); h_SL1L261->SetBinContent(34,98780.7); h_SL1L261->SetBinContent(35,108038.8); h_SL1L261->SetBinContent(36,111961.2); h_SL1L261->SetBinContent(37,115358.6); h_SL1L261->SetBinContent(38,112238.4); h_SL1L261->SetBinContent(39,100686.7); h_SL1L261->SetBinContent(40,65805.34); h_SL1L261->SetBinContent(41,52643.74); h_SL1L261->SetBinContent(42,49800.89); h_SL1L261->SetBinContent(43,48740.21); h_SL1L261->SetBinContent(44,47571.85); h_SL1L261->SetBinContent(45,47631.07); h_SL1L261->SetBinContent(46,48266.41); h_SL1L261->SetBinContent(47,48366.01); h_SL1L261->SetBinContent(48,46546.16); h_SL1L261->SetBinContent(49,45030.52); h_SL1L261->SetBinContent(50,45332.03); h_SL1L261->SetBinContent(51,43380.27); h_SL1L261->SetBinContent(52,41423.12); h_SL1L261->SetBinContent(53,44042.52); h_SL1L261->SetBinContent(54,43757.16); h_SL1L261->SetBinContent(55,44072.14); h_SL1L261->SetBinContent(56,43732.93); h_SL1L261->SetBinContent(57,42400.35); h_SL1L261->SetBinContent(58,41369.28); h_SL1L261->SetBinContent(59,40254.76); h_SL1L261->SetMaximum(132662.3); 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,54377.44); h_SL1L362->SetBinContent(2,53192.92); h_SL1L362->SetBinContent(3,54242.84); h_SL1L362->SetBinContent(4,52466.06); h_SL1L362->SetBinContent(5,55739.64); h_SL1L362->SetBinContent(6,57578.33); h_SL1L362->SetBinContent(7,56385.73); h_SL1L362->SetBinContent(8,55222.75); h_SL1L362->SetBinContent(9,50958.49); h_SL1L362->SetBinContent(10,47098.04); h_SL1L362->SetBinContent(11,46430.4); h_SL1L362->SetBinContent(12,48785.98); h_SL1L362->SetBinContent(13,51284.23); h_SL1L362->SetBinContent(14,52517.21); h_SL1L362->SetBinContent(15,53001.79); h_SL1L362->SetBinContent(16,49897.81); h_SL1L362->SetBinContent(17,51017.72); h_SL1L362->SetBinContent(18,53462.13); h_SL1L362->SetBinContent(19,55322.36); h_SL1L362->SetBinContent(20,55728.87); h_SL1L362->SetBinContent(21,58569.02); h_SL1L362->SetBinContent(22,57861); h_SL1L362->SetBinContent(23,58633.63); h_SL1L362->SetBinContent(24,58929.76); h_SL1L362->SetBinContent(25,59277.04); h_SL1L362->SetBinContent(26,55427.35); h_SL1L362->SetBinContent(27,55263.14); h_SL1L362->SetBinContent(28,56622.64); h_SL1L362->SetBinContent(29,56388.43); h_SL1L362->SetBinContent(30,56759.94); h_SL1L362->SetBinContent(31,54837.79); h_SL1L362->SetBinContent(32,56496.11); h_SL1L362->SetBinContent(33,84009.23); h_SL1L362->SetBinContent(34,103230.7); h_SL1L362->SetBinContent(35,108246.1); h_SL1L362->SetBinContent(36,111977.3); h_SL1L362->SetBinContent(37,114801.3); h_SL1L362->SetBinContent(38,106299.7); h_SL1L362->SetBinContent(39,83285.05); h_SL1L362->SetBinContent(40,53448.67); h_SL1L362->SetBinContent(41,49057.88); h_SL1L362->SetBinContent(42,47579.92); h_SL1L362->SetBinContent(43,46893.44); h_SL1L362->SetBinContent(44,45862.37); h_SL1L362->SetBinContent(45,45781.61); h_SL1L362->SetBinContent(46,46839.6); h_SL1L362->SetBinContent(47,46457.32); h_SL1L362->SetBinContent(48,44564.79); h_SL1L362->SetBinContent(49,43609.1); h_SL1L362->SetBinContent(50,43603.71); h_SL1L362->SetBinContent(51,41415.05); h_SL1L362->SetBinContent(52,40949.32); h_SL1L362->SetBinContent(53,42567.26); h_SL1L362->SetBinContent(54,40838.94); h_SL1L362->SetBinContent(55,42723.4); h_SL1L362->SetBinContent(56,41630.41); h_SL1L362->SetBinContent(57,41353.13); h_SL1L362->SetBinContent(58,39425.6); h_SL1L362->SetBinContent(59,39401.37); h_SL1L362->SetMaximum(132662.3); 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,21237.87); h_SL1L463->SetBinContent(3,18874.21); h_SL1L463->SetBinContent(4,17735.46); h_SL1L463->SetBinContent(5,15856.38); h_SL1L463->SetBinContent(6,16903.61); h_SL1L463->SetBinContent(7,16766.31); h_SL1L463->SetBinContent(8,17269.73); h_SL1L463->SetBinContent(9,18050.44); h_SL1L463->SetBinContent(10,17937.37); h_SL1L463->SetBinContent(11,19259.18); h_SL1L463->SetBinContent(12,19757.22); h_SL1L463->SetBinContent(13,20004.89); h_SL1L463->SetBinContent(14,21041.34); h_SL1L463->SetBinContent(15,20091.04); h_SL1L463->SetBinContent(16,18839.22); h_SL1L463->SetBinContent(17,16429.8); h_SL1L463->SetBinContent(18,15611.41); h_SL1L463->SetBinContent(19,16777.08); h_SL1L463->SetBinContent(20,16165.97); h_SL1L463->SetBinContent(21,15802.54); h_SL1L463->SetBinContent(22,16195.59); h_SL1L463->SetBinContent(23,16179.44); h_SL1L463->SetBinContent(24,16190.2); h_SL1L463->SetBinContent(25,14119.99); h_SL1L463->SetBinContent(26,15312.58); h_SL1L463->SetBinContent(27,13985.39); h_SL1L463->SetBinContent(28,14620.72); h_SL1L463->SetBinContent(29,13309.67); h_SL1L463->SetBinContent(30,14006.92); h_SL1L463->SetBinContent(31,13794.25); h_SL1L463->SetBinContent(32,12682.42); h_SL1L463->SetBinContent(33,12679.72); h_SL1L463->SetBinContent(34,16276.35); h_SL1L463->SetBinContent(35,18820.37); h_SL1L463->SetBinContent(36,17853.91); h_SL1L463->SetBinContent(37,15573.72); h_SL1L463->SetBinContent(38,15573.72); h_SL1L463->SetBinContent(39,16297.89); h_SL1L463->SetBinContent(40,10690.27); h_SL1L463->SetBinContent(41,10294.54); h_SL1L463->SetBinContent(42,10733.35); h_SL1L463->SetBinContent(43,10927.18); h_SL1L463->SetBinContent(44,10819.49); h_SL1L463->SetBinContent(45,9669.972); h_SL1L463->SetBinContent(46,10779.11); h_SL1L463->SetBinContent(47,9476.142); h_SL1L463->SetBinContent(48,8706.205); h_SL1L463->SetBinContent(49,8014.339); h_SL1L463->SetBinContent(50,8676.593); h_SL1L463->SetBinContent(51,8393.924); h_SL1L463->SetBinContent(52,8372.387); h_SL1L463->SetBinContent(53,8175.864); h_SL1L463->SetBinContent(54,8576.985); h_SL1L463->SetBinContent(56,8821.965); h_SL1L463->SetBinContent(57,9271.543); h_SL1L463->SetBinContent(58,12825.1); h_SL1L463->SetBinContent(59,13861.55); h_SL1L463->SetMaximum(132662.3); 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 6722"); pt->Draw(); c->Modified(); c->cd(); c->SetSelected(c); }