void RatesPerCell_Removing_noisy_cells_run_6765_SL2() { //=========Macro generated from canvas: c/c //========= (Sun Jan 13 16:10:36 2019) by ROOT version6.02/13 TCanvas *c = new TCanvas("c", "c",0,0,800,600); gStyle->SetOptStat(0); c->Range(-7.500001,-8984.232,67.5,80858.08); c->SetFillColor(0); c->SetBorderMode(0); c->SetBorderSize(2); c->SetFrameBorderMode(0); c->SetFrameBorderMode(0); TH1D *h_SL2L164 = new TH1D("h_SL2L164","SL2, run 6765",60,0,60); h_SL2L164->SetBinContent(1,676.1905); h_SL2L164->SetBinContent(2,792.8571); h_SL2L164->SetBinContent(3,907.1428); h_SL2L164->SetBinContent(4,973.8095); h_SL2L164->SetBinContent(5,990.4762); h_SL2L164->SetBinContent(6,1014.286); h_SL2L164->SetBinContent(7,1016.667); h_SL2L164->SetBinContent(8,1180.952); h_SL2L164->SetBinContent(9,1188.095); h_SL2L164->SetBinContent(10,1364.286); h_SL2L164->SetBinContent(11,1464.286); h_SL2L164->SetBinContent(12,1452.381); h_SL2L164->SetBinContent(13,1645.238); h_SL2L164->SetBinContent(14,1750); h_SL2L164->SetBinContent(15,1804.762); h_SL2L164->SetBinContent(16,1980.952); h_SL2L164->SetBinContent(17,2066.667); h_SL2L164->SetBinContent(18,2016.667); h_SL2L164->SetBinContent(19,2247.619); h_SL2L164->SetBinContent(20,2259.524); h_SL2L164->SetBinContent(21,2378.571); h_SL2L164->SetBinContent(22,2759.524); h_SL2L164->SetBinContent(23,3011.905); h_SL2L164->SetBinContent(24,3571.428); h_SL2L164->SetBinContent(25,8535.714); h_SL2L164->SetBinContent(26,27245.24); h_SL2L164->SetBinContent(27,42014.29); h_SL2L164->SetBinContent(28,50435.71); h_SL2L164->SetBinContent(29,54347.62); h_SL2L164->SetBinContent(30,51897.62); h_SL2L164->SetBinContent(31,50100); h_SL2L164->SetBinContent(32,49642.86); h_SL2L164->SetBinContent(33,48111.91); h_SL2L164->SetBinContent(34,27454.76); h_SL2L164->SetBinContent(35,4.761905); h_SL2L164->SetBinContent(36,3678.571); h_SL2L164->SetBinContent(37,2845.238); h_SL2L164->SetBinContent(38,2350); h_SL2L164->SetBinContent(39,2147.619); h_SL2L164->SetBinContent(40,1640.476); h_SL2L164->SetBinContent(41,1650); h_SL2L164->SetBinContent(42,1642.857); h_SL2L164->SetBinContent(43,1478.571); h_SL2L164->SetBinContent(44,1302.381); h_SL2L164->SetBinContent(45,1321.429); h_SL2L164->SetBinContent(46,1340.476); h_SL2L164->SetBinContent(47,1140.476); h_SL2L164->SetBinContent(48,1042.857); h_SL2L164->SetBinContent(49,904.7619); h_SL2L164->SetBinContent(50,909.5238); h_SL2L164->SetBinContent(51,861.9047); h_SL2L164->SetBinContent(52,688.0952); h_SL2L164->SetBinContent(53,690.4762); h_SL2L164->SetBinContent(54,711.9048); h_SL2L164->SetBinContent(55,621.4286); h_SL2L164->SetBinContent(56,559.5238); h_SL2L164->SetBinContent(57,8700); h_SL2L164->SetMaximum(71873.85); 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,628.5714); h_SL2L265->SetBinContent(2,721.4286); h_SL2L265->SetBinContent(3,838.0952); h_SL2L265->SetBinContent(4,911.9047); h_SL2L265->SetBinContent(5,911.9047); h_SL2L265->SetBinContent(6,1019.048); h_SL2L265->SetBinContent(7,995.2381); h_SL2L265->SetBinContent(8,1100); h_SL2L265->SetBinContent(9,1183.333); h_SL2L265->SetBinContent(10,1219.048); h_SL2L265->SetBinContent(11,1378.571); h_SL2L265->SetBinContent(12,1440.476); h_SL2L265->SetBinContent(13,1478.571); h_SL2L265->SetBinContent(14,1642.857); h_SL2L265->SetBinContent(15,1766.667); h_SL2L265->SetBinContent(16,1800); h_SL2L265->SetBinContent(17,1976.19); h_SL2L265->SetBinContent(18,1995.238); h_SL2L265->SetBinContent(19,2004.762); h_SL2L265->SetBinContent(20,2216.667); h_SL2L265->SetBinContent(21,2247.619); h_SL2L265->SetBinContent(22,2509.524); h_SL2L265->SetBinContent(23,2804.762); h_SL2L265->SetBinContent(24,3126.19); h_SL2L265->SetBinContent(25,4397.619); h_SL2L265->SetBinContent(26,17830.95); h_SL2L265->SetBinContent(27,34678.57); h_SL2L265->SetBinContent(28,47157.14); h_SL2L265->SetBinContent(29,52685.71); h_SL2L265->SetBinContent(30,52764.29); h_SL2L265->SetBinContent(31,50221.43); h_SL2L265->SetBinContent(32,49502.38); h_SL2L265->SetBinContent(33,49590.48); h_SL2L265->SetBinContent(34,40976.19); h_SL2L265->SetBinContent(35,14550); h_SL2L265->SetBinContent(36,4885.714); h_SL2L265->SetBinContent(37,3254.762); h_SL2L265->SetBinContent(38,2557.143); h_SL2L265->SetBinContent(39,2257.143); h_SL2L265->SetBinContent(40,1930.952); h_SL2L265->SetBinContent(41,1790.476); h_SL2L265->SetBinContent(42,1638.095); h_SL2L265->SetBinContent(43,1476.19); h_SL2L265->SetBinContent(44,1409.524); h_SL2L265->SetBinContent(45,1252.381); h_SL2L265->SetBinContent(46,1245.238); h_SL2L265->SetBinContent(47,1326.19); h_SL2L265->SetBinContent(48,1076.19); h_SL2L265->SetBinContent(49,957.1428); h_SL2L265->SetBinContent(50,838.0952); h_SL2L265->SetBinContent(51,835.7143); h_SL2L265->SetBinContent(52,745.2381); h_SL2L265->SetBinContent(53,733.3333); h_SL2L265->SetBinContent(54,700); h_SL2L265->SetBinContent(55,597.619); h_SL2L265->SetBinContent(56,616.6667); h_SL2L265->SetBinContent(57,547.619); h_SL2L265->SetMaximum(62499.76); 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,707.1428); h_SL2L366->SetBinContent(2,747.619); h_SL2L366->SetBinContent(3,909.5238); h_SL2L366->SetBinContent(4,885.7143); h_SL2L366->SetBinContent(5,978.5714); h_SL2L366->SetBinContent(6,978.5714); h_SL2L366->SetBinContent(7,976.1905); h_SL2L366->SetBinContent(8,1188.095); h_SL2L366->SetBinContent(9,1161.905); h_SL2L366->SetBinContent(10,1280.952); h_SL2L366->SetBinContent(11,1378.571); h_SL2L366->SetBinContent(12,1366.667); h_SL2L366->SetBinContent(13,1542.857); h_SL2L366->SetBinContent(14,1621.429); h_SL2L366->SetBinContent(15,1700); h_SL2L366->SetBinContent(16,1869.048); h_SL2L366->SetBinContent(17,1971.429); h_SL2L366->SetBinContent(18,1890.476); h_SL2L366->SetBinContent(19,2135.714); h_SL2L366->SetBinContent(20,2133.333); h_SL2L366->SetBinContent(21,2330.952); h_SL2L366->SetBinContent(22,2657.143); h_SL2L366->SetBinContent(23,2861.905); h_SL2L366->SetBinContent(24,3411.905); h_SL2L366->SetBinContent(25,8538.095); h_SL2L366->SetBinContent(26,27200); h_SL2L366->SetBinContent(27,41452.38); h_SL2L366->SetBinContent(28,50533.33); h_SL2L366->SetBinContent(29,53526.19); h_SL2L366->SetBinContent(30,51452.38); h_SL2L366->SetBinContent(31,49897.62); h_SL2L366->SetBinContent(32,49692.86); h_SL2L366->SetBinContent(33,48054.76); h_SL2L366->SetBinContent(34,27314.29); h_SL2L366->SetBinContent(35,7421.429); h_SL2L366->SetBinContent(36,3809.524); h_SL2L366->SetBinContent(37,2740.476); h_SL2L366->SetBinContent(38,2230.952); h_SL2L366->SetBinContent(39,2116.667); h_SL2L366->SetBinContent(40,1745.238); h_SL2L366->SetBinContent(41,1697.619); h_SL2L366->SetBinContent(42,1571.429); h_SL2L366->SetBinContent(43,1385.714); h_SL2L366->SetBinContent(44,1309.524); h_SL2L366->SetBinContent(45,1178.571); h_SL2L366->SetBinContent(46,1335.714); h_SL2L366->SetBinContent(47,1026.19); h_SL2L366->SetBinContent(48,976.1905); h_SL2L366->SetBinContent(49,940.4762); h_SL2L366->SetBinContent(50,835.7143); h_SL2L366->SetBinContent(51,807.1428); h_SL2L366->SetBinContent(52,692.8571); h_SL2L366->SetBinContent(53,688.0952); h_SL2L366->SetBinContent(54,700); h_SL2L366->SetBinContent(55,583.3333); h_SL2L366->SetBinContent(56,545.2381); h_SL2L366->SetBinContent(57,626.1905); h_SL2L366->SetMaximum(62499.76); 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,726.1905); h_SL2L467->SetBinContent(3,830.9524); h_SL2L467->SetBinContent(4,833.3333); h_SL2L467->SetBinContent(5,885.7143); h_SL2L467->SetBinContent(6,952.3809); h_SL2L467->SetBinContent(7,1009.524); h_SL2L467->SetBinContent(8,1023.81); h_SL2L467->SetBinContent(9,1150); h_SL2L467->SetBinContent(10,1083.333); h_SL2L467->SetBinContent(11,1288.095); h_SL2L467->SetBinContent(12,1369.048); h_SL2L467->SetBinContent(13,1488.095); h_SL2L467->SetBinContent(14,1576.19); h_SL2L467->SetBinContent(15,1661.905); h_SL2L467->SetBinContent(16,1790.476); h_SL2L467->SetBinContent(17,1935.714); h_SL2L467->SetBinContent(18,1952.381); h_SL2L467->SetBinContent(19,1985.714); h_SL2L467->SetBinContent(20,2173.81); h_SL2L467->SetBinContent(21,2192.857); h_SL2L467->SetBinContent(22,2435.714); h_SL2L467->SetBinContent(23,2695.238); h_SL2L467->SetBinContent(24,2971.428); h_SL2L467->SetBinContent(25,4195.238); h_SL2L467->SetBinContent(26,17833.33); h_SL2L467->SetBinContent(27,35030.95); h_SL2L467->SetBinContent(28,46930.95); h_SL2L467->SetBinContent(29,52530.95); h_SL2L467->SetBinContent(30,53278.57); h_SL2L467->SetBinContent(31,50197.62); h_SL2L467->SetBinContent(32,49709.52); h_SL2L467->SetBinContent(33,49778.57); h_SL2L467->SetBinContent(34,40800); h_SL2L467->SetBinContent(35,14478.57); h_SL2L467->SetBinContent(36,4792.857); h_SL2L467->SetBinContent(37,3142.857); h_SL2L467->SetBinContent(38,2392.857); h_SL2L467->SetBinContent(39,2135.714); h_SL2L467->SetBinContent(40,1795.238); h_SL2L467->SetBinContent(41,1671.429); h_SL2L467->SetBinContent(42,1664.286); h_SL2L467->SetBinContent(43,1416.667); h_SL2L467->SetBinContent(44,1280.952); h_SL2L467->SetBinContent(45,1266.667); h_SL2L467->SetBinContent(46,1154.762); h_SL2L467->SetBinContent(47,1192.857); h_SL2L467->SetBinContent(48,988.0952); h_SL2L467->SetBinContent(49,933.3333); h_SL2L467->SetBinContent(50,871.4286); h_SL2L467->SetBinContent(51,809.5238); h_SL2L467->SetBinContent(52,721.4286); h_SL2L467->SetBinContent(53,716.6667); h_SL2L467->SetBinContent(54,721.4286); h_SL2L467->SetBinContent(55,554.7619); h_SL2L467->SetBinContent(56,626.1905); h_SL2L467->SetBinContent(57,500); h_SL2L467->SetMaximum(62499.76); 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 6765"); pt->Draw(); c->Modified(); c->cd(); c->SetSelected(c); }