void RatesPerCell_Removing_noisy_cells_run_6862_SL2() { //=========Macro generated from canvas: c/c //========= (Sun Jan 13 16:26:09 2019) by ROOT version6.02/13 TCanvas *c = new TCanvas("c", "c",0,0,800,600); gStyle->SetOptStat(0); c->Range(-7.500001,-11302.78,67.5,101725); c->SetFillColor(0); c->SetBorderMode(0); c->SetBorderSize(2); c->SetFrameBorderMode(0); c->SetFrameBorderMode(0); TH1D *h_SL2L164 = new TH1D("h_SL2L164","SL2, run 6862",60,0,60); h_SL2L164->SetBinContent(1,712.8572); h_SL2L164->SetBinContent(2,761.4286); h_SL2L164->SetBinContent(3,838.5715); h_SL2L164->SetBinContent(4,1021.429); h_SL2L164->SetBinContent(5,1007.143); h_SL2L164->SetBinContent(6,961.4286); h_SL2L164->SetBinContent(7,1022.857); h_SL2L164->SetBinContent(8,1127.143); h_SL2L164->SetBinContent(9,1120); h_SL2L164->SetBinContent(10,1322.857); h_SL2L164->SetBinContent(11,1332.857); h_SL2L164->SetBinContent(12,1461.429); h_SL2L164->SetBinContent(13,1624.286); h_SL2L164->SetBinContent(14,1631.429); h_SL2L164->SetBinContent(15,1777.143); h_SL2L164->SetBinContent(16,1891.429); h_SL2L164->SetBinContent(17,1982.857); h_SL2L164->SetBinContent(18,2067.143); h_SL2L164->SetBinContent(19,2284.286); h_SL2L164->SetBinContent(20,2295.714); h_SL2L164->SetBinContent(21,2402.857); h_SL2L164->SetBinContent(22,2508.572); h_SL2L164->SetBinContent(23,2794.286); h_SL2L164->SetBinContent(24,3182.857); h_SL2L164->SetBinContent(25,8125.714); h_SL2L164->SetBinContent(26,25314.29); h_SL2L164->SetBinContent(27,38840); h_SL2L164->SetBinContent(28,46485.71); h_SL2L164->SetBinContent(29,49538.57); h_SL2L164->SetBinContent(30,47351.43); h_SL2L164->SetBinContent(31,45940); h_SL2L164->SetBinContent(32,45668.57); h_SL2L164->SetBinContent(33,44198.57); h_SL2L164->SetBinContent(34,25371.43); h_SL2L164->SetBinContent(36,3334.286); h_SL2L164->SetBinContent(37,3502.857); h_SL2L164->SetBinContent(38,2731.429); h_SL2L164->SetBinContent(39,2810); h_SL2L164->SetBinContent(40,32064.29); h_SL2L164->SetBinContent(41,68372.86); h_SL2L164->SetBinContent(42,4545.714); h_SL2L164->SetBinContent(43,4642.857); h_SL2L164->SetBinContent(44,4670); h_SL2L164->SetBinContent(45,1260); h_SL2L164->SetBinContent(46,1158.571); h_SL2L164->SetBinContent(47,1070); h_SL2L164->SetBinContent(48,887.1429); h_SL2L164->SetBinContent(49,921.4286); h_SL2L164->SetBinContent(50,814.2857); h_SL2L164->SetBinContent(51,842.8572); h_SL2L164->SetBinContent(52,785.7143); h_SL2L164->SetBinContent(53,685.7143); h_SL2L164->SetBinContent(54,630); h_SL2L164->SetBinContent(55,618.5715); h_SL2L164->SetBinContent(56,534.2857); h_SL2L164->SetBinContent(57,538.5714); h_SL2L164->SetMaximum(90422.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,614.2857); h_SL2L265->SetBinContent(2,730); h_SL2L265->SetBinContent(3,802.8572); h_SL2L265->SetBinContent(4,901.4286); h_SL2L265->SetBinContent(5,1010); h_SL2L265->SetBinContent(6,907.1429); h_SL2L265->SetBinContent(7,1000); h_SL2L265->SetBinContent(8,1054.286); h_SL2L265->SetBinContent(9,1124.286); h_SL2L265->SetBinContent(10,1202.857); h_SL2L265->SetBinContent(11,1322.857); h_SL2L265->SetBinContent(12,1382.857); h_SL2L265->SetBinContent(13,1502.857); h_SL2L265->SetBinContent(14,1568.571); h_SL2L265->SetBinContent(15,1685.714); h_SL2L265->SetBinContent(16,1805.714); h_SL2L265->SetBinContent(17,1871.429); h_SL2L265->SetBinContent(18,1978.572); h_SL2L265->SetBinContent(19,2090); h_SL2L265->SetBinContent(20,2267.143); h_SL2L265->SetBinContent(21,2245.714); h_SL2L265->SetBinContent(22,2344.286); h_SL2L265->SetBinContent(23,2562.857); h_SL2L265->SetBinContent(24,2772.857); h_SL2L265->SetBinContent(25,3994.286); h_SL2L265->SetBinContent(26,16564.29); h_SL2L265->SetBinContent(27,32795.71); h_SL2L265->SetBinContent(28,43104.29); h_SL2L265->SetBinContent(29,48482.86); h_SL2L265->SetBinContent(30,48585.71); h_SL2L265->SetBinContent(31,46470); h_SL2L265->SetBinContent(32,45657.14); h_SL2L265->SetBinContent(33,45858.57); h_SL2L265->SetBinContent(34,37641.43); h_SL2L265->SetBinContent(35,13511.43); h_SL2L265->SetBinContent(36,4312.857); h_SL2L265->SetBinContent(37,3082.857); h_SL2L265->SetBinContent(38,2447.143); h_SL2L265->SetBinContent(39,2397.143); h_SL2L265->SetBinContent(40,2691.429); h_SL2L265->SetBinContent(41,2670); h_SL2L265->SetBinContent(42,2084.286); h_SL2L265->SetBinContent(43,1594.286); h_SL2L265->SetBinContent(44,1624.286); h_SL2L265->SetBinContent(45,1215.714); h_SL2L265->SetBinContent(46,1247.143); h_SL2L265->SetBinContent(47,1054.286); h_SL2L265->SetBinContent(48,907.1429); h_SL2L265->SetBinContent(49,908.5715); h_SL2L265->SetBinContent(50,857.1429); h_SL2L265->SetBinContent(51,760); h_SL2L265->SetBinContent(52,765.7143); h_SL2L265->SetBinContent(53,695.7143); h_SL2L265->SetBinContent(54,655.7143); h_SL2L265->SetBinContent(55,634.2857); h_SL2L265->SetBinContent(56,582.8572); h_SL2L265->SetBinContent(57,528.5714); h_SL2L265->SetMaximum(78628.79); 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,667.1429); h_SL2L366->SetBinContent(2,745.7143); h_SL2L366->SetBinContent(3,814.2857); h_SL2L366->SetBinContent(4,960); h_SL2L366->SetBinContent(5,967.1429); h_SL2L366->SetBinContent(6,937.1429); h_SL2L366->SetBinContent(7,1002.857); h_SL2L366->SetBinContent(8,1061.429); h_SL2L366->SetBinContent(9,1098.571); h_SL2L366->SetBinContent(10,1321.429); h_SL2L366->SetBinContent(11,1298.571); h_SL2L366->SetBinContent(12,1408.571); h_SL2L366->SetBinContent(13,1554.286); h_SL2L366->SetBinContent(14,1562.857); h_SL2L366->SetBinContent(15,1751.429); h_SL2L366->SetBinContent(16,1858.572); h_SL2L366->SetBinContent(17,1891.429); h_SL2L366->SetBinContent(18,1940); h_SL2L366->SetBinContent(19,2155.714); h_SL2L366->SetBinContent(20,2208.572); h_SL2L366->SetBinContent(21,2281.429); h_SL2L366->SetBinContent(22,2391.429); h_SL2L366->SetBinContent(23,2604.286); h_SL2L366->SetBinContent(24,3088.572); h_SL2L366->SetBinContent(25,7994.286); h_SL2L366->SetBinContent(26,25260); h_SL2L366->SetBinContent(27,38831.43); h_SL2L366->SetBinContent(28,46350); h_SL2L366->SetBinContent(29,49161.43); h_SL2L366->SetBinContent(30,47487.14); h_SL2L366->SetBinContent(31,45952.86); h_SL2L366->SetBinContent(32,45718.57); h_SL2L366->SetBinContent(33,44071.43); h_SL2L366->SetBinContent(34,25415.71); h_SL2L366->SetBinContent(35,6707.143); h_SL2L366->SetBinContent(36,3502.857); h_SL2L366->SetBinContent(37,2652.857); h_SL2L366->SetBinContent(38,2230); h_SL2L366->SetBinContent(39,1920); h_SL2L366->SetBinContent(40,2115.714); h_SL2L366->SetBinContent(41,1878.572); h_SL2L366->SetBinContent(42,1570); h_SL2L366->SetBinContent(43,1458.571); h_SL2L366->SetBinContent(44,1270); h_SL2L366->SetBinContent(45,1234.286); h_SL2L366->SetBinContent(46,1107.143); h_SL2L366->SetBinContent(47,1021.429); h_SL2L366->SetBinContent(48,878.5715); h_SL2L366->SetBinContent(49,875.7143); h_SL2L366->SetBinContent(50,784.2857); h_SL2L366->SetBinContent(51,782.8572); h_SL2L366->SetBinContent(52,727.1429); h_SL2L366->SetBinContent(53,691.4286); h_SL2L366->SetBinContent(54,592.8572); h_SL2L366->SetBinContent(55,590); h_SL2L366->SetBinContent(56,528.5714); h_SL2L366->SetBinContent(57,518.5714); h_SL2L366->SetMaximum(78628.79); 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,674.2857); h_SL2L467->SetBinContent(3,771.4286); h_SL2L467->SetBinContent(4,862.8572); h_SL2L467->SetBinContent(5,970); h_SL2L467->SetBinContent(6,891.4286); h_SL2L467->SetBinContent(7,997.1429); h_SL2L467->SetBinContent(8,991.4286); h_SL2L467->SetBinContent(9,1077.143); h_SL2L467->SetBinContent(10,1220); h_SL2L467->SetBinContent(11,1237.143); h_SL2L467->SetBinContent(12,1320); h_SL2L467->SetBinContent(13,1434.286); h_SL2L467->SetBinContent(14,1507.143); h_SL2L467->SetBinContent(15,1631.429); h_SL2L467->SetBinContent(16,1754.286); h_SL2L467->SetBinContent(17,1791.429); h_SL2L467->SetBinContent(18,1907.143); h_SL2L467->SetBinContent(19,2040); h_SL2L467->SetBinContent(20,2182.857); h_SL2L467->SetBinContent(21,2152.857); h_SL2L467->SetBinContent(22,2260); h_SL2L467->SetBinContent(23,2455.714); h_SL2L467->SetBinContent(24,2617.143); h_SL2L467->SetBinContent(25,3921.429); h_SL2L467->SetBinContent(26,16541.43); h_SL2L467->SetBinContent(27,32817.14); h_SL2L467->SetBinContent(28,43104.29); h_SL2L467->SetBinContent(29,48365.71); h_SL2L467->SetBinContent(30,49080); h_SL2L467->SetBinContent(31,46508.57); h_SL2L467->SetBinContent(32,45801.43); h_SL2L467->SetBinContent(33,45847.14); h_SL2L467->SetBinContent(34,37715.71); h_SL2L467->SetBinContent(35,13490); h_SL2L467->SetBinContent(36,4230); h_SL2L467->SetBinContent(37,2972.857); h_SL2L467->SetBinContent(38,2332.857); h_SL2L467->SetBinContent(39,2018.572); h_SL2L467->SetBinContent(40,1791.429); h_SL2L467->SetBinContent(41,1608.571); h_SL2L467->SetBinContent(42,1775.714); h_SL2L467->SetBinContent(43,1454.286); h_SL2L467->SetBinContent(44,1338.571); h_SL2L467->SetBinContent(45,1181.429); h_SL2L467->SetBinContent(46,1178.571); h_SL2L467->SetBinContent(47,1008.571); h_SL2L467->SetBinContent(48,888.5715); h_SL2L467->SetBinContent(49,877.1429); h_SL2L467->SetBinContent(50,838.5715); h_SL2L467->SetBinContent(51,774.2857); h_SL2L467->SetBinContent(52,760); h_SL2L467->SetBinContent(53,714.2857); h_SL2L467->SetBinContent(54,617.1429); h_SL2L467->SetBinContent(55,628.5715); h_SL2L467->SetBinContent(56,584.2857); h_SL2L467->SetBinContent(57,514.2857); h_SL2L467->SetMaximum(78628.79); 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 6862"); pt->Draw(); c->Modified(); c->cd(); c->SetSelected(c); }