void RatesPerCell_Removing_noisy_cells_run_7054_SL1() { //=========Macro generated from canvas: c/c //========= (Fri Jan 18 19:08:20 2019) by ROOT version6.02/13 TCanvas *c = new TCanvas("c", "c",0,0,800,600); gStyle->SetOptStat(0); c->Range(-7.500001,-2263.775,67.5,20373.98); c->SetFillColor(0); c->SetBorderMode(0); c->SetBorderSize(2); c->SetFrameBorderMode(0); c->SetFrameBorderMode(0); TH1D *h_SL1L160 = new TH1D("h_SL1L160","SL1, run 7054",60,0,60); h_SL1L160->SetBinContent(1,3170.459); h_SL1L160->SetBinContent(2,3250.386); h_SL1L160->SetBinContent(3,3703.309); h_SL1L160->SetBinContent(4,4236.159); h_SL1L160->SetBinContent(5,4982.149); h_SL1L160->SetBinContent(6,5355.145); h_SL1L160->SetBinContent(7,4396.014); h_SL1L160->SetBinContent(8,5381.787); h_SL1L160->SetBinContent(9,5808.067); h_SL1L160->SetBinContent(10,5301.86); h_SL1L160->SetBinContent(11,5035.435); h_SL1L160->SetBinContent(12,4955.507); h_SL1L160->SetBinContent(13,9458.092); h_SL1L160->SetBinContent(14,10657); h_SL1L160->SetBinContent(15,10363.94); h_SL1L160->SetBinContent(16,5515); h_SL1L160->SetBinContent(17,6287.633); h_SL1L160->SetBinContent(18,6260.99); h_SL1L160->SetBinContent(19,5275.217); h_SL1L160->SetBinContent(20,5887.995); h_SL1L160->SetBinContent(21,6420.845); h_SL1L160->SetBinContent(22,5808.067); h_SL1L160->SetBinContent(23,6074.493); h_SL1L160->SetBinContent(24,5568.285); h_SL1L160->SetBinContent(25,6394.203); h_SL1L160->SetBinContent(26,6314.275); h_SL1L160->SetBinContent(27,5381.787); h_SL1L160->SetBinContent(28,5142.005); h_SL1L160->SetBinContent(29,6554.058); h_SL1L160->SetBinContent(30,6687.271); h_SL1L160->SetBinContent(31,4609.154); h_SL1L160->SetBinContent(32,6234.348); h_SL1L160->SetBinContent(49,4902.222); h_SL1L160->SetBinContent(50,5568.285); h_SL1L160->SetBinContent(51,4848.937); h_SL1L160->SetBinContent(52,5941.28); h_SL1L160->SetBinContent(53,5142.005); h_SL1L160->SetBinContent(54,4982.149); h_SL1L160->SetBinContent(55,4129.589); h_SL1L160->SetBinContent(56,4156.232); h_SL1L160->SetMaximum(18110.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,1332.126); h_SL1L261->SetBinContent(2,1678.478); h_SL1L261->SetBinContent(3,2078.116); h_SL1L261->SetBinContent(4,2158.043); h_SL1L261->SetBinContent(5,1545.266); h_SL1L261->SetBinContent(6,1944.903); h_SL1L261->SetBinContent(7,2131.401); h_SL1L261->SetBinContent(8,1944.903); h_SL1L261->SetBinContent(9,5674.855); h_SL1L261->SetBinContent(10,1785.048); h_SL1L261->SetBinContent(11,2211.328); h_SL1L261->SetBinContent(12,2504.396); h_SL1L261->SetBinContent(13,2690.894); h_SL1L261->SetBinContent(14,2690.894); h_SL1L261->SetBinContent(15,3090.531); h_SL1L261->SetBinContent(16,2637.609); h_SL1L261->SetBinContent(17,2184.686); h_SL1L261->SetBinContent(18,2744.179); h_SL1L261->SetBinContent(19,2264.614); h_SL1L261->SetBinContent(20,2051.473); h_SL1L261->SetBinContent(21,3197.101); h_SL1L261->SetBinContent(22,2531.039); h_SL1L261->SetBinContent(23,2451.111); h_SL1L261->SetBinContent(24,2237.971); h_SL1L261->SetBinContent(25,2717.536); h_SL1L261->SetBinContent(26,2930.676); h_SL1L261->SetBinContent(27,2264.614); h_SL1L261->SetBinContent(28,2477.754); h_SL1L261->SetBinContent(29,2317.898); h_SL1L261->SetBinContent(30,3010.604); h_SL1L261->SetBinContent(31,2610.966); h_SL1L261->SetBinContent(32,2557.681); h_SL1L261->SetBinContent(49,2451.111); h_SL1L261->SetBinContent(50,2344.541); h_SL1L261->SetBinContent(51,2078.116); h_SL1L261->SetBinContent(52,2291.256); h_SL1L261->SetBinContent(53,2237.971); h_SL1L261->SetBinContent(54,2371.184); h_SL1L261->SetBinContent(55,1758.406); h_SL1L261->SetBinContent(56,2397.826); h_SL1L261->SetMaximum(15748.39); 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,2957.319); h_SL1L362->SetBinContent(2,3596.739); h_SL1L362->SetBinContent(3,3756.594); h_SL1L362->SetBinContent(4,5168.647); h_SL1L362->SetBinContent(5,5941.28); h_SL1L362->SetBinContent(6,6021.208); h_SL1L362->SetBinContent(7,5515); h_SL1L362->SetBinContent(8,6500.773); h_SL1L362->SetBinContent(9,7406.618); h_SL1L362->SetBinContent(10,6287.633); h_SL1L362->SetBinContent(11,6234.348); h_SL1L362->SetBinContent(12,6154.42); h_SL1L362->SetBinContent(13,6847.125); h_SL1L362->SetBinContent(14,7566.473); h_SL1L362->SetBinContent(15,9431.449); h_SL1L362->SetBinContent(16,7220.121); h_SL1L362->SetBinContent(17,7166.835); h_SL1L362->SetBinContent(18,6847.125); h_SL1L362->SetBinContent(19,6474.13); h_SL1L362->SetBinContent(20,6394.203); h_SL1L362->SetBinContent(21,7593.116); h_SL1L362->SetBinContent(22,6820.483); h_SL1L362->SetBinContent(23,6660.628); h_SL1L362->SetBinContent(24,7140.193); h_SL1L362->SetBinContent(25,7033.623); h_SL1L362->SetBinContent(26,6687.271); h_SL1L362->SetBinContent(27,6474.13); h_SL1L362->SetBinContent(28,7300.048); h_SL1L362->SetBinContent(29,7273.406); h_SL1L362->SetBinContent(30,6953.695); h_SL1L362->SetBinContent(31,6101.135); h_SL1L362->SetBinContent(32,7086.908); h_SL1L362->SetBinContent(49,6260.99); h_SL1L362->SetBinContent(50,4875.58); h_SL1L362->SetBinContent(51,5701.498); h_SL1L362->SetBinContent(52,6021.208); h_SL1L362->SetBinContent(53,6234.348); h_SL1L362->SetBinContent(54,6367.56); h_SL1L362->SetBinContent(55,4822.294); h_SL1L362->SetBinContent(56,4529.227); h_SL1L362->SetMaximum(15748.39); 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,3596.739); h_SL1L463->SetBinContent(3,3996.377); h_SL1L463->SetBinContent(4,4023.019); h_SL1L463->SetBinContent(5,5621.57); h_SL1L463->SetBinContent(6,6101.135); h_SL1L463->SetBinContent(7,5648.212); h_SL1L463->SetBinContent(8,4848.937); h_SL1L463->SetBinContent(9,7033.623); h_SL1L463->SetBinContent(10,5914.638); h_SL1L463->SetBinContent(11,5754.782); h_SL1L463->SetBinContent(12,5834.71); h_SL1L463->SetBinContent(13,6260.99); h_SL1L463->SetBinContent(14,13694.25); h_SL1L463->SetBinContent(15,11136.57); h_SL1L463->SetBinContent(16,10683.65); h_SL1L463->SetBinContent(17,6927.053); h_SL1L463->SetBinContent(18,6687.271); h_SL1L463->SetBinContent(19,6500.773); h_SL1L463->SetBinContent(20,5834.71); h_SL1L463->SetBinContent(21,7300.048); h_SL1L463->SetBinContent(22,7033.623); h_SL1L463->SetBinContent(23,5994.565); h_SL1L463->SetBinContent(24,6500.773); h_SL1L463->SetBinContent(25,5994.565); h_SL1L463->SetBinContent(26,6927.053); h_SL1L463->SetBinContent(27,6420.845); h_SL1L463->SetBinContent(28,6367.56); h_SL1L463->SetBinContent(29,6660.628); h_SL1L463->SetBinContent(30,6580.7); h_SL1L463->SetBinContent(31,6713.913); h_SL1L463->SetBinContent(32,5914.638); h_SL1L463->SetBinContent(49,4769.01); h_SL1L463->SetBinContent(50,5435.072); h_SL1L463->SetBinContent(51,4609.154); h_SL1L463->SetBinContent(52,5408.43); h_SL1L463->SetBinContent(53,5381.787); h_SL1L463->SetBinContent(54,6021.208); h_SL1L463->SetBinContent(56,5488.357); h_SL1L463->SetMaximum(15748.39); 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 7054"); pt->Draw(); c->Modified(); c->cd(); c->SetSelected(c); }