void RatesPerCell_Removing_noisy_cells_run_6827_SL1() { //=========Macro generated from canvas: c/c //========= (Sun Jan 13 16:03:19 2019) by ROOT version6.02/13 TCanvas *c = new TCanvas("c", "c",0,0,800,600); gStyle->SetOptStat(0); c->Range(-7.500001,-18472.6,67.5,166253.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 6827",60,0,60); h_SL1L160->SetBinContent(1,43226.71); h_SL1L160->SetBinContent(2,42070.95); h_SL1L160->SetBinContent(3,41842.53); h_SL1L160->SetBinContent(4,38716.19); h_SL1L160->SetBinContent(5,35098.9); h_SL1L160->SetBinContent(6,36183.07); h_SL1L160->SetBinContent(7,34369.31); h_SL1L160->SetBinContent(8,35320.51); h_SL1L160->SetBinContent(9,32235.08); h_SL1L160->SetBinContent(10,30100.85); h_SL1L160->SetBinContent(11,29794.01); h_SL1L160->SetBinContent(12,28484.83); h_SL1L160->SetBinContent(13,30465.64); h_SL1L160->SetBinContent(14,28986); h_SL1L160->SetBinContent(15,28815.54); h_SL1L160->SetBinContent(16,27376.8); h_SL1L160->SetBinContent(17,27240.43); h_SL1L160->SetBinContent(18,28263.23); h_SL1L160->SetBinContent(19,29916.74); h_SL1L160->SetBinContent(20,28628.02); h_SL1L160->SetBinContent(21,30332.68); h_SL1L160->SetBinContent(22,30581.56); h_SL1L160->SetBinContent(23,29978.11); h_SL1L160->SetBinContent(24,27451.81); h_SL1L160->SetBinContent(25,27710.92); h_SL1L160->SetBinContent(26,27260.89); h_SL1L160->SetBinContent(27,26132.4); h_SL1L160->SetBinContent(28,25610.78); h_SL1L160->SetBinContent(29,25208.48); h_SL1L160->SetBinContent(30,24591.39); h_SL1L160->SetBinContent(31,23387.9); h_SL1L160->SetBinContent(32,21911.67); h_SL1L160->SetBinContent(33,27226.79); h_SL1L160->SetBinContent(34,31693); h_SL1L160->SetBinContent(35,32586.24); h_SL1L160->SetBinContent(36,31287.29); h_SL1L160->SetBinContent(37,33649.95); h_SL1L160->SetBinContent(38,32777.16); h_SL1L160->SetBinContent(39,27959.8); h_SL1L160->SetBinContent(40,21996.9); h_SL1L160->SetBinContent(41,20847.96); h_SL1L160->SetBinContent(42,21533.24); h_SL1L160->SetBinContent(43,20302.47); h_SL1L160->SetBinContent(44,21038.89); h_SL1L160->SetBinContent(45,19388.78); h_SL1L160->SetBinContent(46,18556.9); h_SL1L160->SetBinContent(47,17626.16); h_SL1L160->SetBinContent(48,16831.79); h_SL1L160->SetBinContent(49,17772.76); h_SL1L160->SetBinContent(50,18052.33); h_SL1L160->SetBinContent(51,17465.92); h_SL1L160->SetBinContent(52,18127.33); h_SL1L160->SetBinContent(53,18151.2); h_SL1L160->SetBinContent(54,18536.45); h_SL1L160->SetBinContent(55,19337.64); h_SL1L160->SetBinContent(56,20957.06); h_SL1L160->SetBinContent(57,23490.18); h_SL1L160->SetBinContent(58,26033.53); h_SL1L160->SetBinContent(59,27942.75); h_SL1L160->SetMaximum(147780.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,56512.82); h_SL1L261->SetBinContent(2,53195.55); h_SL1L261->SetBinContent(3,53383.06); h_SL1L261->SetBinContent(4,53839.91); h_SL1L261->SetBinContent(5,52725.07); h_SL1L261->SetBinContent(6,57545.84); h_SL1L261->SetBinContent(7,56066.2); h_SL1L261->SetBinContent(8,56799.2); h_SL1L261->SetBinContent(9,53066); h_SL1L261->SetBinContent(10,48739.57); h_SL1L261->SetBinContent(11,45998.48); h_SL1L261->SetBinContent(12,47229.25); h_SL1L261->SetBinContent(13,49738.5); h_SL1L261->SetBinContent(14,51681.82); h_SL1L261->SetBinContent(15,53154.64); h_SL1L261->SetBinContent(16,52305.72); h_SL1L261->SetBinContent(17,51385.2); h_SL1L261->SetBinContent(18,52421.64); h_SL1L261->SetBinContent(19,54910.44); h_SL1L261->SetBinContent(20,56158.25); h_SL1L261->SetBinContent(21,56775.33); h_SL1L261->SetBinContent(22,58231.11); h_SL1L261->SetBinContent(23,59877.81); h_SL1L261->SetBinContent(24,59219.81); h_SL1L261->SetBinContent(25,60873.33); h_SL1L261->SetBinContent(26,57491.29); h_SL1L261->SetBinContent(27,54317.21); h_SL1L261->SetBinContent(28,55224.09); h_SL1L261->SetBinContent(29,57470.83); h_SL1L261->SetBinContent(30,57109.45); h_SL1L261->SetBinContent(31,55967.32); h_SL1L261->SetBinContent(32,55486.61); h_SL1L261->SetBinContent(33,66130.49); h_SL1L261->SetBinContent(34,96585.91); h_SL1L261->SetBinContent(35,105071.7); h_SL1L261->SetBinContent(36,109500.4); h_SL1L261->SetBinContent(37,111743.7); h_SL1L261->SetBinContent(38,110185.7); h_SL1L261->SetBinContent(39,97642.8); h_SL1L261->SetBinContent(40,61568.83); h_SL1L261->SetBinContent(41,50587.43); h_SL1L261->SetBinContent(42,48371.37); h_SL1L261->SetBinContent(43,47307.66); h_SL1L261->SetBinContent(44,45971.21); h_SL1L261->SetBinContent(45,45974.62); h_SL1L261->SetBinContent(46,47181.52); h_SL1L261->SetBinContent(47,46666.71); h_SL1L261->SetBinContent(48,44385.88); h_SL1L261->SetBinContent(49,43383.54); h_SL1L261->SetBinContent(50,43639.24); h_SL1L261->SetBinContent(51,42101.64); h_SL1L261->SetBinContent(52,40420.84); h_SL1L261->SetBinContent(53,42330.06); h_SL1L261->SetBinContent(54,42807.37); h_SL1L261->SetBinContent(55,41716.39); h_SL1L261->SetBinContent(56,42746); h_SL1L261->SetBinContent(57,41273.18); h_SL1L261->SetBinContent(58,40376.52); h_SL1L261->SetBinContent(59,39128.71); h_SL1L261->SetMaximum(128505.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,52752.34); h_SL1L362->SetBinContent(2,52626.2); h_SL1L362->SetBinContent(3,53730.81); h_SL1L362->SetBinContent(4,51057.91); h_SL1L362->SetBinContent(5,54886.57); h_SL1L362->SetBinContent(6,56754.88); h_SL1L362->SetBinContent(7,54722.93); h_SL1L362->SetBinContent(8,54116.07); h_SL1L362->SetBinContent(9,49039.59); h_SL1L362->SetBinContent(10,45875.75); h_SL1L362->SetBinContent(11,45333.67); h_SL1L362->SetBinContent(12,46833.77); h_SL1L362->SetBinContent(13,49796.46); h_SL1L362->SetBinContent(14,51105.64); h_SL1L362->SetBinContent(15,51017); h_SL1L362->SetBinContent(16,48371.37); h_SL1L362->SetBinContent(17,49830.55); h_SL1L362->SetBinContent(18,52598.92); h_SL1L362->SetBinContent(19,53331.92); h_SL1L362->SetBinContent(20,54545.64); h_SL1L362->SetBinContent(21,56025.28); h_SL1L362->SetBinContent(22,55980.96); h_SL1L362->SetBinContent(23,58162.93); h_SL1L362->SetBinContent(24,57733.35); h_SL1L362->SetBinContent(25,58002.69); h_SL1L362->SetBinContent(26,53952.42); h_SL1L362->SetBinContent(27,54191.07); h_SL1L362->SetBinContent(28,55159.32); h_SL1L362->SetBinContent(29,56471.9); h_SL1L362->SetBinContent(30,55302.51); h_SL1L362->SetBinContent(31,53205.78); h_SL1L362->SetBinContent(32,54330.85); h_SL1L362->SetBinContent(33,83067.98); h_SL1L362->SetBinContent(34,101580.6); h_SL1L362->SetBinContent(35,106510.4); h_SL1L362->SetBinContent(36,109592.5); h_SL1L362->SetBinContent(37,111375.5); h_SL1L362->SetBinContent(38,103796.6); h_SL1L362->SetBinContent(39,80633.73); h_SL1L362->SetBinContent(40,51603.4); h_SL1L362->SetBinContent(41,48378.19); h_SL1L362->SetBinContent(42,46448.52); h_SL1L362->SetBinContent(43,45350.71); h_SL1L362->SetBinContent(44,45098.43); h_SL1L362->SetBinContent(45,44365.42); h_SL1L362->SetBinContent(46,45401.86); h_SL1L362->SetBinContent(47,44362.02); h_SL1L362->SetBinContent(48,42875.55); h_SL1L362->SetBinContent(49,42595.99); h_SL1L362->SetBinContent(50,41627.74); h_SL1L362->SetBinContent(51,39623.07); h_SL1L362->SetBinContent(52,39834.44); h_SL1L362->SetBinContent(53,40874.29); h_SL1L362->SetBinContent(54,39667.39); h_SL1L362->SetBinContent(55,41245.9); h_SL1L362->SetBinContent(56,39981.04); h_SL1L362->SetBinContent(57,39827.62); h_SL1L362->SetBinContent(58,38518.45); h_SL1L362->SetBinContent(59,37816.13); h_SL1L362->SetMaximum(128505.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,29221.24); h_SL1L463->SetBinContent(3,27107.47); h_SL1L463->SetBinContent(4,24959.6); h_SL1L463->SetBinContent(5,22600.35); h_SL1L463->SetBinContent(6,23248.12); h_SL1L463->SetBinContent(7,23220.85); h_SL1L463->SetBinContent(8,24611.85); h_SL1L463->SetBinContent(9,25160.75); h_SL1L463->SetBinContent(10,25413.04); h_SL1L463->SetBinContent(11,26930.18); h_SL1L463->SetBinContent(12,27666.6); h_SL1L463->SetBinContent(13,27857.52); h_SL1L463->SetBinContent(14,28968.96); h_SL1L463->SetBinContent(15,29088.28); h_SL1L463->SetBinContent(16,27168.84); h_SL1L463->SetBinContent(17,24291.37); h_SL1L463->SetBinContent(18,22760.59); h_SL1L463->SetBinContent(19,23139.03); h_SL1L463->SetBinContent(20,22610.58); h_SL1L463->SetBinContent(21,22767.41); h_SL1L463->SetBinContent(22,23616.33); h_SL1L463->SetBinContent(23,23254.94); h_SL1L463->SetBinContent(24,23452.68); h_SL1L463->SetBinContent(25,21096.85); h_SL1L463->SetBinContent(26,22024.18); h_SL1L463->SetBinContent(27,20479.76); h_SL1L463->SetBinContent(28,20554.76); h_SL1L463->SetBinContent(29,19726.3); h_SL1L463->SetBinContent(30,20159.28); h_SL1L463->SetBinContent(31,19433.1); h_SL1L463->SetBinContent(32,18775.1); h_SL1L463->SetBinContent(33,18239.84); h_SL1L463->SetBinContent(34,22487.85); h_SL1L463->SetBinContent(35,23964.08); h_SL1L463->SetBinContent(36,22900.37); h_SL1L463->SetBinContent(37,21062.75); h_SL1L463->SetBinContent(38,22310.56); h_SL1L463->SetBinContent(39,20663.86); h_SL1L463->SetBinContent(40,14165.71); h_SL1L463->SetBinContent(41,13071.32); h_SL1L463->SetBinContent(42,13173.6); h_SL1L463->SetBinContent(43,13078.13); h_SL1L463->SetBinContent(44,13112.23); h_SL1L463->SetBinContent(45,12167.85); h_SL1L463->SetBinContent(46,12161.03); h_SL1L463->SetBinContent(47,11578.04); h_SL1L463->SetBinContent(48,11298.47); h_SL1L463->SetBinContent(49,10545.01); h_SL1L463->SetBinContent(50,11005.27); h_SL1L463->SetBinContent(51,10705.25); h_SL1L463->SetBinContent(52,11025.73); h_SL1L463->SetBinContent(53,10868.9); h_SL1L463->SetBinContent(54,11503.03); h_SL1L463->SetBinContent(56,12696.29); h_SL1L463->SetBinContent(57,13688.4); h_SL1L463->SetBinContent(58,18454.62); h_SL1L463->SetBinContent(59,19412.64); h_SL1L463->SetMaximum(128505.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 6827"); pt->Draw(); c->Modified(); c->cd(); c->SetSelected(c); }