void RatesPerCell_Removing_noisy_cells_run_6789_SL1() { //=========Macro generated from canvas: c/c //========= (Sun Jan 13 16:10:46 2019) by ROOT version6.02/13 TCanvas *c = new TCanvas("c", "c",0,0,800,600); gStyle->SetOptStat(0); c->Range(-7.500001,-11949.36,67.5,107544.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 6789",60,0,60); h_SL1L160->SetBinContent(1,5103.483); h_SL1L160->SetBinContent(2,4877.203); h_SL1L160->SetBinContent(3,5065.189); h_SL1L160->SetBinContent(4,4800.616); h_SL1L160->SetBinContent(5,4838.91); h_SL1L160->SetBinContent(6,5246.214); h_SL1L160->SetBinContent(7,5235.77); h_SL1L160->SetBinContent(8,5006.009); h_SL1L160->SetBinContent(9,4595.224); h_SL1L160->SetBinContent(10,4567.374); h_SL1L160->SetBinContent(11,4355.019); h_SL1L160->SetBinContent(12,4863.278); h_SL1L160->SetBinContent(13,5068.671); h_SL1L160->SetBinContent(14,4678.773); h_SL1L160->SetBinContent(15,4765.804); h_SL1L160->SetBinContent(16,4504.711); h_SL1L160->SetBinContent(17,4786.691); h_SL1L160->SetBinContent(18,5329.763); h_SL1L160->SetBinContent(19,5764.917); h_SL1L160->SetBinContent(20,5730.104); h_SL1L160->SetBinContent(21,5883.279); h_SL1L160->SetBinContent(22,6022.528); h_SL1L160->SetBinContent(23,6158.296); h_SL1L160->SetBinContent(24,5935.497); h_SL1L160->SetBinContent(25,6297.545); h_SL1L160->SetBinContent(26,5785.804); h_SL1L160->SetBinContent(27,6234.883); h_SL1L160->SetBinContent(28,7105.19); h_SL1L160->SetBinContent(29,6711.812); h_SL1L160->SetBinContent(30,7331.47); h_SL1L160->SetBinContent(31,8156.522); h_SL1L160->SetBinContent(32,11226.97); h_SL1L160->SetBinContent(33,36065.54); h_SL1L160->SetBinContent(34,52636.2); h_SL1L160->SetBinContent(35,57610.88); h_SL1L160->SetBinContent(36,60180.02); h_SL1L160->SetBinContent(37,64026.78); h_SL1L160->SetBinContent(38,59501.18); h_SL1L160->SetBinContent(39,38474.55); h_SL1L160->SetBinContent(40,11822.26); h_SL1L160->SetBinContent(41,8253.996); h_SL1L160->SetBinContent(42,7070.378); h_SL1L160->SetBinContent(43,6795.361); h_SL1L160->SetBinContent(44,6652.63); h_SL1L160->SetBinContent(45,5942.459); h_SL1L160->SetBinContent(46,5301.913); h_SL1L160->SetBinContent(47,5448.125); h_SL1L160->SetBinContent(48,5068.671); h_SL1L160->SetBinContent(49,5072.152); h_SL1L160->SetBinContent(50,4953.791); h_SL1L160->SetBinContent(51,4675.292); h_SL1L160->SetBinContent(52,4543.005); h_SL1L160->SetBinContent(53,4741.435); h_SL1L160->SetBinContent(54,4316.725); h_SL1L160->SetBinContent(55,4588.261); h_SL1L160->SetBinContent(56,4609.148); h_SL1L160->SetBinContent(57,4762.323); h_SL1L160->SetBinContent(58,4525.599); h_SL1L160->SetBinContent(59,4650.923); h_SL1L160->SetMaximum(95594.9); 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,4974.678); h_SL1L261->SetBinContent(2,4616.111); h_SL1L261->SetBinContent(3,4818.022); h_SL1L261->SetBinContent(4,4863.278); h_SL1L261->SetBinContent(5,4891.128); h_SL1L261->SetBinContent(6,5294.951); h_SL1L261->SetBinContent(7,4842.391); h_SL1L261->SetBinContent(8,5301.913); h_SL1L261->SetBinContent(9,4988.603); h_SL1L261->SetBinContent(10,4424.644); h_SL1L261->SetBinContent(11,4428.125); h_SL1L261->SetBinContent(12,4755.36); h_SL1L261->SetBinContent(13,5002.527); h_SL1L261->SetBinContent(14,5113.927); h_SL1L261->SetBinContent(15,5117.408); h_SL1L261->SetBinContent(16,5065.189); h_SL1L261->SetBinContent(17,5033.858); h_SL1L261->SetBinContent(18,5507.306); h_SL1L261->SetBinContent(19,5869.354); h_SL1L261->SetBinContent(20,5796.248); h_SL1L261->SetBinContent(21,6287.102); h_SL1L261->SetBinContent(22,6381.095); h_SL1L261->SetBinContent(23,6419.388); h_SL1L261->SetBinContent(24,6485.532); h_SL1L261->SetBinContent(25,6777.955); h_SL1L261->SetBinContent(26,6576.043); h_SL1L261->SetBinContent(27,6753.586); h_SL1L261->SetBinContent(28,7609.969); h_SL1L261->SetBinContent(29,7829.286); h_SL1L261->SetBinContent(30,7909.354); h_SL1L261->SetBinContent(31,8570.788); h_SL1L261->SetBinContent(32,11181.71); h_SL1L261->SetBinContent(33,23352.09); h_SL1L261->SetBinContent(34,55003.43); h_SL1L261->SetBinContent(35,63132.11); h_SL1L261->SetBinContent(36,67010.2); h_SL1L261->SetBinContent(37,72193.75); h_SL1L261->SetBinContent(38,70320.84); h_SL1L261->SetBinContent(39,58651.76); h_SL1L261->SetBinContent(40,22321.65); h_SL1L261->SetBinContent(41,11585.53); h_SL1L261->SetBinContent(42,8271.402); h_SL1L261->SetBinContent(43,7864.099); h_SL1L261->SetBinContent(44,7143.484); h_SL1L261->SetBinContent(45,6687.443); h_SL1L261->SetBinContent(46,6687.443); h_SL1L261->SetBinContent(47,6659.593); h_SL1L261->SetBinContent(48,6102.596); h_SL1L261->SetBinContent(49,11529.83); h_SL1L261->SetBinContent(50,5566.487); h_SL1L261->SetBinContent(51,5388.944); h_SL1L261->SetBinContent(52,5113.927); h_SL1L261->SetBinContent(53,5350.65); h_SL1L261->SetBinContent(54,5180.07); h_SL1L261->SetBinContent(55,5159.183); h_SL1L261->SetBinContent(56,6965.941); h_SL1L261->SetBinContent(57,4946.828); h_SL1L261->SetBinContent(58,4929.422); h_SL1L261->SetBinContent(59,4605.667); h_SL1L261->SetMaximum(83126.9); 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,4595.224); h_SL1L362->SetBinContent(2,4713.585); h_SL1L362->SetBinContent(3,4769.285); h_SL1L362->SetBinContent(4,4630.036); h_SL1L362->SetBinContent(5,5127.852); h_SL1L362->SetBinContent(6,4936.384); h_SL1L362->SetBinContent(7,4849.354); h_SL1L362->SetBinContent(8,5058.227); h_SL1L362->SetBinContent(9,4598.705); h_SL1L362->SetBinContent(10,4574.336); h_SL1L362->SetBinContent(11,4226.213); h_SL1L362->SetBinContent(12,4389.831); h_SL1L362->SetBinContent(13,4905.053); h_SL1L362->SetBinContent(14,5026.896); h_SL1L362->SetBinContent(15,4783.21); h_SL1L362->SetBinContent(16,4619.592); h_SL1L362->SetBinContent(17,5131.333); h_SL1L362->SetBinContent(18,5357.613); h_SL1L362->SetBinContent(19,5218.364); h_SL1L362->SetBinContent(20,5636.111); h_SL1L362->SetBinContent(21,6179.183); h_SL1L362->SetBinContent(22,5998.159); h_SL1L362->SetBinContent(23,6200.071); h_SL1L362->SetBinContent(24,6642.187); h_SL1L362->SetBinContent(25,6541.231); h_SL1L362->SetBinContent(26,6325.395); h_SL1L362->SetBinContent(27,6447.238); h_SL1L362->SetBinContent(28,7265.327); h_SL1L362->SetBinContent(29,7206.146); h_SL1L362->SetBinContent(30,7878.023); h_SL1L362->SetBinContent(31,8936.317); h_SL1L362->SetBinContent(32,12817.89); h_SL1L362->SetBinContent(33,41990.6); h_SL1L362->SetBinContent(34,60033.81); h_SL1L362->SetBinContent(35,65224.32); h_SL1L362->SetBinContent(36,69882.21); h_SL1L362->SetBinContent(37,72284.26); h_SL1L362->SetBinContent(38,65415.79); h_SL1L362->SetBinContent(39,42589.37); h_SL1L362->SetBinContent(40,13270.45); h_SL1L362->SetBinContent(41,8981.573); h_SL1L362->SetBinContent(42,7703.962); h_SL1L362->SetBinContent(43,7300.139); h_SL1L362->SetBinContent(44,6697.887); h_SL1L362->SetBinContent(45,6527.306); h_SL1L362->SetBinContent(46,6001.641); h_SL1L362->SetBinContent(47,6095.634); h_SL1L362->SetBinContent(48,5656.999); h_SL1L362->SetBinContent(49,5462.05); h_SL1L362->SetBinContent(50,5287.988); h_SL1L362->SetBinContent(51,5037.34); h_SL1L362->SetBinContent(52,5141.777); h_SL1L362->SetBinContent(53,6290.583); h_SL1L362->SetBinContent(54,4758.841); h_SL1L362->SetBinContent(55,4811.06); h_SL1L362->SetBinContent(56,6851.061); h_SL1L362->SetBinContent(57,5006.009); h_SL1L362->SetBinContent(58,4661.367); h_SL1L362->SetBinContent(59,4529.08); h_SL1L362->SetMaximum(83126.9); 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,3693.585); h_SL1L463->SetBinContent(3,3620.479); h_SL1L463->SetBinContent(4,3425.53); h_SL1L463->SetBinContent(5,3474.268); h_SL1L463->SetBinContent(6,3592.629); h_SL1L463->SetBinContent(7,3613.517); h_SL1L463->SetBinContent(8,3749.285); h_SL1L463->SetBinContent(9,3717.954); h_SL1L463->SetBinContent(10,3435.974); h_SL1L463->SetBinContent(11,3533.448); h_SL1L463->SetBinContent(12,3463.824); h_SL1L463->SetBinContent(13,4100.889); h_SL1L463->SetBinContent(14,4031.264); h_SL1L463->SetBinContent(15,4006.896); h_SL1L463->SetBinContent(16,3815.428); h_SL1L463->SetBinContent(17,3348.943); h_SL1L463->SetBinContent(18,3700.548); h_SL1L463->SetBinContent(19,3763.21); h_SL1L463->SetBinContent(20,4052.152); h_SL1L463->SetBinContent(21,3756.247); h_SL1L463->SetBinContent(22,3850.24); h_SL1L463->SetBinContent(23,4149.626); h_SL1L463->SetBinContent(24,4247.101); h_SL1L463->SetBinContent(25,3839.797); h_SL1L463->SetBinContent(26,4208.807); h_SL1L463->SetBinContent(27,4177.476); h_SL1L463->SetBinContent(28,4306.282); h_SL1L463->SetBinContent(29,4313.244); h_SL1L463->SetBinContent(30,4330.65); h_SL1L463->SetBinContent(31,4880.685); h_SL1L463->SetBinContent(32,5952.903); h_SL1L463->SetBinContent(33,10777.89); h_SL1L463->SetBinContent(34,33103.02); h_SL1L463->SetBinContent(35,43073.26); h_SL1L463->SetBinContent(36,42352.64); h_SL1L463->SetBinContent(37,39804.38); h_SL1L463->SetBinContent(38,42989.71); h_SL1L463->SetBinContent(39,40831.35); h_SL1L463->SetBinContent(40,12953.66); h_SL1L463->SetBinContent(41,7032.084); h_SL1L463->SetBinContent(42,5044.302); h_SL1L463->SetBinContent(43,4863.278); h_SL1L463->SetBinContent(44,4546.486); h_SL1L463->SetBinContent(45,3825.872); h_SL1L463->SetBinContent(46,4139.183); h_SL1L463->SetBinContent(47,3773.653); h_SL1L463->SetBinContent(48,3362.868); h_SL1L463->SetBinContent(49,3143.551); h_SL1L463->SetBinContent(50,3202.732); h_SL1L463->SetBinContent(51,3032.151); h_SL1L463->SetBinContent(52,2798.909); h_SL1L463->SetBinContent(53,2784.984); h_SL1L463->SetBinContent(54,2819.796); h_SL1L463->SetBinContent(56,2878.977); h_SL1L463->SetBinContent(57,2764.097); h_SL1L463->SetBinContent(58,3171.401); h_SL1L463->SetBinContent(59,3244.506); h_SL1L463->SetMaximum(83126.9); 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 6789"); pt->Draw(); c->Modified(); c->cd(); c->SetSelected(c); }