void RatesPerCell_Removing_noisy_cells_run_7080_SL2() { //=========Macro generated from canvas: c/c //========= (Sun Dec 23 11:46:16 2018) by ROOT version6.02/13 TCanvas *c = new TCanvas("c", "c",0,0,800,600); gStyle->SetOptStat(0); c->Range(-7.500001,-9592.726,67.5,86334.53); c->SetFillColor(0); c->SetBorderMode(0); c->SetBorderSize(2); c->SetFrameBorderMode(0); c->SetFrameBorderMode(0); TH1D *h_SL2L164 = new TH1D("h_SL2L164","SL2, run 7080",60,0,60); h_SL2L164->SetBinContent(1,52.88133); h_SL2L164->SetBinContent(2,70.50844); h_SL2L164->SetBinContent(3,35.25422); h_SL2L164->SetBinContent(4,52.88133); h_SL2L164->SetBinContent(5,158.644); h_SL2L164->SetBinContent(6,158.644); h_SL2L164->SetBinContent(7,88.13554); h_SL2L164->SetBinContent(8,52.88133); h_SL2L164->SetBinContent(9,141.0169); h_SL2L164->SetBinContent(10,158.644); h_SL2L164->SetBinContent(11,246.7795); h_SL2L164->SetBinContent(12,193.8982); h_SL2L164->SetBinContent(13,193.8982); h_SL2L164->SetBinContent(14,229.1524); h_SL2L164->SetBinContent(15,317.288); h_SL2L164->SetBinContent(16,299.6609); h_SL2L164->SetBinContent(17,264.4066); h_SL2L164->SetBinContent(18,423.0506); h_SL2L164->SetBinContent(19,634.5759); h_SL2L164->SetBinContent(20,705.0844); h_SL2L164->SetBinContent(21,863.7284); h_SL2L164->SetBinContent(22,1092.881); h_SL2L164->SetBinContent(23,1163.389); h_SL2L164->SetBinContent(24,1410.169); h_SL2L164->SetBinContent(25,4635.93); h_SL2L164->SetBinContent(26,10805.42); h_SL2L164->SetBinContent(27,20976.26); h_SL2L164->SetBinContent(28,26634.56); h_SL2L164->SetBinContent(29,33297.61); h_SL2L164->SetBinContent(30,31746.42); h_SL2L164->SetBinContent(31,26423.04); h_SL2L164->SetBinContent(32,30283.38); h_SL2L164->SetBinContent(33,49972.86); h_SL2L164->SetBinContent(34,43679.98); h_SL2L164->SetBinContent(36,4301.015); h_SL2L164->SetBinContent(37,2573.558); h_SL2L164->SetBinContent(38,2362.033); h_SL2L164->SetBinContent(39,1921.355); h_SL2L164->SetBinContent(40,1480.677); h_SL2L164->SetBinContent(41,1286.779); h_SL2L164->SetBinContent(42,1339.66); h_SL2L164->SetBinContent(43,1092.881); h_SL2L164->SetBinContent(44,969.491); h_SL2L164->SetBinContent(45,934.2368); h_SL2L164->SetBinContent(46,934.2368); h_SL2L164->SetBinContent(47,934.2368); h_SL2L164->SetBinContent(48,969.491); h_SL2L164->SetBinContent(49,722.7115); h_SL2L164->SetBinContent(50,511.1862); h_SL2L164->SetBinContent(51,511.1862); h_SL2L164->SetBinContent(52,599.3217); h_SL2L164->SetBinContent(53,493.5591); h_SL2L164->SetBinContent(54,405.4235); h_SL2L164->SetBinContent(55,458.3048); h_SL2L164->SetBinContent(56,370.1693); h_SL2L164->SetBinContent(57,334.9151); h_SL2L164->SetMaximum(76741.8); 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,70.50844); h_SL2L265->SetBinContent(2,35.25422); h_SL2L265->SetBinContent(3,52.88133); h_SL2L265->SetBinContent(4,88.13554); h_SL2L265->SetBinContent(5,52.88133); h_SL2L265->SetBinContent(6,52.88133); h_SL2L265->SetBinContent(7,52.88133); h_SL2L265->SetBinContent(8,70.50844); h_SL2L265->SetBinContent(9,52.88133); h_SL2L265->SetBinContent(10,229.1524); h_SL2L265->SetBinContent(11,264.4066); h_SL2L265->SetBinContent(12,211.5253); h_SL2L265->SetBinContent(13,246.7795); h_SL2L265->SetBinContent(14,246.7795); h_SL2L265->SetBinContent(15,193.8982); h_SL2L265->SetBinContent(16,317.288); h_SL2L265->SetBinContent(17,317.288); h_SL2L265->SetBinContent(18,370.1693); h_SL2L265->SetBinContent(19,546.4404); h_SL2L265->SetBinContent(20,546.4404); h_SL2L265->SetBinContent(21,634.5759); h_SL2L265->SetBinContent(22,898.9826); h_SL2L265->SetBinContent(23,898.9826); h_SL2L265->SetBinContent(24,1022.372); h_SL2L265->SetBinContent(25,1745.084); h_SL2L265->SetBinContent(26,8390.504); h_SL2L265->SetBinContent(27,14683.38); h_SL2L265->SetBinContent(28,24378.29); h_SL2L265->SetBinContent(29,28996.6); h_SL2L265->SetBinContent(30,31552.53); h_SL2L265->SetBinContent(31,26070.49); h_SL2L265->SetBinContent(32,26282.02); h_SL2L265->SetBinContent(33,38356.59); h_SL2L265->SetBinContent(34,58028.45); h_SL2L265->SetBinContent(35,21804.73); h_SL2L265->SetBinContent(36,6151.861); h_SL2L265->SetBinContent(37,3490.168); h_SL2L265->SetBinContent(38,2168.135); h_SL2L265->SetBinContent(39,1903.728); h_SL2L265->SetBinContent(40,1727.457); h_SL2L265->SetBinContent(41,1515.931); h_SL2L265->SetBinContent(42,1251.525); h_SL2L265->SetBinContent(43,1198.643); h_SL2L265->SetBinContent(44,916.6097); h_SL2L265->SetBinContent(45,951.8639); h_SL2L265->SetBinContent(46,846.1013); h_SL2L265->SetBinContent(47,775.5928); h_SL2L265->SetBinContent(48,881.3555); h_SL2L265->SetBinContent(49,846.1013); h_SL2L265->SetBinContent(50,581.6946); h_SL2L265->SetBinContent(51,387.7964); h_SL2L265->SetBinContent(52,634.5759); h_SL2L265->SetBinContent(53,423.0506); h_SL2L265->SetBinContent(54,546.4404); h_SL2L265->SetBinContent(55,458.3048); h_SL2L265->SetBinContent(56,334.9151); h_SL2L265->SetBinContent(57,317.288); h_SL2L265->SetMaximum(66732.71); 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(2,70.50844); h_SL2L366->SetBinContent(3,17.62711); h_SL2L366->SetBinContent(4,105.7627); h_SL2L366->SetBinContent(5,35.25422); h_SL2L366->SetBinContent(6,88.13554); h_SL2L366->SetBinContent(7,88.13554); h_SL2L366->SetBinContent(8,35.25422); h_SL2L366->SetBinContent(9,35.25422); h_SL2L366->SetBinContent(10,141.0169); h_SL2L366->SetBinContent(11,229.1524); h_SL2L366->SetBinContent(12,176.2711); h_SL2L366->SetBinContent(13,141.0169); h_SL2L366->SetBinContent(14,334.9151); h_SL2L366->SetBinContent(15,299.6609); h_SL2L366->SetBinContent(16,211.5253); h_SL2L366->SetBinContent(17,317.288); h_SL2L366->SetBinContent(18,528.8133); h_SL2L366->SetBinContent(19,705.0844); h_SL2L366->SetBinContent(20,458.3048); h_SL2L366->SetBinContent(21,757.9657); h_SL2L366->SetBinContent(22,810.847); h_SL2L366->SetBinContent(23,1110.508); h_SL2L366->SetBinContent(24,1392.542); h_SL2L366->SetBinContent(25,5323.387); h_SL2L366->SetBinContent(26,12004.06); h_SL2L366->SetBinContent(27,20993.89); h_SL2L366->SetBinContent(28,27868.46); h_SL2L366->SetBinContent(29,31393.88); h_SL2L366->SetBinContent(30,28820.32); h_SL2L366->SetBinContent(31,26599.31); h_SL2L366->SetBinContent(32,30600.66); h_SL2L366->SetBinContent(33,50677.94); h_SL2L366->SetBinContent(34,44878.62); h_SL2L366->SetBinContent(35,9553.894); h_SL2L366->SetBinContent(36,4847.455); h_SL2L366->SetBinContent(37,2450.168); h_SL2L366->SetBinContent(38,2203.389); h_SL2L366->SetBinContent(39,1445.423); h_SL2L366->SetBinContent(40,1551.186); h_SL2L366->SetBinContent(41,1357.287); h_SL2L366->SetBinContent(42,1145.762); h_SL2L366->SetBinContent(43,1057.627); h_SL2L366->SetBinContent(44,934.2368); h_SL2L366->SetBinContent(45,828.4741); h_SL2L366->SetBinContent(46,705.0844); h_SL2L366->SetBinContent(47,810.847); h_SL2L366->SetBinContent(48,740.3386); h_SL2L366->SetBinContent(49,757.9657); h_SL2L366->SetBinContent(50,616.9489); h_SL2L366->SetBinContent(51,423.0506); h_SL2L366->SetBinContent(52,334.9151); h_SL2L366->SetBinContent(53,423.0506); h_SL2L366->SetBinContent(54,423.0506); h_SL2L366->SetBinContent(55,387.7964); h_SL2L366->SetBinContent(56,352.5422); h_SL2L366->SetBinContent(57,352.5422); h_SL2L366->SetMaximum(66732.71); 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,123.3898); h_SL2L467->SetBinContent(3,88.13554); h_SL2L467->SetBinContent(4,17.62711); h_SL2L467->SetBinContent(5,52.88133); h_SL2L467->SetBinContent(6,35.25422); h_SL2L467->SetBinContent(7,70.50844); h_SL2L467->SetBinContent(8,88.13554); h_SL2L467->SetBinContent(9,141.0169); h_SL2L467->SetBinContent(10,35.25422); h_SL2L467->SetBinContent(11,88.13554); h_SL2L467->SetBinContent(12,246.7795); h_SL2L467->SetBinContent(13,229.1524); h_SL2L467->SetBinContent(14,352.5422); h_SL2L467->SetBinContent(15,246.7795); h_SL2L467->SetBinContent(16,211.5253); h_SL2L467->SetBinContent(17,334.9151); h_SL2L467->SetBinContent(18,229.1524); h_SL2L467->SetBinContent(19,652.2031); h_SL2L467->SetBinContent(20,687.4573); h_SL2L467->SetBinContent(21,440.6777); h_SL2L467->SetBinContent(22,934.2368); h_SL2L467->SetBinContent(23,863.7284); h_SL2L467->SetBinContent(24,1145.762); h_SL2L467->SetBinContent(25,1815.592); h_SL2L467->SetBinContent(26,8284.741); h_SL2L467->SetBinContent(27,16199.31); h_SL2L467->SetBinContent(28,24325.41); h_SL2L467->SetBinContent(29,29772.19); h_SL2L467->SetBinContent(30,32715.92); h_SL2L467->SetBinContent(31,26193.88); h_SL2L467->SetBinContent(32,27604.05); h_SL2L467->SetBinContent(33,38268.45); h_SL2L467->SetBinContent(34,56759.29); h_SL2L467->SetBinContent(35,21170.16); h_SL2L467->SetBinContent(36,6222.37); h_SL2L467->SetBinContent(37,2943.727); h_SL2L467->SetBinContent(38,2079.999); h_SL2L467->SetBinContent(39,2079.999); h_SL2L467->SetBinContent(40,1463.05); h_SL2L467->SetBinContent(41,1445.423); h_SL2L467->SetBinContent(42,1181.016); h_SL2L467->SetBinContent(43,1057.627); h_SL2L467->SetBinContent(44,898.9826); h_SL2L467->SetBinContent(45,1004.745); h_SL2L467->SetBinContent(46,757.9657); h_SL2L467->SetBinContent(47,793.2199); h_SL2L467->SetBinContent(48,757.9657); h_SL2L467->SetBinContent(49,669.8301); h_SL2L467->SetBinContent(50,564.0675); h_SL2L467->SetBinContent(51,493.5591); h_SL2L467->SetBinContent(52,405.4235); h_SL2L467->SetBinContent(53,352.5422); h_SL2L467->SetBinContent(54,528.8133); h_SL2L467->SetBinContent(55,458.3048); h_SL2L467->SetBinContent(56,370.1693); h_SL2L467->SetBinContent(57,299.6609); h_SL2L467->SetMaximum(66732.71); 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 7080"); pt->Draw(); c->Modified(); c->cd(); c->SetSelected(c); }