void RatesPerCell_Removing_noisy_cells_run_6577_SL2() { //=========Macro generated from canvas: c/c //========= (Sun Jan 13 16:21:58 2019) by ROOT version6.02/13 TCanvas *c = new TCanvas("c", "c",0,0,800,600); gStyle->SetOptStat(0); c->Range(-7.500001,-11457.31,67.5,103115.8); c->SetFillColor(0); c->SetBorderMode(0); c->SetBorderSize(2); c->SetFrameBorderMode(0); c->SetFrameBorderMode(0); TH1D *h_SL2L164 = new TH1D("h_SL2L164","SL2, run 6577",60,0,60); h_SL2L164->SetBinContent(1,682.8572); h_SL2L164->SetBinContent(2,735.7143); h_SL2L164->SetBinContent(3,878.5715); h_SL2L164->SetBinContent(4,898.5715); h_SL2L164->SetBinContent(5,990); h_SL2L164->SetBinContent(6,1055.714); h_SL2L164->SetBinContent(7,1014.286); h_SL2L164->SetBinContent(8,1122.857); h_SL2L164->SetBinContent(9,1220); h_SL2L164->SetBinContent(10,1302.857); h_SL2L164->SetBinContent(11,1367.143); h_SL2L164->SetBinContent(12,1528.571); h_SL2L164->SetBinContent(13,1622.857); h_SL2L164->SetBinContent(14,1697.143); h_SL2L164->SetBinContent(15,1761.429); h_SL2L164->SetBinContent(16,1837.143); h_SL2L164->SetBinContent(17,1977.143); h_SL2L164->SetBinContent(18,2034.286); h_SL2L164->SetBinContent(19,2331.429); h_SL2L164->SetBinContent(20,2341.429); h_SL2L164->SetBinContent(21,2411.429); h_SL2L164->SetBinContent(22,2620); h_SL2L164->SetBinContent(23,3002.857); h_SL2L164->SetBinContent(24,3518.572); h_SL2L164->SetBinContent(25,8305.715); h_SL2L164->SetBinContent(26,26358.57); h_SL2L164->SetBinContent(27,40621.43); h_SL2L164->SetBinContent(28,48258.57); h_SL2L164->SetBinContent(29,52562.86); h_SL2L164->SetBinContent(30,51157.14); h_SL2L164->SetBinContent(31,50238.57); h_SL2L164->SetBinContent(32,51135.71); h_SL2L164->SetBinContent(33,49775.71); h_SL2L164->SetBinContent(34,28352.86); h_SL2L164->SetBinContent(35,1.428571); h_SL2L164->SetBinContent(36,3790); h_SL2L164->SetBinContent(37,8918.571); h_SL2L164->SetBinContent(38,5197.143); h_SL2L164->SetBinContent(39,6694.286); h_SL2L164->SetBinContent(40,47000); h_SL2L164->SetBinContent(41,69307.14); h_SL2L164->SetBinContent(42,14400); h_SL2L164->SetBinContent(43,14542.86); h_SL2L164->SetBinContent(44,14865.71); h_SL2L164->SetBinContent(45,1308.571); h_SL2L164->SetBinContent(46,1257.143); h_SL2L164->SetBinContent(47,1111.429); h_SL2L164->SetBinContent(48,1031.429); h_SL2L164->SetBinContent(49,918.5715); h_SL2L164->SetBinContent(50,882.8572); h_SL2L164->SetBinContent(51,827.1429); h_SL2L164->SetBinContent(52,817.1429); h_SL2L164->SetBinContent(53,691.4286); h_SL2L164->SetBinContent(54,690); h_SL2L164->SetBinContent(55,622.8572); h_SL2L164->SetBinContent(56,538.5714); h_SL2L164->SetBinContent(57,6521.429); h_SL2L164->SetMaximum(91658.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,667.1429); h_SL2L265->SetBinContent(2,685.7143); h_SL2L265->SetBinContent(3,795.7143); h_SL2L265->SetBinContent(4,874.2857); h_SL2L265->SetBinContent(5,902.8572); h_SL2L265->SetBinContent(6,1021.429); h_SL2L265->SetBinContent(7,1031.429); h_SL2L265->SetBinContent(8,1122.857); h_SL2L265->SetBinContent(9,1100); h_SL2L265->SetBinContent(10,1237.143); h_SL2L265->SetBinContent(11,1227.143); h_SL2L265->SetBinContent(12,1484.286); h_SL2L265->SetBinContent(13,1497.143); h_SL2L265->SetBinContent(14,1690); h_SL2L265->SetBinContent(15,1661.429); h_SL2L265->SetBinContent(16,1788.571); h_SL2L265->SetBinContent(17,1902.857); h_SL2L265->SetBinContent(18,2018.572); h_SL2L265->SetBinContent(19,2168.572); h_SL2L265->SetBinContent(20,2258.572); h_SL2L265->SetBinContent(21,2228.572); h_SL2L265->SetBinContent(22,2408.572); h_SL2L265->SetBinContent(23,2700); h_SL2L265->SetBinContent(24,3112.857); h_SL2L265->SetBinContent(25,4157.143); h_SL2L265->SetBinContent(26,17187.14); h_SL2L265->SetBinContent(27,33740); h_SL2L265->SetBinContent(28,45471.43); h_SL2L265->SetBinContent(29,50731.43); h_SL2L265->SetBinContent(30,52298.57); h_SL2L265->SetBinContent(31,49804.29); h_SL2L265->SetBinContent(32,50337.14); h_SL2L265->SetBinContent(33,51974.29); h_SL2L265->SetBinContent(34,42117.14); h_SL2L265->SetBinContent(35,14927.14); h_SL2L265->SetBinContent(36,4868.572); h_SL2L265->SetBinContent(37,3171.429); h_SL2L265->SetBinContent(38,2602.857); h_SL2L265->SetBinContent(39,3570); h_SL2L265->SetBinContent(40,4944.286); h_SL2L265->SetBinContent(41,3940); h_SL2L265->SetBinContent(42,3560); h_SL2L265->SetBinContent(43,2211.429); h_SL2L265->SetBinContent(44,3574.286); h_SL2L265->SetBinContent(45,1314.286); h_SL2L265->SetBinContent(46,1237.143); h_SL2L265->SetBinContent(47,1162.857); h_SL2L265->SetBinContent(48,1035.714); h_SL2L265->SetBinContent(49,937.1429); h_SL2L265->SetBinContent(50,864.2857); h_SL2L265->SetBinContent(51,842.8572); h_SL2L265->SetBinContent(52,805.7143); h_SL2L265->SetBinContent(53,721.4286); h_SL2L265->SetBinContent(54,715.7143); h_SL2L265->SetBinContent(55,681.4286); h_SL2L265->SetBinContent(56,552.8572); h_SL2L265->SetBinContent(57,520); h_SL2L265->SetMaximum(79703.21); 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,675.7143); h_SL2L366->SetBinContent(2,741.4286); h_SL2L366->SetBinContent(3,871.4286); h_SL2L366->SetBinContent(4,858.5715); h_SL2L366->SetBinContent(5,977.1429); h_SL2L366->SetBinContent(6,1022.857); h_SL2L366->SetBinContent(7,1027.143); h_SL2L366->SetBinContent(8,1104.286); h_SL2L366->SetBinContent(9,1201.429); h_SL2L366->SetBinContent(10,1207.143); h_SL2L366->SetBinContent(11,1347.143); h_SL2L366->SetBinContent(12,1511.429); h_SL2L366->SetBinContent(13,1568.571); h_SL2L366->SetBinContent(14,1635.714); h_SL2L366->SetBinContent(15,1714.286); h_SL2L366->SetBinContent(16,1761.429); h_SL2L366->SetBinContent(17,1890); h_SL2L366->SetBinContent(18,1971.429); h_SL2L366->SetBinContent(19,2248.572); h_SL2L366->SetBinContent(20,2231.429); h_SL2L366->SetBinContent(21,2338.572); h_SL2L366->SetBinContent(22,2415.714); h_SL2L366->SetBinContent(23,2924.286); h_SL2L366->SetBinContent(24,3297.143); h_SL2L366->SetBinContent(25,8295.715); h_SL2L366->SetBinContent(26,26351.43); h_SL2L366->SetBinContent(27,40694.29); h_SL2L366->SetBinContent(28,48168.57); h_SL2L366->SetBinContent(29,52004.29); h_SL2L366->SetBinContent(30,51065.71); h_SL2L366->SetBinContent(31,50338.57); h_SL2L366->SetBinContent(32,51455.71); h_SL2L366->SetBinContent(33,49897.14); h_SL2L366->SetBinContent(34,28184.29); h_SL2L366->SetBinContent(35,7424.286); h_SL2L366->SetBinContent(36,3711.429); h_SL2L366->SetBinContent(37,2788.572); h_SL2L366->SetBinContent(38,2308.572); h_SL2L366->SetBinContent(39,1928.572); h_SL2L366->SetBinContent(40,3558.572); h_SL2L366->SetBinContent(41,2292.857); h_SL2L366->SetBinContent(42,1545.714); h_SL2L366->SetBinContent(43,1472.857); h_SL2L366->SetBinContent(44,1357.143); h_SL2L366->SetBinContent(45,1247.143); h_SL2L366->SetBinContent(46,1194.286); h_SL2L366->SetBinContent(47,1050); h_SL2L366->SetBinContent(48,1030); h_SL2L366->SetBinContent(49,894.2857); h_SL2L366->SetBinContent(50,801.4286); h_SL2L366->SetBinContent(51,805.7143); h_SL2L366->SetBinContent(52,762.8572); h_SL2L366->SetBinContent(53,675.7143); h_SL2L366->SetBinContent(54,690); h_SL2L366->SetBinContent(55,615.7143); h_SL2L366->SetBinContent(56,545.7143); h_SL2L366->SetBinContent(57,527.1429); h_SL2L366->SetMaximum(79703.21); 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,660); h_SL2L467->SetBinContent(3,778.5715); h_SL2L467->SetBinContent(4,834.2857); h_SL2L467->SetBinContent(5,902.8572); h_SL2L467->SetBinContent(6,992.8572); h_SL2L467->SetBinContent(7,970); h_SL2L467->SetBinContent(8,1111.429); h_SL2L467->SetBinContent(9,1070); h_SL2L467->SetBinContent(10,1151.429); h_SL2L467->SetBinContent(11,1175.714); h_SL2L467->SetBinContent(12,1417.143); h_SL2L467->SetBinContent(13,1458.571); h_SL2L467->SetBinContent(14,1585.714); h_SL2L467->SetBinContent(15,1667.143); h_SL2L467->SetBinContent(16,1707.143); h_SL2L467->SetBinContent(17,1825.714); h_SL2L467->SetBinContent(18,1927.143); h_SL2L467->SetBinContent(19,2090); h_SL2L467->SetBinContent(20,2130); h_SL2L467->SetBinContent(21,2174.286); h_SL2L467->SetBinContent(22,2398.572); h_SL2L467->SetBinContent(23,2588.572); h_SL2L467->SetBinContent(24,2964.286); h_SL2L467->SetBinContent(25,3985.714); h_SL2L467->SetBinContent(26,17115.71); h_SL2L467->SetBinContent(27,34124.29); h_SL2L467->SetBinContent(28,45325.71); h_SL2L467->SetBinContent(29,50781.43); h_SL2L467->SetBinContent(30,52817.14); h_SL2L467->SetBinContent(31,50065.71); h_SL2L467->SetBinContent(32,50691.43); h_SL2L467->SetBinContent(33,52055.71); h_SL2L467->SetBinContent(34,42128.57); h_SL2L467->SetBinContent(35,14888.57); h_SL2L467->SetBinContent(36,4698.572); h_SL2L467->SetBinContent(37,3102.857); h_SL2L467->SetBinContent(38,2550); h_SL2L467->SetBinContent(39,2075.714); h_SL2L467->SetBinContent(40,1842.857); h_SL2L467->SetBinContent(41,1592.857); h_SL2L467->SetBinContent(42,2108.572); h_SL2L467->SetBinContent(43,1401.429); h_SL2L467->SetBinContent(44,1374.286); h_SL2L467->SetBinContent(45,1211.429); h_SL2L467->SetBinContent(46,1210); h_SL2L467->SetBinContent(47,1164.286); h_SL2L467->SetBinContent(48,1002.857); h_SL2L467->SetBinContent(49,921.4286); h_SL2L467->SetBinContent(50,850); h_SL2L467->SetBinContent(51,800); h_SL2L467->SetBinContent(52,764.2857); h_SL2L467->SetBinContent(53,695.7143); h_SL2L467->SetBinContent(54,704.2857); h_SL2L467->SetBinContent(55,684.2857); h_SL2L467->SetBinContent(56,554.2857); h_SL2L467->SetBinContent(57,504.2857); h_SL2L467->SetMaximum(79703.21); 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 6577"); pt->Draw(); c->Modified(); c->cd(); c->SetSelected(c); }