void RatesPerCell_Removing_noisy_cells_run_6841_SL2() { //=========Macro generated from canvas: c/c //========= (Sun Jan 13 16:11:55 2019) by ROOT version6.02/13 TCanvas *c = new TCanvas("c", "c",0,0,800,600); gStyle->SetOptStat(0); c->Range(-7.500001,-11288.4,67.5,101595.6); c->SetFillColor(0); c->SetBorderMode(0); c->SetBorderSize(2); c->SetFrameBorderMode(0); c->SetFrameBorderMode(0); TH1D *h_SL2L164 = new TH1D("h_SL2L164","SL2, run 6841",60,0,60); h_SL2L164->SetBinContent(1,678.5714); h_SL2L164->SetBinContent(2,750); h_SL2L164->SetBinContent(3,928.5714); h_SL2L164->SetBinContent(4,913.2653); h_SL2L164->SetBinContent(5,795.9183); h_SL2L164->SetBinContent(6,959.1837); h_SL2L164->SetBinContent(7,1000); h_SL2L164->SetBinContent(8,1275.51); h_SL2L164->SetBinContent(9,1301.02); h_SL2L164->SetBinContent(10,1367.347); h_SL2L164->SetBinContent(11,1234.694); h_SL2L164->SetBinContent(12,1326.531); h_SL2L164->SetBinContent(13,1438.776); h_SL2L164->SetBinContent(14,1494.898); h_SL2L164->SetBinContent(15,1734.694); h_SL2L164->SetBinContent(16,2107.143); h_SL2L164->SetBinContent(17,2091.837); h_SL2L164->SetBinContent(18,2122.449); h_SL2L164->SetBinContent(19,2229.592); h_SL2L164->SetBinContent(20,2153.061); h_SL2L164->SetBinContent(21,2316.326); h_SL2L164->SetBinContent(22,2525.51); h_SL2L164->SetBinContent(23,2780.612); h_SL2L164->SetBinContent(24,3290.816); h_SL2L164->SetBinContent(25,8525.51); h_SL2L164->SetBinContent(26,27163.27); h_SL2L164->SetBinContent(27,41096.94); h_SL2L164->SetBinContent(28,49372.45); h_SL2L164->SetBinContent(29,52086.73); h_SL2L164->SetBinContent(30,50964.29); h_SL2L164->SetBinContent(31,48479.59); h_SL2L164->SetBinContent(32,48969.39); h_SL2L164->SetBinContent(33,46321.43); h_SL2L164->SetBinContent(34,26765.31); h_SL2L164->SetBinContent(36,3464.286); h_SL2L164->SetBinContent(37,3846.939); h_SL2L164->SetBinContent(38,3025.51); h_SL2L164->SetBinContent(39,3132.653); h_SL2L164->SetBinContent(40,39637.75); h_SL2L164->SetBinContent(41,68285.71); h_SL2L164->SetBinContent(42,5479.592); h_SL2L164->SetBinContent(43,5551.021); h_SL2L164->SetBinContent(44,5607.143); h_SL2L164->SetBinContent(45,1234.694); h_SL2L164->SetBinContent(46,1250); h_SL2L164->SetBinContent(47,1005.102); h_SL2L164->SetBinContent(48,1071.429); h_SL2L164->SetBinContent(49,836.7347); h_SL2L164->SetBinContent(50,852.0408); h_SL2L164->SetBinContent(51,739.7959); h_SL2L164->SetBinContent(52,750); h_SL2L164->SetBinContent(53,724.4898); h_SL2L164->SetBinContent(54,765.3061); h_SL2L164->SetBinContent(55,591.8367); h_SL2L164->SetBinContent(56,448.9796); h_SL2L164->SetBinContent(57,392.8571); h_SL2L164->SetMaximum(90307.2); 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,545.9183); h_SL2L265->SetBinContent(2,714.2857); h_SL2L265->SetBinContent(3,770.4081); h_SL2L265->SetBinContent(4,903.0612); h_SL2L265->SetBinContent(5,795.9183); h_SL2L265->SetBinContent(6,908.1633); h_SL2L265->SetBinContent(7,954.0816); h_SL2L265->SetBinContent(8,1071.429); h_SL2L265->SetBinContent(9,1352.041); h_SL2L265->SetBinContent(10,1147.959); h_SL2L265->SetBinContent(11,1306.122); h_SL2L265->SetBinContent(12,1290.816); h_SL2L265->SetBinContent(13,1367.347); h_SL2L265->SetBinContent(14,1581.633); h_SL2L265->SetBinContent(15,1612.245); h_SL2L265->SetBinContent(16,1790.816); h_SL2L265->SetBinContent(17,2142.857); h_SL2L265->SetBinContent(18,1959.184); h_SL2L265->SetBinContent(19,2367.347); h_SL2L265->SetBinContent(20,2234.694); h_SL2L265->SetBinContent(21,2250); h_SL2L265->SetBinContent(22,2428.571); h_SL2L265->SetBinContent(23,2545.918); h_SL2L265->SetBinContent(24,2867.347); h_SL2L265->SetBinContent(25,4163.265); h_SL2L265->SetBinContent(26,17709.18); h_SL2L265->SetBinContent(27,34816.33); h_SL2L265->SetBinContent(28,45846.94); h_SL2L265->SetBinContent(29,51352.04); h_SL2L265->SetBinContent(30,51831.63); h_SL2L265->SetBinContent(31,49234.7); h_SL2L265->SetBinContent(32,48244.9); h_SL2L265->SetBinContent(33,49255.1); h_SL2L265->SetBinContent(34,39280.61); h_SL2L265->SetBinContent(35,14102.04); h_SL2L265->SetBinContent(36,4571.429); h_SL2L265->SetBinContent(37,3198.979); h_SL2L265->SetBinContent(38,2556.122); h_SL2L265->SetBinContent(39,2474.49); h_SL2L265->SetBinContent(40,3265.306); h_SL2L265->SetBinContent(41,2494.898); h_SL2L265->SetBinContent(42,2051.021); h_SL2L265->SetBinContent(43,1586.735); h_SL2L265->SetBinContent(44,1693.878); h_SL2L265->SetBinContent(45,1183.673); h_SL2L265->SetBinContent(46,1367.347); h_SL2L265->SetBinContent(47,1005.102); h_SL2L265->SetBinContent(48,1132.653); h_SL2L265->SetBinContent(49,872.449); h_SL2L265->SetBinContent(50,816.3265); h_SL2L265->SetBinContent(51,765.3061); h_SL2L265->SetBinContent(52,709.1837); h_SL2L265->SetBinContent(53,709.1837); h_SL2L265->SetBinContent(54,836.7347); h_SL2L265->SetBinContent(55,698.9796); h_SL2L265->SetBinContent(56,545.9183); h_SL2L265->SetBinContent(57,510.2041); h_SL2L265->SetMaximum(78528.57); 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,653.0612); h_SL2L366->SetBinContent(2,729.5919); h_SL2L366->SetBinContent(3,806.1224); h_SL2L366->SetBinContent(4,882.6531); h_SL2L366->SetBinContent(5,765.3061); h_SL2L366->SetBinContent(6,1010.204); h_SL2L366->SetBinContent(7,959.1837); h_SL2L366->SetBinContent(8,1168.367); h_SL2L366->SetBinContent(9,1198.98); h_SL2L366->SetBinContent(10,1316.327); h_SL2L366->SetBinContent(11,1132.653); h_SL2L366->SetBinContent(12,1352.041); h_SL2L366->SetBinContent(13,1423.469); h_SL2L366->SetBinContent(14,1438.776); h_SL2L366->SetBinContent(15,1704.082); h_SL2L366->SetBinContent(16,1948.98); h_SL2L366->SetBinContent(17,2030.612); h_SL2L366->SetBinContent(18,2000); h_SL2L366->SetBinContent(19,2239.796); h_SL2L366->SetBinContent(20,2091.837); h_SL2L366->SetBinContent(21,2158.163); h_SL2L366->SetBinContent(22,2510.204); h_SL2L366->SetBinContent(23,2566.326); h_SL2L366->SetBinContent(24,3301.02); h_SL2L366->SetBinContent(25,8372.449); h_SL2L366->SetBinContent(26,27219.39); h_SL2L366->SetBinContent(27,41091.84); h_SL2L366->SetBinContent(28,49505.1); h_SL2L366->SetBinContent(29,51989.8); h_SL2L366->SetBinContent(30,51035.71); h_SL2L366->SetBinContent(31,48403.06); h_SL2L366->SetBinContent(32,48831.63); h_SL2L366->SetBinContent(33,46448.98); h_SL2L366->SetBinContent(34,26596.94); h_SL2L366->SetBinContent(35,7132.653); h_SL2L366->SetBinContent(36,3545.918); h_SL2L366->SetBinContent(37,2719.388); h_SL2L366->SetBinContent(38,2346.939); h_SL2L366->SetBinContent(39,1954.082); h_SL2L366->SetBinContent(40,2122.449); h_SL2L366->SetBinContent(41,1923.469); h_SL2L366->SetBinContent(42,1617.347); h_SL2L366->SetBinContent(43,1362.245); h_SL2L366->SetBinContent(44,1387.755); h_SL2L366->SetBinContent(45,1188.776); h_SL2L366->SetBinContent(46,1178.571); h_SL2L366->SetBinContent(47,994.8979); h_SL2L366->SetBinContent(48,1142.857); h_SL2L366->SetBinContent(49,801.0204); h_SL2L366->SetBinContent(50,790.8163); h_SL2L366->SetBinContent(51,765.3061); h_SL2L366->SetBinContent(52,658.1633); h_SL2L366->SetBinContent(53,688.7755); h_SL2L366->SetBinContent(54,872.449); h_SL2L366->SetBinContent(55,622.449); h_SL2L366->SetBinContent(56,489.7959); h_SL2L366->SetBinContent(57,408.1633); h_SL2L366->SetMaximum(78528.57); 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,724.4898); h_SL2L467->SetBinContent(3,719.3878); h_SL2L467->SetBinContent(4,964.2857); h_SL2L467->SetBinContent(5,790.8163); h_SL2L467->SetBinContent(6,872.449); h_SL2L467->SetBinContent(7,969.3878); h_SL2L467->SetBinContent(8,1025.51); h_SL2L467->SetBinContent(9,1290.816); h_SL2L467->SetBinContent(10,1168.367); h_SL2L467->SetBinContent(11,1255.102); h_SL2L467->SetBinContent(12,1336.735); h_SL2L467->SetBinContent(13,1219.388); h_SL2L467->SetBinContent(14,1479.592); h_SL2L467->SetBinContent(15,1622.449); h_SL2L467->SetBinContent(16,1724.49); h_SL2L467->SetBinContent(17,2071.428); h_SL2L467->SetBinContent(18,1923.469); h_SL2L467->SetBinContent(19,2158.163); h_SL2L467->SetBinContent(20,2122.449); h_SL2L467->SetBinContent(21,2132.653); h_SL2L467->SetBinContent(22,2362.245); h_SL2L467->SetBinContent(23,2448.979); h_SL2L467->SetBinContent(24,2790.816); h_SL2L467->SetBinContent(25,4045.918); h_SL2L467->SetBinContent(26,17250); h_SL2L467->SetBinContent(27,34663.27); h_SL2L467->SetBinContent(28,45841.84); h_SL2L467->SetBinContent(29,51454.08); h_SL2L467->SetBinContent(30,51989.8); h_SL2L467->SetBinContent(31,49346.94); h_SL2L467->SetBinContent(32,48469.39); h_SL2L467->SetBinContent(33,49326.53); h_SL2L467->SetBinContent(34,38994.9); h_SL2L467->SetBinContent(35,14188.78); h_SL2L467->SetBinContent(36,4454.082); h_SL2L467->SetBinContent(37,2877.551); h_SL2L467->SetBinContent(38,2346.939); h_SL2L467->SetBinContent(39,2010.204); h_SL2L467->SetBinContent(40,1750); h_SL2L467->SetBinContent(41,1637.755); h_SL2L467->SetBinContent(42,1790.816); h_SL2L467->SetBinContent(43,1515.306); h_SL2L467->SetBinContent(44,1362.245); h_SL2L467->SetBinContent(45,1147.959); h_SL2L467->SetBinContent(46,1229.592); h_SL2L467->SetBinContent(47,923.4694); h_SL2L467->SetBinContent(48,1081.633); h_SL2L467->SetBinContent(49,943.8776); h_SL2L467->SetBinContent(50,719.3878); h_SL2L467->SetBinContent(51,795.9183); h_SL2L467->SetBinContent(52,795.9183); h_SL2L467->SetBinContent(53,693.8776); h_SL2L467->SetBinContent(54,765.3061); h_SL2L467->SetBinContent(55,719.3878); h_SL2L467->SetBinContent(56,484.6939); h_SL2L467->SetBinContent(57,489.7959); h_SL2L467->SetMaximum(78528.57); 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 6841"); pt->Draw(); c->Modified(); c->cd(); c->SetSelected(c); }