void RatesPerCell_Removing_noisy_cells_run_6701_SL2() { //=========Macro generated from canvas: c/c //========= (Sun Jan 13 15:45:25 2019) by ROOT version6.02/13 TCanvas *c = new TCanvas("c", "c",0,0,800,600); gStyle->SetOptStat(0); c->Range(-7.500001,-16106.61,67.5,144959.5); c->SetFillColor(0); c->SetBorderMode(0); c->SetBorderSize(2); c->SetFrameBorderMode(0); c->SetFrameBorderMode(0); TH1D *h_SL2L164 = new TH1D("h_SL2L164","SL2, run 6701",60,0,60); h_SL2L164->SetBinContent(1,49060.08); h_SL2L164->SetBinContent(2,62572.15); h_SL2L164->SetBinContent(3,73733.46); h_SL2L164->SetBinContent(4,76963.36); h_SL2L164->SetBinContent(5,72701.42); h_SL2L164->SetBinContent(6,67503); h_SL2L164->SetBinContent(7,62629.48); h_SL2L164->SetBinContent(8,59839.16); h_SL2L164->SetBinContent(9,64808.23); h_SL2L164->SetBinContent(10,67120.77); h_SL2L164->SetBinContent(11,70140.44); h_SL2L164->SetBinContent(12,65687.38); h_SL2L164->SetBinContent(13,68229.25); h_SL2L164->SetBinContent(14,67522.12); h_SL2L164->SetBinContent(15,66260.73); h_SL2L164->SetBinContent(16,62667.71); h_SL2L164->SetBinContent(17,62056.13); h_SL2L164->SetBinContent(18,59972.94); h_SL2L164->SetBinContent(19,59342.25); h_SL2L164->SetBinContent(20,54774.52); h_SL2L164->SetBinContent(21,49461.43); h_SL2L164->SetBinContent(22,46002.19); h_SL2L164->SetBinContent(23,44110.12); h_SL2L164->SetBinContent(24,41205.12); h_SL2L164->SetBinContent(25,43135.41); h_SL2L164->SetBinContent(26,57469.29); h_SL2L164->SetBinContent(27,71229.81); h_SL2L164->SetBinContent(28,76676.69); h_SL2L164->SetBinContent(29,78740.77); h_SL2L164->SetBinContent(30,76122.44); h_SL2L164->SetBinContent(31,74039.25); h_SL2L164->SetBinContent(32,72261.85); h_SL2L164->SetBinContent(33,73179.22); h_SL2L164->SetBinContent(34,53130.9); h_SL2L164->SetBinContent(36,27368.15); h_SL2L164->SetBinContent(37,29394); h_SL2L164->SetBinContent(38,27177.03); h_SL2L164->SetBinContent(39,27349.04); h_SL2L164->SetBinContent(40,97432.14); h_SL2L164->SetBinContent(41,93800.89); h_SL2L164->SetBinContent(42,29642.46); h_SL2L164->SetBinContent(43,30254.04); h_SL2L164->SetBinContent(44,28610.42); h_SL2L164->SetBinContent(45,22532.85); h_SL2L164->SetBinContent(46,23239.99); h_SL2L164->SetBinContent(47,23813.35); h_SL2L164->SetBinContent(48,23698.68); h_SL2L164->SetBinContent(49,24864.5); h_SL2L164->SetBinContent(50,23048.87); h_SL2L164->SetBinContent(51,26393.45); h_SL2L164->SetBinContent(52,28361.96); h_SL2L164->SetBinContent(53,32299); h_SL2L164->SetBinContent(54,32451.9); h_SL2L164->SetBinContent(55,32509.23); h_SL2L164->SetBinContent(56,29336.67); h_SL2L164->SetBinContent(57,32146.11); h_SL2L164->SetMaximum(128852.9); 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,39981.96); h_SL2L265->SetBinContent(2,58482.21); h_SL2L265->SetBinContent(3,63585.08); h_SL2L265->SetBinContent(4,73695.23); h_SL2L265->SetBinContent(5,74115.7); h_SL2L265->SetBinContent(6,68496.82); h_SL2L265->SetBinContent(7,63049.95); h_SL2L265->SetBinContent(8,54392.29); h_SL2L265->SetBinContent(9,64426); h_SL2L265->SetBinContent(10,66490.08); h_SL2L265->SetBinContent(11,68496.82); h_SL2L265->SetBinContent(12,66050.5); h_SL2L265->SetBinContent(13,66470.96); h_SL2L265->SetBinContent(14,67044.32); h_SL2L265->SetBinContent(15,63126.39); h_SL2L265->SetBinContent(16,62877.94); h_SL2L265->SetBinContent(17,59972.94); h_SL2L265->SetBinContent(18,58214.65); h_SL2L265->SetBinContent(19,57813.3); h_SL2L265->SetBinContent(20,54984.75); h_SL2L265->SetBinContent(21,50684.59); h_SL2L265->SetBinContent(22,46403.54); h_SL2L265->SetBinContent(23,42886.96); h_SL2L265->SetBinContent(24,41835.81); h_SL2L265->SetBinContent(25,39618.84); h_SL2L265->SetBinContent(26,49308.54); h_SL2L265->SetBinContent(27,63527.74); h_SL2L265->SetBinContent(28,73064.55); h_SL2L265->SetBinContent(29,76409.12); h_SL2L265->SetBinContent(30,77804.28); h_SL2L265->SetBinContent(31,70981.36); h_SL2L265->SetBinContent(32,73332.11); h_SL2L265->SetBinContent(33,73886.36); h_SL2L265->SetBinContent(34,63699.75); h_SL2L265->SetBinContent(35,37994.33); h_SL2L265->SetBinContent(36,27673.94); h_SL2L265->SetBinContent(37,27291.7); h_SL2L265->SetBinContent(38,27540.15); h_SL2L265->SetBinContent(39,26622.79); h_SL2L265->SetBinContent(40,28400.19); h_SL2L265->SetBinContent(41,25915.65); h_SL2L265->SetBinContent(42,24577.82); h_SL2L265->SetBinContent(43,25246.73); h_SL2L265->SetBinContent(44,26183.21); h_SL2L265->SetBinContent(45,21195.03); h_SL2L265->SetBinContent(46,22055.06); h_SL2L265->SetBinContent(47,22360.85); h_SL2L265->SetBinContent(48,23010.65); h_SL2L265->SetBinContent(49,22341.74); h_SL2L265->SetBinContent(50,24061.8); h_SL2L265->SetBinContent(51,22093.28); h_SL2L265->SetBinContent(52,26049.43); h_SL2L265->SetBinContent(53,29011.77); h_SL2L265->SetBinContent(54,30349.6); h_SL2L265->SetBinContent(55,31133.18); h_SL2L265->SetBinContent(56,28897.1); h_SL2L265->SetBinContent(57,27234.37); h_SL2L265->SetMaximum(112047); 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,46288.87); h_SL2L366->SetBinContent(2,56360.8); h_SL2L366->SetBinContent(3,71650.27); h_SL2L366->SetBinContent(4,69796.42); h_SL2L366->SetBinContent(5,67579.45); h_SL2L366->SetBinContent(6,61865.01); h_SL2L366->SetBinContent(7,56532.81); h_SL2L366->SetBinContent(8,56551.92); h_SL2L366->SetBinContent(9,63948.2); h_SL2L366->SetBinContent(10,65324.25); h_SL2L366->SetBinContent(11,63546.85); h_SL2L366->SetBinContent(12,64177.54); h_SL2L366->SetBinContent(13,63260.18); h_SL2L366->SetBinContent(14,62705.93); h_SL2L366->SetBinContent(15,62744.16); h_SL2L366->SetBinContent(16,58061.76); h_SL2L366->SetBinContent(17,57029.72); h_SL2L366->SetBinContent(18,55615.44); h_SL2L366->SetBinContent(19,56227.02); h_SL2L366->SetBinContent(20,50741.92); h_SL2L366->SetBinContent(21,47531.14); h_SL2L366->SetBinContent(22,42294.49); h_SL2L366->SetBinContent(23,42370.94); h_SL2L366->SetBinContent(24,37650.32); h_SL2L366->SetBinContent(25,40803.77); h_SL2L366->SetBinContent(26,57106.16); h_SL2L366->SetBinContent(27,68726.16); h_SL2L366->SetBinContent(28,72892.54); h_SL2L366->SetBinContent(29,78434.98); h_SL2L366->SetBinContent(30,74536.16); h_SL2L366->SetBinContent(31,71344.48); h_SL2L366->SetBinContent(32,70752.02); h_SL2L366->SetBinContent(33,69452.41); h_SL2L366->SetBinContent(34,51047.71); h_SL2L366->SetBinContent(35,28266.4); h_SL2L366->SetBinContent(36,25380.52); h_SL2L366->SetBinContent(37,25705.42); h_SL2L366->SetBinContent(38,25858.31); h_SL2L366->SetBinContent(39,24100.03); h_SL2L366->SetBinContent(40,24998.28); h_SL2L366->SetBinContent(41,24826.27); h_SL2L366->SetBinContent(42,23641.34); h_SL2L366->SetBinContent(43,23889.79); h_SL2L366->SetBinContent(44,23335.55); h_SL2L366->SetBinContent(45,21825.72); h_SL2L366->SetBinContent(46,20640.78); h_SL2L366->SetBinContent(47,22456.41); h_SL2L366->SetBinContent(48,21749.27); h_SL2L366->SetBinContent(49,21806.6); h_SL2L366->SetBinContent(50,22838.64); h_SL2L366->SetBinContent(51,22379.96); h_SL2L366->SetBinContent(52,24444.04); h_SL2L366->SetBinContent(53,26622.79); h_SL2L366->SetBinContent(54,30273.15); h_SL2L366->SetBinContent(55,31228.74); h_SL2L366->SetBinContent(56,27062.36); h_SL2L366->SetBinContent(57,25552.52); h_SL2L366->SetMaximum(112047); 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,54258.5); h_SL2L467->SetBinContent(3,60794.75); h_SL2L467->SetBinContent(4,67197.21); h_SL2L467->SetBinContent(5,66050.5); h_SL2L467->SetBinContent(6,61540.11); h_SL2L467->SetBinContent(7,56341.69); h_SL2L467->SetBinContent(8,49499.65); h_SL2L467->SetBinContent(9,58348.43); h_SL2L467->SetBinContent(10,61482.77); h_SL2L467->SetBinContent(11,63948.2); h_SL2L467->SetBinContent(12,63088.17); h_SL2L467->SetBinContent(13,59514.25); h_SL2L467->SetBinContent(14,59151.13); h_SL2L467->SetBinContent(15,62056.13); h_SL2L467->SetBinContent(16,56418.14); h_SL2L467->SetBinContent(17,55902.12); h_SL2L467->SetBinContent(18,53990.93); h_SL2L467->SetBinContent(19,53264.68); h_SL2L467->SetBinContent(20,51621.07); h_SL2L467->SetBinContent(21,48792.52); h_SL2L467->SetBinContent(22,41453.57); h_SL2L467->SetBinContent(23,40822.88); h_SL2L467->SetBinContent(24,37516.53); h_SL2L467->SetBinContent(25,36216.93); h_SL2L467->SetBinContent(26,47340.02); h_SL2L467->SetBinContent(27,60756.52); h_SL2L467->SetBinContent(28,71096.03); h_SL2L467->SetBinContent(29,75396.19); h_SL2L467->SetBinContent(30,76944.25); h_SL2L467->SetBinContent(31,70255.11); h_SL2L467->SetBinContent(32,70752.02); h_SL2L467->SetBinContent(33,70599.12); h_SL2L467->SetBinContent(34,60660.96); h_SL2L467->SetBinContent(35,36924.07); h_SL2L467->SetBinContent(36,26431.67); h_SL2L467->SetBinContent(37,24272.03); h_SL2L467->SetBinContent(38,24386.7); h_SL2L467->SetBinContent(39,25265.85); h_SL2L467->SetBinContent(40,23928.02); h_SL2L467->SetBinContent(41,22743.08); h_SL2L467->SetBinContent(42,22857.76); h_SL2L467->SetBinContent(43,23010.65); h_SL2L467->SetBinContent(44,22953.31); h_SL2L467->SetBinContent(45,21978.61); h_SL2L467->SetBinContent(46,20602.56); h_SL2L467->SetBinContent(47,21596.38); h_SL2L467->SetBinContent(48,21519.93); h_SL2L467->SetBinContent(49,21309.7); h_SL2L467->SetBinContent(50,22723.97); h_SL2L467->SetBinContent(51,19608.74); h_SL2L467->SetBinContent(52,23182.66); h_SL2L467->SetBinContent(53,27005.02); h_SL2L467->SetBinContent(54,28744.2); h_SL2L467->SetBinContent(55,30082.03); h_SL2L467->SetBinContent(56,28591.31); h_SL2L467->SetBinContent(57,25151.18); h_SL2L467->SetMaximum(112047); 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.3744221,0.9362587,0.6255779,0.995,"blNDC"); pt->SetName("title"); pt->SetBorderSize(0); pt->SetFillColor(0); pt->SetFillStyle(0); pt->SetTextFont(42); TText *AText = pt->AddText("SL2, run 6701"); pt->Draw(); c->Modified(); c->cd(); c->SetSelected(c); }