void RatesPerCell_Removing_noisy_cells_run_7386_SL2() { //=========Macro generated from canvas: c/c //========= (Fri Jan 18 19:08:54 2019) by ROOT version6.02/13 TCanvas *c = new TCanvas("c", "c",0,0,800,600); gStyle->SetOptStat(0); c->Range(-7.500001,-23668.01,67.5,213012.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 7386",60,0,60); h_SL2L164->SetBinContent(1,93300); h_SL2L164->SetBinContent(2,116335.7); h_SL2L164->SetBinContent(3,139435.7); h_SL2L164->SetBinContent(4,143171.4); h_SL2L164->SetBinContent(5,138442.9); h_SL2L164->SetBinContent(6,131892.9); h_SL2L164->SetBinContent(7,120892.9); h_SL2L164->SetBinContent(8,113392.9); h_SL2L164->SetBinContent(9,125235.7); h_SL2L164->SetBinContent(10,127164.3); h_SL2L164->SetBinContent(11,132564.3); h_SL2L164->SetBinContent(12,125357.1); h_SL2L164->SetBinContent(13,112685.7); h_SL2L164->SetBinContent(14,110242.9); h_SL2L164->SetBinContent(15,108578.6); h_SL2L164->SetBinContent(16,108328.6); h_SL2L164->SetBinContent(17,97100); h_SL2L164->SetBinContent(18,88242.86); h_SL2L164->SetBinContent(19,87442.86); h_SL2L164->SetBinContent(20,91464.28); h_SL2L164->SetBinContent(21,93092.86); h_SL2L164->SetBinContent(22,87942.86); h_SL2L164->SetBinContent(23,86671.43); h_SL2L164->SetBinContent(24,80078.57); h_SL2L164->SetBinContent(25,75657.14); h_SL2L164->SetBinContent(26,70257.14); h_SL2L164->SetBinContent(27,71221.43); h_SL2L164->SetBinContent(28,70671.43); h_SL2L164->SetBinContent(29,69278.57); h_SL2L164->SetBinContent(30,66142.86); h_SL2L164->SetBinContent(31,64450); h_SL2L164->SetBinContent(32,68864.28); h_SL2L164->SetBinContent(33,71257.14); h_SL2L164->SetBinContent(34,74264.28); h_SL2L164->SetBinContent(36,77050); h_SL2L164->SetBinContent(37,88000); h_SL2L164->SetBinContent(38,87485.71); h_SL2L164->SetBinContent(39,89342.86); h_SL2L164->SetBinContent(40,95242.86); h_SL2L164->SetBinContent(41,132314.3); h_SL2L164->SetBinContent(42,94642.86); h_SL2L164->SetBinContent(43,94414.28); h_SL2L164->SetBinContent(44,91028.57); h_SL2L164->SetBinContent(45,79785.71); h_SL2L164->SetBinContent(46,76171.43); h_SL2L164->SetBinContent(47,75914.28); h_SL2L164->SetBinContent(48,76700); h_SL2L164->SetBinContent(49,78185.71); h_SL2L164->SetBinContent(50,73800); h_SL2L164->SetBinContent(51,81500); h_SL2L164->SetBinContent(52,94307.14); h_SL2L164->SetBinContent(53,105907.1); h_SL2L164->SetBinContent(54,111071.4); h_SL2L164->SetBinContent(55,111342.9); h_SL2L164->SetBinContent(56,93328.57); h_SL2L164->SetBinContent(57,76878.57); h_SL2L164->SetMaximum(189344); 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,75421.43); h_SL2L265->SetBinContent(2,111235.7); h_SL2L265->SetBinContent(3,120335.7); h_SL2L265->SetBinContent(4,138285.7); h_SL2L265->SetBinContent(5,136778.6); h_SL2L265->SetBinContent(6,132242.9); h_SL2L265->SetBinContent(7,122278.6); h_SL2L265->SetBinContent(8,106035.7); h_SL2L265->SetBinContent(9,117807.1); h_SL2L265->SetBinContent(10,120514.3); h_SL2L265->SetBinContent(11,126085.7); h_SL2L265->SetBinContent(12,124550); h_SL2L265->SetBinContent(13,112621.4); h_SL2L265->SetBinContent(14,108271.4); h_SL2L265->SetBinContent(15,101928.6); h_SL2L265->SetBinContent(16,106528.6); h_SL2L265->SetBinContent(17,98085.71); h_SL2L265->SetBinContent(18,90171.43); h_SL2L265->SetBinContent(19,83792.86); h_SL2L265->SetBinContent(20,86257.14); h_SL2L265->SetBinContent(21,89657.14); h_SL2L265->SetBinContent(22,87700); h_SL2L265->SetBinContent(23,83471.43); h_SL2L265->SetBinContent(24,78692.86); h_SL2L265->SetBinContent(25,76107.14); h_SL2L265->SetBinContent(26,70957.14); h_SL2L265->SetBinContent(27,69171.43); h_SL2L265->SetBinContent(28,69164.28); h_SL2L265->SetBinContent(29,67150); h_SL2L265->SetBinContent(30,67121.43); h_SL2L265->SetBinContent(31,60800); h_SL2L265->SetBinContent(32,64771.43); h_SL2L265->SetBinContent(33,67285.71); h_SL2L265->SetBinContent(34,71285.71); h_SL2L265->SetBinContent(35,71285.71); h_SL2L265->SetBinContent(36,73421.43); h_SL2L265->SetBinContent(37,77535.71); h_SL2L265->SetBinContent(38,81728.57); h_SL2L265->SetBinContent(39,83078.57); h_SL2L265->SetBinContent(40,86835.71); h_SL2L265->SetBinContent(41,83328.57); h_SL2L265->SetBinContent(42,83564.28); h_SL2L265->SetBinContent(43,82642.86); h_SL2L265->SetBinContent(44,83078.57); h_SL2L265->SetBinContent(45,77892.86); h_SL2L265->SetBinContent(46,76328.57); h_SL2L265->SetBinContent(47,72878.57); h_SL2L265->SetBinContent(48,72200); h_SL2L265->SetBinContent(49,72878.57); h_SL2L265->SetBinContent(50,74864.28); h_SL2L265->SetBinContent(51,70964.28); h_SL2L265->SetBinContent(52,84807.14); h_SL2L265->SetBinContent(53,96257.14); h_SL2L265->SetBinContent(54,104721.4); h_SL2L265->SetBinContent(55,108792.9); h_SL2L265->SetBinContent(56,96500); h_SL2L265->SetBinContent(57,89114.28); h_SL2L265->SetMaximum(164647.1); 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,88507.14); h_SL2L366->SetBinContent(2,105721.4); h_SL2L366->SetBinContent(3,133378.6); h_SL2L366->SetBinContent(4,134121.4); h_SL2L366->SetBinContent(5,129771.4); h_SL2L366->SetBinContent(6,121157.1); h_SL2L366->SetBinContent(7,111350); h_SL2L366->SetBinContent(8,108700); h_SL2L366->SetBinContent(9,116692.9); h_SL2L366->SetBinContent(10,121457.1); h_SL2L366->SetBinContent(11,120642.9); h_SL2L366->SetBinContent(12,114471.4); h_SL2L366->SetBinContent(13,104842.9); h_SL2L366->SetBinContent(14,103528.6); h_SL2L366->SetBinContent(15,102157.1); h_SL2L366->SetBinContent(16,100100); h_SL2L366->SetBinContent(17,91064.28); h_SL2L366->SetBinContent(18,82314.28); h_SL2L366->SetBinContent(19,81657.14); h_SL2L366->SetBinContent(20,85371.43); h_SL2L366->SetBinContent(21,85950); h_SL2L366->SetBinContent(22,82214.28); h_SL2L366->SetBinContent(23,78642.86); h_SL2L366->SetBinContent(24,73585.71); h_SL2L366->SetBinContent(25,70807.14); h_SL2L366->SetBinContent(26,66807.14); h_SL2L366->SetBinContent(27,66800); h_SL2L366->SetBinContent(28,64750); h_SL2L366->SetBinContent(29,65957.14); h_SL2L366->SetBinContent(30,61242.86); h_SL2L366->SetBinContent(31,61600); h_SL2L366->SetBinContent(32,63757.14); h_SL2L366->SetBinContent(33,66878.57); h_SL2L366->SetBinContent(34,68942.86); h_SL2L366->SetBinContent(35,68035.71); h_SL2L366->SetBinContent(36,72178.57); h_SL2L366->SetBinContent(37,76471.43); h_SL2L366->SetBinContent(38,80200); h_SL2L366->SetBinContent(39,80857.14); h_SL2L366->SetBinContent(40,80492.86); h_SL2L366->SetBinContent(41,80685.71); h_SL2L366->SetBinContent(42,80485.71); h_SL2L366->SetBinContent(43,79421.43); h_SL2L366->SetBinContent(44,76614.28); h_SL2L366->SetBinContent(45,72764.28); h_SL2L366->SetBinContent(46,73200); h_SL2L366->SetBinContent(47,71814.28); h_SL2L366->SetBinContent(48,69942.86); h_SL2L366->SetBinContent(49,72742.86); h_SL2L366->SetBinContent(50,70835.71); h_SL2L366->SetBinContent(51,74721.43); h_SL2L366->SetBinContent(52,87314.28); h_SL2L366->SetBinContent(53,97435.71); h_SL2L366->SetBinContent(54,102407.1); h_SL2L366->SetBinContent(55,104607.1); h_SL2L366->SetBinContent(56,86264.28); h_SL2L366->SetBinContent(57,84007.14); h_SL2L366->SetMaximum(164647.1); 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,102271.4); h_SL2L467->SetBinContent(3,115700); h_SL2L467->SetBinContent(4,128178.6); h_SL2L467->SetBinContent(5,128335.7); h_SL2L467->SetBinContent(6,119921.4); h_SL2L467->SetBinContent(7,113242.9); h_SL2L467->SetBinContent(8,98950); h_SL2L467->SetBinContent(9,111671.4); h_SL2L467->SetBinContent(10,114435.7); h_SL2L467->SetBinContent(11,116364.3); h_SL2L467->SetBinContent(12,113871.4); h_SL2L467->SetBinContent(13,105042.9); h_SL2L467->SetBinContent(14,101450); h_SL2L467->SetBinContent(15,98071.43); h_SL2L467->SetBinContent(16,99064.28); h_SL2L467->SetBinContent(17,91842.86); h_SL2L467->SetBinContent(18,83228.57); h_SL2L467->SetBinContent(19,79642.86); h_SL2L467->SetBinContent(20,80800); h_SL2L467->SetBinContent(21,84814.28); h_SL2L467->SetBinContent(22,81885.71); h_SL2L467->SetBinContent(23,78592.86); h_SL2L467->SetBinContent(24,74007.14); h_SL2L467->SetBinContent(25,71314.28); h_SL2L467->SetBinContent(26,67964.28); h_SL2L467->SetBinContent(27,64485.71); h_SL2L467->SetBinContent(28,64200); h_SL2L467->SetBinContent(29,63400); h_SL2L467->SetBinContent(30,63814.29); h_SL2L467->SetBinContent(31,58350); h_SL2L467->SetBinContent(32,61864.29); h_SL2L467->SetBinContent(33,63421.43); h_SL2L467->SetBinContent(34,66164.28); h_SL2L467->SetBinContent(35,66628.57); h_SL2L467->SetBinContent(36,68392.86); h_SL2L467->SetBinContent(37,72621.43); h_SL2L467->SetBinContent(38,76514.28); h_SL2L467->SetBinContent(39,79014.28); h_SL2L467->SetBinContent(40,79700); h_SL2L467->SetBinContent(41,78271.43); h_SL2L467->SetBinContent(42,77550); h_SL2L467->SetBinContent(43,78221.43); h_SL2L467->SetBinContent(44,77400); h_SL2L467->SetBinContent(45,74028.57); h_SL2L467->SetBinContent(46,70592.86); h_SL2L467->SetBinContent(47,68835.71); h_SL2L467->SetBinContent(48,68350); h_SL2L467->SetBinContent(49,68757.14); h_SL2L467->SetBinContent(50,72142.86); h_SL2L467->SetBinContent(51,66800); h_SL2L467->SetBinContent(52,79650); h_SL2L467->SetBinContent(53,88457.14); h_SL2L467->SetBinContent(54,97292.86); h_SL2L467->SetBinContent(55,101250); h_SL2L467->SetBinContent(56,92471.43); h_SL2L467->SetBinContent(57,81150); h_SL2L467->SetMaximum(164647.1); 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 7386"); pt->Draw(); c->Modified(); c->cd(); c->SetSelected(c); }