void RatesPerCell_Removing_noisy_cells_run_6754_SL2() { //=========Macro generated from canvas: c/c //========= (Sun Jan 13 15:56:30 2019) by ROOT version6.02/13 TCanvas *c = new TCanvas("c", "c",0,0,800,600); gStyle->SetOptStat(0); c->Range(-7.500001,-11402.11,67.5,102619); c->SetFillColor(0); c->SetBorderMode(0); c->SetBorderSize(2); c->SetFrameBorderMode(0); c->SetFrameBorderMode(0); TH1D *h_SL2L164 = new TH1D("h_SL2L164","SL2, run 6754",60,0,60); h_SL2L164->SetBinContent(1,32537.37); h_SL2L164->SetBinContent(2,40875.67); h_SL2L164->SetBinContent(3,49217.36); h_SL2L164->SetBinContent(4,50713.02); h_SL2L164->SetBinContent(5,49329.54); h_SL2L164->SetBinContent(6,45338.85); h_SL2L164->SetBinContent(7,40107.44); h_SL2L164->SetBinContent(8,40535.74); h_SL2L164->SetBinContent(9,44635.21); h_SL2L164->SetBinContent(10,46107.07); h_SL2L164->SetBinContent(11,46780.12); h_SL2L164->SetBinContent(12,45583.59); h_SL2L164->SetBinContent(13,45131.5); h_SL2L164->SetBinContent(14,45070.31); h_SL2L164->SetBinContent(15,44726.99); h_SL2L164->SetBinContent(16,42949.19); h_SL2L164->SetBinContent(17,41392.35); h_SL2L164->SetBinContent(18,40508.55); h_SL2L164->SetBinContent(19,39811.71); h_SL2L164->SetBinContent(20,36490.67); h_SL2L164->SetBinContent(21,34321.96); h_SL2L164->SetBinContent(22,31775.94); h_SL2L164->SetBinContent(23,30049.14); h_SL2L164->SetBinContent(24,29185.74); h_SL2L164->SetBinContent(25,31731.75); h_SL2L164->SetBinContent(26,47188.02); h_SL2L164->SetBinContent(27,59568); h_SL2L164->SetBinContent(28,66063.91); h_SL2L164->SetBinContent(29,68973.65); h_SL2L164->SetBinContent(30,66444.62); h_SL2L164->SetBinContent(31,63990.39); h_SL2L164->SetBinContent(32,64986.36); h_SL2L164->SetBinContent(33,63969.99); h_SL2L164->SetBinContent(34,44074.34); h_SL2L164->SetBinContent(36,19358.58); h_SL2L164->SetBinContent(37,20874.63); h_SL2L164->SetBinContent(38,20021.43); h_SL2L164->SetBinContent(39,19576.13); h_SL2L164->SetBinContent(40,65101.93); h_SL2L164->SetBinContent(41,37466.25); h_SL2L164->SetBinContent(42,21187.36); h_SL2L164->SetBinContent(43,21299.54); h_SL2L164->SetBinContent(44,20626.49); h_SL2L164->SetBinContent(45,16326.47); h_SL2L164->SetBinContent(46,15503.86); h_SL2L164->SetBinContent(47,15813.19); h_SL2L164->SetBinContent(48,16057.93); h_SL2L164->SetBinContent(49,16166.71); h_SL2L164->SetBinContent(50,15633.03); h_SL2L164->SetBinContent(51,16662.99); h_SL2L164->SetBinContent(52,19032.25); h_SL2L164->SetBinContent(53,20983.41); h_SL2L164->SetBinContent(54,21476.3); h_SL2L164->SetBinContent(55,22482.47); h_SL2L164->SetBinContent(56,19093.44); h_SL2L164->SetBinContent(57,15891.37); h_SL2L164->SetMaximum(91216.85); h_SL2L164->SetEntries(60); h_SL2L164->SetDirectory(0); h_SL2L164->SetStats(0); h_SL2L164->SetLineWidth(2); h_SL2L164->GetXaxis()->SetTitle("Cell"); h_SL2L164->GetXaxis()->SetLabelFont(42); h_SL2L164->GetXaxis()->SetLabelSize(0.035); h_SL2L164->GetXaxis()->SetTitleSize(0.035); h_SL2L164->GetXaxis()->SetTitleFont(42); h_SL2L164->GetYaxis()->SetTitle("Hz"); h_SL2L164->GetYaxis()->SetLabelFont(42); h_SL2L164->GetYaxis()->SetLabelSize(0.035); h_SL2L164->GetYaxis()->SetTitleSize(0.035); h_SL2L164->GetYaxis()->SetTitleOffset(1.45); h_SL2L164->GetYaxis()->SetTitleFont(42); h_SL2L164->GetZaxis()->SetLabelFont(42); h_SL2L164->GetZaxis()->SetLabelSize(0.035); h_SL2L164->GetZaxis()->SetTitleSize(0.035); h_SL2L164->GetZaxis()->SetTitleFont(42); h_SL2L164->Draw(""); TH1D *h_SL2L265 = new TH1D("h_SL2L265","",60,0,60); h_SL2L265->SetBinContent(1,26938.85); h_SL2L265->SetBinContent(2,38560.79); h_SL2L265->SetBinContent(3,42432.51); h_SL2L265->SetBinContent(4,48564.71); h_SL2L265->SetBinContent(5,48384.55); h_SL2L265->SetBinContent(6,45984.7); h_SL2L265->SetBinContent(7,41779.86); h_SL2L265->SetBinContent(8,37170.51); h_SL2L265->SetBinContent(9,42265.95); h_SL2L265->SetBinContent(10,43846.59); h_SL2L265->SetBinContent(11,44801.77); h_SL2L265->SetBinContent(12,44302.08); h_SL2L265->SetBinContent(13,44288.49); h_SL2L265->SetBinContent(14,44339.48); h_SL2L265->SetBinContent(15,43530.46); h_SL2L265->SetBinContent(16,42078.99); h_SL2L265->SetBinContent(17,40039.46); h_SL2L265->SetBinContent(18,39668.94); h_SL2L265->SetBinContent(19,38924.51); h_SL2L265->SetBinContent(20,36762.61); h_SL2L265->SetBinContent(21,34695.88); h_SL2L265->SetBinContent(22,31133.49); h_SL2L265->SetBinContent(23,29794.2); h_SL2L265->SetBinContent(24,28876.41); h_SL2L265->SetBinContent(25,27744.46); h_SL2L265->SetBinContent(26,39040.09); h_SL2L265->SetBinContent(27,53004.1); h_SL2L265->SetBinContent(28,62056.23); h_SL2L265->SetBinContent(29,67552.77); h_SL2L265->SetBinContent(30,67019.09); h_SL2L265->SetBinContent(31,63259.55); h_SL2L265->SetBinContent(32,63327.54); h_SL2L265->SetBinContent(33,64530.86); h_SL2L265->SetBinContent(34,56056.6); h_SL2L265->SetBinContent(35,30576.02); h_SL2L265->SetBinContent(36,20521.11); h_SL2L265->SetBinContent(37,19018.66); h_SL2L265->SetBinContent(38,18665.14); h_SL2L265->SetBinContent(39,18474.78); h_SL2L265->SetBinContent(40,18991.46); h_SL2L265->SetBinContent(41,18179.05); h_SL2L265->SetBinContent(42,17465.21); h_SL2L265->SetBinContent(43,16571.22); h_SL2L265->SetBinContent(44,16255.09); h_SL2L265->SetBinContent(45,15476.67); h_SL2L265->SetBinContent(46,14997.38); h_SL2L265->SetBinContent(47,14946.39); h_SL2L265->SetBinContent(48,14708.44); h_SL2L265->SetBinContent(49,15395.08); h_SL2L265->SetBinContent(50,16153.11); h_SL2L265->SetBinContent(51,15140.14); h_SL2L265->SetBinContent(52,16999.52); h_SL2L265->SetBinContent(53,19185.22); h_SL2L265->SetBinContent(54,20429.34); h_SL2L265->SetBinContent(55,21306.33); h_SL2L265->SetBinContent(56,19008.46); h_SL2L265->SetBinContent(57,18671.94); h_SL2L265->SetMaximum(79319.7); h_SL2L265->SetEntries(60); h_SL2L265->SetDirectory(0); h_SL2L265->SetStats(0); Int_t ci; // for color index setting TColor *color; // for color definition with alpha ci = TColor::GetColor("#cc0000"); h_SL2L265->SetLineColor(ci); h_SL2L265->SetLineWidth(2); h_SL2L265->GetXaxis()->SetTitle("Cell"); h_SL2L265->GetXaxis()->SetLabelFont(42); h_SL2L265->GetXaxis()->SetLabelSize(0.035); h_SL2L265->GetXaxis()->SetTitleSize(0.035); h_SL2L265->GetXaxis()->SetTitleFont(42); h_SL2L265->GetYaxis()->SetTitle("Hz"); h_SL2L265->GetYaxis()->SetLabelFont(42); h_SL2L265->GetYaxis()->SetLabelSize(0.035); h_SL2L265->GetYaxis()->SetTitleSize(0.035); h_SL2L265->GetYaxis()->SetTitleOffset(1.45); h_SL2L265->GetYaxis()->SetTitleFont(42); h_SL2L265->GetZaxis()->SetLabelFont(42); h_SL2L265->GetZaxis()->SetLabelSize(0.035); h_SL2L265->GetZaxis()->SetTitleSize(0.035); h_SL2L265->GetZaxis()->SetTitleFont(42); h_SL2L265->Draw("same"); TH1D *h_SL2L366 = new TH1D("h_SL2L366","",60,0,60); h_SL2L366->SetBinContent(1,31667.17); h_SL2L366->SetBinContent(2,37615.81); h_SL2L366->SetBinContent(3,47164.23); h_SL2L366->SetBinContent(4,46542.17); h_SL2L366->SetBinContent(5,46212.45); h_SL2L366->SetBinContent(6,41514.72); h_SL2L366->SetBinContent(7,37405.06); h_SL2L366->SetBinContent(8,38186.88); h_SL2L366->SetBinContent(9,42748.64); h_SL2L366->SetBinContent(10,42799.62); h_SL2L366->SetBinContent(11,42735.04); h_SL2L366->SetBinContent(12,43047.77); h_SL2L366->SetBinContent(13,42568.48); h_SL2L366->SetBinContent(14,42466.5); h_SL2L366->SetBinContent(15,42007.61); h_SL2L366->SetBinContent(16,39801.51); h_SL2L366->SetBinContent(17,38261.66); h_SL2L366->SetBinContent(18,37945.54); h_SL2L366->SetBinContent(19,36572.25); h_SL2L366->SetBinContent(20,34162.2); h_SL2L366->SetBinContent(21,31979.9); h_SL2L366->SetBinContent(22,28791.43); h_SL2L366->SetBinContent(23,27435.13); h_SL2L366->SetBinContent(24,27407.94); h_SL2L366->SetBinContent(25,29070.16); h_SL2L366->SetBinContent(26,45481.61); h_SL2L366->SetBinContent(27,57477.48); h_SL2L366->SetBinContent(28,64585.25); h_SL2L366->SetBinContent(29,66641.78); h_SL2L366->SetBinContent(30,65271.89); h_SL2L366->SetBinContent(31,62185.4); h_SL2L366->SetBinContent(32,63395.52); h_SL2L366->SetBinContent(33,62090.22); h_SL2L366->SetBinContent(34,42667.06); h_SL2L366->SetBinContent(35,22706.81); h_SL2L366->SetBinContent(36,18512.17); h_SL2L366->SetBinContent(37,17767.74); h_SL2L366->SetBinContent(38,17975.1); h_SL2L366->SetBinContent(39,17288.45); h_SL2L366->SetBinContent(40,17383.63); h_SL2L366->SetBinContent(41,17040.31); h_SL2L366->SetBinContent(42,16013.74); h_SL2L366->SetBinContent(43,15792.79); h_SL2L366->SetBinContent(44,15170.74); h_SL2L366->SetBinContent(45,14813.82); h_SL2L366->SetBinContent(46,14518.08); h_SL2L366->SetBinContent(47,14348.12); h_SL2L366->SetBinContent(48,14739.03); h_SL2L366->SetBinContent(49,15265.91); h_SL2L366->SetBinContent(50,14650.65); h_SL2L366->SetBinContent(51,15602.44); h_SL2L366->SetBinContent(52,17206.87); h_SL2L366->SetBinContent(53,18909.88); h_SL2L366->SetBinContent(54,19834.47); h_SL2L366->SetBinContent(55,20524.51); h_SL2L366->SetBinContent(56,17645.37); h_SL2L366->SetBinContent(57,16679.99); h_SL2L366->SetMaximum(79319.7); h_SL2L366->SetEntries(60); h_SL2L366->SetDirectory(0); h_SL2L366->SetStats(0); ci = TColor::GetColor("#009900"); h_SL2L366->SetLineColor(ci); h_SL2L366->SetLineWidth(2); h_SL2L366->GetXaxis()->SetTitle("Cell"); h_SL2L366->GetXaxis()->SetLabelFont(42); h_SL2L366->GetXaxis()->SetLabelSize(0.035); h_SL2L366->GetXaxis()->SetTitleSize(0.035); h_SL2L366->GetXaxis()->SetTitleFont(42); h_SL2L366->GetYaxis()->SetTitle("Hz"); h_SL2L366->GetYaxis()->SetLabelFont(42); h_SL2L366->GetYaxis()->SetLabelSize(0.035); h_SL2L366->GetYaxis()->SetTitleSize(0.035); h_SL2L366->GetYaxis()->SetTitleOffset(1.45); h_SL2L366->GetYaxis()->SetTitleFont(42); h_SL2L366->GetZaxis()->SetLabelFont(42); h_SL2L366->GetZaxis()->SetLabelSize(0.035); h_SL2L366->GetZaxis()->SetTitleSize(0.035); h_SL2L366->GetZaxis()->SetTitleFont(42); h_SL2L366->Draw("same"); TH1D *h_SL2L467 = new TH1D("h_SL2L467","",60,0,60); h_SL2L467->SetBinContent(2,36116.75); h_SL2L467->SetBinContent(3,40253.61); h_SL2L467->SetBinContent(4,45753.55); h_SL2L467->SetBinContent(5,44458.45); h_SL2L467->SetBinContent(6,41694.88); h_SL2L467->SetBinContent(7,38696.77); h_SL2L467->SetBinContent(8,34185.99); h_SL2L467->SetBinContent(9,38710.36); h_SL2L467->SetBinContent(10,40569.73); h_SL2L467->SetBinContent(11,41368.55); h_SL2L467->SetBinContent(12,40511.95); h_SL2L467->SetBinContent(13,40821.28); h_SL2L467->SetBinContent(14,40875.67); h_SL2L467->SetBinContent(15,40454.16); h_SL2L467->SetBinContent(16,38282.06); h_SL2L467->SetBinContent(17,37333.68); h_SL2L467->SetBinContent(18,36181.34); h_SL2L467->SetBinContent(19,35596.67); h_SL2L467->SetBinContent(20,33132.23); h_SL2L467->SetBinContent(21,32272.23); h_SL2L467->SetBinContent(22,29263.92); h_SL2L467->SetBinContent(23,26870.86); h_SL2L467->SetBinContent(24,25902.09); h_SL2L467->SetBinContent(25,25487.38); h_SL2L467->SetBinContent(26,36259.52); h_SL2L467->SetBinContent(27,51426.86); h_SL2L467->SetBinContent(28,61223.42); h_SL2L467->SetBinContent(29,66247.48); h_SL2L467->SetBinContent(30,65642.41); h_SL2L467->SetBinContent(31,62372.36); h_SL2L467->SetBinContent(32,62464.14); h_SL2L467->SetBinContent(33,63752.44); h_SL2L467->SetBinContent(34,54996.04); h_SL2L467->SetBinContent(35,28696.25); h_SL2L467->SetBinContent(36,19103.64); h_SL2L467->SetBinContent(37,17648.77); h_SL2L467->SetBinContent(38,17091.3); h_SL2L467->SetBinContent(39,16775.17); h_SL2L467->SetBinContent(40,16578.01); h_SL2L467->SetBinContent(41,15986.55); h_SL2L467->SetBinContent(42,15901.57); h_SL2L467->SetBinContent(43,15568.45); h_SL2L467->SetBinContent(44,15228.52); h_SL2L467->SetBinContent(45,14820.62); h_SL2L467->SetBinContent(46,14032); h_SL2L467->SetBinContent(47,13865.43); h_SL2L467->SetBinContent(48,13821.24); h_SL2L467->SetBinContent(49,14671.05); h_SL2L467->SetBinContent(50,14552.08); h_SL2L467->SetBinContent(51,13947.02); h_SL2L467->SetBinContent(52,15663.62); h_SL2L467->SetBinContent(53,17478.81); h_SL2L467->SetBinContent(54,18420.39); h_SL2L467->SetBinContent(55,19226.01); h_SL2L467->SetBinContent(56,18491.78); h_SL2L467->SetBinContent(57,16652.8); h_SL2L467->SetMaximum(79319.7); h_SL2L467->SetEntries(60); h_SL2L467->SetDirectory(0); h_SL2L467->SetStats(0); ci = TColor::GetColor("#0000cc"); h_SL2L467->SetLineColor(ci); h_SL2L467->SetLineWidth(2); h_SL2L467->GetXaxis()->SetTitle("Cell"); h_SL2L467->GetXaxis()->SetLabelFont(42); h_SL2L467->GetXaxis()->SetLabelSize(0.035); h_SL2L467->GetXaxis()->SetTitleSize(0.035); h_SL2L467->GetXaxis()->SetTitleFont(42); h_SL2L467->GetYaxis()->SetTitle("Hz"); h_SL2L467->GetYaxis()->SetLabelFont(42); h_SL2L467->GetYaxis()->SetLabelSize(0.035); h_SL2L467->GetYaxis()->SetTitleSize(0.035); h_SL2L467->GetYaxis()->SetTitleOffset(1.45); h_SL2L467->GetYaxis()->SetTitleFont(42); h_SL2L467->GetZaxis()->SetLabelFont(42); h_SL2L467->GetZaxis()->SetLabelSize(0.035); h_SL2L467->GetZaxis()->SetTitleSize(0.035); h_SL2L467->GetZaxis()->SetTitleFont(42); h_SL2L467->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_SL2L1","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_SL2L2","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_SL2L3","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_SL2L4","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("SL2, run 6754"); pt->Draw(); c->Modified(); c->cd(); c->SetSelected(c); }