void RatesPerCell_Removing_noisy_cells_run_7471_SL2() { //=========Macro generated from canvas: c/c //========= (Fri Jan 18 19:16:59 2019) by ROOT version6.02/13 TCanvas *c = new TCanvas("c", "c",0,0,800,600); gStyle->SetOptStat(0); c->Range(-7.500001,-6268.794,67.5,56419.14); c->SetFillColor(0); c->SetBorderMode(0); c->SetBorderSize(2); c->SetFrameBorderMode(0); c->SetFrameBorderMode(0); TH1D *h_SL2L164 = new TH1D("h_SL2L164","SL2, run 7471",60,0,60); h_SL2L164->SetBinContent(1,1342.857); h_SL2L164->SetBinContent(2,2092.857); h_SL2L164->SetBinContent(3,3114.286); h_SL2L164->SetBinContent(4,3564.286); h_SL2L164->SetBinContent(5,4007.143); h_SL2L164->SetBinContent(6,4692.857); h_SL2L164->SetBinContent(7,7307.143); h_SL2L164->SetBinContent(8,9892.857); h_SL2L164->SetBinContent(9,14178.57); h_SL2L164->SetBinContent(10,17571.43); h_SL2L164->SetBinContent(11,20621.43); h_SL2L164->SetBinContent(12,21728.57); h_SL2L164->SetBinContent(13,21635.71); h_SL2L164->SetBinContent(14,22471.43); h_SL2L164->SetBinContent(15,21521.43); h_SL2L164->SetBinContent(16,21328.57); h_SL2L164->SetBinContent(17,21971.43); h_SL2L164->SetBinContent(18,21678.57); h_SL2L164->SetBinContent(19,20964.29); h_SL2L164->SetBinContent(20,20821.43); h_SL2L164->SetBinContent(21,20285.71); h_SL2L164->SetBinContent(22,20207.14); h_SL2L164->SetBinContent(23,19621.43); h_SL2L164->SetBinContent(24,18385.71); h_SL2L164->SetBinContent(25,18242.86); h_SL2L164->SetBinContent(26,18378.57); h_SL2L164->SetBinContent(27,17900); h_SL2L164->SetBinContent(28,17564.29); h_SL2L164->SetBinContent(29,17857.14); h_SL2L164->SetBinContent(30,17350); h_SL2L164->SetBinContent(31,17057.14); h_SL2L164->SetBinContent(32,17407.14); h_SL2L164->SetBinContent(33,17771.43); h_SL2L164->SetBinContent(34,17142.86); h_SL2L164->SetBinContent(36,17257.14); h_SL2L164->SetBinContent(37,17950); h_SL2L164->SetBinContent(38,18035.71); h_SL2L164->SetBinContent(39,17900); h_SL2L164->SetBinContent(40,36671.43); h_SL2L164->SetBinContent(41,37921.43); h_SL2L164->SetBinContent(42,19792.86); h_SL2L164->SetBinContent(43,18864.29); h_SL2L164->SetBinContent(44,19335.71); h_SL2L164->SetBinContent(45,17428.57); h_SL2L164->SetBinContent(46,16264.29); h_SL2L164->SetBinContent(47,16900); h_SL2L164->SetBinContent(48,16314.29); h_SL2L164->SetBinContent(49,16307.14); h_SL2L164->SetBinContent(50,16250); h_SL2L164->SetBinContent(51,16971.43); h_SL2L164->SetBinContent(52,16842.86); h_SL2L164->SetBinContent(53,17571.43); h_SL2L164->SetBinContent(54,17300); h_SL2L164->SetBinContent(55,15971.43); h_SL2L164->SetBinContent(56,12621.43); h_SL2L164->SetBinContent(57,9578.571); h_SL2L164->SetMaximum(50150.35); 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,1214.286); h_SL2L265->SetBinContent(2,1685.714); h_SL2L265->SetBinContent(3,2435.714); h_SL2L265->SetBinContent(4,3521.428); h_SL2L265->SetBinContent(5,4007.143); h_SL2L265->SetBinContent(6,4750); h_SL2L265->SetBinContent(7,5900); h_SL2L265->SetBinContent(8,7500); h_SL2L265->SetBinContent(9,11700); h_SL2L265->SetBinContent(10,15471.43); h_SL2L265->SetBinContent(11,18514.29); h_SL2L265->SetBinContent(12,20571.43); h_SL2L265->SetBinContent(13,21300); h_SL2L265->SetBinContent(14,21714.29); h_SL2L265->SetBinContent(15,21028.57); h_SL2L265->SetBinContent(16,20985.71); h_SL2L265->SetBinContent(17,21735.71); h_SL2L265->SetBinContent(18,21414.29); h_SL2L265->SetBinContent(19,20528.57); h_SL2L265->SetBinContent(20,19985.71); h_SL2L265->SetBinContent(21,20007.14); h_SL2L265->SetBinContent(22,19835.71); h_SL2L265->SetBinContent(23,19128.57); h_SL2L265->SetBinContent(24,18778.57); h_SL2L265->SetBinContent(25,18242.86); h_SL2L265->SetBinContent(26,17621.43); h_SL2L265->SetBinContent(27,17957.14); h_SL2L265->SetBinContent(28,17457.14); h_SL2L265->SetBinContent(29,17064.29); h_SL2L265->SetBinContent(30,17507.14); h_SL2L265->SetBinContent(31,16485.71); h_SL2L265->SetBinContent(32,17378.57); h_SL2L265->SetBinContent(33,17307.14); h_SL2L265->SetBinContent(34,17278.57); h_SL2L265->SetBinContent(35,15671.43); h_SL2L265->SetBinContent(36,15428.57); h_SL2L265->SetBinContent(37,17014.29); h_SL2L265->SetBinContent(38,17592.86); h_SL2L265->SetBinContent(39,17535.71); h_SL2L265->SetBinContent(40,17014.29); h_SL2L265->SetBinContent(41,19157.14); h_SL2L265->SetBinContent(42,16985.71); h_SL2L265->SetBinContent(43,16664.29); h_SL2L265->SetBinContent(44,17128.57); h_SL2L265->SetBinContent(45,16964.29); h_SL2L265->SetBinContent(46,16478.57); h_SL2L265->SetBinContent(47,16314.29); h_SL2L265->SetBinContent(48,15407.14); h_SL2L265->SetBinContent(49,15635.71); h_SL2L265->SetBinContent(50,15628.57); h_SL2L265->SetBinContent(51,15964.29); h_SL2L265->SetBinContent(52,16528.57); h_SL2L265->SetBinContent(53,17400); h_SL2L265->SetBinContent(54,17457.14); h_SL2L265->SetBinContent(55,17050); h_SL2L265->SetBinContent(56,14564.29); h_SL2L265->SetBinContent(57,12200); h_SL2L265->SetMaximum(43609.64); 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,1578.571); h_SL2L366->SetBinContent(2,2278.571); h_SL2L366->SetBinContent(3,3028.571); h_SL2L366->SetBinContent(4,3578.571); h_SL2L366->SetBinContent(5,3642.857); h_SL2L366->SetBinContent(6,4757.143); h_SL2L366->SetBinContent(7,6335.714); h_SL2L366->SetBinContent(8,9907.143); h_SL2L366->SetBinContent(9,13700); h_SL2L366->SetBinContent(10,16814.29); h_SL2L366->SetBinContent(11,19564.29); h_SL2L366->SetBinContent(12,21100); h_SL2L366->SetBinContent(13,21164.29); h_SL2L366->SetBinContent(14,20335.71); h_SL2L366->SetBinContent(15,21142.86); h_SL2L366->SetBinContent(16,20485.71); h_SL2L366->SetBinContent(17,20542.86); h_SL2L366->SetBinContent(18,20628.57); h_SL2L366->SetBinContent(19,20057.14); h_SL2L366->SetBinContent(20,19821.43); h_SL2L366->SetBinContent(21,19314.29); h_SL2L366->SetBinContent(22,19564.29); h_SL2L366->SetBinContent(23,18485.71); h_SL2L366->SetBinContent(24,18028.57); h_SL2L366->SetBinContent(25,17600); h_SL2L366->SetBinContent(26,17785.71); h_SL2L366->SetBinContent(27,16942.86); h_SL2L366->SetBinContent(28,16578.57); h_SL2L366->SetBinContent(29,16964.29); h_SL2L366->SetBinContent(30,17078.57); h_SL2L366->SetBinContent(31,16264.29); h_SL2L366->SetBinContent(32,17121.43); h_SL2L366->SetBinContent(33,16250); h_SL2L366->SetBinContent(34,16371.43); h_SL2L366->SetBinContent(35,15614.29); h_SL2L366->SetBinContent(36,16007.14); h_SL2L366->SetBinContent(37,16950); h_SL2L366->SetBinContent(38,16614.29); h_SL2L366->SetBinContent(39,16435.71); h_SL2L366->SetBinContent(40,16621.43); h_SL2L366->SetBinContent(41,16428.57); h_SL2L366->SetBinContent(42,16235.71); h_SL2L366->SetBinContent(43,16335.71); h_SL2L366->SetBinContent(44,16242.86); h_SL2L366->SetBinContent(45,16271.43); h_SL2L366->SetBinContent(46,15864.29); h_SL2L366->SetBinContent(47,16157.14); h_SL2L366->SetBinContent(48,15828.57); h_SL2L366->SetBinContent(49,15264.29); h_SL2L366->SetBinContent(50,15678.57); h_SL2L366->SetBinContent(51,15921.43); h_SL2L366->SetBinContent(52,16100); h_SL2L366->SetBinContent(53,16792.86); h_SL2L366->SetBinContent(54,16921.43); h_SL2L366->SetBinContent(55,16042.86); h_SL2L366->SetBinContent(56,12657.14); h_SL2L366->SetBinContent(57,10735.71); h_SL2L366->SetMaximum(43609.64); 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,1750); h_SL2L467->SetBinContent(3,2314.286); h_SL2L467->SetBinContent(4,3357.143); h_SL2L467->SetBinContent(5,3321.428); h_SL2L467->SetBinContent(6,3957.143); h_SL2L467->SetBinContent(7,5107.143); h_SL2L467->SetBinContent(8,7400); h_SL2L467->SetBinContent(9,11821.43); h_SL2L467->SetBinContent(10,15021.43); h_SL2L467->SetBinContent(11,17392.86); h_SL2L467->SetBinContent(12,19564.29); h_SL2L467->SetBinContent(13,21085.71); h_SL2L467->SetBinContent(14,20071.43); h_SL2L467->SetBinContent(15,20635.71); h_SL2L467->SetBinContent(16,20507.14); h_SL2L467->SetBinContent(17,20107.14); h_SL2L467->SetBinContent(18,20457.14); h_SL2L467->SetBinContent(19,19571.43); h_SL2L467->SetBinContent(20,19614.29); h_SL2L467->SetBinContent(21,19500); h_SL2L467->SetBinContent(22,18992.86); h_SL2L467->SetBinContent(23,18292.86); h_SL2L467->SetBinContent(24,18007.14); h_SL2L467->SetBinContent(25,18021.43); h_SL2L467->SetBinContent(26,17578.57); h_SL2L467->SetBinContent(27,17014.29); h_SL2L467->SetBinContent(28,16771.43); h_SL2L467->SetBinContent(29,16657.14); h_SL2L467->SetBinContent(30,16764.29); h_SL2L467->SetBinContent(31,16550); h_SL2L467->SetBinContent(32,16364.29); h_SL2L467->SetBinContent(33,16500); h_SL2L467->SetBinContent(34,15800); h_SL2L467->SetBinContent(35,15692.86); h_SL2L467->SetBinContent(36,15700); h_SL2L467->SetBinContent(37,15835.71); h_SL2L467->SetBinContent(38,16421.43); h_SL2L467->SetBinContent(39,16657.14); h_SL2L467->SetBinContent(40,16192.86); h_SL2L467->SetBinContent(41,16600); h_SL2L467->SetBinContent(42,16214.29); h_SL2L467->SetBinContent(43,16057.14); h_SL2L467->SetBinContent(44,16457.14); h_SL2L467->SetBinContent(45,16471.43); h_SL2L467->SetBinContent(46,16592.86); h_SL2L467->SetBinContent(47,16235.71); h_SL2L467->SetBinContent(48,15971.43); h_SL2L467->SetBinContent(49,15392.86); h_SL2L467->SetBinContent(50,15607.14); h_SL2L467->SetBinContent(51,14992.86); h_SL2L467->SetBinContent(52,16078.57); h_SL2L467->SetBinContent(53,16807.14); h_SL2L467->SetBinContent(54,17335.71); h_SL2L467->SetBinContent(55,16928.57); h_SL2L467->SetBinContent(56,14342.86); h_SL2L467->SetBinContent(57,10650); h_SL2L467->SetMaximum(43609.64); 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.3744221,0.9362587,0.6255779,0.995,"blNDC"); pt->SetName("title"); pt->SetBorderSize(0); pt->SetFillColor(0); pt->SetFillStyle(0); pt->SetTextFont(42); TText *AText = pt->AddText("SL2, run 7471"); pt->Draw(); c->Modified(); c->cd(); c->SetSelected(c); }