void RatesPerCell_Removing_noisy_cells_run_5485_SL1() { //=========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,-18632.73,67.5,167694.6); c->SetFillColor(0); c->SetBorderMode(0); c->SetBorderSize(2); c->SetFrameBorderMode(0); c->SetFrameBorderMode(0); TH1D *h_SL1L160 = new TH1D("h_SL1L160","SL1, run 5485",60,0,60); h_SL1L160->SetBinContent(1,417.1429); h_SL1L160->SetBinContent(2,420); h_SL1L160->SetBinContent(3,438.5714); h_SL1L160->SetBinContent(4,381.4286); h_SL1L160->SetBinContent(5,512.8572); h_SL1L160->SetBinContent(6,501.4286); h_SL1L160->SetBinContent(7,538.5714); h_SL1L160->SetBinContent(8,507.1429); h_SL1L160->SetBinContent(9,547.1429); h_SL1L160->SetBinContent(10,581.4286); h_SL1L160->SetBinContent(11,664.2857); h_SL1L160->SetBinContent(12,618.5715); h_SL1L160->SetBinContent(13,687.1429); h_SL1L160->SetBinContent(14,788.5715); h_SL1L160->SetBinContent(15,661.4286); h_SL1L160->SetBinContent(16,685.7143); h_SL1L160->SetBinContent(17,677.1429); h_SL1L160->SetBinContent(18,938.5715); h_SL1L160->SetBinContent(19,972.8572); h_SL1L160->SetBinContent(20,1170); h_SL1L160->SetBinContent(21,1341.429); h_SL1L160->SetBinContent(22,1424.286); h_SL1L160->SetBinContent(23,1507.143); h_SL1L160->SetBinContent(24,1680); h_SL1L160->SetBinContent(25,1781.429); h_SL1L160->SetBinContent(26,1864.286); h_SL1L160->SetBinContent(27,2005.714); h_SL1L160->SetBinContent(28,2737.143); h_SL1L160->SetBinContent(29,2771.429); h_SL1L160->SetBinContent(30,3165.714); h_SL1L160->SetBinContent(31,4040); h_SL1L160->SetBinContent(32,5310); h_SL1L160->SetBinContent(33,14257.14); h_SL1L160->SetBinContent(34,21570); h_SL1L160->SetBinContent(35,31694.29); h_SL1L160->SetBinContent(36,47770); h_SL1L160->SetBinContent(37,84318.57); h_SL1L160->SetBinContent(38,110320); h_SL1L160->SetBinContent(39,66867.14); h_SL1L160->SetBinContent(40,11172.86); h_SL1L160->SetBinContent(41,5785.714); h_SL1L160->SetBinContent(42,4450); h_SL1L160->SetBinContent(43,3942.857); h_SL1L160->SetBinContent(44,3408.572); h_SL1L160->SetBinContent(45,3108.572); h_SL1L160->SetBinContent(46,2855.714); h_SL1L160->SetBinContent(47,2685.714); h_SL1L160->SetBinContent(48,2510); h_SL1L160->SetBinContent(49,2177.143); h_SL1L160->SetBinContent(50,2224.286); h_SL1L160->SetBinContent(51,1952.857); h_SL1L160->SetBinContent(52,1817.143); h_SL1L160->SetBinContent(53,1680); h_SL1L160->SetBinContent(54,1491.429); h_SL1L160->SetBinContent(55,1457.143); h_SL1L160->SetBinContent(56,1307.143); h_SL1L160->SetBinContent(57,1385.714); h_SL1L160->SetBinContent(58,1182.857); h_SL1L160->SetBinContent(59,1145.714); h_SL1L160->SetMaximum(149061.8); h_SL1L160->SetEntries(60); h_SL1L160->SetDirectory(0); h_SL1L160->SetStats(0); h_SL1L160->SetLineWidth(2); h_SL1L160->GetXaxis()->SetTitle("Cell"); h_SL1L160->GetXaxis()->SetLabelFont(42); h_SL1L160->GetXaxis()->SetLabelSize(0.035); h_SL1L160->GetXaxis()->SetTitleSize(0.035); h_SL1L160->GetXaxis()->SetTitleFont(42); h_SL1L160->GetYaxis()->SetTitle("Hz"); h_SL1L160->GetYaxis()->SetLabelFont(42); h_SL1L160->GetYaxis()->SetLabelSize(0.035); h_SL1L160->GetYaxis()->SetTitleSize(0.035); h_SL1L160->GetYaxis()->SetTitleOffset(1.45); h_SL1L160->GetYaxis()->SetTitleFont(42); h_SL1L160->GetZaxis()->SetLabelFont(42); h_SL1L160->GetZaxis()->SetLabelSize(0.035); h_SL1L160->GetZaxis()->SetTitleSize(0.035); h_SL1L160->GetZaxis()->SetTitleFont(42); h_SL1L160->Draw(""); TH1D *h_SL1L261 = new TH1D("h_SL1L261","",60,0,60); h_SL1L261->SetBinContent(1,382.8571); h_SL1L261->SetBinContent(2,372.8571); h_SL1L261->SetBinContent(3,398.5714); h_SL1L261->SetBinContent(4,335.7143); h_SL1L261->SetBinContent(5,411.4286); h_SL1L261->SetBinContent(6,484.2857); h_SL1L261->SetBinContent(7,441.4286); h_SL1L261->SetBinContent(8,470); h_SL1L261->SetBinContent(9,458.5714); h_SL1L261->SetBinContent(10,548.5714); h_SL1L261->SetBinContent(11,598.5715); h_SL1L261->SetBinContent(12,594.2857); h_SL1L261->SetBinContent(13,601.4286); h_SL1L261->SetBinContent(14,691.4286); h_SL1L261->SetBinContent(15,711.4286); h_SL1L261->SetBinContent(16,624.2857); h_SL1L261->SetBinContent(17,672.8572); h_SL1L261->SetBinContent(18,790); h_SL1L261->SetBinContent(19,895.7143); h_SL1L261->SetBinContent(20,1021.429); h_SL1L261->SetBinContent(21,1214.286); h_SL1L261->SetBinContent(22,1301.429); h_SL1L261->SetBinContent(23,1440); h_SL1L261->SetBinContent(24,1604.286); h_SL1L261->SetBinContent(25,1725.714); h_SL1L261->SetBinContent(26,1657.143); h_SL1L261->SetBinContent(27,1882.857); h_SL1L261->SetBinContent(28,2350); h_SL1L261->SetBinContent(29,2774.286); h_SL1L261->SetBinContent(30,2902.857); h_SL1L261->SetBinContent(31,3468.572); h_SL1L261->SetBinContent(32,4685.714); h_SL1L261->SetBinContent(33,9171.429); h_SL1L261->SetBinContent(34,18315.71); h_SL1L261->SetBinContent(35,26602.86); h_SL1L261->SetBinContent(36,39202.86); h_SL1L261->SetBinContent(37,64597.14); h_SL1L261->SetBinContent(38,106050); h_SL1L261->SetBinContent(39,101872.9); h_SL1L261->SetBinContent(40,26894.29); h_SL1L261->SetBinContent(41,9228.571); h_SL1L261->SetBinContent(42,5017.143); h_SL1L261->SetBinContent(43,4070); h_SL1L261->SetBinContent(44,3604.286); h_SL1L261->SetBinContent(45,3194.286); h_SL1L261->SetBinContent(46,3017.143); h_SL1L261->SetBinContent(47,2727.143); h_SL1L261->SetBinContent(48,2478.572); h_SL1L261->SetBinContent(49,2322.857); h_SL1L261->SetBinContent(50,2048.572); h_SL1L261->SetBinContent(51,2095.714); h_SL1L261->SetBinContent(52,1817.143); h_SL1L261->SetBinContent(53,1724.286); h_SL1L261->SetBinContent(54,1558.571); h_SL1L261->SetBinContent(55,1431.429); h_SL1L261->SetBinContent(56,1321.429); h_SL1L261->SetBinContent(57,1278.571); h_SL1L261->SetBinContent(58,1217.143); h_SL1L261->SetBinContent(59,1110); h_SL1L261->SetMaximum(129619.8); h_SL1L261->SetEntries(60); h_SL1L261->SetDirectory(0); h_SL1L261->SetStats(0); Int_t ci; // for color index setting TColor *color; // for color definition with alpha ci = TColor::GetColor("#cc0000"); h_SL1L261->SetLineColor(ci); h_SL1L261->SetLineWidth(2); h_SL1L261->GetXaxis()->SetTitle("Cell"); h_SL1L261->GetXaxis()->SetLabelFont(42); h_SL1L261->GetXaxis()->SetLabelSize(0.035); h_SL1L261->GetXaxis()->SetTitleSize(0.035); h_SL1L261->GetXaxis()->SetTitleFont(42); h_SL1L261->GetYaxis()->SetTitle("Hz"); h_SL1L261->GetYaxis()->SetLabelFont(42); h_SL1L261->GetYaxis()->SetLabelSize(0.035); h_SL1L261->GetYaxis()->SetTitleSize(0.035); h_SL1L261->GetYaxis()->SetTitleOffset(1.45); h_SL1L261->GetYaxis()->SetTitleFont(42); h_SL1L261->GetZaxis()->SetLabelFont(42); h_SL1L261->GetZaxis()->SetLabelSize(0.035); h_SL1L261->GetZaxis()->SetTitleSize(0.035); h_SL1L261->GetZaxis()->SetTitleFont(42); h_SL1L261->Draw("same"); TH1D *h_SL1L362 = new TH1D("h_SL1L362","",60,0,60); h_SL1L362->SetBinContent(1,344.2857); h_SL1L362->SetBinContent(2,324.2857); h_SL1L362->SetBinContent(3,361.4286); h_SL1L362->SetBinContent(4,351.4286); h_SL1L362->SetBinContent(5,455.7143); h_SL1L362->SetBinContent(6,410); h_SL1L362->SetBinContent(7,412.8571); h_SL1L362->SetBinContent(8,461.4286); h_SL1L362->SetBinContent(9,464.2857); h_SL1L362->SetBinContent(10,491.4286); h_SL1L362->SetBinContent(11,547.1429); h_SL1L362->SetBinContent(12,525.7143); h_SL1L362->SetBinContent(13,598.5715); h_SL1L362->SetBinContent(14,665.7143); h_SL1L362->SetBinContent(15,604.2857); h_SL1L362->SetBinContent(16,640); h_SL1L362->SetBinContent(17,648.5715); h_SL1L362->SetBinContent(18,831.4286); h_SL1L362->SetBinContent(19,911.4286); h_SL1L362->SetBinContent(20,1074.286); h_SL1L362->SetBinContent(21,1180); h_SL1L362->SetBinContent(22,1252.857); h_SL1L362->SetBinContent(23,1391.429); h_SL1L362->SetBinContent(24,1590); h_SL1L362->SetBinContent(25,1635.714); h_SL1L362->SetBinContent(26,1718.571); h_SL1L362->SetBinContent(27,1914.286); h_SL1L362->SetBinContent(28,2618.572); h_SL1L362->SetBinContent(29,2690); h_SL1L362->SetBinContent(30,3150); h_SL1L362->SetBinContent(31,4020); h_SL1L362->SetBinContent(32,5334.286); h_SL1L362->SetBinContent(33,14535.71); h_SL1L362->SetBinContent(34,21957.14); h_SL1L362->SetBinContent(35,32354.29); h_SL1L362->SetBinContent(36,49350); h_SL1L362->SetBinContent(37,86518.57); h_SL1L362->SetBinContent(38,112712.9); h_SL1L362->SetBinContent(39,68341.43); h_SL1L362->SetBinContent(40,11408.57); h_SL1L362->SetBinContent(41,5812.857); h_SL1L362->SetBinContent(42,4325.714); h_SL1L362->SetBinContent(43,3760); h_SL1L362->SetBinContent(44,3232.857); h_SL1L362->SetBinContent(45,3027.143); h_SL1L362->SetBinContent(46,2657.143); h_SL1L362->SetBinContent(47,2500); h_SL1L362->SetBinContent(48,2341.429); h_SL1L362->SetBinContent(49,2050); h_SL1L362->SetBinContent(50,2015.714); h_SL1L362->SetBinContent(51,1920); h_SL1L362->SetBinContent(52,1680); h_SL1L362->SetBinContent(53,1554.286); h_SL1L362->SetBinContent(54,1434.286); h_SL1L362->SetBinContent(55,1317.143); h_SL1L362->SetBinContent(56,1248.571); h_SL1L362->SetBinContent(57,1228.571); h_SL1L362->SetBinContent(58,1101.429); h_SL1L362->SetBinContent(59,1022.857); h_SL1L362->SetMaximum(129619.8); h_SL1L362->SetEntries(60); h_SL1L362->SetDirectory(0); h_SL1L362->SetStats(0); ci = TColor::GetColor("#009900"); h_SL1L362->SetLineColor(ci); h_SL1L362->SetLineWidth(2); h_SL1L362->GetXaxis()->SetTitle("Cell"); h_SL1L362->GetXaxis()->SetLabelFont(42); h_SL1L362->GetXaxis()->SetLabelSize(0.035); h_SL1L362->GetXaxis()->SetTitleSize(0.035); h_SL1L362->GetXaxis()->SetTitleFont(42); h_SL1L362->GetYaxis()->SetTitle("Hz"); h_SL1L362->GetYaxis()->SetLabelFont(42); h_SL1L362->GetYaxis()->SetLabelSize(0.035); h_SL1L362->GetYaxis()->SetTitleSize(0.035); h_SL1L362->GetYaxis()->SetTitleOffset(1.45); h_SL1L362->GetYaxis()->SetTitleFont(42); h_SL1L362->GetZaxis()->SetLabelFont(42); h_SL1L362->GetZaxis()->SetLabelSize(0.035); h_SL1L362->GetZaxis()->SetTitleSize(0.035); h_SL1L362->GetZaxis()->SetTitleFont(42); h_SL1L362->Draw("same"); TH1D *h_SL1L463 = new TH1D("h_SL1L463","",60,0,60); h_SL1L463->SetBinContent(2,394.2857); h_SL1L463->SetBinContent(3,322.8571); h_SL1L463->SetBinContent(4,287.1429); h_SL1L463->SetBinContent(5,357.1429); h_SL1L463->SetBinContent(6,397.1429); h_SL1L463->SetBinContent(7,364.2857); h_SL1L463->SetBinContent(8,438.5714); h_SL1L463->SetBinContent(9,432.8571); h_SL1L463->SetBinContent(10,462.8571); h_SL1L463->SetBinContent(11,472.8571); h_SL1L463->SetBinContent(12,492.8571); h_SL1L463->SetBinContent(13,522.8572); h_SL1L463->SetBinContent(14,584.2857); h_SL1L463->SetBinContent(15,577.1429); h_SL1L463->SetBinContent(16,571.4286); h_SL1L463->SetBinContent(17,612.8572); h_SL1L463->SetBinContent(18,678.5715); h_SL1L463->SetBinContent(19,830); h_SL1L463->SetBinContent(20,931.4286); h_SL1L463->SetBinContent(21,1032.857); h_SL1L463->SetBinContent(22,1087.143); h_SL1L463->SetBinContent(23,1257.143); h_SL1L463->SetBinContent(24,1431.429); h_SL1L463->SetBinContent(25,1468.571); h_SL1L463->SetBinContent(26,1540); h_SL1L463->SetBinContent(27,1801.429); h_SL1L463->SetBinContent(28,2240); h_SL1L463->SetBinContent(29,2531.429); h_SL1L463->SetBinContent(30,2794.286); h_SL1L463->SetBinContent(31,3431.429); h_SL1L463->SetBinContent(32,4494.286); h_SL1L463->SetBinContent(33,9024.286); h_SL1L463->SetBinContent(34,18487.14); h_SL1L463->SetBinContent(35,26798.57); h_SL1L463->SetBinContent(36,39352.86); h_SL1L463->SetBinContent(37,65054.29); h_SL1L463->SetBinContent(38,106285.7); h_SL1L463->SetBinContent(39,103010); h_SL1L463->SetBinContent(40,27307.14); h_SL1L463->SetBinContent(41,9127.144); h_SL1L463->SetBinContent(42,4880); h_SL1L463->SetBinContent(43,3914.286); h_SL1L463->SetBinContent(44,3381.429); h_SL1L463->SetBinContent(45,3082.857); h_SL1L463->SetBinContent(46,2881.429); h_SL1L463->SetBinContent(47,2448.572); h_SL1L463->SetBinContent(48,2314.286); h_SL1L463->SetBinContent(49,2077.143); h_SL1L463->SetBinContent(50,2032.857); h_SL1L463->SetBinContent(51,1952.857); h_SL1L463->SetBinContent(52,1671.429); h_SL1L463->SetBinContent(53,1588.571); h_SL1L463->SetBinContent(54,1435.714); h_SL1L463->SetBinContent(56,1204.286); h_SL1L463->SetBinContent(57,1184.286); h_SL1L463->SetBinContent(58,1112.857); h_SL1L463->SetBinContent(59,1027.143); h_SL1L463->SetMaximum(129619.8); h_SL1L463->SetEntries(60); h_SL1L463->SetDirectory(0); h_SL1L463->SetStats(0); ci = TColor::GetColor("#0000cc"); h_SL1L463->SetLineColor(ci); h_SL1L463->SetLineWidth(2); h_SL1L463->GetXaxis()->SetTitle("Cell"); h_SL1L463->GetXaxis()->SetLabelFont(42); h_SL1L463->GetXaxis()->SetLabelSize(0.035); h_SL1L463->GetXaxis()->SetTitleSize(0.035); h_SL1L463->GetXaxis()->SetTitleFont(42); h_SL1L463->GetYaxis()->SetTitle("Hz"); h_SL1L463->GetYaxis()->SetLabelFont(42); h_SL1L463->GetYaxis()->SetLabelSize(0.035); h_SL1L463->GetYaxis()->SetTitleSize(0.035); h_SL1L463->GetYaxis()->SetTitleOffset(1.45); h_SL1L463->GetYaxis()->SetTitleFont(42); h_SL1L463->GetZaxis()->SetLabelFont(42); h_SL1L463->GetZaxis()->SetLabelSize(0.035); h_SL1L463->GetZaxis()->SetTitleSize(0.035); h_SL1L463->GetZaxis()->SetTitleFont(42); h_SL1L463->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_SL1L1","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_SL1L2","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_SL1L3","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_SL1L4","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("SL1, run 5485"); pt->Draw(); c->Modified(); c->cd(); c->SetSelected(c); }