void RatesPerCell_Removing_noisy_cells_run_5003_SL2() { //=========Macro generated from canvas: c/c //========= (Sun Jan 13 14:59:25 2019) by ROOT version6.02/13 TCanvas *c = new TCanvas("c", "c",0,0,800,600); gStyle->SetOptStat(0); c->Range(-7.500001,-9306.376,67.5,83757.38); c->SetFillColor(0); c->SetBorderMode(0); c->SetBorderSize(2); c->SetFrameBorderMode(0); c->SetFrameBorderMode(0); TH1D *h_SL2L164 = new TH1D("h_SL2L164","SL2, run 5003",60,0,60); h_SL2L164->SetBinContent(1,607.1428); h_SL2L164->SetBinContent(2,646.4286); h_SL2L164->SetBinContent(3,810.7143); h_SL2L164->SetBinContent(4,771.4286); h_SL2L164->SetBinContent(5,907.1428); h_SL2L164->SetBinContent(6,996.4286); h_SL2L164->SetBinContent(7,914.2857); h_SL2L164->SetBinContent(8,1150); h_SL2L164->SetBinContent(9,1275); h_SL2L164->SetBinContent(10,1353.571); h_SL2L164->SetBinContent(11,1507.143); h_SL2L164->SetBinContent(12,1592.857); h_SL2L164->SetBinContent(13,1607.143); h_SL2L164->SetBinContent(14,1864.286); h_SL2L164->SetBinContent(15,2060.714); h_SL2L164->SetBinContent(16,2321.428); h_SL2L164->SetBinContent(17,2571.428); h_SL2L164->SetBinContent(18,2450); h_SL2L164->SetBinContent(19,2907.143); h_SL2L164->SetBinContent(20,2878.571); h_SL2L164->SetBinContent(21,3089.286); h_SL2L164->SetBinContent(22,3414.286); h_SL2L164->SetBinContent(23,3746.428); h_SL2L164->SetBinContent(24,4257.143); h_SL2L164->SetBinContent(25,9003.571); h_SL2L164->SetBinContent(26,29067.86); h_SL2L164->SetBinContent(27,44185.71); h_SL2L164->SetBinContent(28,51839.29); h_SL2L164->SetBinContent(29,56296.43); h_SL2L164->SetBinContent(30,52310.71); h_SL2L164->SetBinContent(31,48585.71); h_SL2L164->SetBinContent(32,49096.43); h_SL2L164->SetBinContent(33,47375); h_SL2L164->SetBinContent(34,27150); h_SL2L164->SetBinContent(36,4850); h_SL2L164->SetBinContent(37,7135.714); h_SL2L164->SetBinContent(38,4682.143); h_SL2L164->SetBinContent(39,5350); h_SL2L164->SetBinContent(40,26510.71); h_SL2L164->SetBinContent(41,7164.286); h_SL2L164->SetBinContent(42,7842.857); h_SL2L164->SetBinContent(43,7785.714); h_SL2L164->SetBinContent(44,7925); h_SL2L164->SetBinContent(45,1217.857); h_SL2L164->SetBinContent(46,1217.857); h_SL2L164->SetBinContent(47,1157.143); h_SL2L164->SetBinContent(48,1046.429); h_SL2L164->SetBinContent(49,1075); h_SL2L164->SetBinContent(50,842.8571); h_SL2L164->SetBinContent(51,717.8571); h_SL2L164->SetBinContent(52,817.8571); h_SL2L164->SetBinContent(53,728.5714); h_SL2L164->SetBinContent(54,796.4286); h_SL2L164->SetBinContent(55,628.5714); h_SL2L164->SetBinContent(56,578.5714); h_SL2L164->SetBinContent(57,2414.286); h_SL2L164->SetMaximum(74451); 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,560.7143); h_SL2L265->SetBinContent(2,650); h_SL2L265->SetBinContent(3,721.4286); h_SL2L265->SetBinContent(4,800); h_SL2L265->SetBinContent(5,785.7143); h_SL2L265->SetBinContent(6,989.2857); h_SL2L265->SetBinContent(7,1057.143); h_SL2L265->SetBinContent(8,1021.429); h_SL2L265->SetBinContent(9,1189.286); h_SL2L265->SetBinContent(10,1235.714); h_SL2L265->SetBinContent(11,1346.429); h_SL2L265->SetBinContent(12,1564.286); h_SL2L265->SetBinContent(13,1585.714); h_SL2L265->SetBinContent(14,1685.714); h_SL2L265->SetBinContent(15,1939.286); h_SL2L265->SetBinContent(16,2235.714); h_SL2L265->SetBinContent(17,2471.428); h_SL2L265->SetBinContent(18,2485.714); h_SL2L265->SetBinContent(19,2610.714); h_SL2L265->SetBinContent(20,2782.143); h_SL2L265->SetBinContent(21,3139.286); h_SL2L265->SetBinContent(22,3232.143); h_SL2L265->SetBinContent(23,3475); h_SL2L265->SetBinContent(24,3903.571); h_SL2L265->SetBinContent(25,4628.571); h_SL2L265->SetBinContent(26,18378.57); h_SL2L265->SetBinContent(27,37471.43); h_SL2L265->SetBinContent(28,48596.43); h_SL2L265->SetBinContent(29,54321.43); h_SL2L265->SetBinContent(30,54635.71); h_SL2L265->SetBinContent(31,49921.43); h_SL2L265->SetBinContent(32,47778.57); h_SL2L265->SetBinContent(33,48782.14); h_SL2L265->SetBinContent(34,40660.71); h_SL2L265->SetBinContent(35,14185.71); h_SL2L265->SetBinContent(36,5385.714); h_SL2L265->SetBinContent(37,3928.571); h_SL2L265->SetBinContent(38,2789.286); h_SL2L265->SetBinContent(39,3392.857); h_SL2L265->SetBinContent(40,4142.857); h_SL2L265->SetBinContent(41,2439.286); h_SL2L265->SetBinContent(42,2625); h_SL2L265->SetBinContent(43,2100); h_SL2L265->SetBinContent(44,2475); h_SL2L265->SetBinContent(45,1267.857); h_SL2L265->SetBinContent(46,1114.286); h_SL2L265->SetBinContent(47,1207.143); h_SL2L265->SetBinContent(48,1092.857); h_SL2L265->SetBinContent(49,1082.143); h_SL2L265->SetBinContent(50,960.7143); h_SL2L265->SetBinContent(51,692.8571); h_SL2L265->SetBinContent(52,714.2857); h_SL2L265->SetBinContent(53,725); h_SL2L265->SetBinContent(54,660.7143); h_SL2L265->SetBinContent(55,707.1428); h_SL2L265->SetBinContent(56,592.8571); h_SL2L265->SetBinContent(57,521.4286); h_SL2L265->SetMaximum(64740.89); 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,596.4286); h_SL2L366->SetBinContent(2,657.1428); h_SL2L366->SetBinContent(3,796.4286); h_SL2L366->SetBinContent(4,810.7143); h_SL2L366->SetBinContent(5,921.4286); h_SL2L366->SetBinContent(6,1032.143); h_SL2L366->SetBinContent(7,957.1428); h_SL2L366->SetBinContent(8,1096.429); h_SL2L366->SetBinContent(9,1110.714); h_SL2L366->SetBinContent(10,1271.429); h_SL2L366->SetBinContent(11,1514.286); h_SL2L366->SetBinContent(12,1617.857); h_SL2L366->SetBinContent(13,1503.571); h_SL2L366->SetBinContent(14,1850); h_SL2L366->SetBinContent(15,1960.714); h_SL2L366->SetBinContent(16,2214.286); h_SL2L366->SetBinContent(17,2417.857); h_SL2L366->SetBinContent(18,2335.714); h_SL2L366->SetBinContent(19,2792.857); h_SL2L366->SetBinContent(20,2792.857); h_SL2L366->SetBinContent(21,3050); h_SL2L366->SetBinContent(22,3292.857); h_SL2L366->SetBinContent(23,3746.428); h_SL2L366->SetBinContent(24,4028.571); h_SL2L366->SetBinContent(25,8960.714); h_SL2L366->SetBinContent(26,28939.29); h_SL2L366->SetBinContent(27,44082.14); h_SL2L366->SetBinContent(28,51639.29); h_SL2L366->SetBinContent(29,55742.86); h_SL2L366->SetBinContent(30,52292.86); h_SL2L366->SetBinContent(31,48139.29); h_SL2L366->SetBinContent(32,49200); h_SL2L366->SetBinContent(33,47167.86); h_SL2L366->SetBinContent(34,27078.57); h_SL2L366->SetBinContent(35,7550); h_SL2L366->SetBinContent(36,4482.143); h_SL2L366->SetBinContent(37,3153.571); h_SL2L366->SetBinContent(38,2775); h_SL2L366->SetBinContent(39,2217.857); h_SL2L366->SetBinContent(40,2992.857); h_SL2L366->SetBinContent(41,1817.857); h_SL2L366->SetBinContent(42,1700); h_SL2L366->SetBinContent(43,1553.571); h_SL2L366->SetBinContent(44,1310.714); h_SL2L366->SetBinContent(45,1189.286); h_SL2L366->SetBinContent(46,1160.714); h_SL2L366->SetBinContent(47,1160.714); h_SL2L366->SetBinContent(48,1042.857); h_SL2L366->SetBinContent(49,1021.429); h_SL2L366->SetBinContent(50,821.4286); h_SL2L366->SetBinContent(51,653.5714); h_SL2L366->SetBinContent(52,714.2857); h_SL2L366->SetBinContent(53,689.2857); h_SL2L366->SetBinContent(54,685.7143); h_SL2L366->SetBinContent(55,625); h_SL2L366->SetBinContent(56,560.7143); h_SL2L366->SetBinContent(57,507.1429); h_SL2L366->SetMaximum(64740.89); 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,603.5714); h_SL2L467->SetBinContent(3,692.8571); h_SL2L467->SetBinContent(4,778.5714); h_SL2L467->SetBinContent(5,810.7143); h_SL2L467->SetBinContent(6,1000); h_SL2L467->SetBinContent(7,1000); h_SL2L467->SetBinContent(8,975); h_SL2L467->SetBinContent(9,1035.714); h_SL2L467->SetBinContent(10,1142.857); h_SL2L467->SetBinContent(11,1292.857); h_SL2L467->SetBinContent(12,1453.571); h_SL2L467->SetBinContent(13,1539.286); h_SL2L467->SetBinContent(14,1600); h_SL2L467->SetBinContent(15,1832.143); h_SL2L467->SetBinContent(16,2032.143); h_SL2L467->SetBinContent(17,2278.571); h_SL2L467->SetBinContent(18,2410.714); h_SL2L467->SetBinContent(19,2446.428); h_SL2L467->SetBinContent(20,2639.286); h_SL2L467->SetBinContent(21,3064.286); h_SL2L467->SetBinContent(22,3210.714); h_SL2L467->SetBinContent(23,3450); h_SL2L467->SetBinContent(24,3753.571); h_SL2L467->SetBinContent(25,4453.571); h_SL2L467->SetBinContent(26,18360.71); h_SL2L467->SetBinContent(27,37764.29); h_SL2L467->SetBinContent(28,48810.71); h_SL2L467->SetBinContent(29,54182.14); h_SL2L467->SetBinContent(30,55300); h_SL2L467->SetBinContent(31,50082.14); h_SL2L467->SetBinContent(32,48032.14); h_SL2L467->SetBinContent(33,49021.43); h_SL2L467->SetBinContent(34,40707.14); h_SL2L467->SetBinContent(35,14289.29); h_SL2L467->SetBinContent(36,5335.714); h_SL2L467->SetBinContent(37,3867.857); h_SL2L467->SetBinContent(38,2746.428); h_SL2L467->SetBinContent(39,2471.428); h_SL2L467->SetBinContent(40,1946.429); h_SL2L467->SetBinContent(41,1864.286); h_SL2L467->SetBinContent(42,1810.714); h_SL2L467->SetBinContent(43,1671.429); h_SL2L467->SetBinContent(44,1528.571); h_SL2L467->SetBinContent(45,1267.857); h_SL2L467->SetBinContent(46,1110.714); h_SL2L467->SetBinContent(47,1157.143); h_SL2L467->SetBinContent(48,1032.143); h_SL2L467->SetBinContent(49,1010.714); h_SL2L467->SetBinContent(50,953.5714); h_SL2L467->SetBinContent(51,739.2857); h_SL2L467->SetBinContent(52,657.1428); h_SL2L467->SetBinContent(53,632.1428); h_SL2L467->SetBinContent(54,571.4286); h_SL2L467->SetBinContent(55,685.7143); h_SL2L467->SetBinContent(56,550); h_SL2L467->SetBinContent(57,510.7143); h_SL2L467->SetMaximum(64740.89); 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 5003"); pt->Draw(); c->Modified(); c->cd(); c->SetSelected(c); }