void RatesPerCell_Removing_noisy_cells_run_5057_SL2() { //=========Macro generated from canvas: c/c //========= (Sun Jan 13 15:25:11 2019) by ROOT version6.02/13 TCanvas *c = new TCanvas("c", "c",0,0,800,600); gStyle->SetOptStat(0); c->Range(-7.500001,-8914.082,67.5,80226.73); c->SetFillColor(0); c->SetBorderMode(0); c->SetBorderSize(2); c->SetFrameBorderMode(0); c->SetFrameBorderMode(0); TH1D *h_SL2L164 = new TH1D("h_SL2L164","SL2, run 5057",60,0,60); h_SL2L164->SetBinContent(1,667.1429); h_SL2L164->SetBinContent(2,755.7143); h_SL2L164->SetBinContent(3,980); h_SL2L164->SetBinContent(4,1057.143); h_SL2L164->SetBinContent(5,1054.286); h_SL2L164->SetBinContent(6,1175.714); h_SL2L164->SetBinContent(7,1152.857); h_SL2L164->SetBinContent(8,1255.714); h_SL2L164->SetBinContent(9,1377.143); h_SL2L164->SetBinContent(10,1468.571); h_SL2L164->SetBinContent(11,1640); h_SL2L164->SetBinContent(12,1705.714); h_SL2L164->SetBinContent(13,1838.572); h_SL2L164->SetBinContent(14,1898.572); h_SL2L164->SetBinContent(15,2141.429); h_SL2L164->SetBinContent(16,2318.572); h_SL2L164->SetBinContent(17,2315.714); h_SL2L164->SetBinContent(18,2628.572); h_SL2L164->SetBinContent(19,2941.429); h_SL2L164->SetBinContent(20,3217.143); h_SL2L164->SetBinContent(21,3172.857); h_SL2L164->SetBinContent(22,3495.714); h_SL2L164->SetBinContent(23,3737.143); h_SL2L164->SetBinContent(24,4238.571); h_SL2L164->SetBinContent(25,8924.286); h_SL2L164->SetBinContent(26,28561.43); h_SL2L164->SetBinContent(27,43485.71); h_SL2L164->SetBinContent(28,51005.71); h_SL2L164->SetBinContent(29,53922.86); h_SL2L164->SetBinContent(30,51261.43); h_SL2L164->SetBinContent(31,47522.86); h_SL2L164->SetBinContent(32,47440); h_SL2L164->SetBinContent(33,46141.43); h_SL2L164->SetBinContent(34,26152.86); h_SL2L164->SetBinContent(35,10); h_SL2L164->SetBinContent(36,4424.286); h_SL2L164->SetBinContent(37,4757.143); h_SL2L164->SetBinContent(38,3188.572); h_SL2L164->SetBinContent(39,3661.429); h_SL2L164->SetBinContent(40,15084.29); h_SL2L164->SetBinContent(41,4412.857); h_SL2L164->SetBinContent(42,4772.857); h_SL2L164->SetBinContent(43,5047.143); h_SL2L164->SetBinContent(44,4898.572); h_SL2L164->SetBinContent(45,1311.429); h_SL2L164->SetBinContent(46,1214.286); h_SL2L164->SetBinContent(47,1232.857); h_SL2L164->SetBinContent(48,1090); h_SL2L164->SetBinContent(49,987.1429); h_SL2L164->SetBinContent(50,894.2857); h_SL2L164->SetBinContent(51,827.1429); h_SL2L164->SetBinContent(52,787.1429); h_SL2L164->SetBinContent(53,712.8572); h_SL2L164->SetBinContent(54,675.7143); h_SL2L164->SetBinContent(55,671.4286); h_SL2L164->SetBinContent(56,560); h_SL2L164->SetBinContent(57,554.2857); h_SL2L164->SetMaximum(71312.65); 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,567.1429); h_SL2L265->SetBinContent(2,715.7143); h_SL2L265->SetBinContent(3,851.4286); h_SL2L265->SetBinContent(4,1004.286); h_SL2L265->SetBinContent(5,1008.571); h_SL2L265->SetBinContent(6,1052.857); h_SL2L265->SetBinContent(7,1132.857); h_SL2L265->SetBinContent(8,1150); h_SL2L265->SetBinContent(9,1252.857); h_SL2L265->SetBinContent(10,1381.429); h_SL2L265->SetBinContent(11,1494.286); h_SL2L265->SetBinContent(12,1665.714); h_SL2L265->SetBinContent(13,1702.857); h_SL2L265->SetBinContent(14,1790); h_SL2L265->SetBinContent(15,1972.857); h_SL2L265->SetBinContent(16,2191.429); h_SL2L265->SetBinContent(17,2292.857); h_SL2L265->SetBinContent(18,2474.286); h_SL2L265->SetBinContent(19,2827.143); h_SL2L265->SetBinContent(20,3020); h_SL2L265->SetBinContent(21,3115.714); h_SL2L265->SetBinContent(22,3330); h_SL2L265->SetBinContent(23,3434.286); h_SL2L265->SetBinContent(24,3958.572); h_SL2L265->SetBinContent(25,4787.143); h_SL2L265->SetBinContent(26,18041.43); h_SL2L265->SetBinContent(27,37340); h_SL2L265->SetBinContent(28,47852.86); h_SL2L265->SetBinContent(29,52871.43); h_SL2L265->SetBinContent(30,52955.71); h_SL2L265->SetBinContent(31,48657.14); h_SL2L265->SetBinContent(32,46811.43); h_SL2L265->SetBinContent(33,47385.71); h_SL2L265->SetBinContent(34,39432.86); h_SL2L265->SetBinContent(35,13960); h_SL2L265->SetBinContent(36,5198.572); h_SL2L265->SetBinContent(37,3615.714); h_SL2L265->SetBinContent(38,3070); h_SL2L265->SetBinContent(39,2997.143); h_SL2L265->SetBinContent(40,3394.286); h_SL2L265->SetBinContent(41,2114.286); h_SL2L265->SetBinContent(42,1938.572); h_SL2L265->SetBinContent(43,1687.143); h_SL2L265->SetBinContent(44,1825.714); h_SL2L265->SetBinContent(45,1357.143); h_SL2L265->SetBinContent(46,1260); h_SL2L265->SetBinContent(47,1145.714); h_SL2L265->SetBinContent(48,1111.429); h_SL2L265->SetBinContent(49,1002.857); h_SL2L265->SetBinContent(50,904.2857); h_SL2L265->SetBinContent(51,835.7143); h_SL2L265->SetBinContent(52,784.2857); h_SL2L265->SetBinContent(53,775.7143); h_SL2L265->SetBinContent(54,672.8572); h_SL2L265->SetBinContent(55,648.5715); h_SL2L265->SetBinContent(56,570); h_SL2L265->SetBinContent(57,544.2857); h_SL2L265->SetMaximum(62011.29); 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,645.7143); h_SL2L366->SetBinContent(2,761.4286); h_SL2L366->SetBinContent(3,908.5715); h_SL2L366->SetBinContent(4,940); h_SL2L366->SetBinContent(5,984.2858); h_SL2L366->SetBinContent(6,1090); h_SL2L366->SetBinContent(7,1092.857); h_SL2L366->SetBinContent(8,1177.143); h_SL2L366->SetBinContent(9,1272.857); h_SL2L366->SetBinContent(10,1417.143); h_SL2L366->SetBinContent(11,1537.143); h_SL2L366->SetBinContent(12,1601.429); h_SL2L366->SetBinContent(13,1707.143); h_SL2L366->SetBinContent(14,1825.714); h_SL2L366->SetBinContent(15,2012.857); h_SL2L366->SetBinContent(16,2164.286); h_SL2L366->SetBinContent(17,2272.857); h_SL2L366->SetBinContent(18,2557.143); h_SL2L366->SetBinContent(19,2765.714); h_SL2L366->SetBinContent(20,3061.429); h_SL2L366->SetBinContent(21,3060); h_SL2L366->SetBinContent(22,3428.572); h_SL2L366->SetBinContent(23,3648.572); h_SL2L366->SetBinContent(24,4111.429); h_SL2L366->SetBinContent(25,8931.429); h_SL2L366->SetBinContent(26,28428.57); h_SL2L366->SetBinContent(27,43504.29); h_SL2L366->SetBinContent(28,51015.71); h_SL2L366->SetBinContent(29,53818.57); h_SL2L366->SetBinContent(30,50744.29); h_SL2L366->SetBinContent(31,47570); h_SL2L366->SetBinContent(32,47300); h_SL2L366->SetBinContent(33,46108.57); h_SL2L366->SetBinContent(34,26298.57); h_SL2L366->SetBinContent(35,7454.286); h_SL2L366->SetBinContent(36,4180); h_SL2L366->SetBinContent(37,3232.857); h_SL2L366->SetBinContent(38,2672.857); h_SL2L366->SetBinContent(39,2381.429); h_SL2L366->SetBinContent(40,2801.429); h_SL2L366->SetBinContent(41,1847.143); h_SL2L366->SetBinContent(42,1732.857); h_SL2L366->SetBinContent(43,1507.143); h_SL2L366->SetBinContent(44,1465.714); h_SL2L366->SetBinContent(45,1284.286); h_SL2L366->SetBinContent(46,1214.286); h_SL2L366->SetBinContent(47,1144.286); h_SL2L366->SetBinContent(48,1044.286); h_SL2L366->SetBinContent(49,951.4286); h_SL2L366->SetBinContent(50,830); h_SL2L366->SetBinContent(51,782.8572); h_SL2L366->SetBinContent(52,764.2857); h_SL2L366->SetBinContent(53,675.7143); h_SL2L366->SetBinContent(54,638.5715); h_SL2L366->SetBinContent(55,617.1429); h_SL2L366->SetBinContent(56,551.4286); h_SL2L366->SetBinContent(57,497.1429); h_SL2L366->SetMaximum(62011.29); 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,681.4286); h_SL2L467->SetBinContent(3,822.8572); h_SL2L467->SetBinContent(4,872.8572); h_SL2L467->SetBinContent(5,948.5715); h_SL2L467->SetBinContent(6,1004.286); h_SL2L467->SetBinContent(7,1051.429); h_SL2L467->SetBinContent(8,1040); h_SL2L467->SetBinContent(9,1154.286); h_SL2L467->SetBinContent(10,1328.571); h_SL2L467->SetBinContent(11,1434.286); h_SL2L467->SetBinContent(12,1581.429); h_SL2L467->SetBinContent(13,1610); h_SL2L467->SetBinContent(14,1655.714); h_SL2L467->SetBinContent(15,1858.572); h_SL2L467->SetBinContent(16,2040); h_SL2L467->SetBinContent(17,2105.714); h_SL2L467->SetBinContent(18,2362.857); h_SL2L467->SetBinContent(19,2697.143); h_SL2L467->SetBinContent(20,2850); h_SL2L467->SetBinContent(21,2927.143); h_SL2L467->SetBinContent(22,3242.857); h_SL2L467->SetBinContent(23,3451.429); h_SL2L467->SetBinContent(24,3747.143); h_SL2L467->SetBinContent(25,4565.714); h_SL2L467->SetBinContent(26,18055.71); h_SL2L467->SetBinContent(27,37512.86); h_SL2L467->SetBinContent(28,47575.71); h_SL2L467->SetBinContent(29,52945.71); h_SL2L467->SetBinContent(30,53417.14); h_SL2L467->SetBinContent(31,48705.71); h_SL2L467->SetBinContent(32,47111.43); h_SL2L467->SetBinContent(33,47431.43); h_SL2L467->SetBinContent(34,39558.57); h_SL2L467->SetBinContent(35,13835.71); h_SL2L467->SetBinContent(36,5104.286); h_SL2L467->SetBinContent(37,3564.286); h_SL2L467->SetBinContent(38,2912.857); h_SL2L467->SetBinContent(39,2428.572); h_SL2L467->SetBinContent(40,2117.143); h_SL2L467->SetBinContent(41,1928.572); h_SL2L467->SetBinContent(42,1781.429); h_SL2L467->SetBinContent(43,1547.143); h_SL2L467->SetBinContent(44,1481.429); h_SL2L467->SetBinContent(45,1342.857); h_SL2L467->SetBinContent(46,1221.429); h_SL2L467->SetBinContent(47,1071.429); h_SL2L467->SetBinContent(48,1104.286); h_SL2L467->SetBinContent(49,968.5715); h_SL2L467->SetBinContent(50,861.4286); h_SL2L467->SetBinContent(51,788.5715); h_SL2L467->SetBinContent(52,751.4286); h_SL2L467->SetBinContent(53,681.4286); h_SL2L467->SetBinContent(54,638.5715); h_SL2L467->SetBinContent(55,607.1429); h_SL2L467->SetBinContent(56,568.5715); h_SL2L467->SetBinContent(57,527.1429); h_SL2L467->SetMaximum(62011.29); 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 5057"); pt->Draw(); c->Modified(); c->cd(); c->SetSelected(c); }