void RatesPerCell_Removing_noisy_cells_run_4985_SL2() { //=========Macro generated from canvas: c/c //========= (Sun Jan 13 16:19:49 2019) by ROOT version6.02/13 TCanvas *c = new TCanvas("c", "c",0,0,800,600); gStyle->SetOptStat(0); c->Range(-7.500001,-9195.976,67.5,82763.78); c->SetFillColor(0); c->SetBorderMode(0); c->SetBorderSize(2); c->SetFrameBorderMode(0); c->SetFrameBorderMode(0); TH1D *h_SL2L164 = new TH1D("h_SL2L164","SL2, run 4985",60,0,60); h_SL2L164->SetBinContent(1,685.7143); h_SL2L164->SetBinContent(2,862.1429); h_SL2L164->SetBinContent(3,1011.429); h_SL2L164->SetBinContent(4,1080); h_SL2L164->SetBinContent(5,1070); h_SL2L164->SetBinContent(6,1119.286); h_SL2L164->SetBinContent(7,1159.286); h_SL2L164->SetBinContent(8,1230); h_SL2L164->SetBinContent(9,1387.857); h_SL2L164->SetBinContent(10,1535); h_SL2L164->SetBinContent(11,1720); h_SL2L164->SetBinContent(12,1738.571); h_SL2L164->SetBinContent(13,1922.857); h_SL2L164->SetBinContent(14,2042.143); h_SL2L164->SetBinContent(15,2170); h_SL2L164->SetBinContent(16,2249.286); h_SL2L164->SetBinContent(17,2515.714); h_SL2L164->SetBinContent(18,2653.572); h_SL2L164->SetBinContent(19,2949.286); h_SL2L164->SetBinContent(20,3127.857); h_SL2L164->SetBinContent(21,3359.286); h_SL2L164->SetBinContent(22,3517.857); h_SL2L164->SetBinContent(23,3867.857); h_SL2L164->SetBinContent(24,4207.143); h_SL2L164->SetBinContent(25,9187.144); h_SL2L164->SetBinContent(26,29047.14); h_SL2L164->SetBinContent(27,44478.57); h_SL2L164->SetBinContent(28,52457.14); h_SL2L164->SetBinContent(29,55627.86); h_SL2L164->SetBinContent(30,52761.43); h_SL2L164->SetBinContent(31,48715); h_SL2L164->SetBinContent(32,48818.57); h_SL2L164->SetBinContent(33,47766.43); h_SL2L164->SetBinContent(34,27231.43); h_SL2L164->SetBinContent(35,4.285714); h_SL2L164->SetBinContent(36,4626.429); h_SL2L164->SetBinContent(37,8069.286); h_SL2L164->SetBinContent(38,5137.857); h_SL2L164->SetBinContent(39,6440); h_SL2L164->SetBinContent(40,32357.86); h_SL2L164->SetBinContent(41,8428.571); h_SL2L164->SetBinContent(42,8937.857); h_SL2L164->SetBinContent(43,8958.571); h_SL2L164->SetBinContent(44,9018.571); h_SL2L164->SetBinContent(45,1428.571); h_SL2L164->SetBinContent(46,1327.857); h_SL2L164->SetBinContent(47,1229.286); h_SL2L164->SetBinContent(48,1126.429); h_SL2L164->SetBinContent(49,1087.143); h_SL2L164->SetBinContent(50,969.2858); h_SL2L164->SetBinContent(51,861.4286); h_SL2L164->SetBinContent(52,828.5715); h_SL2L164->SetBinContent(53,784.2857); h_SL2L164->SetBinContent(54,730.7143); h_SL2L164->SetBinContent(55,702.1429); h_SL2L164->SetBinContent(56,579.2857); h_SL2L164->SetBinContent(57,2826.429); h_SL2L164->SetMaximum(73567.8); 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,655.7143); h_SL2L265->SetBinContent(2,785); h_SL2L265->SetBinContent(3,893.5715); h_SL2L265->SetBinContent(4,994.2858); h_SL2L265->SetBinContent(5,1064.286); h_SL2L265->SetBinContent(6,1080.714); h_SL2L265->SetBinContent(7,1142.857); h_SL2L265->SetBinContent(8,1156.429); h_SL2L265->SetBinContent(9,1285.714); h_SL2L265->SetBinContent(10,1387.857); h_SL2L265->SetBinContent(11,1594.286); h_SL2L265->SetBinContent(12,1682.143); h_SL2L265->SetBinContent(13,1787.857); h_SL2L265->SetBinContent(14,1910.714); h_SL2L265->SetBinContent(15,2101.429); h_SL2L265->SetBinContent(16,2180); h_SL2L265->SetBinContent(17,2282.143); h_SL2L265->SetBinContent(18,2482.857); h_SL2L265->SetBinContent(19,2739.286); h_SL2L265->SetBinContent(20,3032.143); h_SL2L265->SetBinContent(21,3125); h_SL2L265->SetBinContent(22,3382.143); h_SL2L265->SetBinContent(23,3633.572); h_SL2L265->SetBinContent(24,3942.143); h_SL2L265->SetBinContent(25,4832.857); h_SL2L265->SetBinContent(26,18558.57); h_SL2L265->SetBinContent(27,37865.71); h_SL2L265->SetBinContent(28,49066.43); h_SL2L265->SetBinContent(29,54187.14); h_SL2L265->SetBinContent(30,54467.86); h_SL2L265->SetBinContent(31,49633.57); h_SL2L265->SetBinContent(32,48320); h_SL2L265->SetBinContent(33,48804.29); h_SL2L265->SetBinContent(34,41106.43); h_SL2L265->SetBinContent(35,14609.29); h_SL2L265->SetBinContent(36,5434.286); h_SL2L265->SetBinContent(37,3675.714); h_SL2L265->SetBinContent(38,3110); h_SL2L265->SetBinContent(39,4053.572); h_SL2L265->SetBinContent(40,5006.429); h_SL2L265->SetBinContent(41,2553.572); h_SL2L265->SetBinContent(42,2744.286); h_SL2L265->SetBinContent(43,2135.714); h_SL2L265->SetBinContent(44,2910); h_SL2L265->SetBinContent(45,1490); h_SL2L265->SetBinContent(46,1353.571); h_SL2L265->SetBinContent(47,1259.286); h_SL2L265->SetBinContent(48,1140.714); h_SL2L265->SetBinContent(49,1083.571); h_SL2L265->SetBinContent(50,1001.429); h_SL2L265->SetBinContent(51,881.4286); h_SL2L265->SetBinContent(52,816.4286); h_SL2L265->SetBinContent(53,795); h_SL2L265->SetBinContent(54,756.4286); h_SL2L265->SetBinContent(55,701.4286); h_SL2L265->SetBinContent(56,642.8572); h_SL2L265->SetBinContent(57,577.8572); h_SL2L265->SetMaximum(63972.04); 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,644.2857); h_SL2L366->SetBinContent(2,827.1429); h_SL2L366->SetBinContent(3,930); h_SL2L366->SetBinContent(4,1015.714); h_SL2L366->SetBinContent(5,1043.571); h_SL2L366->SetBinContent(6,1100); h_SL2L366->SetBinContent(7,1076.429); h_SL2L366->SetBinContent(8,1192.143); h_SL2L366->SetBinContent(9,1322.857); h_SL2L366->SetBinContent(10,1432.857); h_SL2L366->SetBinContent(11,1586.429); h_SL2L366->SetBinContent(12,1676.429); h_SL2L366->SetBinContent(13,1803.571); h_SL2L366->SetBinContent(14,1959.286); h_SL2L366->SetBinContent(15,2092.857); h_SL2L366->SetBinContent(16,2138.572); h_SL2L366->SetBinContent(17,2422.857); h_SL2L366->SetBinContent(18,2513.572); h_SL2L366->SetBinContent(19,2832.143); h_SL2L366->SetBinContent(20,2988.572); h_SL2L366->SetBinContent(21,3305); h_SL2L366->SetBinContent(22,3422.857); h_SL2L366->SetBinContent(23,3729.286); h_SL2L366->SetBinContent(24,4085); h_SL2L366->SetBinContent(25,9045.715); h_SL2L366->SetBinContent(26,29072.86); h_SL2L366->SetBinContent(27,44188.57); h_SL2L366->SetBinContent(28,52262.14); h_SL2L366->SetBinContent(29,54818.57); h_SL2L366->SetBinContent(30,52400); h_SL2L366->SetBinContent(31,48670); h_SL2L366->SetBinContent(32,48792.86); h_SL2L366->SetBinContent(33,47565.71); h_SL2L366->SetBinContent(34,27336.43); h_SL2L366->SetBinContent(35,7809.286); h_SL2L366->SetBinContent(36,4274.286); h_SL2L366->SetBinContent(37,3285); h_SL2L366->SetBinContent(38,2860.714); h_SL2L366->SetBinContent(39,2454.286); h_SL2L366->SetBinContent(40,3583.572); h_SL2L366->SetBinContent(41,2032.143); h_SL2L366->SetBinContent(42,1822.857); h_SL2L366->SetBinContent(43,1632.857); h_SL2L366->SetBinContent(44,1494.286); h_SL2L366->SetBinContent(45,1377.857); h_SL2L366->SetBinContent(46,1273.571); h_SL2L366->SetBinContent(47,1178.571); h_SL2L366->SetBinContent(48,1075); h_SL2L366->SetBinContent(49,1028.571); h_SL2L366->SetBinContent(50,930); h_SL2L366->SetBinContent(51,798.5715); h_SL2L366->SetBinContent(52,794.2857); h_SL2L366->SetBinContent(53,700.7143); h_SL2L366->SetBinContent(54,687.8572); h_SL2L366->SetBinContent(55,683.5715); h_SL2L366->SetBinContent(56,590); h_SL2L366->SetBinContent(57,567.8572); h_SL2L366->SetMaximum(63972.04); 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,750); h_SL2L467->SetBinContent(3,829.2857); h_SL2L467->SetBinContent(4,941.4286); h_SL2L467->SetBinContent(5,1002.857); h_SL2L467->SetBinContent(6,1027.143); h_SL2L467->SetBinContent(7,1117.143); h_SL2L467->SetBinContent(8,1098.571); h_SL2L467->SetBinContent(9,1237.143); h_SL2L467->SetBinContent(10,1304.286); h_SL2L467->SetBinContent(11,1490); h_SL2L467->SetBinContent(12,1586.429); h_SL2L467->SetBinContent(13,1697.857); h_SL2L467->SetBinContent(14,1782.857); h_SL2L467->SetBinContent(15,1967.857); h_SL2L467->SetBinContent(16,1997.143); h_SL2L467->SetBinContent(17,2204.286); h_SL2L467->SetBinContent(18,2343.572); h_SL2L467->SetBinContent(19,2640); h_SL2L467->SetBinContent(20,2964.286); h_SL2L467->SetBinContent(21,3025.714); h_SL2L467->SetBinContent(22,3283.572); h_SL2L467->SetBinContent(23,3525.714); h_SL2L467->SetBinContent(24,3828.572); h_SL2L467->SetBinContent(25,4686.429); h_SL2L467->SetBinContent(26,18432.86); h_SL2L467->SetBinContent(27,38111.43); h_SL2L467->SetBinContent(28,48853.57); h_SL2L467->SetBinContent(29,54205.71); h_SL2L467->SetBinContent(30,55194.29); h_SL2L467->SetBinContent(31,49690.71); h_SL2L467->SetBinContent(32,48635); h_SL2L467->SetBinContent(33,48933.57); h_SL2L467->SetBinContent(34,41218.57); h_SL2L467->SetBinContent(35,14621.43); h_SL2L467->SetBinContent(36,5281.429); h_SL2L467->SetBinContent(37,3562.143); h_SL2L467->SetBinContent(38,2957.857); h_SL2L467->SetBinContent(39,2671.429); h_SL2L467->SetBinContent(40,2173.572); h_SL2L467->SetBinContent(41,2062.143); h_SL2L467->SetBinContent(42,1951.429); h_SL2L467->SetBinContent(43,1731.429); h_SL2L467->SetBinContent(44,1515.714); h_SL2L467->SetBinContent(45,1382.857); h_SL2L467->SetBinContent(46,1275); h_SL2L467->SetBinContent(47,1196.429); h_SL2L467->SetBinContent(48,1088.571); h_SL2L467->SetBinContent(49,1001.429); h_SL2L467->SetBinContent(50,892.8572); h_SL2L467->SetBinContent(51,851.4286); h_SL2L467->SetBinContent(52,763.5715); h_SL2L467->SetBinContent(53,722.1429); h_SL2L467->SetBinContent(54,680); h_SL2L467->SetBinContent(55,685); h_SL2L467->SetBinContent(56,626.4286); h_SL2L467->SetBinContent(57,530.7143); h_SL2L467->SetMaximum(63972.04); 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 4985"); pt->Draw(); c->Modified(); c->cd(); c->SetSelected(c); }