void RatesPerCell_Removing_noisy_cells_run_6799_SL2() { //=========Macro generated from canvas: c/c //========= (Sun Jan 13 16:19:16 2019) by ROOT version6.02/13 TCanvas *c = new TCanvas("c", "c",0,0,800,600); gStyle->SetOptStat(0); c->Range(-7.500001,-8982.507,67.5,80842.56); c->SetFillColor(0); c->SetBorderMode(0); c->SetBorderSize(2); c->SetFrameBorderMode(0); c->SetFrameBorderMode(0); TH1D *h_SL2L164 = new TH1D("h_SL2L164","SL2, run 6799",60,0,60); h_SL2L164->SetBinContent(1,4454.563); h_SL2L164->SetBinContent(2,5490.219); h_SL2L164->SetBinContent(3,6681.846); h_SL2L164->SetBinContent(4,7004.188); h_SL2L164->SetBinContent(5,6650.651); h_SL2L164->SetBinContent(6,6278.397); h_SL2L164->SetBinContent(7,5563.005); h_SL2L164->SetBinContent(8,5689.863); h_SL2L164->SetBinContent(9,6513.396); h_SL2L164->SetBinContent(10,6629.855); h_SL2L164->SetBinContent(11,6989.63); h_SL2L164->SetBinContent(12,6812.862); h_SL2L164->SetBinContent(13,7212.151); h_SL2L164->SetBinContent(14,7014.586); h_SL2L164->SetBinContent(15,6962.595); h_SL2L164->SetBinContent(16,6977.153); h_SL2L164->SetBinContent(17,6742.155); h_SL2L164->SetBinContent(18,6715.12); h_SL2L164->SetBinContent(19,6808.703); h_SL2L164->SetBinContent(20,6290.875); h_SL2L164->SetBinContent(21,6347.025); h_SL2L164->SetBinContent(22,6051.718); h_SL2L164->SetBinContent(23,6236.805); h_SL2L164->SetBinContent(24,6507.157); h_SL2L164->SetBinContent(25,11340.21); h_SL2L164->SetBinContent(26,29349.79); h_SL2L164->SetBinContent(27,43655.55); h_SL2L164->SetBinContent(28,51190.05); h_SL2L164->SetBinContent(29,54336.53); h_SL2L164->SetBinContent(30,52595.88); h_SL2L164->SetBinContent(31,50081.61); h_SL2L164->SetBinContent(32,50308.29); h_SL2L164->SetBinContent(33,16.63703); h_SL2L164->SetBinContent(34,20.79628); h_SL2L164->SetBinContent(36,8.318513); h_SL2L164->SetBinContent(38,2.079628); h_SL2L164->SetBinContent(39,6.238885); h_SL2L164->SetBinContent(49,16.63703); h_SL2L164->SetBinContent(50,12.47777); h_SL2L164->SetBinContent(51,14.5574); h_SL2L164->SetBinContent(52,14.5574); h_SL2L164->SetBinContent(53,2.079628); h_SL2L164->SetBinContent(54,2.079628); h_SL2L164->SetBinContent(56,2.079628); h_SL2L164->SetMaximum(71860.05); 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,3714.216); h_SL2L265->SetBinContent(2,5103.408); h_SL2L265->SetBinContent(3,5768.889); h_SL2L265->SetBinContent(4,6756.712); h_SL2L265->SetBinContent(5,6415.653); h_SL2L265->SetBinContent(6,6259.681); h_SL2L265->SetBinContent(7,6001.807); h_SL2L265->SetBinContent(8,5255.221); h_SL2L265->SetBinContent(9,5914.463); h_SL2L265->SetBinContent(10,6413.573); h_SL2L265->SetBinContent(11,6536.271); h_SL2L265->SetBinContent(12,6567.466); h_SL2L265->SetBinContent(13,6814.942); h_SL2L265->SetBinContent(14,6507.157); h_SL2L265->SetBinContent(15,6748.394); h_SL2L265->SetBinContent(16,6667.288); h_SL2L265->SetBinContent(17,6646.492); h_SL2L265->SetBinContent(18,6534.192); h_SL2L265->SetBinContent(19,6613.218); h_SL2L265->SetBinContent(20,6438.529); h_SL2L265->SetBinContent(21,6122.425); h_SL2L265->SetBinContent(22,5939.418); h_SL2L265->SetBinContent(23,5862.472); h_SL2L265->SetBinContent(24,5949.816); h_SL2L265->SetBinContent(25,6929.321); h_SL2L265->SetBinContent(26,20228.54); h_SL2L265->SetBinContent(27,36967.47); h_SL2L265->SetBinContent(28,47771.14); h_SL2L265->SetBinContent(29,53153.22); h_SL2L265->SetBinContent(30,53641.93); h_SL2L265->SetBinContent(31,50528.73); h_SL2L265->SetBinContent(32,49742.63); h_SL2L265->SetBinContent(33,20.79628); h_SL2L265->SetBinContent(34,6.238885); h_SL2L265->SetBinContent(35,14.5574); h_SL2L265->SetBinContent(36,16.63703); h_SL2L265->SetBinContent(37,2.079628); h_SL2L265->SetBinContent(38,2.079628); h_SL2L265->SetBinContent(39,4.159256); h_SL2L265->SetBinContent(40,6.238885); h_SL2L265->SetBinContent(49,27.03517); h_SL2L265->SetBinContent(50,12.47777); h_SL2L265->SetBinContent(51,14.5574); h_SL2L265->SetBinContent(52,10.39814); h_SL2L265->SetBinContent(56,2.079628); h_SL2L265->SetMaximum(62487.01); 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,4211.247); h_SL2L366->SetBinContent(2,5093.01); h_SL2L366->SetBinContent(3,6340.787); h_SL2L366->SetBinContent(4,6284.637); h_SL2L366->SetBinContent(5,6259.681); h_SL2L366->SetBinContent(6,5841.676); h_SL2L366->SetBinContent(7,5163.717); h_SL2L366->SetBinContent(8,5429.909); h_SL2L366->SetBinContent(9,6033.001); h_SL2L366->SetBinContent(10,6340.787); h_SL2L366->SetBinContent(11,6207.69); h_SL2L366->SetBinContent(12,6513.396); h_SL2L366->SetBinContent(13,6631.935); h_SL2L366->SetBinContent(14,6371.981); h_SL2L366->SetBinContent(15,6582.023); h_SL2L366->SetBinContent(16,6376.14); h_SL2L366->SetBinContent(17,6205.611); h_SL2L366->SetBinContent(18,6453.086); h_SL2L366->SetBinContent(19,6322.07); h_SL2L366->SetBinContent(20,6026.763); h_SL2L366->SetBinContent(21,5901.985); h_SL2L366->SetBinContent(22,5436.148); h_SL2L366->SetBinContent(23,5816.72); h_SL2L366->SetBinContent(24,5945.657); h_SL2L366->SetBinContent(25,11071.94); h_SL2L366->SetBinContent(26,29139.75); h_SL2L366->SetBinContent(27,43349.85); h_SL2L366->SetBinContent(28,51025.76); h_SL2L366->SetBinContent(29,53903.96); h_SL2L366->SetBinContent(30,52142.52); h_SL2L366->SetBinContent(31,49877.8); h_SL2L366->SetBinContent(32,50008.82); h_SL2L366->SetBinContent(33,20.79628); h_SL2L366->SetBinContent(34,18.71665); h_SL2L366->SetBinContent(35,16.63703); h_SL2L366->SetBinContent(36,14.5574); h_SL2L366->SetBinContent(37,2.079628); h_SL2L366->SetBinContent(38,2.079628); h_SL2L366->SetBinContent(39,4.159256); h_SL2L366->SetBinContent(49,12.47777); h_SL2L366->SetBinContent(50,16.63703); h_SL2L366->SetBinContent(51,10.39814); h_SL2L366->SetBinContent(52,4.159256); h_SL2L366->SetBinContent(55,2.079628); h_SL2L366->SetMaximum(62487.01); 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,4947.436); h_SL2L467->SetBinContent(3,5475.661); h_SL2L467->SetBinContent(4,6243.044); h_SL2L467->SetBinContent(5,6232.646); h_SL2L467->SetBinContent(6,5646.19); h_SL2L467->SetBinContent(7,5352.963); h_SL2L467->SetBinContent(8,4695.801); h_SL2L467->SetBinContent(9,5912.383); h_SL2L467->SetBinContent(10,5964.374); h_SL2L467->SetBinContent(11,5933.179); h_SL2L467->SetBinContent(12,6114.107); h_SL2L467->SetBinContent(13,6305.433); h_SL2L467->SetBinContent(14,6317.911); h_SL2L467->SetBinContent(15,6078.753); h_SL2L467->SetBinContent(16,6107.868); h_SL2L467->SetBinContent(17,6078.753); h_SL2L467->SetBinContent(18,5976.852); h_SL2L467->SetBinContent(19,6274.238); h_SL2L467->SetBinContent(20,6005.966); h_SL2L467->SetBinContent(21,5887.428); h_SL2L467->SetBinContent(22,5519.333); h_SL2L467->SetBinContent(23,5587.961); h_SL2L467->SetBinContent(24,5565.085); h_SL2L467->SetBinContent(25,6544.59); h_SL2L467->SetBinContent(26,19912.44); h_SL2L467->SetBinContent(27,36840.61); h_SL2L467->SetBinContent(28,47746.18); h_SL2L467->SetBinContent(29,53132.42); h_SL2L467->SetBinContent(30,53827.02); h_SL2L467->SetBinContent(31,50399.79); h_SL2L467->SetBinContent(32,49626.17); h_SL2L467->SetBinContent(33,22.87591); h_SL2L467->SetBinContent(34,12.47777); h_SL2L467->SetBinContent(35,22.87591); h_SL2L467->SetBinContent(36,27.03517); h_SL2L467->SetBinContent(38,4.159256); h_SL2L467->SetBinContent(40,4.159256); h_SL2L467->SetBinContent(49,10.39814); h_SL2L467->SetBinContent(50,18.71665); h_SL2L467->SetBinContent(51,12.47777); h_SL2L467->SetBinContent(52,22.87591); h_SL2L467->SetMaximum(62487.01); 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 6799"); pt->Draw(); c->Modified(); c->cd(); c->SetSelected(c); }