void RatesPerCell_Removing_noisy_cells_run_6581_SL1() { //=========Macro generated from canvas: c/c //========= (Sun Jan 13 15:34:06 2019) by ROOT version6.02/13 TCanvas *c = new TCanvas("c", "c",0,0,800,600); gStyle->SetOptStat(0); c->Range(-7.500001,-12706.78,67.5,114361); c->SetFillColor(0); c->SetBorderMode(0); c->SetBorderSize(2); c->SetFrameBorderMode(0); c->SetFrameBorderMode(0); TH1D *h_SL1L160 = new TH1D("h_SL1L160","SL1, run 6581",60,0,60); h_SL1L160->SetBinContent(1,50505.66); h_SL1L160->SetBinContent(2,47167.95); h_SL1L160->SetBinContent(3,46697.64); h_SL1L160->SetBinContent(4,42055.18); h_SL1L160->SetBinContent(5,37200.33); h_SL1L160->SetBinContent(6,39529.14); h_SL1L160->SetBinContent(7,36001.79); h_SL1L160->SetBinContent(8,36350.73); h_SL1L160->SetBinContent(9,33096.46); h_SL1L160->SetBinContent(10,31025.56); h_SL1L160->SetBinContent(11,29690.47); h_SL1L160->SetBinContent(12,29091.2); h_SL1L160->SetBinContent(13,30699.37); h_SL1L160->SetBinContent(14,28598.13); h_SL1L160->SetBinContent(15,29675.3); h_SL1L160->SetBinContent(16,28552.62); h_SL1L160->SetBinContent(17,28105.06); h_SL1L160->SetBinContent(18,28924.32); h_SL1L160->SetBinContent(19,31275.89); h_SL1L160->SetBinContent(20,27596.82); h_SL1L160->SetBinContent(21,31154.52); h_SL1L160->SetBinContent(22,31799.3); h_SL1L160->SetBinContent(23,29857.36); h_SL1L160->SetBinContent(24,27687.85); h_SL1L160->SetBinContent(25,27255.46); h_SL1L160->SetBinContent(26,28954.66); h_SL1L160->SetBinContent(27,27703.02); h_SL1L160->SetBinContent(28,27634.75); h_SL1L160->SetBinContent(29,26094.85); h_SL1L160->SetBinContent(30,26178.29); h_SL1L160->SetBinContent(31,26064.5); h_SL1L160->SetBinContent(32,22832.99); h_SL1L160->SetBinContent(33,23386.75); h_SL1L160->SetBinContent(34,24008.78); h_SL1L160->SetBinContent(35,24714.25); h_SL1L160->SetBinContent(36,23098.49); h_SL1L160->SetBinContent(37,24274.28); h_SL1L160->SetBinContent(38,24706.66); h_SL1L160->SetBinContent(39,22620.59); h_SL1L160->SetBinContent(40,22590.25); h_SL1L160->SetBinContent(41,22188.21); h_SL1L160->SetBinContent(42,22521.98); h_SL1L160->SetBinContent(43,22476.46); h_SL1L160->SetBinContent(44,21733.06); h_SL1L160->SetBinContent(45,20443.49); h_SL1L160->SetBinContent(46,19730.43); h_SL1L160->SetBinContent(47,18721.54); h_SL1L160->SetBinContent(48,17431.96); h_SL1L160->SetBinContent(49,18774.63); h_SL1L160->SetBinContent(50,19153.92); h_SL1L160->SetBinContent(51,18433.28); h_SL1L160->SetBinContent(52,17280.25); h_SL1L160->SetBinContent(53,18698.78); h_SL1L160->SetBinContent(54,18205.71); h_SL1L160->SetBinContent(55,19616.65); h_SL1L160->SetBinContent(56,20754.51); h_SL1L160->SetBinContent(57,25434.89); h_SL1L160->SetBinContent(58,27452.69); h_SL1L160->SetBinContent(59,30213.89); h_SL1L160->SetMaximum(101654.2); 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,73126.26); h_SL1L261->SetBinContent(2,68195.54); h_SL1L261->SetBinContent(3,69234.78); h_SL1L261->SetBinContent(4,68863.09); h_SL1L261->SetBinContent(5,69568.55); h_SL1L261->SetBinContent(6,74764.77); h_SL1L261->SetBinContent(7,71821.52); h_SL1L261->SetBinContent(8,72162.87); h_SL1L261->SetBinContent(9,70304.37); h_SL1L261->SetBinContent(10,59729.89); h_SL1L261->SetBinContent(11,60374.68); h_SL1L261->SetBinContent(12,60632.59); h_SL1L261->SetBinContent(13,64721.29); h_SL1L261->SetBinContent(14,69462.36); h_SL1L261->SetBinContent(15,68961.7); h_SL1L261->SetBinContent(16,67528); h_SL1L261->SetBinContent(17,65661.91); h_SL1L261->SetBinContent(18,67353.53); h_SL1L261->SetBinContent(19,70607.8); h_SL1L261->SetBinContent(20,72481.47); h_SL1L261->SetBinContent(21,74476.51); h_SL1L261->SetBinContent(22,76866.01); h_SL1L261->SetBinContent(23,75735.74); h_SL1L261->SetBinContent(24,75242.66); h_SL1L261->SetBinContent(25,76433.62); h_SL1L261->SetBinContent(26,74431); h_SL1L261->SetBinContent(27,70228.52); h_SL1L261->SetBinContent(28,69811.3); h_SL1L261->SetBinContent(29,72618.01); h_SL1L261->SetBinContent(30,71851.85); h_SL1L261->SetBinContent(31,71275.34); h_SL1L261->SetBinContent(32,68271.4); h_SL1L261->SetBinContent(33,62756.59); h_SL1L261->SetBinContent(34,62475.91); h_SL1L261->SetBinContent(35,64926.1); h_SL1L261->SetBinContent(36,66063.96); h_SL1L261->SetBinContent(37,64599.91); h_SL1L261->SetBinContent(38,63560.67); h_SL1L261->SetBinContent(39,61171.17); h_SL1L261->SetBinContent(40,59896.77); h_SL1L261->SetBinContent(41,57909.32); h_SL1L261->SetBinContent(42,57674.16); h_SL1L261->SetBinContent(43,57932.07); h_SL1L261->SetBinContent(44,55967.38); h_SL1L261->SetBinContent(45,56255.63); h_SL1L261->SetBinContent(46,57272.12); h_SL1L261->SetBinContent(47,58478.25); h_SL1L261->SetBinContent(48,58698.23); h_SL1L261->SetBinContent(49,54199.91); h_SL1L261->SetBinContent(50,55565.33); h_SL1L261->SetBinContent(51,53122.73); h_SL1L261->SetBinContent(52,50429.81); h_SL1L261->SetBinContent(53,52773.79); h_SL1L261->SetBinContent(54,53388.23); h_SL1L261->SetBinContent(55,52925.5); h_SL1L261->SetBinContent(56,54184.73); h_SL1L261->SetBinContent(57,53714.42); h_SL1L261->SetBinContent(58,51415.95); h_SL1L261->SetBinContent(59,49504.35); h_SL1L261->SetMaximum(88395.91); 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,66905.97); h_SL1L362->SetBinContent(2,66579.79); h_SL1L362->SetBinContent(3,67960.38); h_SL1L362->SetBinContent(4,66708.74); h_SL1L362->SetBinContent(5,70797.44); h_SL1L362->SetBinContent(6,71677.38); h_SL1L362->SetBinContent(7,69598.9); h_SL1L362->SetBinContent(8,69803.71); h_SL1L362->SetBinContent(9,62688.32); h_SL1L362->SetBinContent(10,58061.03); h_SL1L362->SetBinContent(11,57507.27); h_SL1L362->SetBinContent(12,60518.8); h_SL1L362->SetBinContent(13,63811); h_SL1L362->SetBinContent(14,64751.63); h_SL1L362->SetBinContent(15,66337.04); h_SL1L362->SetBinContent(16,62293.86); h_SL1L362->SetBinContent(17,62309.03); h_SL1L362->SetBinContent(18,68013.48); h_SL1L362->SetBinContent(19,68332.09); h_SL1L362->SetBinContent(20,67876.95); h_SL1L362->SetBinContent(21,71707.73); h_SL1L362->SetBinContent(22,72663.52); h_SL1L362->SetBinContent(23,74150.33); h_SL1L362->SetBinContent(24,73429.68); h_SL1L362->SetBinContent(25,73998.61); h_SL1L362->SetBinContent(26,68878.26); h_SL1L362->SetBinContent(27,67452.14); h_SL1L362->SetBinContent(28,68021.07); h_SL1L362->SetBinContent(29,69090.66); h_SL1L362->SetBinContent(30,68779.64); h_SL1L362->SetBinContent(31,67543.17); h_SL1L362->SetBinContent(32,63735.14); h_SL1L362->SetBinContent(33,60708.45); h_SL1L362->SetBinContent(34,61899.4); h_SL1L362->SetBinContent(35,63105.53); h_SL1L362->SetBinContent(36,62536.6); h_SL1L362->SetBinContent(37,63431.71); h_SL1L362->SetBinContent(38,60807.06); h_SL1L362->SetBinContent(39,57347.98); h_SL1L362->SetBinContent(40,56930.76); h_SL1L362->SetBinContent(41,56748.7); h_SL1L362->SetBinContent(42,56369.42); h_SL1L362->SetBinContent(43,56096.33); h_SL1L362->SetBinContent(44,55095.02); h_SL1L362->SetBinContent(45,53820.62); h_SL1L362->SetBinContent(46,55322.59); h_SL1L362->SetBinContent(47,56953.52); h_SL1L362->SetBinContent(48,54298.52); h_SL1L362->SetBinContent(49,51772.48); h_SL1L362->SetBinContent(50,52652.42); h_SL1L362->SetBinContent(51,50035.35); h_SL1L362->SetBinContent(52,48685.09); h_SL1L362->SetBinContent(53,50763.58); h_SL1L362->SetBinContent(54,50945.64); h_SL1L362->SetBinContent(55,52758.62); h_SL1L362->SetBinContent(56,50892.54); h_SL1L362->SetBinContent(57,51286.99); h_SL1L362->SetBinContent(58,48783.71); h_SL1L362->SetBinContent(59,48950.59); h_SL1L362->SetMaximum(88395.91); 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,42540.67); h_SL1L463->SetBinContent(3,38497.48); h_SL1L463->SetBinContent(4,35523.88); h_SL1L463->SetBinContent(5,31192.44); h_SL1L463->SetBinContent(6,32914.4); h_SL1L463->SetBinContent(7,33316.44); h_SL1L463->SetBinContent(8,34917.03); h_SL1L463->SetBinContent(9,36305.21); h_SL1L463->SetBinContent(10,38019.58); h_SL1L463->SetBinContent(11,37329.29); h_SL1L463->SetBinContent(12,38133.37); h_SL1L463->SetBinContent(13,40227.03); h_SL1L463->SetBinContent(14,41319.37); h_SL1L463->SetBinContent(15,40735.27); h_SL1L463->SetBinContent(16,37799.6); h_SL1L463->SetBinContent(17,34378.44); h_SL1L463->SetBinContent(18,31222.79); h_SL1L463->SetBinContent(19,32686.83); h_SL1L463->SetBinContent(20,31958.6); h_SL1L463->SetBinContent(21,31662.76); h_SL1L463->SetBinContent(22,32216.51); h_SL1L463->SetBinContent(23,32876.47); h_SL1L463->SetBinContent(24,33013.02); h_SL1L463->SetBinContent(25,29144.3); h_SL1L463->SetBinContent(26,31298.64); h_SL1L463->SetBinContent(27,28545.03); h_SL1L463->SetBinContent(28,29038.1); h_SL1L463->SetBinContent(29,27748.53); h_SL1L463->SetBinContent(30,28696.74); h_SL1L463->SetBinContent(31,27945.76); h_SL1L463->SetBinContent(32,26534.82); h_SL1L463->SetBinContent(33,25563.85); h_SL1L463->SetBinContent(34,28150.57); h_SL1L463->SetBinContent(35,29470.49); h_SL1L463->SetBinContent(36,27111.33); h_SL1L463->SetBinContent(37,25806.59); h_SL1L463->SetBinContent(38,24668.73); h_SL1L463->SetBinContent(39,24410.82); h_SL1L463->SetBinContent(40,21566.18); h_SL1L463->SetBinContent(41,23098.49); h_SL1L463->SetBinContent(42,24251.52); h_SL1L463->SetBinContent(43,24903.89); h_SL1L463->SetBinContent(44,25032.85); h_SL1L463->SetBinContent(45,22218.55); h_SL1L463->SetBinContent(46,25381.79); h_SL1L463->SetBinContent(47,22878.5); h_SL1L463->SetBinContent(48,23872.23); h_SL1L463->SetBinContent(49,21262.75); h_SL1L463->SetBinContent(50,21953.05); h_SL1L463->SetBinContent(51,17591.26); h_SL1L463->SetBinContent(52,16498.92); h_SL1L463->SetBinContent(53,16225.84); h_SL1L463->SetBinContent(54,16772.01); h_SL1L463->SetBinContent(56,17659.54); h_SL1L463->SetBinContent(57,19624.23); h_SL1L463->SetBinContent(58,24835.62); h_SL1L463->SetBinContent(59,26481.72); h_SL1L463->SetMaximum(88395.91); 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.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("SL1, run 6581"); pt->Draw(); c->Modified(); c->cd(); c->SetSelected(c); }