void RatesPerCell_Removing_noisy_cells_run_5358_SL2() { //=========Macro generated from canvas: c/c //========= (Mon Jan 14 20:10:02 2019) by ROOT version6.02/13 TCanvas *c = new TCanvas("c", "c",0,0,800,600); gStyle->SetOptStat(0); c->Range(-7.500001,-9882.526,67.5,88942.73); c->SetFillColor(0); c->SetBorderMode(0); c->SetBorderSize(2); c->SetFrameBorderMode(0); c->SetFrameBorderMode(0); TH1D *h_SL2L164 = new TH1D("h_SL2L164","SL2, run 5358",60,0,60); h_SL2L164->SetBinContent(1,891.4286); h_SL2L164->SetBinContent(2,992.8572); h_SL2L164->SetBinContent(3,1217.143); h_SL2L164->SetBinContent(4,1202.857); h_SL2L164->SetBinContent(5,1325.714); h_SL2L164->SetBinContent(6,1322.857); h_SL2L164->SetBinContent(7,1447.143); h_SL2L164->SetBinContent(8,1427.143); h_SL2L164->SetBinContent(9,1588.571); h_SL2L164->SetBinContent(10,1758.571); h_SL2L164->SetBinContent(11,1857.143); h_SL2L164->SetBinContent(12,2018.572); h_SL2L164->SetBinContent(13,2247.143); h_SL2L164->SetBinContent(14,2387.143); h_SL2L164->SetBinContent(15,2631.429); h_SL2L164->SetBinContent(16,2785.714); h_SL2L164->SetBinContent(17,2952.857); h_SL2L164->SetBinContent(18,3112.857); h_SL2L164->SetBinContent(19,3378.572); h_SL2L164->SetBinContent(20,3705.714); h_SL2L164->SetBinContent(21,3878.572); h_SL2L164->SetBinContent(22,4140); h_SL2L164->SetBinContent(23,4510); h_SL2L164->SetBinContent(24,4764.286); h_SL2L164->SetBinContent(25,10308.57); h_SL2L164->SetBinContent(26,32635.71); h_SL2L164->SetBinContent(27,49855.71); h_SL2L164->SetBinContent(28,56918.57); h_SL2L164->SetBinContent(29,59781.43); h_SL2L164->SetBinContent(30,56617.14); h_SL2L164->SetBinContent(31,52500); h_SL2L164->SetBinContent(32,50237.14); h_SL2L164->SetBinContent(33,51741.43); h_SL2L164->SetBinContent(34,28372.86); h_SL2L164->SetBinContent(35,111.4286); h_SL2L164->SetBinContent(36,5111.429); h_SL2L164->SetBinContent(37,3935.714); h_SL2L164->SetBinContent(38,3418.572); h_SL2L164->SetBinContent(39,2848.572); h_SL2L164->SetBinContent(40,2384.286); h_SL2L164->SetBinContent(41,2342.857); h_SL2L164->SetBinContent(42,2140); h_SL2L164->SetBinContent(43,2010); h_SL2L164->SetBinContent(44,1865.714); h_SL2L164->SetBinContent(45,1874.286); h_SL2L164->SetBinContent(46,1658.571); h_SL2L164->SetBinContent(47,1598.571); h_SL2L164->SetBinContent(48,1460); h_SL2L164->SetBinContent(49,1445.714); h_SL2L164->SetBinContent(50,1300); h_SL2L164->SetBinContent(51,1264.286); h_SL2L164->SetBinContent(52,1258.571); h_SL2L164->SetBinContent(53,1164.286); h_SL2L164->SetBinContent(54,1152.857); h_SL2L164->SetBinContent(55,942.8572); h_SL2L164->SetBinContent(56,914.2858); h_SL2L164->SetBinContent(57,830); h_SL2L164->SetMaximum(79060.2); 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,747.1429); h_SL2L265->SetBinContent(2,854.2857); h_SL2L265->SetBinContent(3,995.7143); h_SL2L265->SetBinContent(4,1111.429); h_SL2L265->SetBinContent(5,1138.571); h_SL2L265->SetBinContent(6,1161.429); h_SL2L265->SetBinContent(7,1278.571); h_SL2L265->SetBinContent(8,1308.571); h_SL2L265->SetBinContent(9,1404.286); h_SL2L265->SetBinContent(10,1458.571); h_SL2L265->SetBinContent(11,1652.857); h_SL2L265->SetBinContent(12,1724.286); h_SL2L265->SetBinContent(13,1977.143); h_SL2L265->SetBinContent(14,2047.143); h_SL2L265->SetBinContent(15,2220); h_SL2L265->SetBinContent(16,2421.429); h_SL2L265->SetBinContent(17,2648.572); h_SL2L265->SetBinContent(18,2765.714); h_SL2L265->SetBinContent(19,2858.572); h_SL2L265->SetBinContent(20,3275.714); h_SL2L265->SetBinContent(21,3475.714); h_SL2L265->SetBinContent(22,3532.857); h_SL2L265->SetBinContent(23,3855.714); h_SL2L265->SetBinContent(24,4182.857); h_SL2L265->SetBinContent(25,5205.714); h_SL2L265->SetBinContent(26,19234.29); h_SL2L265->SetBinContent(27,39168.57); h_SL2L265->SetBinContent(28,49828.57); h_SL2L265->SetBinContent(29,54262.86); h_SL2L265->SetBinContent(30,53905.71); h_SL2L265->SetBinContent(31,49450); h_SL2L265->SetBinContent(32,47217.14); h_SL2L265->SetBinContent(33,46951.43); h_SL2L265->SetBinContent(34,39548.57); h_SL2L265->SetBinContent(35,14237.14); h_SL2L265->SetBinContent(36,5535.714); h_SL2L265->SetBinContent(37,3825.714); h_SL2L265->SetBinContent(38,3311.429); h_SL2L265->SetBinContent(39,2821.429); h_SL2L265->SetBinContent(40,2408.572); h_SL2L265->SetBinContent(41,2237.143); h_SL2L265->SetBinContent(42,2075.714); h_SL2L265->SetBinContent(43,1865.714); h_SL2L265->SetBinContent(44,1848.572); h_SL2L265->SetBinContent(45,1692.857); h_SL2L265->SetBinContent(46,1537.143); h_SL2L265->SetBinContent(47,1504.286); h_SL2L265->SetBinContent(48,1367.143); h_SL2L265->SetBinContent(49,1281.429); h_SL2L265->SetBinContent(50,1198.571); h_SL2L265->SetBinContent(51,1160); h_SL2L265->SetBinContent(52,1140); h_SL2L265->SetBinContent(53,1094.286); h_SL2L265->SetBinContent(54,1074.286); h_SL2L265->SetBinContent(55,982.8572); h_SL2L265->SetBinContent(56,915.7143); h_SL2L265->SetBinContent(57,797.1429); h_SL2L265->SetMaximum(68748.64); 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,802.8572); h_SL2L366->SetBinContent(2,908.5715); h_SL2L366->SetBinContent(3,1084.286); h_SL2L366->SetBinContent(4,1098.571); h_SL2L366->SetBinContent(5,1150); h_SL2L366->SetBinContent(6,1150); h_SL2L366->SetBinContent(7,1281.429); h_SL2L366->SetBinContent(8,1311.429); h_SL2L366->SetBinContent(9,1381.429); h_SL2L366->SetBinContent(10,1584.286); h_SL2L366->SetBinContent(11,1647.143); h_SL2L366->SetBinContent(12,1842.857); h_SL2L366->SetBinContent(13,1921.429); h_SL2L366->SetBinContent(14,2091.429); h_SL2L366->SetBinContent(15,2238.572); h_SL2L366->SetBinContent(16,2448.572); h_SL2L366->SetBinContent(17,2634.286); h_SL2L366->SetBinContent(18,2831.429); h_SL2L366->SetBinContent(19,2951.429); h_SL2L366->SetBinContent(20,3344.286); h_SL2L366->SetBinContent(21,3398.572); h_SL2L366->SetBinContent(22,3605.714); h_SL2L366->SetBinContent(23,3994.286); h_SL2L366->SetBinContent(24,4431.429); h_SL2L366->SetBinContent(25,9492.857); h_SL2L366->SetBinContent(26,30067.14); h_SL2L366->SetBinContent(27,45572.86); h_SL2L366->SetBinContent(28,52452.86); h_SL2L366->SetBinContent(29,54782.86); h_SL2L366->SetBinContent(30,51637.14); h_SL2L366->SetBinContent(31,47992.86); h_SL2L366->SetBinContent(32,47088.57); h_SL2L366->SetBinContent(33,45954.29); h_SL2L366->SetBinContent(34,26204.29); h_SL2L366->SetBinContent(35,7685.714); h_SL2L366->SetBinContent(36,4604.286); h_SL2L366->SetBinContent(37,3521.429); h_SL2L366->SetBinContent(38,2957.143); h_SL2L366->SetBinContent(39,2495.714); h_SL2L366->SetBinContent(40,2228.572); h_SL2L366->SetBinContent(41,2142.857); h_SL2L366->SetBinContent(42,1842.857); h_SL2L366->SetBinContent(43,1768.571); h_SL2L366->SetBinContent(44,1671.429); h_SL2L366->SetBinContent(45,1517.143); h_SL2L366->SetBinContent(46,1481.429); h_SL2L366->SetBinContent(47,1372.857); h_SL2L366->SetBinContent(48,1255.714); h_SL2L366->SetBinContent(49,1272.857); h_SL2L366->SetBinContent(50,1102.857); h_SL2L366->SetBinContent(51,1085.714); h_SL2L366->SetBinContent(52,1121.429); h_SL2L366->SetBinContent(53,1032.857); h_SL2L366->SetBinContent(54,1057.143); h_SL2L366->SetBinContent(55,978.5715); h_SL2L366->SetBinContent(56,847.1429); h_SL2L366->SetBinContent(57,874.2857); h_SL2L366->SetMaximum(68748.64); 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,841.4286); h_SL2L467->SetBinContent(3,971.4286); h_SL2L467->SetBinContent(4,1044.286); h_SL2L467->SetBinContent(5,1097.143); h_SL2L467->SetBinContent(6,1124.286); h_SL2L467->SetBinContent(7,1250); h_SL2L467->SetBinContent(8,1230); h_SL2L467->SetBinContent(9,1318.571); h_SL2L467->SetBinContent(10,1414.286); h_SL2L467->SetBinContent(11,1574.286); h_SL2L467->SetBinContent(12,1707.143); h_SL2L467->SetBinContent(13,1840); h_SL2L467->SetBinContent(14,1991.429); h_SL2L467->SetBinContent(15,2077.143); h_SL2L467->SetBinContent(16,2364.286); h_SL2L467->SetBinContent(17,2552.857); h_SL2L467->SetBinContent(18,2617.143); h_SL2L467->SetBinContent(19,2828.572); h_SL2L467->SetBinContent(20,3134.286); h_SL2L467->SetBinContent(21,3225.714); h_SL2L467->SetBinContent(22,3354.286); h_SL2L467->SetBinContent(23,3681.429); h_SL2L467->SetBinContent(24,4057.143); h_SL2L467->SetBinContent(25,4977.143); h_SL2L467->SetBinContent(26,19231.43); h_SL2L467->SetBinContent(27,39014.29); h_SL2L467->SetBinContent(28,49451.43); h_SL2L467->SetBinContent(29,54087.14); h_SL2L467->SetBinContent(30,54362.86); h_SL2L467->SetBinContent(31,49221.43); h_SL2L467->SetBinContent(32,46971.43); h_SL2L467->SetBinContent(33,46951.43); h_SL2L467->SetBinContent(34,39597.14); h_SL2L467->SetBinContent(35,14252.86); h_SL2L467->SetBinContent(36,5434.286); h_SL2L467->SetBinContent(37,3757.143); h_SL2L467->SetBinContent(38,3170); h_SL2L467->SetBinContent(39,2704.286); h_SL2L467->SetBinContent(40,2170); h_SL2L467->SetBinContent(41,2077.143); h_SL2L467->SetBinContent(42,1944.286); h_SL2L467->SetBinContent(43,1695.714); h_SL2L467->SetBinContent(44,1645.714); h_SL2L467->SetBinContent(45,1541.429); h_SL2L467->SetBinContent(46,1465.714); h_SL2L467->SetBinContent(47,1461.429); h_SL2L467->SetBinContent(48,1297.143); h_SL2L467->SetBinContent(49,1258.571); h_SL2L467->SetBinContent(50,1180); h_SL2L467->SetBinContent(51,1082.857); h_SL2L467->SetBinContent(52,1098.571); h_SL2L467->SetBinContent(53,1054.286); h_SL2L467->SetBinContent(54,994.2858); h_SL2L467->SetBinContent(55,940); h_SL2L467->SetBinContent(56,855.7143); h_SL2L467->SetBinContent(57,765.7143); h_SL2L467->SetMaximum(68748.64); 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 5358"); pt->Draw(); c->Modified(); c->cd(); c->SetSelected(c); }