void RatesPerCell_Removing_noisy_cells_run_6500_SL2() { //=========Macro generated from canvas: c/c //========= (Mon Jan 14 19:55:52 2019) by ROOT version6.02/13 TCanvas *c = new TCanvas("c", "c",0,0,800,600); gStyle->SetOptStat(0); c->Range(-7.500001,-10172.76,67.5,91554.81); c->SetFillColor(0); c->SetBorderMode(0); c->SetBorderSize(2); c->SetFrameBorderMode(0); c->SetFrameBorderMode(0); TH1D *h_SL2L164 = new TH1D("h_SL2L164","SL2, run 6500",60,0,60); h_SL2L164->SetBinContent(1,571.4286); h_SL2L164->SetBinContent(2,661.4286); h_SL2L164->SetBinContent(3,800); h_SL2L164->SetBinContent(4,872.8572); h_SL2L164->SetBinContent(5,901.4286); h_SL2L164->SetBinContent(6,961.4286); h_SL2L164->SetBinContent(7,1005.714); h_SL2L164->SetBinContent(8,1021.429); h_SL2L164->SetBinContent(9,1155.714); h_SL2L164->SetBinContent(10,1212.857); h_SL2L164->SetBinContent(11,1348.571); h_SL2L164->SetBinContent(12,1467.143); h_SL2L164->SetBinContent(13,1585.714); h_SL2L164->SetBinContent(14,1744.286); h_SL2L164->SetBinContent(15,1718.571); h_SL2L164->SetBinContent(16,1815.714); h_SL2L164->SetBinContent(17,1902.857); h_SL2L164->SetBinContent(18,2194.286); h_SL2L164->SetBinContent(19,2290); h_SL2L164->SetBinContent(20,2305.714); h_SL2L164->SetBinContent(21,2551.429); h_SL2L164->SetBinContent(22,2677.143); h_SL2L164->SetBinContent(23,2945.714); h_SL2L164->SetBinContent(24,3490); h_SL2L164->SetBinContent(25,7701.429); h_SL2L164->SetBinContent(26,24705.71); h_SL2L164->SetBinContent(27,44294.29); h_SL2L164->SetBinContent(28,57417.14); h_SL2L164->SetBinContent(29,61511.43); h_SL2L164->SetBinContent(30,54782.86); h_SL2L164->SetBinContent(31,43407.14); h_SL2L164->SetBinContent(32,40430); h_SL2L164->SetBinContent(33,40312.86); h_SL2L164->SetBinContent(34,25791.43); h_SL2L164->SetBinContent(35,2.857143); h_SL2L164->SetBinContent(36,3675.714); h_SL2L164->SetBinContent(37,6364.286); h_SL2L164->SetBinContent(38,3562.857); h_SL2L164->SetBinContent(39,5560); h_SL2L164->SetBinContent(40,24385.71); h_SL2L164->SetBinContent(41,61537.14); h_SL2L164->SetBinContent(42,10952.86); h_SL2L164->SetBinContent(43,11705.71); h_SL2L164->SetBinContent(44,11177.14); h_SL2L164->SetBinContent(45,1180); h_SL2L164->SetBinContent(46,1070); h_SL2L164->SetBinContent(47,1074.286); h_SL2L164->SetBinContent(48,970); h_SL2L164->SetBinContent(49,890); h_SL2L164->SetBinContent(50,764.2857); h_SL2L164->SetBinContent(51,688.5715); h_SL2L164->SetBinContent(52,665.7143); h_SL2L164->SetBinContent(53,620); h_SL2L164->SetBinContent(54,594.2857); h_SL2L164->SetBinContent(55,478.5714); h_SL2L164->SetBinContent(56,445.7143); h_SL2L164->SetBinContent(57,508.5714); h_SL2L164->SetMaximum(81382.05); 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,498.5714); h_SL2L265->SetBinContent(2,684.2857); h_SL2L265->SetBinContent(3,697.1429); h_SL2L265->SetBinContent(4,887.1429); h_SL2L265->SetBinContent(5,860); h_SL2L265->SetBinContent(6,881.4286); h_SL2L265->SetBinContent(7,990); h_SL2L265->SetBinContent(8,1077.143); h_SL2L265->SetBinContent(9,1030); h_SL2L265->SetBinContent(10,1154.286); h_SL2L265->SetBinContent(11,1308.571); h_SL2L265->SetBinContent(12,1367.143); h_SL2L265->SetBinContent(13,1524.286); h_SL2L265->SetBinContent(14,1675.714); h_SL2L265->SetBinContent(15,1737.143); h_SL2L265->SetBinContent(16,1705.714); h_SL2L265->SetBinContent(17,1825.714); h_SL2L265->SetBinContent(18,2032.857); h_SL2L265->SetBinContent(19,2225.714); h_SL2L265->SetBinContent(20,2394.286); h_SL2L265->SetBinContent(21,2364.286); h_SL2L265->SetBinContent(22,2525.714); h_SL2L265->SetBinContent(23,2765.714); h_SL2L265->SetBinContent(24,3092.857); h_SL2L265->SetBinContent(25,4075.714); h_SL2L265->SetBinContent(26,15394.29); h_SL2L265->SetBinContent(27,34352.86); h_SL2L265->SetBinContent(28,52050); h_SL2L265->SetBinContent(29,60570); h_SL2L265->SetBinContent(30,59830); h_SL2L265->SetBinContent(31,48350); h_SL2L265->SetBinContent(32,40548.57); h_SL2L265->SetBinContent(33,41180); h_SL2L265->SetBinContent(34,36440); h_SL2L265->SetBinContent(35,13948.57); h_SL2L265->SetBinContent(36,4610); h_SL2L265->SetBinContent(37,3108.572); h_SL2L265->SetBinContent(38,2471.429); h_SL2L265->SetBinContent(39,3245.714); h_SL2L265->SetBinContent(40,5028.572); h_SL2L265->SetBinContent(41,2977.143); h_SL2L265->SetBinContent(42,2438.572); h_SL2L265->SetBinContent(43,1551.429); h_SL2L265->SetBinContent(44,1938.572); h_SL2L265->SetBinContent(45,1195.714); h_SL2L265->SetBinContent(46,1092.857); h_SL2L265->SetBinContent(47,1021.429); h_SL2L265->SetBinContent(48,992.8572); h_SL2L265->SetBinContent(49,948.5715); h_SL2L265->SetBinContent(50,824.2857); h_SL2L265->SetBinContent(51,707.1429); h_SL2L265->SetBinContent(52,660); h_SL2L265->SetBinContent(53,580); h_SL2L265->SetBinContent(54,618.5715); h_SL2L265->SetBinContent(55,537.1429); h_SL2L265->SetBinContent(56,494.2857); h_SL2L265->SetBinContent(57,490); h_SL2L265->SetMaximum(70767.72); 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,578.5715); h_SL2L366->SetBinContent(2,641.4286); h_SL2L366->SetBinContent(3,740); h_SL2L366->SetBinContent(4,854.2857); h_SL2L366->SetBinContent(5,844.2857); h_SL2L366->SetBinContent(6,920); h_SL2L366->SetBinContent(7,962.8572); h_SL2L366->SetBinContent(8,1048.571); h_SL2L366->SetBinContent(9,1085.714); h_SL2L366->SetBinContent(10,1217.143); h_SL2L366->SetBinContent(11,1304.286); h_SL2L366->SetBinContent(12,1401.429); h_SL2L366->SetBinContent(13,1520); h_SL2L366->SetBinContent(14,1677.143); h_SL2L366->SetBinContent(15,1665.714); h_SL2L366->SetBinContent(16,1764.286); h_SL2L366->SetBinContent(17,1892.857); h_SL2L366->SetBinContent(18,2157.143); h_SL2L366->SetBinContent(19,2185.714); h_SL2L366->SetBinContent(20,2337.143); h_SL2L366->SetBinContent(21,2381.429); h_SL2L366->SetBinContent(22,2584.286); h_SL2L366->SetBinContent(23,2795.714); h_SL2L366->SetBinContent(24,3358.572); h_SL2L366->SetBinContent(25,7688.572); h_SL2L366->SetBinContent(26,24742.86); h_SL2L366->SetBinContent(27,44144.29); h_SL2L366->SetBinContent(28,57537.14); h_SL2L366->SetBinContent(29,61282.86); h_SL2L366->SetBinContent(30,54591.43); h_SL2L366->SetBinContent(31,43577.14); h_SL2L366->SetBinContent(32,40487.14); h_SL2L366->SetBinContent(33,40331.43); h_SL2L366->SetBinContent(34,25837.14); h_SL2L366->SetBinContent(35,7091.429); h_SL2L366->SetBinContent(36,3590); h_SL2L366->SetBinContent(37,2692.857); h_SL2L366->SetBinContent(38,2290); h_SL2L366->SetBinContent(39,1970); h_SL2L366->SetBinContent(40,3897.143); h_SL2L366->SetBinContent(41,2010); h_SL2L366->SetBinContent(42,1410); h_SL2L366->SetBinContent(43,1401.429); h_SL2L366->SetBinContent(44,1214.286); h_SL2L366->SetBinContent(45,1127.143); h_SL2L366->SetBinContent(46,1030); h_SL2L366->SetBinContent(47,1025.714); h_SL2L366->SetBinContent(48,898.5715); h_SL2L366->SetBinContent(49,888.5715); h_SL2L366->SetBinContent(50,728.5715); h_SL2L366->SetBinContent(51,644.2857); h_SL2L366->SetBinContent(52,610); h_SL2L366->SetBinContent(53,592.8572); h_SL2L366->SetBinContent(54,551.4286); h_SL2L366->SetBinContent(55,501.4286); h_SL2L366->SetBinContent(56,444.2857); h_SL2L366->SetBinContent(57,444.2857); h_SL2L366->SetMaximum(70767.72); 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,652.8572); h_SL2L467->SetBinContent(3,645.7143); h_SL2L467->SetBinContent(4,837.1429); h_SL2L467->SetBinContent(5,784.2857); h_SL2L467->SetBinContent(6,860); h_SL2L467->SetBinContent(7,955.7143); h_SL2L467->SetBinContent(8,1034.286); h_SL2L467->SetBinContent(9,1027.143); h_SL2L467->SetBinContent(10,1111.429); h_SL2L467->SetBinContent(11,1191.429); h_SL2L467->SetBinContent(12,1307.143); h_SL2L467->SetBinContent(13,1425.714); h_SL2L467->SetBinContent(14,1600); h_SL2L467->SetBinContent(15,1612.857); h_SL2L467->SetBinContent(16,1611.429); h_SL2L467->SetBinContent(17,1790); h_SL2L467->SetBinContent(18,1961.429); h_SL2L467->SetBinContent(19,2102.857); h_SL2L467->SetBinContent(20,2282.857); h_SL2L467->SetBinContent(21,2297.143); h_SL2L467->SetBinContent(22,2418.572); h_SL2L467->SetBinContent(23,2658.572); h_SL2L467->SetBinContent(24,3038.572); h_SL2L467->SetBinContent(25,3960); h_SL2L467->SetBinContent(26,15262.86); h_SL2L467->SetBinContent(27,34322.86); h_SL2L467->SetBinContent(28,51901.43); h_SL2L467->SetBinContent(29,60702.86); h_SL2L467->SetBinContent(30,60220); h_SL2L467->SetBinContent(31,48240); h_SL2L467->SetBinContent(32,40604.29); h_SL2L467->SetBinContent(33,41085.71); h_SL2L467->SetBinContent(34,36405.71); h_SL2L467->SetBinContent(35,13885.71); h_SL2L467->SetBinContent(36,4502.857); h_SL2L467->SetBinContent(37,3031.429); h_SL2L467->SetBinContent(38,2457.143); h_SL2L467->SetBinContent(39,2131.429); h_SL2L467->SetBinContent(40,1835.714); h_SL2L467->SetBinContent(41,1587.143); h_SL2L467->SetBinContent(42,1944.286); h_SL2L467->SetBinContent(43,1318.571); h_SL2L467->SetBinContent(44,1298.571); h_SL2L467->SetBinContent(45,1148.571); h_SL2L467->SetBinContent(46,1057.143); h_SL2L467->SetBinContent(47,972.8572); h_SL2L467->SetBinContent(48,948.5715); h_SL2L467->SetBinContent(49,891.4286); h_SL2L467->SetBinContent(50,784.2857); h_SL2L467->SetBinContent(51,665.7143); h_SL2L467->SetBinContent(52,607.1429); h_SL2L467->SetBinContent(53,571.4286); h_SL2L467->SetBinContent(54,605.7143); h_SL2L467->SetBinContent(55,502.8571); h_SL2L467->SetBinContent(56,451.4286); h_SL2L467->SetBinContent(57,488.5714); h_SL2L467->SetMaximum(70767.72); 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 6500"); pt->Draw(); c->Modified(); c->cd(); c->SetSelected(c); }