void RatesPerCell_Removing_noisy_cells_run_5485_SL2() { //=========Macro generated from canvas: c/c //========= (Sun Jan 13 15:15:39 2019) by ROOT version6.02/13 TCanvas *c = new TCanvas("c", "c",0,0,800,600); gStyle->SetOptStat(0); c->Range(-7.500001,-18309.87,67.5,164788.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 5485",60,0,60); h_SL2L164->SetBinContent(1,762.8572); h_SL2L164->SetBinContent(2,854.2857); h_SL2L164->SetBinContent(3,964.2858); h_SL2L164->SetBinContent(4,1068.571); h_SL2L164->SetBinContent(5,1128.571); h_SL2L164->SetBinContent(6,1085.714); h_SL2L164->SetBinContent(7,1058.571); h_SL2L164->SetBinContent(8,1170); h_SL2L164->SetBinContent(9,1201.429); h_SL2L164->SetBinContent(10,1382.857); h_SL2L164->SetBinContent(11,1484.286); h_SL2L164->SetBinContent(12,1550); h_SL2L164->SetBinContent(13,1620); h_SL2L164->SetBinContent(14,1722.857); h_SL2L164->SetBinContent(15,1882.857); h_SL2L164->SetBinContent(16,2038.572); h_SL2L164->SetBinContent(17,2260); h_SL2L164->SetBinContent(18,2365.714); h_SL2L164->SetBinContent(19,2458.572); h_SL2L164->SetBinContent(20,2790); h_SL2L164->SetBinContent(21,2897.143); h_SL2L164->SetBinContent(22,3282.857); h_SL2L164->SetBinContent(23,3668.572); h_SL2L164->SetBinContent(24,4068.572); h_SL2L164->SetBinContent(25,9851.429); h_SL2L164->SetBinContent(26,36091.43); h_SL2L164->SetBinContent(27,80478.57); h_SL2L164->SetBinContent(28,110760); h_SL2L164->SetBinContent(29,78752.86); h_SL2L164->SetBinContent(30,38897.14); h_SL2L164->SetBinContent(31,20501.43); h_SL2L164->SetBinContent(32,14095.71); h_SL2L164->SetBinContent(33,10672.86); h_SL2L164->SetBinContent(34,6302.857); h_SL2L164->SetBinContent(36,2488.572); h_SL2L164->SetBinContent(37,2161.429); h_SL2L164->SetBinContent(38,1934.286); h_SL2L164->SetBinContent(39,1745.714); h_SL2L164->SetBinContent(40,1312.857); h_SL2L164->SetBinContent(41,1335.714); h_SL2L164->SetBinContent(42,1322.857); h_SL2L164->SetBinContent(43,1140); h_SL2L164->SetBinContent(44,1087.143); h_SL2L164->SetBinContent(45,997.1429); h_SL2L164->SetBinContent(46,970); h_SL2L164->SetBinContent(47,925.7143); h_SL2L164->SetBinContent(48,847.1429); h_SL2L164->SetBinContent(49,830); h_SL2L164->SetBinContent(50,754.2857); h_SL2L164->SetBinContent(51,738.5715); h_SL2L164->SetBinContent(52,668.5715); h_SL2L164->SetBinContent(53,632.8572); h_SL2L164->SetBinContent(54,642.8572); h_SL2L164->SetBinContent(55,551.4286); h_SL2L164->SetBinContent(56,538.5714); h_SL2L164->SetBinContent(57,522.8572); h_SL2L164->SetMaximum(146478.9); 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,765.7143); h_SL2L265->SetBinContent(2,791.4286); h_SL2L265->SetBinContent(3,901.4286); h_SL2L265->SetBinContent(4,971.4286); h_SL2L265->SetBinContent(5,1020); h_SL2L265->SetBinContent(6,1074.286); h_SL2L265->SetBinContent(7,1085.714); h_SL2L265->SetBinContent(8,1120); h_SL2L265->SetBinContent(9,1155.714); h_SL2L265->SetBinContent(10,1270); h_SL2L265->SetBinContent(11,1435.714); h_SL2L265->SetBinContent(12,1411.429); h_SL2L265->SetBinContent(13,1550); h_SL2L265->SetBinContent(14,1572.857); h_SL2L265->SetBinContent(15,1790); h_SL2L265->SetBinContent(16,1874.286); h_SL2L265->SetBinContent(17,2042.857); h_SL2L265->SetBinContent(18,2237.143); h_SL2L265->SetBinContent(19,2364.286); h_SL2L265->SetBinContent(20,2508.572); h_SL2L265->SetBinContent(21,2884.286); h_SL2L265->SetBinContent(22,3022.857); h_SL2L265->SetBinContent(23,3308.572); h_SL2L265->SetBinContent(24,3748.572); h_SL2L265->SetBinContent(25,4828.572); h_SL2L265->SetBinContent(26,20771.43); h_SL2L265->SetBinContent(27,55971.43); h_SL2L265->SetBinContent(28,101765.7); h_SL2L265->SetBinContent(29,100217.1); h_SL2L265->SetBinContent(30,55947.14); h_SL2L265->SetBinContent(31,26790); h_SL2L265->SetBinContent(32,16358.57); h_SL2L265->SetBinContent(33,12100); h_SL2L265->SetBinContent(34,8638.571); h_SL2L265->SetBinContent(35,4334.286); h_SL2L265->SetBinContent(36,2738.572); h_SL2L265->SetBinContent(37,2301.429); h_SL2L265->SetBinContent(38,1967.143); h_SL2L265->SetBinContent(39,1812.857); h_SL2L265->SetBinContent(40,1551.429); h_SL2L265->SetBinContent(41,1442.857); h_SL2L265->SetBinContent(42,1268.571); h_SL2L265->SetBinContent(43,1131.429); h_SL2L265->SetBinContent(44,1162.857); h_SL2L265->SetBinContent(45,992.8572); h_SL2L265->SetBinContent(46,902.8572); h_SL2L265->SetBinContent(47,931.4286); h_SL2L265->SetBinContent(48,831.4286); h_SL2L265->SetBinContent(49,811.4286); h_SL2L265->SetBinContent(50,722.8572); h_SL2L265->SetBinContent(51,757.1429); h_SL2L265->SetBinContent(52,652.8572); h_SL2L265->SetBinContent(53,611.4286); h_SL2L265->SetBinContent(54,601.4286); h_SL2L265->SetBinContent(55,627.1429); h_SL2L265->SetBinContent(56,545.7143); h_SL2L265->SetBinContent(57,514.2857); h_SL2L265->SetMaximum(127374); 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,767.1429); h_SL2L366->SetBinContent(2,851.4286); h_SL2L366->SetBinContent(3,935.7143); h_SL2L366->SetBinContent(4,972.8572); h_SL2L366->SetBinContent(5,1037.143); h_SL2L366->SetBinContent(6,1038.571); h_SL2L366->SetBinContent(7,1021.429); h_SL2L366->SetBinContent(8,1148.571); h_SL2L366->SetBinContent(9,1150); h_SL2L366->SetBinContent(10,1322.857); h_SL2L366->SetBinContent(11,1330); h_SL2L366->SetBinContent(12,1418.571); h_SL2L366->SetBinContent(13,1502.857); h_SL2L366->SetBinContent(14,1614.286); h_SL2L366->SetBinContent(15,1777.143); h_SL2L366->SetBinContent(16,1860); h_SL2L366->SetBinContent(17,2112.857); h_SL2L366->SetBinContent(18,2254.286); h_SL2L366->SetBinContent(19,2285.714); h_SL2L366->SetBinContent(20,2642.857); h_SL2L366->SetBinContent(21,2718.572); h_SL2L366->SetBinContent(22,3174.286); h_SL2L366->SetBinContent(23,3392.857); h_SL2L366->SetBinContent(24,4035.714); h_SL2L366->SetBinContent(25,9621.429); h_SL2L366->SetBinContent(26,36047.14); h_SL2L366->SetBinContent(27,80130); h_SL2L366->SetBinContent(28,110342.9); h_SL2L366->SetBinContent(29,78200); h_SL2L366->SetBinContent(30,38598.57); h_SL2L366->SetBinContent(31,20321.43); h_SL2L366->SetBinContent(32,13975.71); h_SL2L366->SetBinContent(33,10390); h_SL2L366->SetBinContent(34,6235.714); h_SL2L366->SetBinContent(35,3151.429); h_SL2L366->SetBinContent(36,2380); h_SL2L366->SetBinContent(37,2082.857); h_SL2L366->SetBinContent(38,1778.571); h_SL2L366->SetBinContent(39,1607.143); h_SL2L366->SetBinContent(40,1392.857); h_SL2L366->SetBinContent(41,1350); h_SL2L366->SetBinContent(42,1177.143); h_SL2L366->SetBinContent(43,1048.571); h_SL2L366->SetBinContent(44,994.2858); h_SL2L366->SetBinContent(45,930); h_SL2L366->SetBinContent(46,890); h_SL2L366->SetBinContent(47,870); h_SL2L366->SetBinContent(48,778.5715); h_SL2L366->SetBinContent(49,788.5715); h_SL2L366->SetBinContent(50,715.7143); h_SL2L366->SetBinContent(51,675.7143); h_SL2L366->SetBinContent(52,655.7143); h_SL2L366->SetBinContent(53,598.5715); h_SL2L366->SetBinContent(54,625.7143); h_SL2L366->SetBinContent(55,531.4286); h_SL2L366->SetBinContent(56,507.1429); h_SL2L366->SetBinContent(57,480); h_SL2L366->SetMaximum(127374); 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,825.7143); h_SL2L467->SetBinContent(3,887.1429); h_SL2L467->SetBinContent(4,875.7143); h_SL2L467->SetBinContent(5,1032.857); h_SL2L467->SetBinContent(6,1042.857); h_SL2L467->SetBinContent(7,982.8572); h_SL2L467->SetBinContent(8,1017.143); h_SL2L467->SetBinContent(9,1098.571); h_SL2L467->SetBinContent(10,1150); h_SL2L467->SetBinContent(11,1337.143); h_SL2L467->SetBinContent(12,1331.429); h_SL2L467->SetBinContent(13,1430); h_SL2L467->SetBinContent(14,1488.571); h_SL2L467->SetBinContent(15,1661.429); h_SL2L467->SetBinContent(16,1728.571); h_SL2L467->SetBinContent(17,1915.714); h_SL2L467->SetBinContent(18,2042.857); h_SL2L467->SetBinContent(19,2282.857); h_SL2L467->SetBinContent(20,2382.857); h_SL2L467->SetBinContent(21,2677.143); h_SL2L467->SetBinContent(22,2838.572); h_SL2L467->SetBinContent(23,3125.714); h_SL2L467->SetBinContent(24,3640); h_SL2L467->SetBinContent(25,4737.143); h_SL2L467->SetBinContent(26,20750); h_SL2L467->SetBinContent(27,56180); h_SL2L467->SetBinContent(28,101465.7); h_SL2L467->SetBinContent(29,100275.7); h_SL2L467->SetBinContent(30,56252.86); h_SL2L467->SetBinContent(31,26891.43); h_SL2L467->SetBinContent(32,16385.71); h_SL2L467->SetBinContent(33,12025.71); h_SL2L467->SetBinContent(34,8544.286); h_SL2L467->SetBinContent(35,4240); h_SL2L467->SetBinContent(36,2662.857); h_SL2L467->SetBinContent(37,2171.429); h_SL2L467->SetBinContent(38,1808.571); h_SL2L467->SetBinContent(39,1675.714); h_SL2L467->SetBinContent(40,1391.429); h_SL2L467->SetBinContent(41,1364.286); h_SL2L467->SetBinContent(42,1135.714); h_SL2L467->SetBinContent(43,1090); h_SL2L467->SetBinContent(44,1052.857); h_SL2L467->SetBinContent(45,941.4286); h_SL2L467->SetBinContent(46,881.4286); h_SL2L467->SetBinContent(47,910); h_SL2L467->SetBinContent(48,855.7143); h_SL2L467->SetBinContent(49,735.7143); h_SL2L467->SetBinContent(50,720); h_SL2L467->SetBinContent(51,724.2857); h_SL2L467->SetBinContent(52,595.7143); h_SL2L467->SetBinContent(53,565.7143); h_SL2L467->SetBinContent(54,610); h_SL2L467->SetBinContent(55,561.4286); h_SL2L467->SetBinContent(56,508.5714); h_SL2L467->SetBinContent(57,521.4286); h_SL2L467->SetMaximum(127374); 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 5485"); pt->Draw(); c->Modified(); c->cd(); c->SetSelected(c); }