void RatesPerCell_Removing_noisy_cells_run_5170_SL3() { //=========Macro generated from canvas: c/c //========= (Sun Jan 13 15:31:04 2019) by ROOT version6.02/13 TCanvas *c = new TCanvas("c", "c",0,0,800,600); gStyle->SetOptStat(0); c->Range(-7.500001,-11547.58,67.5,103928.2); c->SetFillColor(0); c->SetBorderMode(0); c->SetBorderSize(2); c->SetFrameBorderMode(0); c->SetFrameBorderMode(0); TH1D *h_SL3L168 = new TH1D("h_SL3L168","SL3, run 5170",60,0,60); h_SL3L168->SetBinContent(1,204.5275); h_SL3L168->SetBinContent(2,241.0986); h_SL3L168->SetBinContent(4,249.2255); h_SL3L168->SetBinContent(5,295.278); h_SL3L168->SetBinContent(6,293.9236); h_SL3L168->SetBinContent(7,316.9498); h_SL3L168->SetBinContent(8,300.696); h_SL3L168->SetBinContent(9,325.0768); h_SL3L168->SetBinContent(10,306.114); h_SL3L168->SetBinContent(11,367.0658); h_SL3L168->SetBinContent(12,392.8011); h_SL3L168->SetBinContent(13,449.6895); h_SL3L168->SetBinContent(14,499.8055); h_SL3L168->SetBinContent(15,537.7311); h_SL3L168->SetBinContent(16,547.2125); h_SL3L168->SetBinContent(17,619.0003); h_SL3L168->SetBinContent(18,709.7509); h_SL3L168->SetBinContent(19,791.0201); h_SL3L168->SetBinContent(20,851.972); h_SL3L168->SetBinContent(21,952.204); h_SL3L168->SetBinContent(22,1083.589); h_SL3L168->SetBinContent(23,1263.736); h_SL3L168->SetBinContent(24,1517.025); h_SL3L168->SetBinContent(25,1599.649); h_SL3L168->SetBinContent(26,1919.307); h_SL3L168->SetBinContent(27,2196.977); h_SL3L168->SetBinContent(28,2585.715); h_SL3L168->SetBinContent(29,3112.61); h_SL3L168->SetBinContent(30,3579.908); h_SL3L168->SetBinContent(31,4089.195); h_SL3L168->SetBinContent(32,6628.857); h_SL3L168->SetBinContent(33,12947.54); h_SL3L168->SetBinContent(34,63706.92); h_SL3L168->SetBinContent(35,67057.91); h_SL3L168->SetBinContent(36,64289.34); h_SL3L168->SetBinContent(37,64396.35); h_SL3L168->SetBinContent(38,57437); h_SL3L168->SetBinContent(39,45764.04); h_SL3L168->SetBinContent(40,26218.79); h_SL3L168->SetBinContent(41,6555.714); h_SL3L168->SetBinContent(42,3879.249); h_SL3L168->SetBinContent(43,3058.43); h_SL3L168->SetBinContent(44,2708.973); h_SL3L168->SetBinContent(45,2446.203); h_SL3L168->SetBinContent(46,2230.839); h_SL3L168->SetBinContent(47,1945.043); h_SL3L168->SetBinContent(48,1762.187); h_SL3L168->SetBinContent(49,15584.72); h_SL3L168->SetBinContent(50,1541.406); h_SL3L168->SetBinContent(51,1483.163); h_SL3L168->SetBinContent(52,1424.92); h_SL3L168->SetBinContent(53,1365.322); h_SL3L168->SetBinContent(54,1404.602); h_SL3L168->SetBinContent(55,1231.228); h_SL3L168->SetBinContent(56,1186.53); h_SL3L168->SetBinContent(57,1190.594); h_SL3L168->SetBinContent(58,1116.097); h_SL3L168->SetBinContent(59,940.0136); h_SL3L168->SetMaximum(92380.65); h_SL3L168->SetEntries(60); h_SL3L168->SetDirectory(0); h_SL3L168->SetStats(0); h_SL3L168->SetLineWidth(2); h_SL3L168->GetXaxis()->SetTitle("Cell"); h_SL3L168->GetXaxis()->SetLabelFont(42); h_SL3L168->GetXaxis()->SetLabelSize(0.035); h_SL3L168->GetXaxis()->SetTitleSize(0.035); h_SL3L168->GetXaxis()->SetTitleFont(42); h_SL3L168->GetYaxis()->SetTitle("Hz"); h_SL3L168->GetYaxis()->SetLabelFont(42); h_SL3L168->GetYaxis()->SetLabelSize(0.035); h_SL3L168->GetYaxis()->SetTitleSize(0.035); h_SL3L168->GetYaxis()->SetTitleOffset(1.45); h_SL3L168->GetYaxis()->SetTitleFont(42); h_SL3L168->GetZaxis()->SetLabelFont(42); h_SL3L168->GetZaxis()->SetLabelSize(0.035); h_SL3L168->GetZaxis()->SetTitleSize(0.035); h_SL3L168->GetZaxis()->SetTitleFont(42); h_SL3L168->Draw(""); TH1D *h_SL3L269 = new TH1D("h_SL3L269","",60,0,60); h_SL3L269->SetBinContent(1,234.3262); h_SL3L269->SetBinContent(2,226.1992); h_SL3L269->SetBinContent(4,265.4793); h_SL3L269->SetBinContent(5,288.5056); h_SL3L269->SetBinContent(6,300.696); h_SL3L269->SetBinContent(7,287.1511); h_SL3L269->SetBinContent(8,284.4422); h_SL3L269->SetBinContent(9,334.5582); h_SL3L269->SetBinContent(10,307.4684); h_SL3L269->SetBinContent(11,325.0768); h_SL3L269->SetBinContent(12,348.103); h_SL3L269->SetBinContent(13,404.9915); h_SL3L269->SetBinContent(14,444.2715); h_SL3L269->SetBinContent(15,506.5779); h_SL3L269->SetBinContent(16,516.0593); h_SL3L269->SetBinContent(17,621.7093); h_SL3L269->SetBinContent(18,635.2542); h_SL3L269->SetBinContent(19,686.7246); h_SL3L269->SetBinContent(20,828.9457); h_SL3L269->SetBinContent(21,904.7969); h_SL3L269->SetBinContent(22,958.9764); h_SL3L269->SetBinContent(23,1156.731); h_SL3L269->SetBinContent(24,1294.889); h_SL3L269->SetBinContent(25,1542.76); h_SL3L269->SetBinContent(26,1764.896); h_SL3L269->SetBinContent(27,1961.296); h_SL3L269->SetBinContent(28,2285.019); h_SL3L269->SetBinContent(29,2847.131); h_SL3L269->SetBinContent(30,3369.962); h_SL3L269->SetBinContent(31,3705.875); h_SL3L269->SetBinContent(32,4663.497); h_SL3L269->SetBinContent(33,9085.896); h_SL3L269->SetBinContent(34,36316.49); h_SL3L269->SetBinContent(35,69371.38); h_SL3L269->SetBinContent(36,64722.78); h_SL3L269->SetBinContent(37,64384.16); h_SL3L269->SetBinContent(38,61607.46); h_SL3L269->SetBinContent(39,52070.52); h_SL3L269->SetBinContent(40,38295.39); h_SL3L269->SetBinContent(41,12195.8); h_SL3L269->SetBinContent(42,5245.926); h_SL3L269->SetBinContent(43,3303.593); h_SL3L269->SetBinContent(44,2742.835); h_SL3L269->SetBinContent(45,2591.133); h_SL3L269->SetBinContent(46,2253.865); h_SL3L269->SetBinContent(47,1955.878); h_SL3L269->SetBinContent(48,1703.944); h_SL3L269->SetBinContent(49,1586.104); h_SL3L269->SetBinContent(50,1550.887); h_SL3L269->SetBinContent(51,1412.729); h_SL3L269->SetBinContent(52,1446.592); h_SL3L269->SetBinContent(53,1351.777); h_SL3L269->SetBinContent(54,1412.729); h_SL3L269->SetBinContent(55,1244.773); h_SL3L269->SetBinContent(56,1172.985); h_SL3L269->SetBinContent(57,1187.885); h_SL3L269->SetBinContent(58,1128.287); h_SL3L269->SetBinContent(59,988.7751); h_SL3L269->SetMaximum(80331.61); h_SL3L269->SetEntries(60); h_SL3L269->SetDirectory(0); h_SL3L269->SetStats(0); Int_t ci; // for color index setting TColor *color; // for color definition with alpha ci = TColor::GetColor("#cc0000"); h_SL3L269->SetLineColor(ci); h_SL3L269->SetLineWidth(2); h_SL3L269->GetXaxis()->SetTitle("Cell"); h_SL3L269->GetXaxis()->SetLabelFont(42); h_SL3L269->GetXaxis()->SetLabelSize(0.035); h_SL3L269->GetXaxis()->SetTitleSize(0.035); h_SL3L269->GetXaxis()->SetTitleFont(42); h_SL3L269->GetYaxis()->SetTitle("Hz"); h_SL3L269->GetYaxis()->SetLabelFont(42); h_SL3L269->GetYaxis()->SetLabelSize(0.035); h_SL3L269->GetYaxis()->SetTitleSize(0.035); h_SL3L269->GetYaxis()->SetTitleOffset(1.45); h_SL3L269->GetYaxis()->SetTitleFont(42); h_SL3L269->GetZaxis()->SetLabelFont(42); h_SL3L269->GetZaxis()->SetLabelSize(0.035); h_SL3L269->GetZaxis()->SetTitleSize(0.035); h_SL3L269->GetZaxis()->SetTitleFont(42); h_SL3L269->Draw("same"); TH1D *h_SL3L370 = new TH1D("h_SL3L370","",60,0,60); h_SL3L370->SetBinContent(1,232.9717); h_SL3L370->SetBinContent(2,237.0351); h_SL3L370->SetBinContent(3,277.6697); h_SL3L370->SetBinContent(4,268.1883); h_SL3L370->SetBinContent(5,299.3415); h_SL3L370->SetBinContent(6,297.987); h_SL3L370->SetBinContent(7,285.7966); h_SL3L370->SetBinContent(8,280.3787); h_SL3L370->SetBinContent(9,314.2408); h_SL3L370->SetBinContent(10,339.9761); h_SL3L370->SetBinContent(11,363.0024); h_SL3L370->SetBinContent(12,371.1293); h_SL3L370->SetBinContent(13,434.7902); h_SL3L370->SetBinContent(14,491.6786); h_SL3L370->SetBinContent(15,548.567); h_SL3L370->SetBinContent(16,583.7837); h_SL3L370->SetBinContent(17,621.7093); h_SL3L370->SetBinContent(18,642.0266); h_SL3L370->SetBinContent(19,773.4117); h_SL3L370->SetBinContent(20,884.4797); h_SL3L370->SetBinContent(21,927.8232); h_SL3L370->SetBinContent(22,1033.473); h_SL3L370->SetBinContent(23,1263.736); h_SL3L370->SetBinContent(24,1393.767); h_SL3L370->SetBinContent(25,1586.104); h_SL3L370->SetBinContent(26,1836.684); h_SL3L370->SetBinContent(27,2146.861); h_SL3L370->SetBinContent(28,2573.524); h_SL3L370->SetBinContent(29,3097.71); h_SL3L370->SetBinContent(30,3444.459); h_SL3L370->SetBinContent(31,3945.619); h_SL3L370->SetBinContent(32,6590.931); h_SL3L370->SetBinContent(33,13055.9); h_SL3L370->SetBinContent(34,63640.55); h_SL3L370->SetBinContent(35,66904.86); h_SL3L370->SetBinContent(36,64411.25); h_SL3L370->SetBinContent(37,63988.65); h_SL3L370->SetBinContent(38,57366.57); h_SL3L370->SetBinContent(39,45675.99); h_SL3L370->SetBinContent(40,26193.06); h_SL3L370->SetBinContent(41,6385.049); h_SL3L370->SetBinContent(42,3839.969); h_SL3L370->SetBinContent(43,3011.023); h_SL3L370->SetBinContent(44,2591.133); h_SL3L370->SetBinContent(45,2405.568); h_SL3L370->SetBinContent(46,2085.909); h_SL3L370->SetBinContent(47,1861.064); h_SL3L370->SetBinContent(48,1710.716); h_SL3L370->SetBinContent(49,1506.189); h_SL3L370->SetBinContent(50,1499.417); h_SL3L370->SetBinContent(51,1373.449); h_SL3L370->SetBinContent(52,1420.856); h_SL3L370->SetBinContent(53,1313.852); h_SL3L370->SetBinContent(54,1297.598); h_SL3L370->SetBinContent(55,1189.239); h_SL3L370->SetBinContent(56,1212.265); h_SL3L370->SetBinContent(57,1145.896); h_SL3L370->SetBinContent(58,1117.451); h_SL3L370->SetBinContent(59,892.6066); h_SL3L370->SetMaximum(80331.61); h_SL3L370->SetEntries(60); h_SL3L370->SetDirectory(0); h_SL3L370->SetStats(0); ci = TColor::GetColor("#009900"); h_SL3L370->SetLineColor(ci); h_SL3L370->SetLineWidth(2); h_SL3L370->GetXaxis()->SetTitle("Cell"); h_SL3L370->GetXaxis()->SetLabelFont(42); h_SL3L370->GetXaxis()->SetLabelSize(0.035); h_SL3L370->GetXaxis()->SetTitleSize(0.035); h_SL3L370->GetXaxis()->SetTitleFont(42); h_SL3L370->GetYaxis()->SetTitle("Hz"); h_SL3L370->GetYaxis()->SetLabelFont(42); h_SL3L370->GetYaxis()->SetLabelSize(0.035); h_SL3L370->GetYaxis()->SetTitleSize(0.035); h_SL3L370->GetYaxis()->SetTitleOffset(1.45); h_SL3L370->GetYaxis()->SetTitleFont(42); h_SL3L370->GetZaxis()->SetLabelFont(42); h_SL3L370->GetZaxis()->SetLabelSize(0.035); h_SL3L370->GetZaxis()->SetTitleSize(0.035); h_SL3L370->GetZaxis()->SetTitleFont(42); h_SL3L370->Draw("same"); TH1D *h_SL3L471 = new TH1D("h_SL3L471","",60,0,60); h_SL3L471->SetBinContent(2,245.162); h_SL3L471->SetBinContent(3,246.5165); h_SL3L471->SetBinContent(4,262.7704); h_SL3L471->SetBinContent(5,295.278); h_SL3L471->SetBinContent(6,300.696); h_SL3L471->SetBinContent(7,277.6697); h_SL3L471->SetBinContent(8,285.7966); h_SL3L471->SetBinContent(9,318.3043); h_SL3L471->SetBinContent(10,348.103); h_SL3L471->SetBinContent(11,326.4312); h_SL3L471->SetBinContent(12,354.8755); h_SL3L471->SetBinContent(13,451.044); h_SL3L471->SetBinContent(14,493.0331); h_SL3L471->SetBinContent(15,536.3766); h_SL3L471->SetBinContent(16,520.1228); h_SL3L471->SetBinContent(17,652.8625); h_SL3L471->SetBinContent(18,655.5715); h_SL3L471->SetBinContent(19,720.5868); h_SL3L471->SetBinContent(20,812.6919); h_SL3L471->SetBinContent(21,912.9239); h_SL3L471->SetBinContent(22,1009.092); h_SL3L471->SetBinContent(23,1196.012); h_SL3L471->SetBinContent(24,1320.624); h_SL3L471->SetBinContent(25,1554.95); h_SL3L471->SetBinContent(26,1907.117); h_SL3L471->SetBinContent(27,2019.539); h_SL3L471->SetBinContent(28,2378.478); h_SL3L471->SetBinContent(29,2811.914); h_SL3L471->SetBinContent(30,3361.835); h_SL3L471->SetBinContent(31,3693.685); h_SL3L471->SetBinContent(32,4686.523); h_SL3L471->SetBinContent(33,9102.149); h_SL3L471->SetBinContent(34,36645.63); h_SL3L471->SetBinContent(35,69853.58); h_SL3L471->SetBinContent(36,64966.59); h_SL3L471->SetBinContent(37,64564.3); h_SL3L471->SetBinContent(38,61627.78); h_SL3L471->SetBinContent(39,51949.97); h_SL3L471->SetBinContent(40,38341.45); h_SL3L471->SetBinContent(41,12216.11); h_SL3L471->SetBinContent(42,5229.672); h_SL3L471->SetBinContent(43,3288.693); h_SL3L471->SetBinContent(44,2769.925); h_SL3L471->SetBinContent(45,2561.334); h_SL3L471->SetBinContent(46,2243.03); h_SL3L471->SetBinContent(47,1987.032); h_SL3L471->SetBinContent(48,1744.579); h_SL3L471->SetBinContent(49,1594.231); h_SL3L471->SetBinContent(50,1495.353); h_SL3L471->SetBinContent(51,1435.756); h_SL3L471->SetBinContent(52,1403.248); h_SL3L471->SetBinContent(53,1368.031); h_SL3L471->SetBinContent(54,1353.132); h_SL3L471->SetBinContent(55,1209.556); h_SL3L471->SetBinContent(56,1172.985); h_SL3L471->SetBinContent(57,1194.657); h_SL3L471->SetBinContent(58,1149.959); h_SL3L471->SetBinContent(59,1038.891); h_SL3L471->SetMaximum(80331.61); h_SL3L471->SetEntries(60); h_SL3L471->SetDirectory(0); h_SL3L471->SetStats(0); ci = TColor::GetColor("#0000cc"); h_SL3L471->SetLineColor(ci); h_SL3L471->SetLineWidth(2); h_SL3L471->GetXaxis()->SetTitle("Cell"); h_SL3L471->GetXaxis()->SetLabelFont(42); h_SL3L471->GetXaxis()->SetLabelSize(0.035); h_SL3L471->GetXaxis()->SetTitleSize(0.035); h_SL3L471->GetXaxis()->SetTitleFont(42); h_SL3L471->GetYaxis()->SetTitle("Hz"); h_SL3L471->GetYaxis()->SetLabelFont(42); h_SL3L471->GetYaxis()->SetLabelSize(0.035); h_SL3L471->GetYaxis()->SetTitleSize(0.035); h_SL3L471->GetYaxis()->SetTitleOffset(1.45); h_SL3L471->GetYaxis()->SetTitleFont(42); h_SL3L471->GetZaxis()->SetLabelFont(42); h_SL3L471->GetZaxis()->SetLabelSize(0.035); h_SL3L471->GetZaxis()->SetTitleSize(0.035); h_SL3L471->GetZaxis()->SetTitleFont(42); h_SL3L471->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_SL3L1","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_SL3L2","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_SL3L3","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_SL3L4","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("SL3, run 5170"); pt->Draw(); c->Modified(); c->cd(); c->SetSelected(c); }