void RatesPerCell_Removing_noisy_cells_run_5397_SL2() { //=========Macro generated from canvas: c/c //========= (Sun Jan 13 15:30:26 2019) by ROOT version6.02/13 TCanvas *c = new TCanvas("c", "c",0,0,800,600); gStyle->SetOptStat(0); c->Range(-7.500001,-8818.057,67.5,79362.51); c->SetFillColor(0); c->SetBorderMode(0); c->SetBorderSize(2); c->SetFrameBorderMode(0); c->SetFrameBorderMode(0); TH1D *h_SL2L164 = new TH1D("h_SL2L164","SL2, run 5397",60,0,60); h_SL2L164->SetBinContent(1,741.3918); h_SL2L164->SetBinContent(2,915.4208); h_SL2L164->SetBinContent(3,974.8453); h_SL2L164->SetBinContent(4,1083.79); h_SL2L164->SetBinContent(5,1095.109); h_SL2L164->SetBinContent(6,1165.853); h_SL2L164->SetBinContent(7,1150.289); h_SL2L164->SetBinContent(8,1266.308); h_SL2L164->SetBinContent(9,1294.606); h_SL2L164->SetBinContent(10,1499.762); h_SL2L164->SetBinContent(11,1666.717); h_SL2L164->SetBinContent(12,1751.609); h_SL2L164->SetBinContent(13,2000.626); h_SL2L164->SetBinContent(14,1996.381); h_SL2L164->SetBinContent(15,2197.293); h_SL2L164->SetBinContent(16,2376.981); h_SL2L164->SetBinContent(17,2541.106); h_SL2L164->SetBinContent(18,2678.348); h_SL2L164->SetBinContent(19,2966.982); h_SL2L164->SetBinContent(20,3068.853); h_SL2L164->SetBinContent(21,3266.934); h_SL2L164->SetBinContent(22,3743.745); h_SL2L164->SetBinContent(23,3864.009); h_SL2L164->SetBinContent(24,4221.972); h_SL2L164->SetBinContent(25,9019.795); h_SL2L164->SetBinContent(26,29211.4); h_SL2L164->SetBinContent(27,44193.46); h_SL2L164->SetBinContent(28,50864.57); h_SL2L164->SetBinContent(29,53342); h_SL2L164->SetBinContent(30,50551.88); h_SL2L164->SetBinContent(31,46491.21); h_SL2L164->SetBinContent(32,46109.19); h_SL2L164->SetBinContent(33,44678.76); h_SL2L164->SetBinContent(34,25812.88); h_SL2L164->SetBinContent(36,4278.566); h_SL2L164->SetBinContent(37,3422.57); h_SL2L164->SetBinContent(38,2971.227); h_SL2L164->SetBinContent(39,2481.682); h_SL2L164->SetBinContent(40,1908.659); h_SL2L164->SetBinContent(41,1948.276); h_SL2L164->SetBinContent(42,1918.563); h_SL2L164->SetBinContent(43,1822.352); h_SL2L164->SetBinContent(44,1525.23); h_SL2L164->SetBinContent(45,1495.517); h_SL2L164->SetBinContent(46,1403.551); h_SL2L164->SetBinContent(47,1263.479); h_SL2L164->SetBinContent(48,1284.702); h_SL2L164->SetBinContent(49,1235.181); h_SL2L164->SetBinContent(50,1085.205); h_SL2L164->SetBinContent(51,1020.121); h_SL2L164->SetBinContent(52,1025.781); h_SL2L164->SetBinContent(53,970.6006); h_SL2L164->SetBinContent(54,1010.217); h_SL2L164->SetBinContent(55,881.4639); h_SL2L164->SetBinContent(56,809.3055); h_SL2L164->SetBinContent(57,779.5933); h_SL2L164->SetMaximum(70544.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,631.0319); h_SL2L265->SetBinContent(2,786.6676); h_SL2L265->SetBinContent(3,897.0275); h_SL2L265->SetBinContent(4,990.4089); h_SL2L265->SetBinContent(5,1022.951); h_SL2L265->SetBinContent(6,1131.896); h_SL2L265->SetBinContent(7,1105.013); h_SL2L265->SetBinContent(8,1198.395); h_SL2L265->SetBinContent(9,1172.927); h_SL2L265->SetBinContent(10,1328.563); h_SL2L265->SetBinContent(11,1504.007); h_SL2L265->SetBinContent(12,1675.206); h_SL2L265->SetBinContent(13,1884.607); h_SL2L265->SetBinContent(14,1849.235); h_SL2L265->SetBinContent(15,2003.456); h_SL2L265->SetBinContent(16,2253.887); h_SL2L265->SetBinContent(17,2296.334); h_SL2L265->SetBinContent(18,2583.552); h_SL2L265->SetBinContent(19,2727.869); h_SL2L265->SetBinContent(20,3034.896); h_SL2L265->SetBinContent(21,3090.076); h_SL2L265->SetBinContent(22,3378.709); h_SL2L265->SetBinContent(23,3739.501); h_SL2L265->SetBinContent(24,3875.328); h_SL2L265->SetBinContent(25,4734.154); h_SL2L265->SetBinContent(26,18548.94); h_SL2L265->SetBinContent(27,37420.48); h_SL2L265->SetBinContent(28,48363.08); h_SL2L265->SetBinContent(29,51979.48); h_SL2L265->SetBinContent(30,52228.5); h_SL2L265->SetBinContent(31,47184.49); h_SL2L265->SetBinContent(32,45567.3); h_SL2L265->SetBinContent(33,45718.69); h_SL2L265->SetBinContent(34,38576.43); h_SL2L265->SetBinContent(35,13676.13); h_SL2L265->SetBinContent(36,5175.594); h_SL2L265->SetBinContent(37,3752.235); h_SL2L265->SetBinContent(38,3098.565); h_SL2L265->SetBinContent(39,2771.73); h_SL2L265->SetBinContent(40,2289.259); h_SL2L265->SetBinContent(41,2212.856); h_SL2L265->SetBinContent(42,1931.297); h_SL2L265->SetBinContent(43,1842.16); h_SL2L265->SetBinContent(44,1683.695); h_SL2L265->SetBinContent(45,1492.688); h_SL2L265->SetBinContent(46,1386.572); h_SL2L265->SetBinContent(47,1311.584); h_SL2L265->SetBinContent(48,1202.639); h_SL2L265->SetBinContent(49,1264.894); h_SL2L265->SetBinContent(50,1123.407); h_SL2L265->SetBinContent(51,1014.462); h_SL2L265->SetBinContent(52,1022.951); h_SL2L265->SetBinContent(53,980.5048); h_SL2L265->SetBinContent(54,966.3561); h_SL2L265->SetBinContent(55,894.1977); h_SL2L265->SetBinContent(56,829.1137); h_SL2L265->SetBinContent(57,781.0081); h_SL2L265->SetMaximum(61343.3); 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,717.339); h_SL2L366->SetBinContent(2,888.5382); h_SL2L366->SetBinContent(3,906.9315); h_SL2L366->SetBinContent(4,1008.802); h_SL2L366->SetBinContent(5,1044.174); h_SL2L366->SetBinContent(6,1055.493); h_SL2L366->SetBinContent(7,1117.747); h_SL2L366->SetBinContent(8,1189.906); h_SL2L366->SetBinContent(9,1232.352); h_SL2L366->SetBinContent(10,1378.083); h_SL2L366->SetBinContent(11,1547.868); h_SL2L366->SetBinContent(12,1758.683); h_SL2L366->SetBinContent(13,1853.479); h_SL2L366->SetBinContent(14,1929.882); h_SL2L366->SetBinContent(15,2102.497); h_SL2L366->SetBinContent(16,2242.569); h_SL2L366->SetBinContent(17,2405.279); h_SL2L366->SetBinContent(18,2638.732); h_SL2L366->SetBinContent(19,2921.706); h_SL2L366->SetBinContent(20,2947.174); h_SL2L366->SetBinContent(21,3180.627); h_SL2L366->SetBinContent(22,3569.717); h_SL2L366->SetBinContent(23,3715.448); h_SL2L366->SetBinContent(24,4104.537); h_SL2L366->SetBinContent(25,8973.104); h_SL2L366->SetBinContent(26,29153.39); h_SL2L366->SetBinContent(27,43801.54); h_SL2L366->SetBinContent(28,50744.3); h_SL2L366->SetBinContent(29,52930.28); h_SL2L366->SetBinContent(30,49898.21); h_SL2L366->SetBinContent(31,46055.43); h_SL2L366->SetBinContent(32,45755.47); h_SL2L366->SetBinContent(33,44200.53); h_SL2L366->SetBinContent(34,25701.11); h_SL2L366->SetBinContent(35,7379.961); h_SL2L366->SetBinContent(36,4305.449); h_SL2L366->SetBinContent(37,3180.627); h_SL2L366->SetBinContent(38,2893.409); h_SL2L366->SetBinContent(39,2456.214); h_SL2L366->SetBinContent(40,2258.132); h_SL2L366->SetBinContent(41,2068.54); h_SL2L366->SetBinContent(42,1799.714); h_SL2L366->SetBinContent(43,1755.853); h_SL2L366->SetBinContent(44,1441.752); h_SL2L366->SetBinContent(45,1445.997); h_SL2L366->SetBinContent(46,1327.148); h_SL2L366->SetBinContent(47,1185.661); h_SL2L366->SetBinContent(48,1235.181); h_SL2L366->SetBinContent(49,1157.364); h_SL2L366->SetBinContent(50,1063.982); h_SL2L366->SetBinContent(51,1015.877); h_SL2L366->SetBinContent(52,1013.047); h_SL2L366->SetBinContent(53,926.7397); h_SL2L366->SetBinContent(54,945.133); h_SL2L366->SetBinContent(55,822.0394); h_SL2L366->SetBinContent(56,800.8163); h_SL2L366->SetBinContent(57,776.7635); h_SL2L366->SetMaximum(61343.3); 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,813.5501); h_SL2L467->SetBinContent(3,880.049); h_SL2L467->SetBinContent(4,943.7181); h_SL2L467->SetBinContent(5,987.5791); h_SL2L467->SetBinContent(6,1080.961); h_SL2L467->SetBinContent(7,1051.248); h_SL2L467->SetBinContent(8,1161.608); h_SL2L467->SetBinContent(9,1155.949); h_SL2L467->SetBinContent(10,1239.426); h_SL2L467->SetBinContent(11,1424.774); h_SL2L467->SetBinContent(12,1526.645); h_SL2L467->SetBinContent(13,1801.129); h_SL2L467->SetBinContent(14,1758.683); h_SL2L467->SetBinContent(15,1966.669); h_SL2L467->SetBinContent(16,2132.209); h_SL2L467->SetBinContent(17,2246.813); h_SL2L467->SetBinContent(18,2461.874); h_SL2L467->SetBinContent(19,2676.934); h_SL2L467->SetBinContent(20,2959.907); h_SL2L467->SetBinContent(21,3046.215); h_SL2L467->SetBinContent(22,3300.891); h_SL2L467->SetBinContent(23,3575.376); h_SL2L467->SetBinContent(24,3779.117); h_SL2L467->SetBinContent(25,4562.955); h_SL2L467->SetBinContent(26,18592.8); h_SL2L467->SetBinContent(27,37457.26); h_SL2L467->SetBinContent(28,48174.9); h_SL2L467->SetBinContent(29,52183.23); h_SL2L467->SetBinContent(30,52661.45); h_SL2L467->SetBinContent(31,47272.21); h_SL2L467->SetBinContent(32,45833.29); h_SL2L467->SetBinContent(33,45681.9); h_SL2L467->SetBinContent(34,38717.91); h_SL2L467->SetBinContent(35,13567.19); h_SL2L467->SetBinContent(36,5103.436); h_SL2L467->SetBinContent(37,3576.791); h_SL2L467->SetBinContent(38,2988.205); h_SL2L467->SetBinContent(39,2618.924); h_SL2L467->SetBinContent(40,2212.856); h_SL2L467->SetBinContent(41,2099.667); h_SL2L467->SetBinContent(42,1898.755); h_SL2L467->SetBinContent(43,1751.609); h_SL2L467->SetBinContent(44,1587.484); h_SL2L467->SetBinContent(45,1430.433); h_SL2L467->SetBinContent(46,1387.987); h_SL2L467->SetBinContent(47,1209.714); h_SL2L467->SetBinContent(48,1110.673); h_SL2L467->SetBinContent(49,1226.692); h_SL2L467->SetBinContent(50,1113.503); h_SL2L467->SetBinContent(51,980.5048); h_SL2L467->SetBinContent(52,1007.387); h_SL2L467->SetBinContent(53,953.6223); h_SL2L467->SetBinContent(54,929.5695); h_SL2L467->SetBinContent(55,882.8787); h_SL2L467->SetBinContent(56,779.5933); h_SL2L467->SetBinContent(57,795.1568); h_SL2L467->SetMaximum(61343.3); 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 5397"); pt->Draw(); c->Modified(); c->cd(); c->SetSelected(c); }