void RatesPerCell_Removing_noisy_cells_run_6116_SL1() { //=========Macro generated from canvas: c/c //========= (Sun Jan 13 15:36:28 2019) by ROOT version6.02/13 TCanvas *c = new TCanvas("c", "c",0,0,800,600); gStyle->SetOptStat(0); c->Range(-7.500001,-1330.694,67.5,11976.24); c->SetFillColor(0); c->SetBorderMode(0); c->SetBorderSize(2); c->SetFrameBorderMode(0); c->SetFrameBorderMode(0); TH1D *h_SL1L160 = new TH1D("h_SL1L160","SL1, run 6116",60,0,60); h_SL1L160->SetBinContent(1,3097.619); h_SL1L160->SetBinContent(2,3742.857); h_SL1L160->SetBinContent(3,4523.81); h_SL1L160->SetBinContent(4,5242.857); h_SL1L160->SetBinContent(5,5719.047); h_SL1L160->SetBinContent(6,6395.238); h_SL1L160->SetBinContent(7,6097.619); h_SL1L160->SetBinContent(8,6297.619); h_SL1L160->SetBinContent(9,6719.047); h_SL1L160->SetBinContent(10,6695.238); h_SL1L160->SetBinContent(11,6330.952); h_SL1L160->SetBinContent(12,6526.19); h_SL1L160->SetBinContent(13,6745.238); h_SL1L160->SetBinContent(14,7004.762); h_SL1L160->SetBinContent(15,6426.19); h_SL1L160->SetBinContent(16,6602.381); h_SL1L160->SetBinContent(17,7157.143); h_SL1L160->SetBinContent(18,7059.524); h_SL1L160->SetBinContent(19,6573.81); h_SL1L160->SetBinContent(20,6630.952); h_SL1L160->SetBinContent(21,6940.476); h_SL1L160->SetBinContent(22,7071.429); h_SL1L160->SetBinContent(23,6907.143); h_SL1L160->SetBinContent(24,6878.571); h_SL1L160->SetBinContent(25,7295.238); h_SL1L160->SetBinContent(26,7407.143); h_SL1L160->SetBinContent(27,6795.238); h_SL1L160->SetBinContent(28,6876.19); h_SL1L160->SetBinContent(29,7016.667); h_SL1L160->SetBinContent(30,7630.952); h_SL1L160->SetBinContent(31,6935.714); h_SL1L160->SetBinContent(32,7223.81); h_SL1L160->SetBinContent(33,7528.571); h_SL1L160->SetBinContent(34,7383.333); h_SL1L160->SetBinContent(35,6735.714); h_SL1L160->SetBinContent(36,7197.619); h_SL1L160->SetBinContent(37,7095.238); h_SL1L160->SetBinContent(38,7209.524); h_SL1L160->SetBinContent(39,6728.571); h_SL1L160->SetBinContent(40,7050); h_SL1L160->SetBinContent(41,7442.857); h_SL1L160->SetBinContent(42,7509.524); h_SL1L160->SetBinContent(43,6735.714); h_SL1L160->SetBinContent(44,6897.619); h_SL1L160->SetBinContent(45,6871.429); h_SL1L160->SetBinContent(46,6873.81); h_SL1L160->SetBinContent(47,5545.238); h_SL1L160->SetBinContent(48,5354.762); h_SL1L160->SetBinContent(49,5564.286); h_SL1L160->SetBinContent(50,5261.905); h_SL1L160->SetBinContent(51,4847.619); h_SL1L160->SetBinContent(52,4933.333); h_SL1L160->SetBinContent(53,5416.667); h_SL1L160->SetBinContent(54,5164.286); h_SL1L160->SetBinContent(55,4333.333); h_SL1L160->SetBinContent(56,4116.667); h_SL1L160->SetBinContent(57,3845.238); h_SL1L160->SetBinContent(58,3402.381); h_SL1L160->SetBinContent(59,2783.333); h_SL1L160->SetMaximum(10645.55); 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,2895.238); h_SL1L261->SetBinContent(2,3471.428); h_SL1L261->SetBinContent(3,4128.571); h_SL1L261->SetBinContent(4,5183.333); h_SL1L261->SetBinContent(5,5616.667); h_SL1L261->SetBinContent(6,6359.524); h_SL1L261->SetBinContent(7,6423.81); h_SL1L261->SetBinContent(8,6369.047); h_SL1L261->SetBinContent(9,6664.286); h_SL1L261->SetBinContent(10,7059.524); h_SL1L261->SetBinContent(11,6614.286); h_SL1L261->SetBinContent(12,6473.81); h_SL1L261->SetBinContent(13,6971.429); h_SL1L261->SetBinContent(14,7111.905); h_SL1L261->SetBinContent(15,6780.952); h_SL1L261->SetBinContent(16,6671.429); h_SL1L261->SetBinContent(17,7126.19); h_SL1L261->SetBinContent(18,7342.857); h_SL1L261->SetBinContent(19,6954.762); h_SL1L261->SetBinContent(20,6788.095); h_SL1L261->SetBinContent(21,7073.81); h_SL1L261->SetBinContent(22,7383.333); h_SL1L261->SetBinContent(23,6871.429); h_SL1L261->SetBinContent(24,7209.524); h_SL1L261->SetBinContent(25,7423.81); h_SL1L261->SetBinContent(26,7421.429); h_SL1L261->SetBinContent(27,7133.333); h_SL1L261->SetBinContent(28,7230.952); h_SL1L261->SetBinContent(29,7257.143); h_SL1L261->SetBinContent(30,7602.381); h_SL1L261->SetBinContent(31,7245.238); h_SL1L261->SetBinContent(32,7376.19); h_SL1L261->SetBinContent(33,7845.238); h_SL1L261->SetBinContent(34,7807.143); h_SL1L261->SetBinContent(35,7207.143); h_SL1L261->SetBinContent(36,7050); h_SL1L261->SetBinContent(37,7547.619); h_SL1L261->SetBinContent(38,7426.19); h_SL1L261->SetBinContent(39,7111.905); h_SL1L261->SetBinContent(40,7035.714); h_SL1L261->SetBinContent(41,7550); h_SL1L261->SetBinContent(42,7735.714); h_SL1L261->SetBinContent(43,7278.571); h_SL1L261->SetBinContent(44,7038.095); h_SL1L261->SetBinContent(45,7200); h_SL1L261->SetBinContent(46,7259.524); h_SL1L261->SetBinContent(47,6269.047); h_SL1L261->SetBinContent(48,5585.714); h_SL1L261->SetBinContent(49,5804.762); h_SL1L261->SetBinContent(50,5840.476); h_SL1L261->SetBinContent(51,4933.333); h_SL1L261->SetBinContent(52,5200); h_SL1L261->SetBinContent(53,5361.905); h_SL1L261->SetBinContent(54,5580.952); h_SL1L261->SetBinContent(55,5040.476); h_SL1L261->SetBinContent(56,4445.238); h_SL1L261->SetBinContent(57,4135.714); h_SL1L261->SetBinContent(58,3850); h_SL1L261->SetBinContent(59,3173.81); h_SL1L261->SetMaximum(9257.5); 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,3192.857); h_SL1L362->SetBinContent(2,3888.095); h_SL1L362->SetBinContent(3,4647.619); h_SL1L362->SetBinContent(4,5628.571); h_SL1L362->SetBinContent(5,6142.857); h_SL1L362->SetBinContent(6,6426.19); h_SL1L362->SetBinContent(7,6550); h_SL1L362->SetBinContent(8,6790.476); h_SL1L362->SetBinContent(9,7202.381); h_SL1L362->SetBinContent(10,6533.333); h_SL1L362->SetBinContent(11,6507.143); h_SL1L362->SetBinContent(12,7026.19); h_SL1L362->SetBinContent(13,7114.286); h_SL1L362->SetBinContent(14,6923.81); h_SL1L362->SetBinContent(15,6607.143); h_SL1L362->SetBinContent(16,7104.762); h_SL1L362->SetBinContent(17,7471.429); h_SL1L362->SetBinContent(18,6840.476); h_SL1L362->SetBinContent(19,6888.095); h_SL1L362->SetBinContent(20,7019.047); h_SL1L362->SetBinContent(21,7404.762); h_SL1L362->SetBinContent(22,7128.571); h_SL1L362->SetBinContent(23,7078.571); h_SL1L362->SetBinContent(24,7504.762); h_SL1L362->SetBinContent(25,7578.571); h_SL1L362->SetBinContent(26,7228.571); h_SL1L362->SetBinContent(27,6907.143); h_SL1L362->SetBinContent(28,7464.286); h_SL1L362->SetBinContent(29,7495.238); h_SL1L362->SetBinContent(30,7452.381); h_SL1L362->SetBinContent(31,7183.333); h_SL1L362->SetBinContent(32,7709.524); h_SL1L362->SetBinContent(33,7928.571); h_SL1L362->SetBinContent(34,7511.905); h_SL1L362->SetBinContent(35,6892.857); h_SL1L362->SetBinContent(36,7769.047); h_SL1L362->SetBinContent(37,7669.047); h_SL1L362->SetBinContent(38,7050); h_SL1L362->SetBinContent(39,7114.286); h_SL1L362->SetBinContent(40,7459.524); h_SL1L362->SetBinContent(41,8050); h_SL1L362->SetBinContent(42,7588.095); h_SL1L362->SetBinContent(43,6935.714); h_SL1L362->SetBinContent(44,7521.429); h_SL1L362->SetBinContent(45,7390.476); h_SL1L362->SetBinContent(46,7026.19); h_SL1L362->SetBinContent(47,5826.19); h_SL1L362->SetBinContent(48,5683.333); h_SL1L362->SetBinContent(49,5761.905); h_SL1L362->SetBinContent(50,5314.286); h_SL1L362->SetBinContent(51,5095.238); h_SL1L362->SetBinContent(52,5371.429); h_SL1L362->SetBinContent(53,5650); h_SL1L362->SetBinContent(54,5502.381); h_SL1L362->SetBinContent(55,4707.143); h_SL1L362->SetBinContent(56,4545.238); h_SL1L362->SetBinContent(57,4228.571); h_SL1L362->SetBinContent(58,3561.905); h_SL1L362->SetBinContent(59,2852.381); h_SL1L362->SetMaximum(9257.5); 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,3147.619); h_SL1L463->SetBinContent(3,3519.048); h_SL1L463->SetBinContent(4,4580.952); h_SL1L463->SetBinContent(5,5076.19); h_SL1L463->SetBinContent(6,5480.952); h_SL1L463->SetBinContent(7,5630.952); h_SL1L463->SetBinContent(8,5516.667); h_SL1L463->SetBinContent(9,6121.429); h_SL1L463->SetBinContent(10,5954.762); h_SL1L463->SetBinContent(11,5564.286); h_SL1L463->SetBinContent(12,5900); h_SL1L463->SetBinContent(13,6326.19); h_SL1L463->SetBinContent(14,6457.143); h_SL1L463->SetBinContent(15,5885.714); h_SL1L463->SetBinContent(16,6033.333); h_SL1L463->SetBinContent(17,6471.429); h_SL1L463->SetBinContent(18,6283.333); h_SL1L463->SetBinContent(19,5900); h_SL1L463->SetBinContent(20,5923.81); h_SL1L463->SetBinContent(21,6121.429); h_SL1L463->SetBinContent(22,6366.667); h_SL1L463->SetBinContent(23,5535.714); h_SL1L463->SetBinContent(24,6433.333); h_SL1L463->SetBinContent(25,6150); h_SL1L463->SetBinContent(26,6102.381); h_SL1L463->SetBinContent(27,5880.952); h_SL1L463->SetBinContent(28,5988.095); h_SL1L463->SetBinContent(29,6183.333); h_SL1L463->SetBinContent(30,6483.333); h_SL1L463->SetBinContent(31,6021.429); h_SL1L463->SetBinContent(32,6378.571); h_SL1L463->SetBinContent(33,6280.952); h_SL1L463->SetBinContent(34,6638.095); h_SL1L463->SetBinContent(35,6054.762); h_SL1L463->SetBinContent(36,6061.905); h_SL1L463->SetBinContent(37,6207.143); h_SL1L463->SetBinContent(38,6021.429); h_SL1L463->SetBinContent(39,5907.143); h_SL1L463->SetBinContent(40,5838.095); h_SL1L463->SetBinContent(41,6295.238); h_SL1L463->SetBinContent(42,6483.333); h_SL1L463->SetBinContent(43,6088.095); h_SL1L463->SetBinContent(44,6233.333); h_SL1L463->SetBinContent(45,6145.238); h_SL1L463->SetBinContent(46,6404.762); h_SL1L463->SetBinContent(47,5007.143); h_SL1L463->SetBinContent(48,4719.047); h_SL1L463->SetBinContent(49,4783.333); h_SL1L463->SetBinContent(50,4588.095); h_SL1L463->SetBinContent(51,3964.286); h_SL1L463->SetBinContent(52,4438.095); h_SL1L463->SetBinContent(53,4721.429); h_SL1L463->SetBinContent(54,4564.286); h_SL1L463->SetBinContent(56,4052.381); h_SL1L463->SetBinContent(57,3635.714); h_SL1L463->SetBinContent(58,3528.571); h_SL1L463->SetBinContent(59,2792.857); h_SL1L463->SetMaximum(9257.5); 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 6116"); pt->Draw(); c->Modified(); c->cd(); c->SetSelected(c); }