void RatesPerCell_Removing_noisy_cells_run_5645_SL2() { //=========Macro generated from canvas: c/c //========= (Sun Jan 13 15:31:30 2019) by ROOT version6.02/13 TCanvas *c = new TCanvas("c", "c",0,0,800,600); gStyle->SetOptStat(0); c->Range(-7.500001,-9763.932,67.5,87875.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 5645",60,0,60); h_SL2L164->SetBinContent(1,865.7143); h_SL2L164->SetBinContent(2,1037.143); h_SL2L164->SetBinContent(3,1238.571); h_SL2L164->SetBinContent(4,1351.429); h_SL2L164->SetBinContent(5,1364.286); h_SL2L164->SetBinContent(6,1405.714); h_SL2L164->SetBinContent(7,1428.571); h_SL2L164->SetBinContent(8,1501.429); h_SL2L164->SetBinContent(9,1677.143); h_SL2L164->SetBinContent(10,1828.572); h_SL2L164->SetBinContent(11,2011.429); h_SL2L164->SetBinContent(12,2151.429); h_SL2L164->SetBinContent(13,2352.857); h_SL2L164->SetBinContent(14,2358.572); h_SL2L164->SetBinContent(15,2621.429); h_SL2L164->SetBinContent(16,2907.143); h_SL2L164->SetBinContent(17,3021.429); h_SL2L164->SetBinContent(18,3340); h_SL2L164->SetBinContent(19,3644.286); h_SL2L164->SetBinContent(20,3691.429); h_SL2L164->SetBinContent(21,4044.286); h_SL2L164->SetBinContent(22,4347.143); h_SL2L164->SetBinContent(23,4761.429); h_SL2L164->SetBinContent(24,4995.714); h_SL2L164->SetBinContent(25,10427.14); h_SL2L164->SetBinContent(26,32801.43); h_SL2L164->SetBinContent(27,50111.43); h_SL2L164->SetBinContent(28,58235.71); h_SL2L164->SetBinContent(29,58781.43); h_SL2L164->SetBinContent(30,52527.14); h_SL2L164->SetBinContent(31,45038.57); h_SL2L164->SetBinContent(32,42465.71); h_SL2L164->SetBinContent(33,39828.57); h_SL2L164->SetBinContent(34,22041.43); h_SL2L164->SetBinContent(36,4202.857); h_SL2L164->SetBinContent(37,3432.857); h_SL2L164->SetBinContent(38,2901.429); h_SL2L164->SetBinContent(39,2631.429); h_SL2L164->SetBinContent(40,2060); h_SL2L164->SetBinContent(41,2090); h_SL2L164->SetBinContent(42,2062.857); h_SL2L164->SetBinContent(43,1842.857); h_SL2L164->SetBinContent(44,1700); h_SL2L164->SetBinContent(45,1622.857); h_SL2L164->SetBinContent(46,1607.143); h_SL2L164->SetBinContent(47,1490); h_SL2L164->SetBinContent(48,1377.143); h_SL2L164->SetBinContent(49,1238.571); h_SL2L164->SetBinContent(50,1204.286); h_SL2L164->SetBinContent(51,1127.143); h_SL2L164->SetBinContent(52,1114.286); h_SL2L164->SetBinContent(53,1100); h_SL2L164->SetBinContent(54,1121.429); h_SL2L164->SetBinContent(55,1038.571); h_SL2L164->SetBinContent(56,1014.286); h_SL2L164->SetBinContent(57,961.4286); h_SL2L164->SetMaximum(78111.45); 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,881.4286); h_SL2L265->SetBinContent(2,951.4286); h_SL2L265->SetBinContent(3,1174.286); h_SL2L265->SetBinContent(4,1240); h_SL2L265->SetBinContent(5,1340); h_SL2L265->SetBinContent(6,1378.571); h_SL2L265->SetBinContent(7,1421.429); h_SL2L265->SetBinContent(8,1392.857); h_SL2L265->SetBinContent(9,1634.286); h_SL2L265->SetBinContent(10,1647.143); h_SL2L265->SetBinContent(11,1885.714); h_SL2L265->SetBinContent(12,1930); h_SL2L265->SetBinContent(13,2341.429); h_SL2L265->SetBinContent(14,2301.429); h_SL2L265->SetBinContent(15,2394.286); h_SL2L265->SetBinContent(16,2635.714); h_SL2L265->SetBinContent(17,2854.286); h_SL2L265->SetBinContent(18,3037.143); h_SL2L265->SetBinContent(19,3390); h_SL2L265->SetBinContent(20,3691.429); h_SL2L265->SetBinContent(21,3791.429); h_SL2L265->SetBinContent(22,4137.143); h_SL2L265->SetBinContent(23,4444.286); h_SL2L265->SetBinContent(24,4762.857); h_SL2L265->SetBinContent(25,5567.143); h_SL2L265->SetBinContent(26,20871.43); h_SL2L265->SetBinContent(27,42447.14); h_SL2L265->SetBinContent(28,54795.71); h_SL2L265->SetBinContent(29,59064.29); h_SL2L265->SetBinContent(30,56075.71); h_SL2L265->SetBinContent(31,48018.57); h_SL2L265->SetBinContent(32,43000); h_SL2L265->SetBinContent(33,41355.71); h_SL2L265->SetBinContent(34,33260); h_SL2L265->SetBinContent(35,12058.57); h_SL2L265->SetBinContent(36,5014.286); h_SL2L265->SetBinContent(37,3715.714); h_SL2L265->SetBinContent(38,3012.857); h_SL2L265->SetBinContent(39,2772.857); h_SL2L265->SetBinContent(40,2538.572); h_SL2L265->SetBinContent(41,2252.857); h_SL2L265->SetBinContent(42,2085.714); h_SL2L265->SetBinContent(43,1850); h_SL2L265->SetBinContent(44,1740); h_SL2L265->SetBinContent(45,1671.429); h_SL2L265->SetBinContent(46,1488.571); h_SL2L265->SetBinContent(47,1518.571); h_SL2L265->SetBinContent(48,1374.286); h_SL2L265->SetBinContent(49,1308.571); h_SL2L265->SetBinContent(50,1182.857); h_SL2L265->SetBinContent(51,1118.571); h_SL2L265->SetBinContent(52,1117.143); h_SL2L265->SetBinContent(53,1068.571); h_SL2L265->SetBinContent(54,1117.143); h_SL2L265->SetBinContent(55,1045.714); h_SL2L265->SetBinContent(56,994.2858); h_SL2L265->SetBinContent(57,997.1429); h_SL2L265->SetMaximum(67923.93); 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,838.5715); h_SL2L366->SetBinContent(2,1062.857); h_SL2L366->SetBinContent(3,1197.143); h_SL2L366->SetBinContent(4,1331.429); h_SL2L366->SetBinContent(5,1260); h_SL2L366->SetBinContent(6,1381.429); h_SL2L366->SetBinContent(7,1414.286); h_SL2L366->SetBinContent(8,1442.857); h_SL2L366->SetBinContent(9,1630); h_SL2L366->SetBinContent(10,1747.143); h_SL2L366->SetBinContent(11,1921.429); h_SL2L366->SetBinContent(12,2118.572); h_SL2L366->SetBinContent(13,2258.572); h_SL2L366->SetBinContent(14,2232.857); h_SL2L366->SetBinContent(15,2522.857); h_SL2L366->SetBinContent(16,2804.286); h_SL2L366->SetBinContent(17,2880); h_SL2L366->SetBinContent(18,3215.714); h_SL2L366->SetBinContent(19,3564.286); h_SL2L366->SetBinContent(20,3591.429); h_SL2L366->SetBinContent(21,3922.857); h_SL2L366->SetBinContent(22,4251.429); h_SL2L366->SetBinContent(23,4580); h_SL2L366->SetBinContent(24,4850); h_SL2L366->SetBinContent(25,10150); h_SL2L366->SetBinContent(26,32775.71); h_SL2L366->SetBinContent(27,50031.43); h_SL2L366->SetBinContent(28,57925.71); h_SL2L366->SetBinContent(29,58497.14); h_SL2L366->SetBinContent(30,52085.71); h_SL2L366->SetBinContent(31,44874.29); h_SL2L366->SetBinContent(32,42415.71); h_SL2L366->SetBinContent(33,39570); h_SL2L366->SetBinContent(34,21975.71); h_SL2L366->SetBinContent(35,6802.857); h_SL2L366->SetBinContent(36,4160); h_SL2L366->SetBinContent(37,3380); h_SL2L366->SetBinContent(38,2770); h_SL2L366->SetBinContent(39,2522.857); h_SL2L366->SetBinContent(40,2308.572); h_SL2L366->SetBinContent(41,2054.286); h_SL2L366->SetBinContent(42,1934.286); h_SL2L366->SetBinContent(43,1765.714); h_SL2L366->SetBinContent(44,1662.857); h_SL2L366->SetBinContent(45,1548.571); h_SL2L366->SetBinContent(46,1508.571); h_SL2L366->SetBinContent(47,1380); h_SL2L366->SetBinContent(48,1355.714); h_SL2L366->SetBinContent(49,1208.571); h_SL2L366->SetBinContent(50,1134.286); h_SL2L366->SetBinContent(51,1041.429); h_SL2L366->SetBinContent(52,1101.429); h_SL2L366->SetBinContent(53,1034.286); h_SL2L366->SetBinContent(54,1065.714); h_SL2L366->SetBinContent(55,995.7143); h_SL2L366->SetBinContent(56,987.1429); h_SL2L366->SetBinContent(57,940); h_SL2L366->SetMaximum(67923.93); 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,938.5715); h_SL2L467->SetBinContent(3,1112.857); h_SL2L467->SetBinContent(4,1182.857); h_SL2L467->SetBinContent(5,1235.714); h_SL2L467->SetBinContent(6,1321.429); h_SL2L467->SetBinContent(7,1350); h_SL2L467->SetBinContent(8,1370); h_SL2L467->SetBinContent(9,1531.429); h_SL2L467->SetBinContent(10,1558.571); h_SL2L467->SetBinContent(11,1822.857); h_SL2L467->SetBinContent(12,1842.857); h_SL2L467->SetBinContent(13,2142.857); h_SL2L467->SetBinContent(14,2192.857); h_SL2L467->SetBinContent(15,2324.286); h_SL2L467->SetBinContent(16,2564.286); h_SL2L467->SetBinContent(17,2798.572); h_SL2L467->SetBinContent(18,2911.429); h_SL2L467->SetBinContent(19,3242.857); h_SL2L467->SetBinContent(20,3560); h_SL2L467->SetBinContent(21,3685.714); h_SL2L467->SetBinContent(22,4040); h_SL2L467->SetBinContent(23,4257.143); h_SL2L467->SetBinContent(24,4581.429); h_SL2L467->SetBinContent(25,5310); h_SL2L467->SetBinContent(26,20780); h_SL2L467->SetBinContent(27,42455.71); h_SL2L467->SetBinContent(28,54885.71); h_SL2L467->SetBinContent(29,58927.14); h_SL2L467->SetBinContent(30,56488.57); h_SL2L467->SetBinContent(31,47788.57); h_SL2L467->SetBinContent(32,43011.43); h_SL2L467->SetBinContent(33,41461.43); h_SL2L467->SetBinContent(34,33391.43); h_SL2L467->SetBinContent(35,12034.29); h_SL2L467->SetBinContent(36,4877.143); h_SL2L467->SetBinContent(37,3675.714); h_SL2L467->SetBinContent(38,2972.857); h_SL2L467->SetBinContent(39,2558.572); h_SL2L467->SetBinContent(40,2327.143); h_SL2L467->SetBinContent(41,2131.429); h_SL2L467->SetBinContent(42,1934.286); h_SL2L467->SetBinContent(43,1764.286); h_SL2L467->SetBinContent(44,1615.714); h_SL2L467->SetBinContent(45,1541.429); h_SL2L467->SetBinContent(46,1485.714); h_SL2L467->SetBinContent(47,1480); h_SL2L467->SetBinContent(48,1254.286); h_SL2L467->SetBinContent(49,1277.143); h_SL2L467->SetBinContent(50,1128.571); h_SL2L467->SetBinContent(51,1050); h_SL2L467->SetBinContent(52,1060); h_SL2L467->SetBinContent(53,1095.714); h_SL2L467->SetBinContent(54,1052.857); h_SL2L467->SetBinContent(55,991.4286); h_SL2L467->SetBinContent(56,977.1429); h_SL2L467->SetBinContent(57,960); h_SL2L467->SetMaximum(67923.93); 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 5645"); pt->Draw(); c->Modified(); c->cd(); c->SetSelected(c); }