void RatesPerCell_Removing_noisy_cells_run_6681_SL2() { //=========Macro generated from canvas: c/c //========= (Sun Jan 13 16:23:33 2019) by ROOT version6.02/13 TCanvas *c = new TCanvas("c", "c",0,0,800,600); gStyle->SetOptStat(0); c->Range(-7.500001,-12871.81,67.5,115846.3); c->SetFillColor(0); c->SetBorderMode(0); c->SetBorderSize(2); c->SetFrameBorderMode(0); c->SetFrameBorderMode(0); TH1D *h_SL2L164 = new TH1D("h_SL2L164","SL2, run 6681",60,0,60); h_SL2L164->SetBinContent(1,688.5715); h_SL2L164->SetBinContent(2,807.1429); h_SL2L164->SetBinContent(3,971.4286); h_SL2L164->SetBinContent(4,1055.714); h_SL2L164->SetBinContent(5,994.2858); h_SL2L164->SetBinContent(6,1034.286); h_SL2L164->SetBinContent(7,1192.857); h_SL2L164->SetBinContent(8,1121.429); h_SL2L164->SetBinContent(9,1300); h_SL2L164->SetBinContent(10,1348.571); h_SL2L164->SetBinContent(11,1412.857); h_SL2L164->SetBinContent(12,1617.143); h_SL2L164->SetBinContent(13,1650); h_SL2L164->SetBinContent(14,1734.286); h_SL2L164->SetBinContent(15,1821.429); h_SL2L164->SetBinContent(16,1931.429); h_SL2L164->SetBinContent(17,2081.429); h_SL2L164->SetBinContent(18,2121.429); h_SL2L164->SetBinContent(19,2450); h_SL2L164->SetBinContent(20,2255.714); h_SL2L164->SetBinContent(21,2572.857); h_SL2L164->SetBinContent(22,2691.429); h_SL2L164->SetBinContent(23,2994.286); h_SL2L164->SetBinContent(24,3590); h_SL2L164->SetBinContent(25,8528.571); h_SL2L164->SetBinContent(26,27030); h_SL2L164->SetBinContent(27,41385.71); h_SL2L164->SetBinContent(28,49252.86); h_SL2L164->SetBinContent(29,53144.29); h_SL2L164->SetBinContent(30,51801.43); h_SL2L164->SetBinContent(31,49795.71); h_SL2L164->SetBinContent(32,50142.86); h_SL2L164->SetBinContent(33,48814.29); h_SL2L164->SetBinContent(34,28028.57); h_SL2L164->SetBinContent(36,3661.429); h_SL2L164->SetBinContent(37,4612.857); h_SL2L164->SetBinContent(38,3352.857); h_SL2L164->SetBinContent(39,3757.143); h_SL2L164->SetBinContent(40,64305.71); h_SL2L164->SetBinContent(41,77864.29); h_SL2L164->SetBinContent(42,7201.429); h_SL2L164->SetBinContent(43,6980); h_SL2L164->SetBinContent(44,7110); h_SL2L164->SetBinContent(45,1295.714); h_SL2L164->SetBinContent(46,1161.429); h_SL2L164->SetBinContent(47,1117.143); h_SL2L164->SetBinContent(48,1100); h_SL2L164->SetBinContent(49,975.7143); h_SL2L164->SetBinContent(50,902.8572); h_SL2L164->SetBinContent(51,882.8572); h_SL2L164->SetBinContent(52,837.1429); h_SL2L164->SetBinContent(53,665.7143); h_SL2L164->SetBinContent(54,695.7143); h_SL2L164->SetBinContent(55,591.4286); h_SL2L164->SetBinContent(56,561.4286); h_SL2L164->SetBinContent(57,6490); h_SL2L164->SetMaximum(102974.4); 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); h_SL2L265->SetBinContent(2,770); h_SL2L265->SetBinContent(3,881.4286); h_SL2L265->SetBinContent(4,968.5715); h_SL2L265->SetBinContent(5,965.7143); h_SL2L265->SetBinContent(6,1017.143); h_SL2L265->SetBinContent(7,1102.857); h_SL2L265->SetBinContent(8,1081.429); h_SL2L265->SetBinContent(9,1218.571); h_SL2L265->SetBinContent(10,1265.714); h_SL2L265->SetBinContent(11,1350); h_SL2L265->SetBinContent(12,1464.286); h_SL2L265->SetBinContent(13,1621.429); h_SL2L265->SetBinContent(14,1617.143); h_SL2L265->SetBinContent(15,1732.857); h_SL2L265->SetBinContent(16,1850); h_SL2L265->SetBinContent(17,1867.143); h_SL2L265->SetBinContent(18,2095.714); h_SL2L265->SetBinContent(19,2291.429); h_SL2L265->SetBinContent(20,2357.143); h_SL2L265->SetBinContent(21,2334.286); h_SL2L265->SetBinContent(22,2514.286); h_SL2L265->SetBinContent(23,2837.143); h_SL2L265->SetBinContent(24,3092.857); h_SL2L265->SetBinContent(25,4282.857); h_SL2L265->SetBinContent(26,17488.57); h_SL2L265->SetBinContent(27,34562.86); h_SL2L265->SetBinContent(28,46371.43); h_SL2L265->SetBinContent(29,51247.14); h_SL2L265->SetBinContent(30,52832.86); h_SL2L265->SetBinContent(31,50174.29); h_SL2L265->SetBinContent(32,49684.29); h_SL2L265->SetBinContent(33,50528.57); h_SL2L265->SetBinContent(34,41440); h_SL2L265->SetBinContent(35,14927.14); h_SL2L265->SetBinContent(36,4745.714); h_SL2L265->SetBinContent(37,3090); h_SL2L265->SetBinContent(38,2617.143); h_SL2L265->SetBinContent(39,2620); h_SL2L265->SetBinContent(40,3651.429); h_SL2L265->SetBinContent(41,3704.286); h_SL2L265->SetBinContent(42,3072.857); h_SL2L265->SetBinContent(43,2218.572); h_SL2L265->SetBinContent(44,2650); h_SL2L265->SetBinContent(45,1341.429); h_SL2L265->SetBinContent(46,1270); h_SL2L265->SetBinContent(47,1112.857); h_SL2L265->SetBinContent(48,1007.143); h_SL2L265->SetBinContent(49,1024.286); h_SL2L265->SetBinContent(50,892.8572); h_SL2L265->SetBinContent(51,897.1429); h_SL2L265->SetBinContent(52,824.2857); h_SL2L265->SetBinContent(53,707.1429); h_SL2L265->SetBinContent(54,684.2857); h_SL2L265->SetBinContent(55,640); h_SL2L265->SetBinContent(56,587.1429); h_SL2L265->SetBinContent(57,541.4286); h_SL2L265->SetMaximum(89543.93); 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,718.5715); h_SL2L366->SetBinContent(2,771.4286); h_SL2L366->SetBinContent(3,924.2858); h_SL2L366->SetBinContent(4,955.7143); h_SL2L366->SetBinContent(5,928.5715); h_SL2L366->SetBinContent(6,1050); h_SL2L366->SetBinContent(7,1141.429); h_SL2L366->SetBinContent(8,1105.714); h_SL2L366->SetBinContent(9,1202.857); h_SL2L366->SetBinContent(10,1270); h_SL2L366->SetBinContent(11,1400); h_SL2L366->SetBinContent(12,1565.714); h_SL2L366->SetBinContent(13,1538.571); h_SL2L366->SetBinContent(14,1681.429); h_SL2L366->SetBinContent(15,1794.286); h_SL2L366->SetBinContent(16,1855.714); h_SL2L366->SetBinContent(17,1962.857); h_SL2L366->SetBinContent(18,2084.286); h_SL2L366->SetBinContent(19,2417.143); h_SL2L366->SetBinContent(20,2225.714); h_SL2L366->SetBinContent(21,2454.286); h_SL2L366->SetBinContent(22,2594.286); h_SL2L366->SetBinContent(23,2867.143); h_SL2L366->SetBinContent(24,3438.572); h_SL2L366->SetBinContent(25,8374.286); h_SL2L366->SetBinContent(26,27082.86); h_SL2L366->SetBinContent(27,41175.71); h_SL2L366->SetBinContent(28,49278.57); h_SL2L366->SetBinContent(29,52712.86); h_SL2L366->SetBinContent(30,51421.43); h_SL2L366->SetBinContent(31,49918.57); h_SL2L366->SetBinContent(32,50230); h_SL2L366->SetBinContent(33,48645.71); h_SL2L366->SetBinContent(34,28065.71); h_SL2L366->SetBinContent(35,7315.714); h_SL2L366->SetBinContent(36,3735.714); h_SL2L366->SetBinContent(37,2790); h_SL2L366->SetBinContent(38,2377.143); h_SL2L366->SetBinContent(39,1942.857); h_SL2L366->SetBinContent(40,2290); h_SL2L366->SetBinContent(41,2092.857); h_SL2L366->SetBinContent(42,1675.714); h_SL2L366->SetBinContent(43,1528.571); h_SL2L366->SetBinContent(44,1451.429); h_SL2L366->SetBinContent(45,1244.286); h_SL2L366->SetBinContent(46,1207.143); h_SL2L366->SetBinContent(47,1087.143); h_SL2L366->SetBinContent(48,1045.714); h_SL2L366->SetBinContent(49,938.5715); h_SL2L366->SetBinContent(50,890); h_SL2L366->SetBinContent(51,817.1429); h_SL2L366->SetBinContent(52,787.1429); h_SL2L366->SetBinContent(53,662.8572); h_SL2L366->SetBinContent(54,675.7143); h_SL2L366->SetBinContent(55,575.7143); h_SL2L366->SetBinContent(56,580); h_SL2L366->SetBinContent(57,552.8572); h_SL2L366->SetMaximum(89543.93); 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,731.4286); h_SL2L467->SetBinContent(3,801.4286); h_SL2L467->SetBinContent(4,905.7143); h_SL2L467->SetBinContent(5,941.4286); h_SL2L467->SetBinContent(6,1021.429); h_SL2L467->SetBinContent(7,1055.714); h_SL2L467->SetBinContent(8,1061.429); h_SL2L467->SetBinContent(9,1165.714); h_SL2L467->SetBinContent(10,1222.857); h_SL2L467->SetBinContent(11,1278.571); h_SL2L467->SetBinContent(12,1460); h_SL2L467->SetBinContent(13,1554.286); h_SL2L467->SetBinContent(14,1517.143); h_SL2L467->SetBinContent(15,1691.429); h_SL2L467->SetBinContent(16,1768.571); h_SL2L467->SetBinContent(17,1831.429); h_SL2L467->SetBinContent(18,1998.572); h_SL2L467->SetBinContent(19,2231.429); h_SL2L467->SetBinContent(20,2291.429); h_SL2L467->SetBinContent(21,2207.143); h_SL2L467->SetBinContent(22,2461.429); h_SL2L467->SetBinContent(23,2650); h_SL2L467->SetBinContent(24,2955.714); h_SL2L467->SetBinContent(25,4155.714); h_SL2L467->SetBinContent(26,17471.43); h_SL2L467->SetBinContent(27,34870); h_SL2L467->SetBinContent(28,46137.14); h_SL2L467->SetBinContent(29,51207.14); h_SL2L467->SetBinContent(30,53558.57); h_SL2L467->SetBinContent(31,50115.71); h_SL2L467->SetBinContent(32,49935.71); h_SL2L467->SetBinContent(33,50642.86); h_SL2L467->SetBinContent(34,41402.86); h_SL2L467->SetBinContent(35,14974.29); h_SL2L467->SetBinContent(36,4644.286); h_SL2L467->SetBinContent(37,3092.857); h_SL2L467->SetBinContent(38,2517.143); h_SL2L467->SetBinContent(39,2122.857); h_SL2L467->SetBinContent(40,1780); h_SL2L467->SetBinContent(41,1681.429); h_SL2L467->SetBinContent(42,2091.429); h_SL2L467->SetBinContent(43,1497.143); h_SL2L467->SetBinContent(44,1457.143); h_SL2L467->SetBinContent(45,1251.429); h_SL2L467->SetBinContent(46,1178.571); h_SL2L467->SetBinContent(47,1048.571); h_SL2L467->SetBinContent(48,1020); h_SL2L467->SetBinContent(49,1022.857); h_SL2L467->SetBinContent(50,905.7143); h_SL2L467->SetBinContent(51,865.7143); h_SL2L467->SetBinContent(52,815.7143); h_SL2L467->SetBinContent(53,665.7143); h_SL2L467->SetBinContent(54,711.4286); h_SL2L467->SetBinContent(55,665.7143); h_SL2L467->SetBinContent(56,581.4286); h_SL2L467->SetBinContent(57,550); h_SL2L467->SetMaximum(89543.93); 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.3744221,0.9362587,0.6255779,0.995,"blNDC"); pt->SetName("title"); pt->SetBorderSize(0); pt->SetFillColor(0); pt->SetFillStyle(0); pt->SetTextFont(42); TText *AText = pt->AddText("SL2, run 6681"); pt->Draw(); c->Modified(); c->cd(); c->SetSelected(c); }