void RatesPerCell_Removing_noisy_cells_run_5708_SL2() { //=========Macro generated from canvas: c/c //========= (Sun Jan 13 14:54:13 2019) by ROOT version6.02/13 TCanvas *c = new TCanvas("c", "c",0,0,800,600); gStyle->SetOptStat(0); c->Range(-7.500001,-26505.35,67.5,238548.1); c->SetFillColor(0); c->SetBorderMode(0); c->SetBorderSize(2); c->SetFrameBorderMode(0); c->SetFrameBorderMode(0); TH1D *h_SL2L164 = new TH1D("h_SL2L164","SL2, run 5708",60,0,60); h_SL2L164->SetBinContent(1,4616.971); h_SL2L164->SetBinContent(2,160334.8); h_SL2L164->SetBinContent(3,7096.773); h_SL2L164->SetBinContent(4,7859.13); h_SL2L164->SetBinContent(5,8510.132); h_SL2L164->SetBinContent(6,8775.672); h_SL2L164->SetBinContent(7,8724.276); h_SL2L164->SetBinContent(8,8801.369); h_SL2L164->SetBinContent(9,8724.276); h_SL2L164->SetBinContent(10,9606.555); h_SL2L164->SetBinContent(11,9765.022); h_SL2L164->SetBinContent(12,9400.976); h_SL2L164->SetBinContent(13,9473.785); h_SL2L164->SetBinContent(14,9520.897); h_SL2L164->SetBinContent(15,8702.862); h_SL2L164->SetBinContent(16,8848.48); h_SL2L164->SetBinContent(17,9161.133); h_SL2L164->SetBinContent(18,9199.679); h_SL2L164->SetBinContent(19,9405.259); h_SL2L164->SetBinContent(20,8968.402); h_SL2L164->SetBinContent(21,9242.508); h_SL2L164->SetBinContent(22,8938.422); h_SL2L164->SetBinContent(23,9152.567); h_SL2L164->SetBinContent(24,9289.62); h_SL2L164->SetBinContent(25,9460.937); h_SL2L164->SetBinContent(26,9499.482); h_SL2L164->SetBinContent(27,9285.337); h_SL2L164->SetBinContent(28,9709.345); h_SL2L164->SetBinContent(29,9550.877); h_SL2L164->SetBinContent(30,9315.317); h_SL2L164->SetBinContent(31,9118.304); h_SL2L164->SetBinContent(32,9538.028); h_SL2L164->SetBinContent(33,9075.475); h_SL2L164->SetBinContent(34,9405.259); h_SL2L164->SetBinContent(35,111.3555); h_SL2L164->SetBinContent(36,9829.267); h_SL2L164->SetBinContent(37,8946.987); h_SL2L164->SetBinContent(38,9114.021); h_SL2L164->SetBinContent(39,8981.251); h_SL2L164->SetBinContent(40,8480.151); h_SL2L164->SetBinContent(41,8934.139); h_SL2L164->SetBinContent(42,9328.166); h_SL2L164->SetBinContent(43,9482.351); h_SL2L164->SetBinContent(44,9465.219); h_SL2L164->SetBinContent(45,9469.502); h_SL2L164->SetBinContent(46,9546.595); h_SL2L164->SetBinContent(47,8942.705); h_SL2L164->SetBinContent(48,8690.014); h_SL2L164->SetBinContent(49,10977.08); h_SL2L164->SetBinContent(50,8908.441); h_SL2L164->SetBinContent(51,8844.198); h_SL2L164->SetBinContent(52,8852.764); h_SL2L164->SetBinContent(53,8274.571); h_SL2L164->SetBinContent(54,7931.939); h_SL2L164->SetBinContent(55,6672.766); h_SL2L164->SetBinContent(56,4578.425); h_SL2L164->SetBinContent(57,2591.157); h_SL2L164->SetMaximum(212042.7); 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,2334.183); h_SL2L265->SetBinContent(2,5058.11); h_SL2L265->SetBinContent(3,6321.567); h_SL2L265->SetBinContent(4,7747.774); h_SL2L265->SetBinContent(5,8368.796); h_SL2L265->SetBinContent(6,8865.612); h_SL2L265->SetBinContent(7,8848.48); h_SL2L265->SetBinContent(8,9071.192); h_SL2L265->SetBinContent(9,9002.665); h_SL2L265->SetBinContent(10,8835.632); h_SL2L265->SetBinContent(11,9705.062); h_SL2L265->SetBinContent(12,9859.246); h_SL2L265->SetBinContent(13,9349.581); h_SL2L265->SetBinContent(14,9606.555); h_SL2L265->SetBinContent(15,8981.251); h_SL2L265->SetBinContent(16,9144.001); h_SL2L265->SetBinContent(17,9178.265); h_SL2L265->SetBinContent(18,10621.6); h_SL2L265->SetBinContent(19,9383.844); h_SL2L265->SetBinContent(20,9221.094); h_SL2L265->SetBinContent(21,9152.567); h_SL2L265->SetBinContent(22,8904.159); h_SL2L265->SetBinContent(23,9255.356); h_SL2L265->SetBinContent(24,9353.863); h_SL2L265->SetBinContent(25,8942.705); h_SL2L265->SetBinContent(26,9306.752); h_SL2L265->SetBinContent(27,9015.515); h_SL2L265->SetBinContent(28,9512.331); h_SL2L265->SetBinContent(29,9790.72); h_SL2L265->SetBinContent(30,9400.976); h_SL2L265->SetBinContent(31,9306.752); h_SL2L265->SetBinContent(32,9392.41); h_SL2L265->SetBinContent(33,9422.391); h_SL2L265->SetBinContent(34,9186.83); h_SL2L265->SetBinContent(35,8039.012); h_SL2L265->SetBinContent(36,7859.13); h_SL2L265->SetBinContent(37,9028.363); h_SL2L265->SetBinContent(38,8917.008); h_SL2L265->SetBinContent(39,9268.206); h_SL2L265->SetBinContent(40,9015.515); h_SL2L265->SetBinContent(41,9019.797); h_SL2L265->SetBinContent(42,9195.396); h_SL2L265->SetBinContent(43,9358.146); h_SL2L265->SetBinContent(44,9362.43); h_SL2L265->SetBinContent(45,9036.929); h_SL2L265->SetBinContent(46,9392.41); h_SL2L265->SetBinContent(47,9208.245); h_SL2L265->SetBinContent(48,8994.1); h_SL2L265->SetBinContent(49,8677.165); h_SL2L265->SetBinContent(50,8835.632); h_SL2L265->SetBinContent(51,9109.738); h_SL2L265->SetBinContent(52,8874.179); h_SL2L265->SetBinContent(53,9045.494); h_SL2L265->SetBinContent(54,8467.303); h_SL2L265->SetBinContent(55,7923.374); h_SL2L265->SetBinContent(56,6248.758); h_SL2L265->SetBinContent(57,4197.247); h_SL2L265->SetMaximum(184385); 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,3135.086); h_SL2L366->SetBinContent(2,5829.033); h_SL2L366->SetBinContent(3,7486.517); h_SL2L366->SetBinContent(4,8253.157); h_SL2L366->SetBinContent(5,8895.593); h_SL2L366->SetBinContent(6,8865.612); h_SL2L366->SetBinContent(7,9229.659); h_SL2L366->SetBinContent(8,9122.587); h_SL2L366->SetBinContent(9,8749.975); h_SL2L366->SetBinContent(10,9062.626); h_SL2L366->SetBinContent(11,9782.154); h_SL2L366->SetBinContent(12,9499.482); h_SL2L366->SetBinContent(13,9448.088); h_SL2L366->SetBinContent(14,9400.976); h_SL2L366->SetBinContent(15,9024.08); h_SL2L366->SetBinContent(16,9066.909); h_SL2L366->SetBinContent(17,9036.929); h_SL2L366->SetBinContent(18,9623.687); h_SL2L366->SetBinContent(19,9370.995); h_SL2L366->SetBinContent(20,9118.304); h_SL2L366->SetBinContent(21,9148.284); h_SL2L366->SetBinContent(22,9413.824); h_SL2L366->SetBinContent(23,9165.416); h_SL2L366->SetBinContent(24,9126.87); h_SL2L366->SetBinContent(25,9602.272); h_SL2L366->SetBinContent(26,9216.811); h_SL2L366->SetBinContent(27,9306.752); h_SL2L366->SetBinContent(28,9589.424); h_SL2L366->SetBinContent(29,9692.213); h_SL2L366->SetBinContent(30,9546.595); h_SL2L366->SetBinContent(31,9786.438); h_SL2L366->SetBinContent(32,9332.449); h_SL2L366->SetBinContent(33,9251.074); h_SL2L366->SetBinContent(34,8878.461); h_SL2L366->SetBinContent(35,8026.163); h_SL2L366->SetBinContent(36,8176.065); h_SL2L366->SetBinContent(37,9276.771); h_SL2L366->SetBinContent(38,9032.646); h_SL2L366->SetBinContent(39,9216.811); h_SL2L366->SetBinContent(40,8779.954); h_SL2L366->SetBinContent(41,9028.363); h_SL2L366->SetBinContent(42,9512.331); h_SL2L366->SetBinContent(43,9216.811); h_SL2L366->SetBinContent(44,9118.304); h_SL2L366->SetBinContent(45,9199.679); h_SL2L366->SetBinContent(46,9178.265); h_SL2L366->SetBinContent(47,9452.37); h_SL2L366->SetBinContent(48,8797.086); h_SL2L366->SetBinContent(49,8668.599); h_SL2L366->SetBinContent(50,8754.257); h_SL2L366->SetBinContent(51,8981.251); h_SL2L366->SetBinContent(52,8857.047); h_SL2L366->SetBinContent(53,9006.948); h_SL2L366->SetBinContent(54,8355.947); h_SL2L366->SetBinContent(55,7512.215); h_SL2L366->SetBinContent(56,5040.979); h_SL2L366->SetBinContent(57,3379.212); h_SL2L366->SetMaximum(184385); 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,4312.885); h_SL2L467->SetBinContent(3,7293.787); h_SL2L467->SetBinContent(4,8210.328); h_SL2L467->SetBinContent(5,9066.909); h_SL2L467->SetBinContent(6,8428.756); h_SL2L467->SetBinContent(7,42015.29); h_SL2L467->SetBinContent(8,8754.257); h_SL2L467->SetBinContent(9,9066.909); h_SL2L467->SetBinContent(10,8552.961); h_SL2L467->SetBinContent(11,9341.015); h_SL2L467->SetBinContent(12,9636.535); h_SL2L467->SetBinContent(13,9435.239); h_SL2L467->SetBinContent(14,9418.107); h_SL2L467->SetBinContent(15,9375.278); h_SL2L467->SetBinContent(16,9212.528); h_SL2L467->SetBinContent(17,9109.738); h_SL2L467->SetBinContent(18,9409.541); h_SL2L467->SetBinContent(19,9542.312); h_SL2L467->SetBinContent(20,9285.337); h_SL2L467->SetBinContent(21,9272.488); h_SL2L467->SetBinContent(22,9066.909); h_SL2L467->SetBinContent(23,9122.587); h_SL2L467->SetBinContent(24,8754.257); h_SL2L467->SetBinContent(25,9289.62); h_SL2L467->SetBinContent(26,9336.732); h_SL2L467->SetBinContent(27,9473.785); h_SL2L467->SetBinContent(28,9126.87); h_SL2L467->SetBinContent(29,9627.97); h_SL2L467->SetBinContent(30,9666.516); h_SL2L467->SetBinContent(31,9765.022); h_SL2L467->SetBinContent(32,9272.488); h_SL2L467->SetBinContent(33,8934.139); h_SL2L467->SetBinContent(34,8946.987); h_SL2L467->SetBinContent(35,8874.179); h_SL2L467->SetBinContent(36,8274.571); h_SL2L467->SetBinContent(37,8184.631); h_SL2L467->SetBinContent(38,8805.652); h_SL2L467->SetBinContent(39,9263.923); h_SL2L467->SetBinContent(40,8822.783); h_SL2L467->SetBinContent(41,8942.705); h_SL2L467->SetBinContent(42,9096.89); h_SL2L467->SetBinContent(43,9182.548); h_SL2L467->SetBinContent(44,9114.021); h_SL2L467->SetBinContent(45,9229.659); h_SL2L467->SetBinContent(46,9156.85); h_SL2L467->SetBinContent(47,9460.937); h_SL2L467->SetBinContent(48,9058.344); h_SL2L467->SetBinContent(49,8647.185); h_SL2L467->SetBinContent(50,8779.954); h_SL2L467->SetBinContent(51,8762.823); h_SL2L467->SetBinContent(52,8899.876); h_SL2L467->SetBinContent(53,8805.652); h_SL2L467->SetBinContent(54,8981.251); h_SL2L467->SetBinContent(55,8120.387); h_SL2L467->SetBinContent(56,6698.463); h_SL2L467->SetBinContent(57,3280.705); h_SL2L467->SetMaximum(184385); 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 5708"); pt->Draw(); c->Modified(); c->cd(); c->SetSelected(c); }