void RatesPerCell_Removing_noisy_cells_run_5490_SL2() { //=========Macro generated from canvas: c/c //========= (Sun Jan 13 15:11:24 2019) by ROOT version6.02/13 TCanvas *c = new TCanvas("c", "c",0,0,800,600); gStyle->SetOptStat(0); c->Range(-7.500001,-18222.33,67.5,164000.9); c->SetFillColor(0); c->SetBorderMode(0); c->SetBorderSize(2); c->SetFrameBorderMode(0); c->SetFrameBorderMode(0); TH1D *h_SL2L164 = new TH1D("h_SL2L164","SL2, run 5490",60,0,60); h_SL2L164->SetBinContent(1,748.5715); h_SL2L164->SetBinContent(2,810); h_SL2L164->SetBinContent(3,985.7143); h_SL2L164->SetBinContent(4,1040); h_SL2L164->SetBinContent(5,1021.429); h_SL2L164->SetBinContent(6,1045.714); h_SL2L164->SetBinContent(7,1118.571); h_SL2L164->SetBinContent(8,1122.857); h_SL2L164->SetBinContent(9,1162.857); h_SL2L164->SetBinContent(10,1274.286); h_SL2L164->SetBinContent(11,1331.429); h_SL2L164->SetBinContent(12,1420); h_SL2L164->SetBinContent(13,1614.286); h_SL2L164->SetBinContent(14,1624.286); h_SL2L164->SetBinContent(15,1761.429); h_SL2L164->SetBinContent(16,1967.143); h_SL2L164->SetBinContent(17,2241.429); h_SL2L164->SetBinContent(18,2380); h_SL2L164->SetBinContent(19,2508.572); h_SL2L164->SetBinContent(20,2724.286); h_SL2L164->SetBinContent(21,2890); h_SL2L164->SetBinContent(22,3040); h_SL2L164->SetBinContent(23,3414.286); h_SL2L164->SetBinContent(24,4077.143); h_SL2L164->SetBinContent(25,9518.571); h_SL2L164->SetBinContent(26,35884.29); h_SL2L164->SetBinContent(27,80968.57); h_SL2L164->SetBinContent(28,110230); h_SL2L164->SetBinContent(29,78975.72); h_SL2L164->SetBinContent(30,38870); h_SL2L164->SetBinContent(31,20261.43); h_SL2L164->SetBinContent(32,13605.71); h_SL2L164->SetBinContent(33,10600); h_SL2L164->SetBinContent(34,6217.143); h_SL2L164->SetBinContent(36,2494.286); h_SL2L164->SetBinContent(37,2061.429); h_SL2L164->SetBinContent(38,1870); h_SL2L164->SetBinContent(39,1625.714); h_SL2L164->SetBinContent(40,1225.714); h_SL2L164->SetBinContent(41,1248.571); h_SL2L164->SetBinContent(42,1122.857); h_SL2L164->SetBinContent(43,1070); h_SL2L164->SetBinContent(44,952.8572); h_SL2L164->SetBinContent(45,1038.571); h_SL2L164->SetBinContent(46,970); h_SL2L164->SetBinContent(47,852.8572); h_SL2L164->SetBinContent(48,878.5715); h_SL2L164->SetBinContent(49,820); h_SL2L164->SetBinContent(50,777.1429); h_SL2L164->SetBinContent(51,678.5715); h_SL2L164->SetBinContent(52,661.4286); h_SL2L164->SetBinContent(53,582.8572); h_SL2L164->SetBinContent(54,638.5715); h_SL2L164->SetBinContent(55,625.7143); h_SL2L164->SetBinContent(56,492.8571); h_SL2L164->SetBinContent(57,522.8572); h_SL2L164->SetMaximum(145778.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,682.8572); h_SL2L265->SetBinContent(2,788.5715); h_SL2L265->SetBinContent(3,845.7143); h_SL2L265->SetBinContent(4,978.5715); h_SL2L265->SetBinContent(5,1015.714); h_SL2L265->SetBinContent(6,964.2858); h_SL2L265->SetBinContent(7,1064.286); h_SL2L265->SetBinContent(8,1091.429); h_SL2L265->SetBinContent(9,1145.714); h_SL2L265->SetBinContent(10,1212.857); h_SL2L265->SetBinContent(11,1255.714); h_SL2L265->SetBinContent(12,1332.857); h_SL2L265->SetBinContent(13,1482.857); h_SL2L265->SetBinContent(14,1542.857); h_SL2L265->SetBinContent(15,1635.714); h_SL2L265->SetBinContent(16,1857.143); h_SL2L265->SetBinContent(17,2101.429); h_SL2L265->SetBinContent(18,2275.714); h_SL2L265->SetBinContent(19,2394.286); h_SL2L265->SetBinContent(20,2615.714); h_SL2L265->SetBinContent(21,2661.429); h_SL2L265->SetBinContent(22,2904.286); h_SL2L265->SetBinContent(23,3105.714); h_SL2L265->SetBinContent(24,3635.714); h_SL2L265->SetBinContent(25,4735.714); h_SL2L265->SetBinContent(26,20521.43); h_SL2L265->SetBinContent(27,55894.29); h_SL2L265->SetBinContent(28,102284.3); h_SL2L265->SetBinContent(29,100544.3); h_SL2L265->SetBinContent(30,55871.43); h_SL2L265->SetBinContent(31,26785.71); h_SL2L265->SetBinContent(32,15871.43); h_SL2L265->SetBinContent(33,12035.71); h_SL2L265->SetBinContent(34,8450); h_SL2L265->SetBinContent(35,4262.857); h_SL2L265->SetBinContent(36,2660); h_SL2L265->SetBinContent(37,2237.143); h_SL2L265->SetBinContent(38,1850); h_SL2L265->SetBinContent(39,1695.714); h_SL2L265->SetBinContent(40,1587.143); h_SL2L265->SetBinContent(41,1352.857); h_SL2L265->SetBinContent(42,1130); h_SL2L265->SetBinContent(43,1085.714); h_SL2L265->SetBinContent(44,985.7143); h_SL2L265->SetBinContent(45,951.4286); h_SL2L265->SetBinContent(46,928.5715); h_SL2L265->SetBinContent(47,942.8572); h_SL2L265->SetBinContent(48,778.5715); h_SL2L265->SetBinContent(49,814.2857); h_SL2L265->SetBinContent(50,782.8572); h_SL2L265->SetBinContent(51,680); h_SL2L265->SetBinContent(52,655.7143); h_SL2L265->SetBinContent(53,594.2857); h_SL2L265->SetBinContent(54,608.5715); h_SL2L265->SetBinContent(55,587.1429); h_SL2L265->SetBinContent(56,492.8571); h_SL2L265->SetBinContent(57,507.1429); h_SL2L265->SetMaximum(126764.5); 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,702.8572); h_SL2L366->SetBinContent(2,788.5715); h_SL2L366->SetBinContent(3,911.4286); h_SL2L366->SetBinContent(4,1001.429); h_SL2L366->SetBinContent(5,1001.429); h_SL2L366->SetBinContent(6,1028.571); h_SL2L366->SetBinContent(7,1047.143); h_SL2L366->SetBinContent(8,1118.571); h_SL2L366->SetBinContent(9,1081.429); h_SL2L366->SetBinContent(10,1238.571); h_SL2L366->SetBinContent(11,1264.286); h_SL2L366->SetBinContent(12,1392.857); h_SL2L366->SetBinContent(13,1437.143); h_SL2L366->SetBinContent(14,1498.571); h_SL2L366->SetBinContent(15,1718.571); h_SL2L366->SetBinContent(16,1902.857); h_SL2L366->SetBinContent(17,2065.714); h_SL2L366->SetBinContent(18,2287.143); h_SL2L366->SetBinContent(19,2482.857); h_SL2L366->SetBinContent(20,2558.572); h_SL2L366->SetBinContent(21,2751.429); h_SL2L366->SetBinContent(22,2961.429); h_SL2L366->SetBinContent(23,3317.143); h_SL2L366->SetBinContent(24,3940); h_SL2L366->SetBinContent(25,9430); h_SL2L366->SetBinContent(26,35867.14); h_SL2L366->SetBinContent(27,80761.43); h_SL2L366->SetBinContent(28,110035.7); h_SL2L366->SetBinContent(29,78191.43); h_SL2L366->SetBinContent(30,38598.57); h_SL2L366->SetBinContent(31,20082.86); h_SL2L366->SetBinContent(32,13488.57); h_SL2L366->SetBinContent(33,10365.71); h_SL2L366->SetBinContent(34,6127.143); h_SL2L366->SetBinContent(35,3128.572); h_SL2L366->SetBinContent(36,2347.143); h_SL2L366->SetBinContent(37,2037.143); h_SL2L366->SetBinContent(38,1805.714); h_SL2L366->SetBinContent(39,1547.143); h_SL2L366->SetBinContent(40,1390); h_SL2L366->SetBinContent(41,1214.286); h_SL2L366->SetBinContent(42,1051.429); h_SL2L366->SetBinContent(43,1015.714); h_SL2L366->SetBinContent(44,928.5715); h_SL2L366->SetBinContent(45,884.2857); h_SL2L366->SetBinContent(46,901.4286); h_SL2L366->SetBinContent(47,815.7143); h_SL2L366->SetBinContent(48,791.4286); h_SL2L366->SetBinContent(49,788.5715); h_SL2L366->SetBinContent(50,727.1429); h_SL2L366->SetBinContent(51,635.7143); h_SL2L366->SetBinContent(52,618.5715); h_SL2L366->SetBinContent(53,547.1429); h_SL2L366->SetBinContent(54,607.1429); h_SL2L366->SetBinContent(55,551.4286); h_SL2L366->SetBinContent(56,494.2857); h_SL2L366->SetBinContent(57,514.2857); h_SL2L366->SetMaximum(126764.5); 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,720); h_SL2L467->SetBinContent(3,838.5715); h_SL2L467->SetBinContent(4,944.2858); h_SL2L467->SetBinContent(5,964.2858); h_SL2L467->SetBinContent(6,932.8572); h_SL2L467->SetBinContent(7,1022.857); h_SL2L467->SetBinContent(8,1000); h_SL2L467->SetBinContent(9,1102.857); h_SL2L467->SetBinContent(10,1118.571); h_SL2L467->SetBinContent(11,1177.143); h_SL2L467->SetBinContent(12,1224.286); h_SL2L467->SetBinContent(13,1325.714); h_SL2L467->SetBinContent(14,1390); h_SL2L467->SetBinContent(15,1531.429); h_SL2L467->SetBinContent(16,1754.286); h_SL2L467->SetBinContent(17,1930); h_SL2L467->SetBinContent(18,2108.572); h_SL2L467->SetBinContent(19,2322.857); h_SL2L467->SetBinContent(20,2560); h_SL2L467->SetBinContent(21,2512.857); h_SL2L467->SetBinContent(22,2812.857); h_SL2L467->SetBinContent(23,3051.429); h_SL2L467->SetBinContent(24,3438.572); h_SL2L467->SetBinContent(25,4671.429); h_SL2L467->SetBinContent(26,20510); h_SL2L467->SetBinContent(27,55885.71); h_SL2L467->SetBinContent(28,102280); h_SL2L467->SetBinContent(29,100437.1); h_SL2L467->SetBinContent(30,56192.86); h_SL2L467->SetBinContent(31,26797.14); h_SL2L467->SetBinContent(32,15847.14); h_SL2L467->SetBinContent(33,11977.14); h_SL2L467->SetBinContent(34,8334.286); h_SL2L467->SetBinContent(35,4165.714); h_SL2L467->SetBinContent(36,2600); h_SL2L467->SetBinContent(37,2104.286); h_SL2L467->SetBinContent(38,1768.571); h_SL2L467->SetBinContent(39,1635.714); h_SL2L467->SetBinContent(40,1468.571); h_SL2L467->SetBinContent(41,1230); h_SL2L467->SetBinContent(42,1110); h_SL2L467->SetBinContent(43,1068.571); h_SL2L467->SetBinContent(44,914.2858); h_SL2L467->SetBinContent(45,888.5715); h_SL2L467->SetBinContent(46,841.4286); h_SL2L467->SetBinContent(47,874.2857); h_SL2L467->SetBinContent(48,741.4286); h_SL2L467->SetBinContent(49,754.2857); h_SL2L467->SetBinContent(50,755.7143); h_SL2L467->SetBinContent(51,630); h_SL2L467->SetBinContent(52,620); h_SL2L467->SetBinContent(53,588.5715); h_SL2L467->SetBinContent(54,541.4286); h_SL2L467->SetBinContent(55,585.7143); h_SL2L467->SetBinContent(56,495.7143); h_SL2L467->SetBinContent(57,468.5714); h_SL2L467->SetMaximum(126764.5); 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 5490"); pt->Draw(); c->Modified(); c->cd(); c->SetSelected(c); }