void RatesPerCell_Removing_noisy_cells_run_6642_SL2() { //=========Macro generated from canvas: c/c //========= (Sun Jan 13 16:06:00 2019) by ROOT version6.02/13 TCanvas *c = new TCanvas("c", "c",0,0,800,600); gStyle->SetOptStat(0); c->Range(-7.500001,-12205.53,67.5,109849.7); c->SetFillColor(0); c->SetBorderMode(0); c->SetBorderSize(2); c->SetFrameBorderMode(0); c->SetFrameBorderMode(0); TH1D *h_SL2L164 = new TH1D("h_SL2L164","SL2, run 6642",60,0,60); h_SL2L164->SetBinContent(1,8566.313); h_SL2L164->SetBinContent(2,10287.37); h_SL2L164->SetBinContent(3,12503.43); h_SL2L164->SetBinContent(4,13168.01); h_SL2L164->SetBinContent(5,12728.01); h_SL2L164->SetBinContent(6,11793); h_SL2L164->SetBinContent(7,10624.25); h_SL2L164->SetBinContent(8,10612.79); h_SL2L164->SetBinContent(9,12255.92); h_SL2L164->SetBinContent(10,12233.01); h_SL2L164->SetBinContent(11,12480.51); h_SL2L164->SetBinContent(12,12155.09); h_SL2L164->SetBinContent(13,12508.01); h_SL2L164->SetBinContent(14,12084.05); h_SL2L164->SetBinContent(15,12109.26); h_SL2L164->SetBinContent(16,11710.5); h_SL2L164->SetBinContent(17,11653.21); h_SL2L164->SetBinContent(18,11786.13); h_SL2L164->SetBinContent(19,11426.33); h_SL2L164->SetBinContent(20,10825.91); h_SL2L164->SetBinContent(21,10200.28); h_SL2L164->SetBinContent(22,9737.364); h_SL2L164->SetBinContent(23,9810.698); h_SL2L164->SetBinContent(24,9338.611); h_SL2L164->SetBinContent(25,14155.73); h_SL2L164->SetBinContent(26,31712.32); h_SL2L164->SetBinContent(27,45790.13); h_SL2L164->SetBinContent(28,54056.23); h_SL2L164->SetBinContent(29,57596.89); h_SL2L164->SetBinContent(30,55600.83); h_SL2L164->SetBinContent(31,53657.48); h_SL2L164->SetBinContent(32,53414.56); h_SL2L164->SetBinContent(33,51599.55); h_SL2L164->SetBinContent(34,31852.11); h_SL2L164->SetBinContent(35,2.291684); h_SL2L164->SetBinContent(36,7539.639); h_SL2L164->SetBinContent(37,8396.729); h_SL2L164->SetBinContent(38,7370.055); h_SL2L164->SetBinContent(39,7709.224); h_SL2L164->SetBinContent(40,73833.46); h_SL2L164->SetBinContent(41,47149.1); h_SL2L164->SetBinContent(42,11935.09); h_SL2L164->SetBinContent(43,11900.71); h_SL2L164->SetBinContent(44,11859.46); h_SL2L164->SetBinContent(45,4917.953); h_SL2L164->SetBinContent(46,4620.034); h_SL2L164->SetBinContent(47,4794.202); h_SL2L164->SetBinContent(48,4670.451); h_SL2L164->SetBinContent(49,4851.494); h_SL2L164->SetBinContent(50,4544.409); h_SL2L164->SetBinContent(51,4617.743); h_SL2L164->SetBinContent(52,5286.914); h_SL2L164->SetBinContent(53,5502.333); h_SL2L164->SetBinContent(54,6017.961); h_SL2L164->SetBinContent(55,5905.669); h_SL2L164->SetBinContent(56,5188.372); h_SL2L164->SetBinContent(57,11293.42); h_SL2L164->SetMaximum(97644.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,6824.634); h_SL2L265->SetBinContent(2,10129.24); h_SL2L265->SetBinContent(3,10896.96); h_SL2L265->SetBinContent(4,12297.17); h_SL2L265->SetBinContent(5,12414.05); h_SL2L265->SetBinContent(6,12056.55); h_SL2L265->SetBinContent(7,10922.16); h_SL2L265->SetBinContent(8,9886.323); h_SL2L265->SetBinContent(9,11130.71); h_SL2L265->SetBinContent(10,11758.63); h_SL2L265->SetBinContent(11,12058.84); h_SL2L265->SetBinContent(12,11845.71); h_SL2L265->SetBinContent(13,11935.09); h_SL2L265->SetBinContent(14,12123.01); h_SL2L265->SetBinContent(15,11614.25); h_SL2L265->SetBinContent(16,11731.13); h_SL2L265->SetBinContent(17,11123.83); h_SL2L265->SetBinContent(18,11433.21); h_SL2L265->SetBinContent(19,11197.17); h_SL2L265->SetBinContent(20,10906.12); h_SL2L265->SetBinContent(21,10046.74); h_SL2L265->SetBinContent(22,9444.028); h_SL2L265->SetBinContent(23,9262.985); h_SL2L265->SetBinContent(24,9531.112); h_SL2L265->SetBinContent(25,9904.657); h_SL2L265->SetBinContent(26,22403.5); h_SL2L265->SetBinContent(27,38905.91); h_SL2L265->SetBinContent(28,50439.96); h_SL2L265->SetBinContent(29,55788.75); h_SL2L265->SetBinContent(30,56588.55); h_SL2L265->SetBinContent(31,53471.86); h_SL2L265->SetBinContent(32,53057.06); h_SL2L265->SetBinContent(33,53176.23); h_SL2L265->SetBinContent(34,44706.16); h_SL2L265->SetBinContent(35,18420.55); h_SL2L265->SetBinContent(36,8431.104); h_SL2L265->SetBinContent(37,6978.177); h_SL2L265->SetBinContent(38,6350.255); h_SL2L265->SetBinContent(39,6508.382); h_SL2L265->SetBinContent(40,7475.472); h_SL2L265->SetBinContent(41,6749.008); h_SL2L265->SetBinContent(42,6911.718); h_SL2L265->SetBinContent(43,5878.168); h_SL2L265->SetBinContent(44,6341.089); h_SL2L265->SetBinContent(45,4764.41); h_SL2L265->SetBinContent(46,4500.867); h_SL2L265->SetBinContent(47,4615.451); h_SL2L265->SetBinContent(48,4374.824); h_SL2L265->SetBinContent(49,4477.95); h_SL2L265->SetBinContent(50,4475.658); h_SL2L265->SetBinContent(51,4276.282); h_SL2L265->SetBinContent(52,4846.911); h_SL2L265->SetBinContent(53,5192.955); h_SL2L265->SetBinContent(54,5605.458); h_SL2L265->SetBinContent(55,5882.752); h_SL2L265->SetBinContent(56,5204.414); h_SL2L265->SetBinContent(57,4904.203); h_SL2L265->SetMaximum(84908.48); 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,8289.02); h_SL2L366->SetBinContent(2,9657.155); h_SL2L366->SetBinContent(3,12022.17); h_SL2L366->SetBinContent(4,12356.76); h_SL2L366->SetBinContent(5,11451.54); h_SL2L366->SetBinContent(6,11169.67); h_SL2L366->SetBinContent(7,10142.99); h_SL2L366->SetBinContent(8,9902.365); h_SL2L366->SetBinContent(9,11261.33); h_SL2L366->SetBinContent(10,11788.42); h_SL2L366->SetBinContent(11,11676.13); h_SL2L366->SetBinContent(12,11662.38); h_SL2L366->SetBinContent(13,11600.5); h_SL2L366->SetBinContent(14,11508.83); h_SL2L366->SetBinContent(15,11277.38); h_SL2L366->SetBinContent(16,11071.12); h_SL2L366->SetBinContent(17,10874.04); h_SL2L366->SetBinContent(18,10876.33); h_SL2L366->SetBinContent(19,10367.58); h_SL2L366->SetBinContent(20,9819.864); h_SL2L366->SetBinContent(21,9693.822); h_SL2L366->SetBinContent(22,8912.357); h_SL2L366->SetBinContent(23,8912.357); h_SL2L366->SetBinContent(24,8967.358); h_SL2L366->SetBinContent(25,13385.72); h_SL2L366->SetBinContent(26,31233.36); h_SL2L366->SetBinContent(27,45439.5); h_SL2L366->SetBinContent(28,53561.23); h_SL2L366->SetBinContent(29,56515.21); h_SL2L366->SetBinContent(30,54709.36); h_SL2L366->SetBinContent(31,53451.23); h_SL2L366->SetBinContent(32,53089.14); h_SL2L366->SetBinContent(33,51024.34); h_SL2L366->SetBinContent(34,31416.69); h_SL2L366->SetBinContent(35,10555.5); h_SL2L366->SetBinContent(36,7250.887); h_SL2L366->SetBinContent(37,6416.714); h_SL2L366->SetBinContent(38,5995.044); h_SL2L366->SetBinContent(39,5768.168); h_SL2L366->SetBinContent(40,5649); h_SL2L366->SetBinContent(41,5708.584); h_SL2L366->SetBinContent(42,5018.787); h_SL2L366->SetBinContent(43,4982.12); h_SL2L366->SetBinContent(44,4892.745); h_SL2L366->SetBinContent(45,4571.909); h_SL2L366->SetBinContent(46,4154.822); h_SL2L366->SetBinContent(47,4503.158); h_SL2L366->SetBinContent(48,4445.866); h_SL2L366->SetBinContent(49,4471.075); h_SL2L366->SetBinContent(50,4200.656); h_SL2L366->SetBinContent(51,4244.198); h_SL2L366->SetBinContent(52,4933.995); h_SL2L366->SetBinContent(53,5170.039); h_SL2L366->SetBinContent(54,5575.667); h_SL2L366->SetBinContent(55,5685.667); h_SL2L366->SetBinContent(56,4840.036); h_SL2L366->SetBinContent(57,4652.118); h_SL2L366->SetMaximum(84908.48); 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,9572.362); h_SL2L467->SetBinContent(3,10252.99); h_SL2L467->SetBinContent(4,11589.04); h_SL2L467->SetBinContent(5,11815.92); h_SL2L467->SetBinContent(6,11059.67); h_SL2L467->SetBinContent(7,10106.33); h_SL2L467->SetBinContent(8,9230.901); h_SL2L467->SetBinContent(9,10670.08); h_SL2L467->SetBinContent(10,10949.67); h_SL2L467->SetBinContent(11,11284.25); h_SL2L467->SetBinContent(12,10917.58); h_SL2L467->SetBinContent(13,11089.46); h_SL2L467->SetBinContent(14,10922.16); h_SL2L467->SetBinContent(15,11343.83); h_SL2L467->SetBinContent(16,10672.37); h_SL2L467->SetBinContent(17,10310.29); h_SL2L467->SetBinContent(18,10411.12); h_SL2L467->SetBinContent(19,10468.41); h_SL2L467->SetBinContent(20,10037.57); h_SL2L467->SetBinContent(21,9462.362); h_SL2L467->SetBinContent(22,8946.733); h_SL2L467->SetBinContent(23,8692.356); h_SL2L467->SetBinContent(24,8488.396); h_SL2L467->SetBinContent(25,9292.777); h_SL2L467->SetBinContent(26,21954.33); h_SL2L467->SetBinContent(27,39121.33); h_SL2L467->SetBinContent(28,50052.66); h_SL2L467->SetBinContent(29,55603.12); h_SL2L467->SetBinContent(30,56801.67); h_SL2L467->SetBinContent(31,53497.06); h_SL2L467->SetBinContent(32,53041.02); h_SL2L467->SetBinContent(33,53050.18); h_SL2L467->SetBinContent(34,44130.95); h_SL2L467->SetBinContent(35,18030.97); h_SL2L467->SetBinContent(36,8114.852); h_SL2L467->SetBinContent(37,6577.132); h_SL2L467->SetBinContent(38,5981.294); h_SL2L467->SetBinContent(39,5740.667); h_SL2L467->SetBinContent(40,5445.041); h_SL2L467->SetBinContent(41,5046.288); h_SL2L467->SetBinContent(42,5277.748); h_SL2L467->SetBinContent(43,4801.077); h_SL2L467->SetBinContent(44,4629.201); h_SL2L467->SetBinContent(45,4326.699); h_SL2L467->SetBinContent(46,4335.866); h_SL2L467->SetBinContent(47,4507.742); h_SL2L467->SetBinContent(48,4141.072); h_SL2L467->SetBinContent(49,4331.282); h_SL2L467->SetBinContent(50,4475.658); h_SL2L467->SetBinContent(51,3987.53); h_SL2L467->SetBinContent(52,4301.49); h_SL2L467->SetBinContent(53,4762.119); h_SL2L467->SetBinContent(54,4966.079); h_SL2L467->SetBinContent(55,5284.623); h_SL2L467->SetBinContent(56,4835.453); h_SL2L467->SetBinContent(57,4340.449); h_SL2L467->SetMaximum(84908.48); 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.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("SL2, run 6642"); pt->Draw(); c->Modified(); c->cd(); c->SetSelected(c); }