void RatesPerCell_Removing_noisy_cells_run_6766_SL2() { //=========Macro generated from canvas: c/c //========= (Sun Jan 13 16:07:31 2019) by ROOT version6.02/13 TCanvas *c = new TCanvas("c", "c",0,0,800,600); gStyle->SetOptStat(0); c->Range(-7.500001,-8955.482,67.5,80599.33); c->SetFillColor(0); c->SetBorderMode(0); c->SetBorderSize(2); c->SetFrameBorderMode(0); c->SetFrameBorderMode(0); TH1D *h_SL2L164 = new TH1D("h_SL2L164","SL2, run 6766",60,0,60); h_SL2L164->SetBinContent(1,571.4286); h_SL2L164->SetBinContent(2,823.8095); h_SL2L164->SetBinContent(3,904.7619); h_SL2L164->SetBinContent(4,983.3333); h_SL2L164->SetBinContent(5,1019.048); h_SL2L164->SetBinContent(6,1076.19); h_SL2L164->SetBinContent(7,1128.571); h_SL2L164->SetBinContent(8,1152.381); h_SL2L164->SetBinContent(9,1233.333); h_SL2L164->SetBinContent(10,1323.81); h_SL2L164->SetBinContent(11,1421.429); h_SL2L164->SetBinContent(12,1492.857); h_SL2L164->SetBinContent(13,1635.714); h_SL2L164->SetBinContent(14,1654.762); h_SL2L164->SetBinContent(15,1816.667); h_SL2L164->SetBinContent(16,1923.809); h_SL2L164->SetBinContent(17,2040.476); h_SL2L164->SetBinContent(18,2078.571); h_SL2L164->SetBinContent(19,2166.667); h_SL2L164->SetBinContent(20,2190.476); h_SL2L164->SetBinContent(21,2471.428); h_SL2L164->SetBinContent(22,2735.714); h_SL2L164->SetBinContent(23,2747.619); h_SL2L164->SetBinContent(24,3338.095); h_SL2L164->SetBinContent(25,8769.048); h_SL2L164->SetBinContent(26,27309.52); h_SL2L164->SetBinContent(27,42178.57); h_SL2L164->SetBinContent(28,50180.95); h_SL2L164->SetBinContent(29,54173.81); h_SL2L164->SetBinContent(30,52145.24); h_SL2L164->SetBinContent(31,50061.9); h_SL2L164->SetBinContent(32,48847.62); h_SL2L164->SetBinContent(33,48323.81); h_SL2L164->SetBinContent(34,27335.71); h_SL2L164->SetBinContent(36,3619.048); h_SL2L164->SetBinContent(37,2888.095); h_SL2L164->SetBinContent(38,2545.238); h_SL2L164->SetBinContent(39,1990.476); h_SL2L164->SetBinContent(40,1752.381); h_SL2L164->SetBinContent(41,1723.809); h_SL2L164->SetBinContent(42,1723.809); h_SL2L164->SetBinContent(43,1450); h_SL2L164->SetBinContent(44,1319.048); h_SL2L164->SetBinContent(45,1276.19); h_SL2L164->SetBinContent(46,1083.333); h_SL2L164->SetBinContent(47,1073.81); h_SL2L164->SetBinContent(48,1078.571); h_SL2L164->SetBinContent(49,1000); h_SL2L164->SetBinContent(50,900); h_SL2L164->SetBinContent(51,888.0952); h_SL2L164->SetBinContent(52,869.0476); h_SL2L164->SetBinContent(53,766.6667); h_SL2L164->SetBinContent(54,588.0952); h_SL2L164->SetBinContent(55,711.9048); h_SL2L164->SetBinContent(56,566.6667); h_SL2L164->SetBinContent(57,8561.904); h_SL2L164->SetMaximum(71643.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,640.4762); h_SL2L265->SetBinContent(2,719.0476); h_SL2L265->SetBinContent(3,914.2857); h_SL2L265->SetBinContent(4,883.3333); h_SL2L265->SetBinContent(5,988.0952); h_SL2L265->SetBinContent(6,976.1905); h_SL2L265->SetBinContent(7,1095.238); h_SL2L265->SetBinContent(8,1083.333); h_SL2L265->SetBinContent(9,1080.952); h_SL2L265->SetBinContent(10,1257.143); h_SL2L265->SetBinContent(11,1326.19); h_SL2L265->SetBinContent(12,1445.238); h_SL2L265->SetBinContent(13,1476.19); h_SL2L265->SetBinContent(14,1638.095); h_SL2L265->SetBinContent(15,1600); h_SL2L265->SetBinContent(16,1923.809); h_SL2L265->SetBinContent(17,1811.905); h_SL2L265->SetBinContent(18,1985.714); h_SL2L265->SetBinContent(19,2130.952); h_SL2L265->SetBinContent(20,2147.619); h_SL2L265->SetBinContent(21,2338.095); h_SL2L265->SetBinContent(22,2438.095); h_SL2L265->SetBinContent(23,2585.714); h_SL2L265->SetBinContent(24,2990.476); h_SL2L265->SetBinContent(25,4176.19); h_SL2L265->SetBinContent(26,17885.71); h_SL2L265->SetBinContent(27,35004.76); h_SL2L265->SetBinContent(28,46554.76); h_SL2L265->SetBinContent(29,52352.38); h_SL2L265->SetBinContent(30,53223.81); h_SL2L265->SetBinContent(31,50500); h_SL2L265->SetBinContent(32,48845.24); h_SL2L265->SetBinContent(33,49583.33); h_SL2L265->SetBinContent(34,40907.14); h_SL2L265->SetBinContent(35,14350); h_SL2L265->SetBinContent(36,4771.429); h_SL2L265->SetBinContent(37,3109.524); h_SL2L265->SetBinContent(38,2704.762); h_SL2L265->SetBinContent(39,2307.143); h_SL2L265->SetBinContent(40,1919.048); h_SL2L265->SetBinContent(41,1840.476); h_SL2L265->SetBinContent(42,1652.381); h_SL2L265->SetBinContent(43,1547.619); h_SL2L265->SetBinContent(44,1433.333); h_SL2L265->SetBinContent(45,1214.286); h_SL2L265->SetBinContent(46,1204.762); h_SL2L265->SetBinContent(47,1054.762); h_SL2L265->SetBinContent(48,1016.667); h_SL2L265->SetBinContent(49,971.4286); h_SL2L265->SetBinContent(50,933.3333); h_SL2L265->SetBinContent(51,885.7143); h_SL2L265->SetBinContent(52,811.9047); h_SL2L265->SetBinContent(53,752.3809); h_SL2L265->SetBinContent(54,602.3809); h_SL2L265->SetBinContent(55,630.9524); h_SL2L265->SetBinContent(56,619.0476); h_SL2L265->SetBinContent(57,611.9048); h_SL2L265->SetMaximum(62299.88); 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,654.7619); h_SL2L366->SetBinContent(2,857.1428); h_SL2L366->SetBinContent(3,850); h_SL2L366->SetBinContent(4,954.7619); h_SL2L366->SetBinContent(5,923.8095); h_SL2L366->SetBinContent(6,1011.905); h_SL2L366->SetBinContent(7,1045.238); h_SL2L366->SetBinContent(8,1088.095); h_SL2L366->SetBinContent(9,1204.762); h_SL2L366->SetBinContent(10,1292.857); h_SL2L366->SetBinContent(11,1392.857); h_SL2L366->SetBinContent(12,1388.095); h_SL2L366->SetBinContent(13,1521.429); h_SL2L366->SetBinContent(14,1633.333); h_SL2L366->SetBinContent(15,1733.333); h_SL2L366->SetBinContent(16,1795.238); h_SL2L366->SetBinContent(17,1902.381); h_SL2L366->SetBinContent(18,1988.095); h_SL2L366->SetBinContent(19,2119.048); h_SL2L366->SetBinContent(20,2152.381); h_SL2L366->SetBinContent(21,2411.905); h_SL2L366->SetBinContent(22,2530.952); h_SL2L366->SetBinContent(23,2692.857); h_SL2L366->SetBinContent(24,3271.428); h_SL2L366->SetBinContent(25,8547.619); h_SL2L366->SetBinContent(26,27271.43); h_SL2L366->SetBinContent(27,41719.05); h_SL2L366->SetBinContent(28,49723.81); h_SL2L366->SetBinContent(29,53488.09); h_SL2L366->SetBinContent(30,51795.24); h_SL2L366->SetBinContent(31,49890.48); h_SL2L366->SetBinContent(32,48838.09); h_SL2L366->SetBinContent(33,48273.81); h_SL2L366->SetBinContent(34,27242.86); h_SL2L366->SetBinContent(35,7385.714); h_SL2L366->SetBinContent(36,3745.238); h_SL2L366->SetBinContent(37,2811.905); h_SL2L366->SetBinContent(38,2488.095); h_SL2L366->SetBinContent(39,1997.619); h_SL2L366->SetBinContent(40,1883.333); h_SL2L366->SetBinContent(41,1707.143); h_SL2L366->SetBinContent(42,1573.809); h_SL2L366->SetBinContent(43,1350); h_SL2L366->SetBinContent(44,1230.952); h_SL2L366->SetBinContent(45,1214.286); h_SL2L366->SetBinContent(46,1064.286); h_SL2L366->SetBinContent(47,1026.19); h_SL2L366->SetBinContent(48,1033.333); h_SL2L366->SetBinContent(49,969.0476); h_SL2L366->SetBinContent(50,847.619); h_SL2L366->SetBinContent(51,838.0952); h_SL2L366->SetBinContent(52,797.619); h_SL2L366->SetBinContent(53,685.7143); h_SL2L366->SetBinContent(54,564.2857); h_SL2L366->SetBinContent(55,671.4286); h_SL2L366->SetBinContent(56,526.1905); h_SL2L366->SetBinContent(57,697.619); h_SL2L366->SetMaximum(62299.88); 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,709.5238); h_SL2L467->SetBinContent(3,880.9524); h_SL2L467->SetBinContent(4,819.0476); h_SL2L467->SetBinContent(5,935.7143); h_SL2L467->SetBinContent(6,940.4762); h_SL2L467->SetBinContent(7,1073.81); h_SL2L467->SetBinContent(8,1064.286); h_SL2L467->SetBinContent(9,1130.952); h_SL2L467->SetBinContent(10,1211.905); h_SL2L467->SetBinContent(11,1288.095); h_SL2L467->SetBinContent(12,1378.571); h_SL2L467->SetBinContent(13,1428.571); h_SL2L467->SetBinContent(14,1526.19); h_SL2L467->SetBinContent(15,1680.952); h_SL2L467->SetBinContent(16,1864.286); h_SL2L467->SetBinContent(17,1707.143); h_SL2L467->SetBinContent(18,1952.381); h_SL2L467->SetBinContent(19,2126.19); h_SL2L467->SetBinContent(20,2054.762); h_SL2L467->SetBinContent(21,2288.095); h_SL2L467->SetBinContent(22,2309.524); h_SL2L467->SetBinContent(23,2514.286); h_SL2L467->SetBinContent(24,2973.81); h_SL2L467->SetBinContent(25,4083.333); h_SL2L467->SetBinContent(26,17871.43); h_SL2L467->SetBinContent(27,35161.91); h_SL2L467->SetBinContent(28,46428.57); h_SL2L467->SetBinContent(29,52252.38); h_SL2L467->SetBinContent(30,53811.9); h_SL2L467->SetBinContent(31,50635.71); h_SL2L467->SetBinContent(32,49023.81); h_SL2L467->SetBinContent(33,49630.95); h_SL2L467->SetBinContent(34,40795.24); h_SL2L467->SetBinContent(35,14411.9); h_SL2L467->SetBinContent(36,4595.238); h_SL2L467->SetBinContent(37,2983.333); h_SL2L467->SetBinContent(38,2464.286); h_SL2L467->SetBinContent(39,2250); h_SL2L467->SetBinContent(40,1897.619); h_SL2L467->SetBinContent(41,1797.619); h_SL2L467->SetBinContent(42,1552.381); h_SL2L467->SetBinContent(43,1485.714); h_SL2L467->SetBinContent(44,1314.286); h_SL2L467->SetBinContent(45,1221.429); h_SL2L467->SetBinContent(46,1171.429); h_SL2L467->SetBinContent(47,1059.524); h_SL2L467->SetBinContent(48,983.3333); h_SL2L467->SetBinContent(49,995.2381); h_SL2L467->SetBinContent(50,890.4762); h_SL2L467->SetBinContent(51,840.4762); h_SL2L467->SetBinContent(52,800); h_SL2L467->SetBinContent(53,733.3333); h_SL2L467->SetBinContent(54,600); h_SL2L467->SetBinContent(55,669.0476); h_SL2L467->SetBinContent(56,614.2857); h_SL2L467->SetBinContent(57,607.1428); h_SL2L467->SetMaximum(62299.88); 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 6766"); pt->Draw(); c->Modified(); c->cd(); c->SetSelected(c); }