void RatesPerCell_Removing_noisy_cells_run_5041_SL2() { //=========Macro generated from canvas: c/c //========= (Sun Jan 13 14:53:22 2019) by ROOT version6.02/13 TCanvas *c = new TCanvas("c", "c",0,0,800,600); gStyle->SetOptStat(0); c->Range(-7.500001,-9106.276,67.5,81956.48); c->SetFillColor(0); c->SetBorderMode(0); c->SetBorderSize(2); c->SetFrameBorderMode(0); c->SetFrameBorderMode(0); TH1D *h_SL2L164 = new TH1D("h_SL2L164","SL2, run 5041",60,0,60); h_SL2L164->SetBinContent(1,682.1428); h_SL2L164->SetBinContent(2,717.8571); h_SL2L164->SetBinContent(3,903.5714); h_SL2L164->SetBinContent(4,1135.714); h_SL2L164->SetBinContent(5,1028.571); h_SL2L164->SetBinContent(6,1057.143); h_SL2L164->SetBinContent(7,971.4286); h_SL2L164->SetBinContent(8,1146.429); h_SL2L164->SetBinContent(9,1310.714); h_SL2L164->SetBinContent(10,1464.286); h_SL2L164->SetBinContent(11,1400); h_SL2L164->SetBinContent(12,1642.857); h_SL2L164->SetBinContent(13,1664.286); h_SL2L164->SetBinContent(14,1992.857); h_SL2L164->SetBinContent(15,2085.714); h_SL2L164->SetBinContent(16,2239.286); h_SL2L164->SetBinContent(17,2478.571); h_SL2L164->SetBinContent(18,2396.428); h_SL2L164->SetBinContent(19,2989.286); h_SL2L164->SetBinContent(20,3025); h_SL2L164->SetBinContent(21,3142.857); h_SL2L164->SetBinContent(22,3703.571); h_SL2L164->SetBinContent(23,3575); h_SL2L164->SetBinContent(24,4128.571); h_SL2L164->SetBinContent(25,9000); h_SL2L164->SetBinContent(26,29510.71); h_SL2L164->SetBinContent(27,45332.14); h_SL2L164->SetBinContent(28,52332.14); h_SL2L164->SetBinContent(29,55085.71); h_SL2L164->SetBinContent(30,52778.57); h_SL2L164->SetBinContent(31,48435.71); h_SL2L164->SetBinContent(32,48635.71); h_SL2L164->SetBinContent(33,46810.71); h_SL2L164->SetBinContent(34,27196.43); h_SL2L164->SetBinContent(35,67.85714); h_SL2L164->SetBinContent(36,4696.429); h_SL2L164->SetBinContent(37,6632.143); h_SL2L164->SetBinContent(38,4185.714); h_SL2L164->SetBinContent(39,4982.143); h_SL2L164->SetBinContent(40,28671.43); h_SL2L164->SetBinContent(41,6867.857); h_SL2L164->SetBinContent(42,7164.286); h_SL2L164->SetBinContent(43,7157.143); h_SL2L164->SetBinContent(44,7150); h_SL2L164->SetBinContent(45,1285.714); h_SL2L164->SetBinContent(46,1225); h_SL2L164->SetBinContent(47,1082.143); h_SL2L164->SetBinContent(48,1042.857); h_SL2L164->SetBinContent(49,982.1428); h_SL2L164->SetBinContent(50,892.8571); h_SL2L164->SetBinContent(51,796.4286); h_SL2L164->SetBinContent(52,753.5714); h_SL2L164->SetBinContent(53,628.5714); h_SL2L164->SetBinContent(54,639.2857); h_SL2L164->SetBinContent(55,653.5714); h_SL2L164->SetBinContent(56,521.4286); h_SL2L164->SetBinContent(57,5017.857); h_SL2L164->SetMaximum(72850.2); 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,632.1428); h_SL2L265->SetBinContent(2,635.7143); h_SL2L265->SetBinContent(3,792.8571); h_SL2L265->SetBinContent(4,914.2857); h_SL2L265->SetBinContent(5,1025); h_SL2L265->SetBinContent(6,953.5714); h_SL2L265->SetBinContent(7,1021.429); h_SL2L265->SetBinContent(8,1039.286); h_SL2L265->SetBinContent(9,1292.857); h_SL2L265->SetBinContent(10,1264.286); h_SL2L265->SetBinContent(11,1375); h_SL2L265->SetBinContent(12,1517.857); h_SL2L265->SetBinContent(13,1510.714); h_SL2L265->SetBinContent(14,1878.571); h_SL2L265->SetBinContent(15,1989.286); h_SL2L265->SetBinContent(16,2167.857); h_SL2L265->SetBinContent(17,2367.857); h_SL2L265->SetBinContent(18,2396.428); h_SL2L265->SetBinContent(19,2475); h_SL2L265->SetBinContent(20,3046.428); h_SL2L265->SetBinContent(21,2992.857); h_SL2L265->SetBinContent(22,3303.571); h_SL2L265->SetBinContent(23,3682.143); h_SL2L265->SetBinContent(24,3671.428); h_SL2L265->SetBinContent(25,4778.571); h_SL2L265->SetBinContent(26,18385.71); h_SL2L265->SetBinContent(27,38589.29); h_SL2L265->SetBinContent(28,49375); h_SL2L265->SetBinContent(29,54689.29); h_SL2L265->SetBinContent(30,54160.71); h_SL2L265->SetBinContent(31,49946.43); h_SL2L265->SetBinContent(32,47714.29); h_SL2L265->SetBinContent(33,48550); h_SL2L265->SetBinContent(34,40710.71); h_SL2L265->SetBinContent(35,14232.14); h_SL2L265->SetBinContent(36,5639.286); h_SL2L265->SetBinContent(37,3689.286); h_SL2L265->SetBinContent(38,2960.714); h_SL2L265->SetBinContent(39,3310.714); h_SL2L265->SetBinContent(40,4178.571); h_SL2L265->SetBinContent(41,2635.714); h_SL2L265->SetBinContent(42,2757.143); h_SL2L265->SetBinContent(43,2257.143); h_SL2L265->SetBinContent(44,2542.857); h_SL2L265->SetBinContent(45,1460.714); h_SL2L265->SetBinContent(46,1189.286); h_SL2L265->SetBinContent(47,1085.714); h_SL2L265->SetBinContent(48,1017.857); h_SL2L265->SetBinContent(49,1021.429); h_SL2L265->SetBinContent(50,828.5714); h_SL2L265->SetBinContent(51,867.8571); h_SL2L265->SetBinContent(52,725); h_SL2L265->SetBinContent(53,725); h_SL2L265->SetBinContent(54,600); h_SL2L265->SetBinContent(55,635.7143); h_SL2L265->SetBinContent(56,621.4286); h_SL2L265->SetBinContent(57,542.8571); h_SL2L265->SetMaximum(63348.57); 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,564.2857); h_SL2L366->SetBinContent(2,603.5714); h_SL2L366->SetBinContent(3,871.4286); h_SL2L366->SetBinContent(4,1039.286); h_SL2L366->SetBinContent(5,928.5714); h_SL2L366->SetBinContent(6,928.5714); h_SL2L366->SetBinContent(7,1017.857); h_SL2L366->SetBinContent(8,1175); h_SL2L366->SetBinContent(9,1232.143); h_SL2L366->SetBinContent(10,1300); h_SL2L366->SetBinContent(11,1417.857); h_SL2L366->SetBinContent(12,1525); h_SL2L366->SetBinContent(13,1642.857); h_SL2L366->SetBinContent(14,1942.857); h_SL2L366->SetBinContent(15,1971.429); h_SL2L366->SetBinContent(16,2132.143); h_SL2L366->SetBinContent(17,2375); h_SL2L366->SetBinContent(18,2382.143); h_SL2L366->SetBinContent(19,2803.571); h_SL2L366->SetBinContent(20,2867.857); h_SL2L366->SetBinContent(21,3025); h_SL2L366->SetBinContent(22,3467.857); h_SL2L366->SetBinContent(23,3425); h_SL2L366->SetBinContent(24,4192.857); h_SL2L366->SetBinContent(25,8907.143); h_SL2L366->SetBinContent(26,29403.57); h_SL2L366->SetBinContent(27,45178.57); h_SL2L366->SetBinContent(28,52203.57); h_SL2L366->SetBinContent(29,54592.86); h_SL2L366->SetBinContent(30,52775); h_SL2L366->SetBinContent(31,48375); h_SL2L366->SetBinContent(32,48900); h_SL2L366->SetBinContent(33,46371.43); h_SL2L366->SetBinContent(34,27389.29); h_SL2L366->SetBinContent(35,7928.571); h_SL2L366->SetBinContent(36,4310.714); h_SL2L366->SetBinContent(37,3225); h_SL2L366->SetBinContent(38,2664.286); h_SL2L366->SetBinContent(39,2392.857); h_SL2L366->SetBinContent(40,2917.857); h_SL2L366->SetBinContent(41,2178.571); h_SL2L366->SetBinContent(42,1789.286); h_SL2L366->SetBinContent(43,1639.286); h_SL2L366->SetBinContent(44,1428.571); h_SL2L366->SetBinContent(45,1253.571); h_SL2L366->SetBinContent(46,1189.286); h_SL2L366->SetBinContent(47,989.2857); h_SL2L366->SetBinContent(48,1046.429); h_SL2L366->SetBinContent(49,917.8571); h_SL2L366->SetBinContent(50,775); h_SL2L366->SetBinContent(51,796.4286); h_SL2L366->SetBinContent(52,696.4286); h_SL2L366->SetBinContent(53,628.5714); h_SL2L366->SetBinContent(54,575); h_SL2L366->SetBinContent(55,582.1428); h_SL2L366->SetBinContent(56,467.8571); h_SL2L366->SetBinContent(57,471.4286); h_SL2L366->SetMaximum(63348.57); 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,600); h_SL2L467->SetBinContent(3,792.8571); h_SL2L467->SetBinContent(4,889.2857); h_SL2L467->SetBinContent(5,932.1428); h_SL2L467->SetBinContent(6,885.7143); h_SL2L467->SetBinContent(7,971.4286); h_SL2L467->SetBinContent(8,1000); h_SL2L467->SetBinContent(9,1242.857); h_SL2L467->SetBinContent(10,1189.286); h_SL2L467->SetBinContent(11,1332.143); h_SL2L467->SetBinContent(12,1503.571); h_SL2L467->SetBinContent(13,1496.429); h_SL2L467->SetBinContent(14,1707.143); h_SL2L467->SetBinContent(15,1950); h_SL2L467->SetBinContent(16,2082.143); h_SL2L467->SetBinContent(17,2235.714); h_SL2L467->SetBinContent(18,2385.714); h_SL2L467->SetBinContent(19,2600); h_SL2L467->SetBinContent(20,2860.714); h_SL2L467->SetBinContent(21,2867.857); h_SL2L467->SetBinContent(22,3203.571); h_SL2L467->SetBinContent(23,3507.143); h_SL2L467->SetBinContent(24,3500); h_SL2L467->SetBinContent(25,4717.857); h_SL2L467->SetBinContent(26,18532.14); h_SL2L467->SetBinContent(27,38992.86); h_SL2L467->SetBinContent(28,49475); h_SL2L467->SetBinContent(29,54710.71); h_SL2L467->SetBinContent(30,54907.14); h_SL2L467->SetBinContent(31,50014.29); h_SL2L467->SetBinContent(32,48103.57); h_SL2L467->SetBinContent(33,48792.86); h_SL2L467->SetBinContent(34,40989.29); h_SL2L467->SetBinContent(35,14214.29); h_SL2L467->SetBinContent(36,5350); h_SL2L467->SetBinContent(37,3585.714); h_SL2L467->SetBinContent(38,2860.714); h_SL2L467->SetBinContent(39,2564.286); h_SL2L467->SetBinContent(40,2078.571); h_SL2L467->SetBinContent(41,2150); h_SL2L467->SetBinContent(42,1900); h_SL2L467->SetBinContent(43,1707.143); h_SL2L467->SetBinContent(44,1382.143); h_SL2L467->SetBinContent(45,1317.857); h_SL2L467->SetBinContent(46,1175); h_SL2L467->SetBinContent(47,1107.143); h_SL2L467->SetBinContent(48,1007.143); h_SL2L467->SetBinContent(49,992.8571); h_SL2L467->SetBinContent(50,882.1428); h_SL2L467->SetBinContent(51,796.4286); h_SL2L467->SetBinContent(52,685.7143); h_SL2L467->SetBinContent(53,678.5714); h_SL2L467->SetBinContent(54,557.1428); h_SL2L467->SetBinContent(55,578.5714); h_SL2L467->SetBinContent(56,535.7143); h_SL2L467->SetBinContent(57,496.4286); h_SL2L467->SetMaximum(63348.57); 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 5041"); pt->Draw(); c->Modified(); c->cd(); c->SetSelected(c); }