void RatesPerCell_Removing_noisy_cells_run_7472_SL2() { //=========Macro generated from canvas: c/c //========= (Sat Dec 22 18:34:32 2018) by ROOT version6.02/13 TCanvas *c = new TCanvas("c", "c",0,0,800,600); gStyle->SetOptStat(0); c->Range(-7.500001,-7760.201,67.5,69841.8); c->SetFillColor(0); c->SetBorderMode(0); c->SetBorderSize(2); c->SetFrameBorderMode(0); c->SetFrameBorderMode(0); TH1D *h_SL2L164 = new TH1D("h_SL2L164","SL2, run 7472",60,0,60); h_SL2L164->SetBinContent(1,2414.286); h_SL2L164->SetBinContent(2,3214.286); h_SL2L164->SetBinContent(3,4807.143); h_SL2L164->SetBinContent(4,5707.143); h_SL2L164->SetBinContent(5,6635.714); h_SL2L164->SetBinContent(6,7500); h_SL2L164->SetBinContent(7,11214.29); h_SL2L164->SetBinContent(8,14735.71); h_SL2L164->SetBinContent(9,21450); h_SL2L164->SetBinContent(10,25957.14); h_SL2L164->SetBinContent(11,28292.86); h_SL2L164->SetBinContent(12,29978.57); h_SL2L164->SetBinContent(13,29100); h_SL2L164->SetBinContent(14,29492.86); h_SL2L164->SetBinContent(15,29028.57); h_SL2L164->SetBinContent(16,28707.14); h_SL2L164->SetBinContent(17,28300); h_SL2L164->SetBinContent(18,28507.14); h_SL2L164->SetBinContent(19,27100); h_SL2L164->SetBinContent(20,27078.57); h_SL2L164->SetBinContent(21,25957.14); h_SL2L164->SetBinContent(22,24821.43); h_SL2L164->SetBinContent(23,23771.43); h_SL2L164->SetBinContent(24,23842.86); h_SL2L164->SetBinContent(25,22842.86); h_SL2L164->SetBinContent(26,21457.14); h_SL2L164->SetBinContent(27,21771.43); h_SL2L164->SetBinContent(28,22414.29); h_SL2L164->SetBinContent(29,21921.43); h_SL2L164->SetBinContent(30,20692.86); h_SL2L164->SetBinContent(31,20914.29); h_SL2L164->SetBinContent(32,21792.86); h_SL2L164->SetBinContent(33,21900); h_SL2L164->SetBinContent(34,21485.71); h_SL2L164->SetBinContent(36,21050); h_SL2L164->SetBinContent(37,23464.29); h_SL2L164->SetBinContent(38,23121.43); h_SL2L164->SetBinContent(39,22935.71); h_SL2L164->SetBinContent(40,46914.29); h_SL2L164->SetBinContent(41,46942.86); h_SL2L164->SetBinContent(42,23635.71); h_SL2L164->SetBinContent(43,24235.71); h_SL2L164->SetBinContent(44,23928.57); h_SL2L164->SetBinContent(45,21664.29); h_SL2L164->SetBinContent(46,19971.43); h_SL2L164->SetBinContent(47,20992.86); h_SL2L164->SetBinContent(48,19157.14); h_SL2L164->SetBinContent(49,20392.86); h_SL2L164->SetBinContent(50,19928.57); h_SL2L164->SetBinContent(51,20714.29); h_SL2L164->SetBinContent(52,22121.43); h_SL2L164->SetBinContent(53,23392.86); h_SL2L164->SetBinContent(54,24014.29); h_SL2L164->SetBinContent(55,22592.86); h_SL2L164->SetBinContent(56,17850); h_SL2L164->SetBinContent(57,13728.57); h_SL2L164->SetMaximum(62081.6); 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,1978.571); h_SL2L265->SetBinContent(2,2992.857); h_SL2L265->SetBinContent(3,3878.571); h_SL2L265->SetBinContent(4,5485.714); h_SL2L265->SetBinContent(5,6278.571); h_SL2L265->SetBinContent(6,7064.286); h_SL2L265->SetBinContent(7,8478.571); h_SL2L265->SetBinContent(8,11614.29); h_SL2L265->SetBinContent(9,17878.57); h_SL2L265->SetBinContent(10,22635.71); h_SL2L265->SetBinContent(11,26557.14); h_SL2L265->SetBinContent(12,28464.29); h_SL2L265->SetBinContent(13,29292.86); h_SL2L265->SetBinContent(14,28371.43); h_SL2L265->SetBinContent(15,28207.14); h_SL2L265->SetBinContent(16,28435.71); h_SL2L265->SetBinContent(17,27700); h_SL2L265->SetBinContent(18,27592.86); h_SL2L265->SetBinContent(19,27414.29); h_SL2L265->SetBinContent(20,26021.43); h_SL2L265->SetBinContent(21,25692.86); h_SL2L265->SetBinContent(22,24950); h_SL2L265->SetBinContent(23,23942.86); h_SL2L265->SetBinContent(24,23292.86); h_SL2L265->SetBinContent(25,22692.86); h_SL2L265->SetBinContent(26,21800); h_SL2L265->SetBinContent(27,21764.29); h_SL2L265->SetBinContent(28,21014.29); h_SL2L265->SetBinContent(29,21342.86); h_SL2L265->SetBinContent(30,22057.14); h_SL2L265->SetBinContent(31,19514.29); h_SL2L265->SetBinContent(32,20521.43); h_SL2L265->SetBinContent(33,21042.86); h_SL2L265->SetBinContent(34,21271.43); h_SL2L265->SetBinContent(35,19464.29); h_SL2L265->SetBinContent(36,19664.29); h_SL2L265->SetBinContent(37,22064.29); h_SL2L265->SetBinContent(38,22550); h_SL2L265->SetBinContent(39,22014.29); h_SL2L265->SetBinContent(40,21928.57); h_SL2L265->SetBinContent(41,22964.29); h_SL2L265->SetBinContent(42,21464.29); h_SL2L265->SetBinContent(43,20942.86); h_SL2L265->SetBinContent(44,21142.86); h_SL2L265->SetBinContent(45,20864.29); h_SL2L265->SetBinContent(46,20028.57); h_SL2L265->SetBinContent(47,19721.43); h_SL2L265->SetBinContent(48,18878.57); h_SL2L265->SetBinContent(49,18885.71); h_SL2L265->SetBinContent(50,19892.86); h_SL2L265->SetBinContent(51,18700); h_SL2L265->SetBinContent(52,20757.14); h_SL2L265->SetBinContent(53,21971.43); h_SL2L265->SetBinContent(54,23221.43); h_SL2L265->SetBinContent(55,23150); h_SL2L265->SetBinContent(56,20100); h_SL2L265->SetBinContent(57,16771.43); h_SL2L265->SetMaximum(53984.28); 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,2528.571); h_SL2L366->SetBinContent(2,3564.286); h_SL2L366->SetBinContent(3,4821.429); h_SL2L366->SetBinContent(4,5500); h_SL2L366->SetBinContent(5,6842.857); h_SL2L366->SetBinContent(6,7800); h_SL2L366->SetBinContent(7,10271.43); h_SL2L366->SetBinContent(8,14171.43); h_SL2L366->SetBinContent(9,19992.86); h_SL2L366->SetBinContent(10,24185.71); h_SL2L366->SetBinContent(11,27585.71); h_SL2L366->SetBinContent(12,29028.57); h_SL2L366->SetBinContent(13,28271.43); h_SL2L366->SetBinContent(14,28078.57); h_SL2L366->SetBinContent(15,27585.71); h_SL2L366->SetBinContent(16,27350); h_SL2L366->SetBinContent(17,26864.29); h_SL2L366->SetBinContent(18,27742.86); h_SL2L366->SetBinContent(19,26357.14); h_SL2L366->SetBinContent(20,25335.71); h_SL2L366->SetBinContent(21,25014.29); h_SL2L366->SetBinContent(22,23842.86); h_SL2L366->SetBinContent(23,22721.43); h_SL2L366->SetBinContent(24,22392.86); h_SL2L366->SetBinContent(25,21578.57); h_SL2L366->SetBinContent(26,21050); h_SL2L366->SetBinContent(27,20450); h_SL2L366->SetBinContent(28,21000); h_SL2L366->SetBinContent(29,20307.14); h_SL2L366->SetBinContent(30,19600); h_SL2L366->SetBinContent(31,19550); h_SL2L366->SetBinContent(32,20700); h_SL2L366->SetBinContent(33,20950); h_SL2L366->SetBinContent(34,19957.14); h_SL2L366->SetBinContent(35,19250); h_SL2L366->SetBinContent(36,19878.57); h_SL2L366->SetBinContent(37,21021.43); h_SL2L366->SetBinContent(38,21578.57); h_SL2L366->SetBinContent(39,21014.29); h_SL2L366->SetBinContent(40,21300); h_SL2L366->SetBinContent(41,21214.29); h_SL2L366->SetBinContent(42,20585.71); h_SL2L366->SetBinContent(43,20685.71); h_SL2L366->SetBinContent(44,20371.43); h_SL2L366->SetBinContent(45,20550); h_SL2L366->SetBinContent(46,19628.57); h_SL2L366->SetBinContent(47,19164.29); h_SL2L366->SetBinContent(48,18521.43); h_SL2L366->SetBinContent(49,19107.14); h_SL2L366->SetBinContent(50,18864.29); h_SL2L366->SetBinContent(51,19542.86); h_SL2L366->SetBinContent(52,21021.43); h_SL2L366->SetBinContent(53,22400); h_SL2L366->SetBinContent(54,23428.57); h_SL2L366->SetBinContent(55,22035.71); h_SL2L366->SetBinContent(56,17407.14); h_SL2L366->SetBinContent(57,16042.86); h_SL2L366->SetMaximum(53984.28); 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,2850); h_SL2L467->SetBinContent(3,4028.571); h_SL2L467->SetBinContent(4,5000); h_SL2L467->SetBinContent(5,5914.286); h_SL2L467->SetBinContent(6,6650); h_SL2L467->SetBinContent(7,8178.571); h_SL2L467->SetBinContent(8,11542.86); h_SL2L467->SetBinContent(9,17200); h_SL2L467->SetBinContent(10,22157.14); h_SL2L467->SetBinContent(11,24828.57); h_SL2L467->SetBinContent(12,26757.14); h_SL2L467->SetBinContent(13,27342.86); h_SL2L467->SetBinContent(14,28042.86); h_SL2L467->SetBinContent(15,27992.86); h_SL2L467->SetBinContent(16,26528.57); h_SL2L467->SetBinContent(17,27607.14); h_SL2L467->SetBinContent(18,26114.29); h_SL2L467->SetBinContent(19,26950); h_SL2L467->SetBinContent(20,25078.57); h_SL2L467->SetBinContent(21,24735.71); h_SL2L467->SetBinContent(22,23421.43); h_SL2L467->SetBinContent(23,23150); h_SL2L467->SetBinContent(24,20635.71); h_SL2L467->SetBinContent(25,22292.86); h_SL2L467->SetBinContent(26,20471.43); h_SL2L467->SetBinContent(27,20364.29); h_SL2L467->SetBinContent(28,20485.71); h_SL2L467->SetBinContent(29,20364.29); h_SL2L467->SetBinContent(30,20021.43); h_SL2L467->SetBinContent(31,18707.14); h_SL2L467->SetBinContent(32,19735.71); h_SL2L467->SetBinContent(33,20392.86); h_SL2L467->SetBinContent(34,20657.14); h_SL2L467->SetBinContent(35,19400); h_SL2L467->SetBinContent(36,19507.14); h_SL2L467->SetBinContent(37,19778.57); h_SL2L467->SetBinContent(38,21035.71); h_SL2L467->SetBinContent(39,20228.57); h_SL2L467->SetBinContent(40,20442.86); h_SL2L467->SetBinContent(41,20128.57); h_SL2L467->SetBinContent(42,20635.71); h_SL2L467->SetBinContent(43,19942.86); h_SL2L467->SetBinContent(44,19664.29); h_SL2L467->SetBinContent(45,20378.57); h_SL2L467->SetBinContent(46,19521.43); h_SL2L467->SetBinContent(47,18971.43); h_SL2L467->SetBinContent(48,18200); h_SL2L467->SetBinContent(49,18292.86); h_SL2L467->SetBinContent(50,19085.71); h_SL2L467->SetBinContent(51,19014.29); h_SL2L467->SetBinContent(52,20607.14); h_SL2L467->SetBinContent(53,21757.14); h_SL2L467->SetBinContent(54,22307.14); h_SL2L467->SetBinContent(55,22064.29); h_SL2L467->SetBinContent(56,19228.57); h_SL2L467->SetBinContent(57,14921.43); h_SL2L467->SetMaximum(53984.28); 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 7472"); pt->Draw(); c->Modified(); c->cd(); c->SetSelected(c); }