void RatesPerCell_Removing_noisy_cells_run_5181_SL1() { //=========Macro generated from canvas: c/c //========= (Mon Jan 14 19:34:13 2019) by ROOT version6.02/13 TCanvas *c = new TCanvas("c", "c",0,0,800,600); gStyle->SetOptStat(0); c->Range(-7.500001,-11478.15,67.5,103303.4); c->SetFillColor(0); c->SetBorderMode(0); c->SetBorderSize(2); c->SetFrameBorderMode(0); c->SetFrameBorderMode(0); TH1D *h_SL1L160 = new TH1D("h_SL1L160","SL1, run 5181",60,0,60); h_SL1L160->SetBinContent(1,439.0658); h_SL1L160->SetBinContent(2,486.3498); h_SL1L160->SetBinContent(3,496.4821); h_SL1L160->SetBinContent(4,371.5172); h_SL1L160->SetBinContent(5,503.2369); h_SL1L160->SetBinContent(6,564.0306); h_SL1L160->SetBinContent(7,516.7466); h_SL1L160->SetBinContent(8,560.6532); h_SL1L160->SetBinContent(9,594.4275); h_SL1L160->SetBinContent(10,634.9567); h_SL1L160->SetBinContent(11,773.4312); h_SL1L160->SetBinContent(12,800.4507); h_SL1L160->SetBinContent(13,854.4896); h_SL1L160->SetBinContent(14,925.4155); h_SL1L160->SetBinContent(15,895.0187); h_SL1L160->SetBinContent(16,797.0732); h_SL1L160->SetBinContent(17,891.6412); h_SL1L160->SetBinContent(18,1144.948); h_SL1L160->SetBinContent(19,1239.516); h_SL1L160->SetBinContent(20,1421.898); h_SL1L160->SetBinContent(21,1573.882); h_SL1L160->SetBinContent(22,1817.057); h_SL1L160->SetBinContent(23,2073.741); h_SL1L160->SetBinContent(24,2276.387); h_SL1L160->SetBinContent(25,2492.543); h_SL1L160->SetBinContent(26,2755.982); h_SL1L160->SetBinContent(27,2772.869); h_SL1L160->SetBinContent(28,3603.717); h_SL1L160->SetBinContent(29,3998.876); h_SL1L160->SetBinContent(30,4380.525); h_SL1L160->SetBinContent(31,6694.064); h_SL1L160->SetBinContent(32,12594.43); h_SL1L160->SetBinContent(33,62813.43); h_SL1L160->SetBinContent(34,65461.33); h_SL1L160->SetBinContent(35,63276.13); h_SL1L160->SetBinContent(36,61138.22); h_SL1L160->SetBinContent(37,56946.83); h_SL1L160->SetBinContent(38,44349.02); h_SL1L160->SetBinContent(39,25273.3); h_SL1L160->SetBinContent(40,6488.041); h_SL1L160->SetBinContent(41,4039.405); h_SL1L160->SetBinContent(42,3465.242); h_SL1L160->SetBinContent(43,3097.102); h_SL1L160->SetBinContent(44,2992.402); h_SL1L160->SetBinContent(45,2678.301); h_SL1L160->SetBinContent(46,2627.64); h_SL1L160->SetBinContent(47,2374.333); h_SL1L160->SetBinContent(48,2185.197); h_SL1L160->SetBinContent(49,2043.345); h_SL1L160->SetBinContent(50,2063.609); h_SL1L160->SetBinContent(51,1871.096); h_SL1L160->SetBinContent(52,1681.96); h_SL1L160->SetBinContent(53,1729.244); h_SL1L160->SetBinContent(54,1465.804); h_SL1L160->SetBinContent(55,1543.485); h_SL1L160->SetBinContent(56,1418.52); h_SL1L160->SetBinContent(57,1394.878); h_SL1L160->SetBinContent(58,1546.862); h_SL1L160->SetBinContent(59,1377.991); h_SL1L160->SetMaximum(91825.2); h_SL1L160->SetEntries(60); h_SL1L160->SetDirectory(0); h_SL1L160->SetStats(0); h_SL1L160->SetLineWidth(2); h_SL1L160->GetXaxis()->SetTitle("Cell"); h_SL1L160->GetXaxis()->SetLabelFont(42); h_SL1L160->GetXaxis()->SetLabelSize(0.035); h_SL1L160->GetXaxis()->SetTitleSize(0.035); h_SL1L160->GetXaxis()->SetTitleFont(42); h_SL1L160->GetYaxis()->SetTitle("Hz"); h_SL1L160->GetYaxis()->SetLabelFont(42); h_SL1L160->GetYaxis()->SetLabelSize(0.035); h_SL1L160->GetYaxis()->SetTitleSize(0.035); h_SL1L160->GetYaxis()->SetTitleOffset(1.45); h_SL1L160->GetYaxis()->SetTitleFont(42); h_SL1L160->GetZaxis()->SetLabelFont(42); h_SL1L160->GetZaxis()->SetLabelSize(0.035); h_SL1L160->GetZaxis()->SetTitleSize(0.035); h_SL1L160->GetZaxis()->SetTitleFont(42); h_SL1L160->Draw(""); TH1D *h_SL1L261 = new TH1D("h_SL1L261","",60,0,60); h_SL1L261->SetBinContent(49,1101.042); h_SL1L261->SetBinContent(56,6.754858); h_SL1L261->SetMaximum(79848.17); h_SL1L261->SetEntries(60); h_SL1L261->SetDirectory(0); h_SL1L261->SetStats(0); Int_t ci; // for color index setting TColor *color; // for color definition with alpha ci = TColor::GetColor("#cc0000"); h_SL1L261->SetLineColor(ci); h_SL1L261->SetLineWidth(2); h_SL1L261->GetXaxis()->SetTitle("Cell"); h_SL1L261->GetXaxis()->SetLabelFont(42); h_SL1L261->GetXaxis()->SetLabelSize(0.035); h_SL1L261->GetXaxis()->SetTitleSize(0.035); h_SL1L261->GetXaxis()->SetTitleFont(42); h_SL1L261->GetYaxis()->SetTitle("Hz"); h_SL1L261->GetYaxis()->SetLabelFont(42); h_SL1L261->GetYaxis()->SetLabelSize(0.035); h_SL1L261->GetYaxis()->SetTitleSize(0.035); h_SL1L261->GetYaxis()->SetTitleOffset(1.45); h_SL1L261->GetYaxis()->SetTitleFont(42); h_SL1L261->GetZaxis()->SetLabelFont(42); h_SL1L261->GetZaxis()->SetLabelSize(0.035); h_SL1L261->GetZaxis()->SetTitleSize(0.035); h_SL1L261->GetZaxis()->SetTitleFont(42); h_SL1L261->Draw("same"); TH1D *h_SL1L362 = new TH1D("h_SL1L362","",60,0,60); h_SL1L362->SetBinContent(31,6.754858); h_SL1L362->SetBinContent(33,3.377429); h_SL1L362->SetBinContent(35,3.377429); h_SL1L362->SetBinContent(51,3.377429); h_SL1L362->SetBinContent(52,3.377429); h_SL1L362->SetBinContent(53,43.90658); h_SL1L362->SetBinContent(56,84.43572); h_SL1L362->SetMaximum(79848.17); h_SL1L362->SetEntries(60); h_SL1L362->SetDirectory(0); h_SL1L362->SetStats(0); ci = TColor::GetColor("#009900"); h_SL1L362->SetLineColor(ci); h_SL1L362->SetLineWidth(2); h_SL1L362->GetXaxis()->SetTitle("Cell"); h_SL1L362->GetXaxis()->SetLabelFont(42); h_SL1L362->GetXaxis()->SetLabelSize(0.035); h_SL1L362->GetXaxis()->SetTitleSize(0.035); h_SL1L362->GetXaxis()->SetTitleFont(42); h_SL1L362->GetYaxis()->SetTitle("Hz"); h_SL1L362->GetYaxis()->SetLabelFont(42); h_SL1L362->GetYaxis()->SetLabelSize(0.035); h_SL1L362->GetYaxis()->SetTitleSize(0.035); h_SL1L362->GetYaxis()->SetTitleOffset(1.45); h_SL1L362->GetYaxis()->SetTitleFont(42); h_SL1L362->GetZaxis()->SetLabelFont(42); h_SL1L362->GetZaxis()->SetLabelSize(0.035); h_SL1L362->GetZaxis()->SetTitleSize(0.035); h_SL1L362->GetZaxis()->SetTitleFont(42); h_SL1L362->Draw("same"); TH1D *h_SL1L463 = new TH1D("h_SL1L463","",60,0,60); h_SL1L463->SetBinContent(2,418.8012); h_SL1L463->SetBinContent(3,351.2526); h_SL1L463->SetBinContent(4,344.4978); h_SL1L463->SetBinContent(5,334.3655); h_SL1L463->SetBinContent(6,401.9141); h_SL1L463->SetBinContent(7,381.6495); h_SL1L463->SetBinContent(8,408.6689); h_SL1L463->SetBinContent(9,509.9918); h_SL1L463->SetBinContent(10,489.7272); h_SL1L463->SetBinContent(11,553.8984); h_SL1L463->SetBinContent(12,628.2018); h_SL1L463->SetBinContent(13,665.3535); h_SL1L463->SetBinContent(14,807.2055); h_SL1L463->SetBinContent(15,716.015); h_SL1L463->SetBinContent(16,759.9215); h_SL1L463->SetBinContent(17,820.7153); h_SL1L463->SetBinContent(18,905.151); h_SL1L463->SetBinContent(19,1016.606); h_SL1L463->SetBinContent(20,1144.948); h_SL1L463->SetBinContent(21,1209.12); h_SL1L463->SetBinContent(22,1516.466); h_SL1L463->SetBinContent(23,1732.621); h_SL1L463->SetBinContent(24,1857.586); h_SL1L463->SetBinContent(25,2188.574); h_SL1L463->SetBinContent(26,2249.368); h_SL1L463->SetBinContent(27,2377.71); h_SL1L463->SetBinContent(28,3157.896); h_SL1L463->SetBinContent(29,3644.246); h_SL1L463->SetBinContent(30,3789.475); h_SL1L463->SetBinContent(31,4826.346); h_SL1L463->SetBinContent(32,9217.004); h_SL1L463->SetBinContent(33,37097.68); h_SL1L463->SetBinContent(34,69433.19); h_SL1L463->SetBinContent(35,64974.98); h_SL1L463->SetBinContent(36,65025.64); h_SL1L463->SetBinContent(37,60945.71); h_SL1L463->SetBinContent(38,52441.34); h_SL1L463->SetBinContent(39,38060.25); h_SL1L463->SetBinContent(40,11760.21); h_SL1L463->SetBinContent(41,5329.583); h_SL1L463->SetBinContent(42,3590.207); h_SL1L463->SetBinContent(43,3188.293); h_SL1L463->SetBinContent(44,2887.702); h_SL1L463->SetBinContent(45,2485.788); h_SL1L463->SetBinContent(46,2472.278); h_SL1L463->SetBinContent(47,2306.784); h_SL1L463->SetBinContent(48,1965.664); h_SL1L463->SetBinContent(49,1904.87); h_SL1L463->SetBinContent(50,1708.979); h_SL1L463->SetBinContent(51,1688.714); h_SL1L463->SetBinContent(52,1611.034); h_SL1L463->SetBinContent(53,1442.162); h_SL1L463->SetBinContent(54,1482.691); h_SL1L463->SetBinContent(56,1337.462); h_SL1L463->SetBinContent(57,1428.652); h_SL1L463->SetBinContent(58,1219.252); h_SL1L463->SetBinContent(59,1367.859); h_SL1L463->SetMaximum(79848.17); h_SL1L463->SetEntries(60); h_SL1L463->SetDirectory(0); h_SL1L463->SetStats(0); ci = TColor::GetColor("#0000cc"); h_SL1L463->SetLineColor(ci); h_SL1L463->SetLineWidth(2); h_SL1L463->GetXaxis()->SetTitle("Cell"); h_SL1L463->GetXaxis()->SetLabelFont(42); h_SL1L463->GetXaxis()->SetLabelSize(0.035); h_SL1L463->GetXaxis()->SetTitleSize(0.035); h_SL1L463->GetXaxis()->SetTitleFont(42); h_SL1L463->GetYaxis()->SetTitle("Hz"); h_SL1L463->GetYaxis()->SetLabelFont(42); h_SL1L463->GetYaxis()->SetLabelSize(0.035); h_SL1L463->GetYaxis()->SetTitleSize(0.035); h_SL1L463->GetYaxis()->SetTitleOffset(1.45); h_SL1L463->GetYaxis()->SetTitleFont(42); h_SL1L463->GetZaxis()->SetLabelFont(42); h_SL1L463->GetZaxis()->SetLabelSize(0.035); h_SL1L463->GetZaxis()->SetTitleSize(0.035); h_SL1L463->GetZaxis()->SetTitleFont(42); h_SL1L463->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_SL1L1","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_SL1L2","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_SL1L3","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_SL1L4","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("SL1, run 5181"); pt->Draw(); c->Modified(); c->cd(); c->SetSelected(c); }