void RatesPerCell_Removing_noisy_cells_run_6654_SL2() { //=========Macro generated from canvas: c/c //========= (Sun Jan 13 15:57:30 2019) by ROOT version6.02/13 TCanvas *c = new TCanvas("c", "c",0,0,800,600); gStyle->SetOptStat(0); c->Range(-7.500001,-16854.55,67.5,151690.9); c->SetFillColor(0); c->SetBorderMode(0); c->SetBorderSize(2); c->SetFrameBorderMode(0); c->SetFrameBorderMode(0); TH1D *h_SL2L164 = new TH1D("h_SL2L164","SL2, run 6654",60,0,60); h_SL2L164->SetBinContent(1,31440.24); h_SL2L164->SetBinContent(2,39254.05); h_SL2L164->SetBinContent(3,46928.07); h_SL2L164->SetBinContent(4,47713.11); h_SL2L164->SetBinContent(5,46818.38); h_SL2L164->SetBinContent(6,43080.31); h_SL2L164->SetBinContent(7,38544.29); h_SL2L164->SetBinContent(8,38068.97); h_SL2L164->SetBinContent(9,43439.49); h_SL2L164->SetBinContent(10,44297.66); h_SL2L164->SetBinContent(11,44779.43); h_SL2L164->SetBinContent(12,43263.12); h_SL2L164->SetBinContent(13,43680.38); h_SL2L164->SetBinContent(14,42383.45); h_SL2L164->SetBinContent(15,41791.98); h_SL2L164->SetBinContent(16,40675.73); h_SL2L164->SetBinContent(17,39305.67); h_SL2L164->SetBinContent(18,39316.43); h_SL2L164->SetBinContent(19,37649.57); h_SL2L164->SetBinContent(20,34675.02); h_SL2L164->SetBinContent(21,31644.56); h_SL2L164->SetBinContent(22,29683.04); h_SL2L164->SetBinContent(23,28364.61); h_SL2L164->SetBinContent(24,27209.63); h_SL2L164->SetBinContent(25,29943.29); h_SL2L164->SetBinContent(26,45538.66); h_SL2L164->SetBinContent(27,57942.26); h_SL2L164->SetBinContent(28,65132.35); h_SL2L164->SetBinContent(29,66814.27); h_SL2L164->SetBinContent(30,65556.05); h_SL2L164->SetBinContent(31,62762.18); h_SL2L164->SetBinContent(32,63405.27); h_SL2L164->SetBinContent(33,63360.1); h_SL2L164->SetBinContent(34,42396.36); h_SL2L164->SetBinContent(36,18494.64); h_SL2L164->SetBinContent(37,19253.87); h_SL2L164->SetBinContent(38,18739.83); h_SL2L164->SetBinContent(39,18765.64); h_SL2L164->SetBinContent(40,55937.73); h_SL2L164->SetBinContent(41,101956); h_SL2L164->SetBinContent(42,19896.95); h_SL2L164->SetBinContent(43,19914.16); h_SL2L164->SetBinContent(44,19821.67); h_SL2L164->SetBinContent(45,14812.49); h_SL2L164->SetBinContent(46,14350.07); h_SL2L164->SetBinContent(47,14575.9); h_SL2L164->SetBinContent(48,14741.51); h_SL2L164->SetBinContent(49,16115.86); h_SL2L164->SetBinContent(50,15277.06); h_SL2L164->SetBinContent(51,15950.25); h_SL2L164->SetBinContent(52,17830.04); h_SL2L164->SetBinContent(53,19509.81); h_SL2L164->SetBinContent(54,21051.93); h_SL2L164->SetBinContent(55,20778.78); h_SL2L164->SetBinContent(56,18217.19); h_SL2L164->SetBinContent(57,15539.45); h_SL2L164->SetMaximum(134836.3); 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,25646.01); h_SL2L265->SetBinContent(2,37307.59); h_SL2L265->SetBinContent(3,40830.58); h_SL2L265->SetBinContent(4,46403.28); h_SL2L265->SetBinContent(5,46454.9); h_SL2L265->SetBinContent(6,43841.69); h_SL2L265->SetBinContent(7,40015.43); h_SL2L265->SetBinContent(8,35404.14); h_SL2L265->SetBinContent(9,40550.98); h_SL2L265->SetBinContent(10,42084.49); h_SL2L265->SetBinContent(11,43121.18); h_SL2L265->SetBinContent(12,42344.74); h_SL2L265->SetBinContent(13,41589.81); h_SL2L265->SetBinContent(14,41721.01); h_SL2L265->SetBinContent(15,40839.19); h_SL2L265->SetBinContent(16,39953.06); h_SL2L265->SetBinContent(17,39140.06); h_SL2L265->SetBinContent(18,37326.95); h_SL2L265->SetBinContent(19,36929.05); h_SL2L265->SetBinContent(20,34070.65); h_SL2L265->SetBinContent(21,32253.24); h_SL2L265->SetBinContent(22,29461.51); h_SL2L265->SetBinContent(23,27829.06); h_SL2L265->SetBinContent(24,27061.23); h_SL2L265->SetBinContent(25,25725.59); h_SL2L265->SetBinContent(26,36225.74); h_SL2L265->SetBinContent(27,51274.82); h_SL2L265->SetBinContent(28,60998.54); h_SL2L265->SetBinContent(29,65246.34); h_SL2L265->SetBinContent(30,66285.17); h_SL2L265->SetBinContent(31,62041.67); h_SL2L265->SetBinContent(32,62992.32); h_SL2L265->SetBinContent(33,64115.03); h_SL2L265->SetBinContent(34,55227.96); h_SL2L265->SetBinContent(35,28816.28); h_SL2L265->SetBinContent(36,19111.91); h_SL2L265->SetBinContent(37,17634.32); h_SL2L265->SetBinContent(38,17488.07); h_SL2L265->SetBinContent(39,17875.21); h_SL2L265->SetBinContent(40,18135.46); h_SL2L265->SetBinContent(41,16664.31); h_SL2L265->SetBinContent(42,16143.82); h_SL2L265->SetBinContent(43,15935.2); h_SL2L265->SetBinContent(44,15576.02); h_SL2L265->SetBinContent(45,14816.79); h_SL2L265->SetBinContent(46,14055.41); h_SL2L265->SetBinContent(47,13435.98); h_SL2L265->SetBinContent(48,13941.42); h_SL2L265->SetBinContent(49,14825.39); h_SL2L265->SetBinContent(50,15188.87); h_SL2L265->SetBinContent(51,14380.18); h_SL2L265->SetBinContent(52,16679.37); h_SL2L265->SetBinContent(53,17873.06); h_SL2L265->SetBinContent(54,19296.88); h_SL2L265->SetBinContent(55,20634.67); h_SL2L265->SetBinContent(56,18083.84); h_SL2L265->SetBinContent(57,17963.39); h_SL2L265->SetMaximum(117249.4); 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,29788.43); h_SL2L366->SetBinContent(2,35711.7); h_SL2L366->SetBinContent(3,45467.68); h_SL2L366->SetBinContent(4,44407.35); h_SL2L366->SetBinContent(5,42802.86); h_SL2L366->SetBinContent(6,39178.78); h_SL2L366->SetBinContent(7,35090.12); h_SL2L366->SetBinContent(8,35991.31); h_SL2L366->SetBinContent(9,40090.71); h_SL2L366->SetBinContent(10,41176.86); h_SL2L366->SetBinContent(11,41075.77); h_SL2L366->SetBinContent(12,40480); h_SL2L366->SetBinContent(13,40460.65); h_SL2L366->SetBinContent(14,39626.14); h_SL2L366->SetBinContent(15,39318.58); h_SL2L366->SetBinContent(16,37972.18); h_SL2L366->SetBinContent(17,37193.6); h_SL2L366->SetBinContent(18,36501.04); h_SL2L366->SetBinContent(19,34350.25); h_SL2L366->SetBinContent(20,31844.59); h_SL2L366->SetBinContent(21,29416.34); h_SL2L366->SetBinContent(22,27170.92); h_SL2L366->SetBinContent(23,26207.37); h_SL2L366->SetBinContent(24,25555.68); h_SL2L366->SetBinContent(25,28306.54); h_SL2L366->SetBinContent(26,43828.79); h_SL2L366->SetBinContent(27,56380.79); h_SL2L366->SetBinContent(28,63557.97); h_SL2L366->SetBinContent(29,65534.55); h_SL2L366->SetBinContent(30,64287.09); h_SL2L366->SetBinContent(31,61676.03); h_SL2L366->SetBinContent(32,62097.59); h_SL2L366->SetBinContent(33,62323.42); h_SL2L366->SetBinContent(34,41579.06); h_SL2L366->SetBinContent(35,20957.29); h_SL2L366->SetBinContent(36,17430); h_SL2L366->SetBinContent(37,16681.52); h_SL2L366->SetBinContent(38,16804.12); h_SL2L366->SetBinContent(39,16102.96); h_SL2L366->SetBinContent(40,16305.13); h_SL2L366->SetBinContent(41,15548.06); h_SL2L366->SetBinContent(42,15003.91); h_SL2L366->SetBinContent(43,14786.68); h_SL2L366->SetBinContent(44,14326.41); h_SL2L366->SetBinContent(45,13496.2); h_SL2L366->SetBinContent(46,13390.81); h_SL2L366->SetBinContent(47,13672.57); h_SL2L366->SetBinContent(48,13765.05); h_SL2L366->SetBinContent(49,14175.85); h_SL2L366->SetBinContent(50,14167.25); h_SL2L366->SetBinContent(51,14300.6); h_SL2L366->SetBinContent(52,16051.34); h_SL2L366->SetBinContent(53,18015.01); h_SL2L366->SetBinContent(54,19466.79); h_SL2L366->SetBinContent(55,19582.94); h_SL2L366->SetBinContent(56,16778.31); h_SL2L366->SetBinContent(57,16636.36); h_SL2L366->SetMaximum(117249.4); 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,33900.74); h_SL2L467->SetBinContent(3,38733.56); h_SL2L467->SetBinContent(4,42843.72); h_SL2L467->SetBinContent(5,42136.11); h_SL2L467->SetBinContent(6,39217.49); h_SL2L467->SetBinContent(7,36914); h_SL2L467->SetBinContent(8,32812.44); h_SL2L467->SetBinContent(9,38312.01); h_SL2L467->SetBinContent(10,39475.59); h_SL2L467->SetBinContent(11,39673.46); h_SL2L467->SetBinContent(12,39290.62); h_SL2L467->SetBinContent(13,39043.28); h_SL2L467->SetBinContent(14,38707.75); h_SL2L467->SetBinContent(15,38096.93); h_SL2L467->SetBinContent(16,36963.46); h_SL2L467->SetBinContent(17,35885.92); h_SL2L467->SetBinContent(18,34750.3); h_SL2L467->SetBinContent(19,34453.49); h_SL2L467->SetBinContent(20,31866.09); h_SL2L467->SetBinContent(21,29876.61); h_SL2L467->SetBinContent(22,26914.98); h_SL2L467->SetBinContent(23,25265.32); h_SL2L467->SetBinContent(24,25288.98); h_SL2L467->SetBinContent(25,24181.32); h_SL2L467->SetBinContent(26,35201.97); h_SL2L467->SetBinContent(27,50279); h_SL2L467->SetBinContent(28,59976.91); h_SL2L467->SetBinContent(29,64351.61); h_SL2L467->SetBinContent(30,65207.63); h_SL2L467->SetBinContent(31,61387.83); h_SL2L467->SetBinContent(32,61979.29); h_SL2L467->SetBinContent(33,62796.59); h_SL2L467->SetBinContent(34,54513.91); h_SL2L467->SetBinContent(35,27768.84); h_SL2L467->SetBinContent(36,17976.3); h_SL2L467->SetBinContent(37,16472.89); h_SL2L467->SetBinContent(38,16313.74); h_SL2L467->SetBinContent(39,15915.84); h_SL2L467->SetBinContent(40,15636.24); h_SL2L467->SetBinContent(41,14991); h_SL2L467->SetBinContent(42,14967.34); h_SL2L467->SetBinContent(43,14633.97); h_SL2L467->SetBinContent(44,14236.07); h_SL2L467->SetBinContent(45,13853.23); h_SL2L467->SetBinContent(46,12958.5); h_SL2L467->SetBinContent(47,12810.1); h_SL2L467->SetBinContent(48,13068.2); h_SL2L467->SetBinContent(49,13360.7); h_SL2L467->SetBinContent(50,14233.92); h_SL2L467->SetBinContent(51,13173.58); h_SL2L467->SetBinContent(52,14885.61); h_SL2L467->SetBinContent(53,16264.27); h_SL2L467->SetBinContent(54,17804.23); h_SL2L467->SetBinContent(55,18834.46); h_SL2L467->SetBinContent(56,17384.83); h_SL2L467->SetBinContent(57,16440.63); h_SL2L467->SetMaximum(117249.4); 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 6654"); pt->Draw(); c->Modified(); c->cd(); c->SetSelected(c); }