void RatesPerCell_Removing_noisy_cells_run_7045_SL1() { //=========Macro generated from canvas: c/c //========= (Fri Jan 18 19:09:22 2019) by ROOT version6.02/13 TCanvas *c = new TCanvas("c", "c",0,0,800,600); gStyle->SetOptStat(0); c->Range(-7.500001,-1946.519,67.5,17518.67); c->SetFillColor(0); c->SetBorderMode(0); c->SetBorderSize(2); c->SetFrameBorderMode(0); c->SetFrameBorderMode(0); TH1D *h_SL1L160 = new TH1D("h_SL1L160","SL1, run 7045",60,0,60); h_SL1L160->SetBinContent(1,2909.327); h_SL1L160->SetBinContent(2,3613.69); h_SL1L160->SetBinContent(3,4287.429); h_SL1L160->SetBinContent(4,3996.497); h_SL1L160->SetBinContent(5,4486.488); h_SL1L160->SetBinContent(6,5022.417); h_SL1L160->SetBinContent(7,4777.421); h_SL1L160->SetBinContent(8,5007.105); h_SL1L160->SetBinContent(9,4838.67); h_SL1L160->SetBinContent(10,5068.354); h_SL1L160->SetBinContent(11,5175.54); h_SL1L160->SetBinContent(12,4869.294); h_SL1L160->SetBinContent(13,9202.66); h_SL1L160->SetBinContent(14,11132); h_SL1L160->SetBinContent(15,10657.32); h_SL1L160->SetBinContent(16,5634.907); h_SL1L160->SetBinContent(17,5435.848); h_SL1L160->SetBinContent(18,5742.093); h_SL1L160->SetBinContent(19,5512.409); h_SL1L160->SetBinContent(20,5879.903); h_SL1L160->SetBinContent(21,5910.527); h_SL1L160->SetBinContent(22,6186.148); h_SL1L160->SetBinContent(23,6094.274); h_SL1L160->SetBinContent(24,5680.844); h_SL1L160->SetBinContent(25,6017.713); h_SL1L160->SetBinContent(26,6752.701); h_SL1L160->SetBinContent(27,5987.089); h_SL1L160->SetBinContent(28,6201.46); h_SL1L160->SetBinContent(29,6507.705); h_SL1L160->SetBinContent(30,5650.219); h_SL1L160->SetBinContent(31,6262.709); h_SL1L160->SetBinContent(32,6124.899); h_SL1L160->SetBinContent(49,5007.105); h_SL1L160->SetBinContent(50,5053.042); h_SL1L160->SetBinContent(51,4287.429); h_SL1L160->SetBinContent(52,4333.366); h_SL1L160->SetBinContent(53,5175.54); h_SL1L160->SetBinContent(54,4716.172); h_SL1L160->SetBinContent(55,4073.058); h_SL1L160->SetBinContent(56,3644.315); h_SL1L160->SetMaximum(15572.15); 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(1,3031.825); h_SL1L261->SetBinContent(2,4302.742); h_SL1L261->SetBinContent(3,5098.979); h_SL1L261->SetBinContent(4,4302.742); h_SL1L261->SetBinContent(5,4792.733); h_SL1L261->SetBinContent(6,5864.591); h_SL1L261->SetBinContent(7,5206.164); h_SL1L261->SetBinContent(8,6339.271); h_SL1L261->SetBinContent(9,11775.12); h_SL1L261->SetBinContent(10,5573.658); h_SL1L261->SetBinContent(11,5803.342); h_SL1L261->SetBinContent(12,5696.156); h_SL1L261->SetBinContent(13,5895.215); h_SL1L261->SetBinContent(14,7058.946); h_SL1L261->SetBinContent(15,6997.697); h_SL1L261->SetBinContent(16,6262.709); h_SL1L261->SetBinContent(17,6844.575); h_SL1L261->SetBinContent(18,7089.57); h_SL1L261->SetBinContent(19,5818.654); h_SL1L261->SetBinContent(20,6614.891); h_SL1L261->SetBinContent(21,7166.132); h_SL1L261->SetBinContent(22,7288.63); h_SL1L261->SetBinContent(23,6431.144); h_SL1L261->SetBinContent(24,7150.819); h_SL1L261->SetBinContent(25,7196.756); h_SL1L261->SetBinContent(26,7763.31); h_SL1L261->SetBinContent(27,6584.266); h_SL1L261->SetBinContent(28,6507.705); h_SL1L261->SetBinContent(29,7380.503); h_SL1L261->SetBinContent(30,7043.634); h_SL1L261->SetBinContent(31,6905.824); h_SL1L261->SetBinContent(32,7181.444); h_SL1L261->SetBinContent(49,5634.907); h_SL1L261->SetBinContent(50,5573.658); h_SL1L261->SetBinContent(51,5206.164); h_SL1L261->SetBinContent(52,4654.923); h_SL1L261->SetBinContent(53,5435.848); h_SL1L261->SetBinContent(54,5328.662); h_SL1L261->SetBinContent(55,5190.852); h_SL1L261->SetBinContent(56,4455.864); h_SL1L261->SetMaximum(13541.39); 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(1,3215.572); h_SL1L362->SetBinContent(2,3644.315); h_SL1L362->SetBinContent(3,4547.737); h_SL1L362->SetBinContent(4,4746.797); h_SL1L362->SetBinContent(5,5298.038); h_SL1L362->SetBinContent(6,5910.527); h_SL1L362->SetBinContent(7,5588.97); h_SL1L362->SetBinContent(8,6369.895); h_SL1L362->SetBinContent(9,6155.523); h_SL1L362->SetBinContent(10,5772.717); h_SL1L362->SetBinContent(11,5328.662); h_SL1L362->SetBinContent(12,6278.021); h_SL1L362->SetBinContent(13,6691.452); h_SL1L362->SetBinContent(14,7303.942); h_SL1L362->SetBinContent(15,9432.345); h_SL1L362->SetBinContent(16,7089.57); h_SL1L362->SetBinContent(17,7411.127); h_SL1L362->SetBinContent(18,6094.274); h_SL1L362->SetBinContent(19,6124.899); h_SL1L362->SetBinContent(20,7303.942); h_SL1L362->SetBinContent(21,7273.317); h_SL1L362->SetBinContent(22,6431.144); h_SL1L362->SetBinContent(23,6431.144); h_SL1L362->SetBinContent(24,7120.195); h_SL1L362->SetBinContent(25,7135.507); h_SL1L362->SetBinContent(26,7671.436); h_SL1L362->SetBinContent(27,6951.76); h_SL1L362->SetBinContent(28,7472.376); h_SL1L362->SetBinContent(29,7702.061); h_SL1L362->SetBinContent(30,6859.887); h_SL1L362->SetBinContent(31,6951.76); h_SL1L362->SetBinContent(32,8008.305); h_SL1L362->SetBinContent(49,5788.029); h_SL1L362->SetBinContent(50,5466.472); h_SL1L362->SetBinContent(51,5175.54); h_SL1L362->SetBinContent(52,5144.915); h_SL1L362->SetBinContent(53,5757.405); h_SL1L362->SetBinContent(54,5604.283); h_SL1L362->SetBinContent(55,4976.48); h_SL1L362->SetBinContent(56,4149.619); h_SL1L362->SetMaximum(13541.39); 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,1010.608); h_SL1L463->SetBinContent(3,1224.98); h_SL1L463->SetBinContent(4,1194.355); h_SL1L463->SetBinContent(5,1179.043); h_SL1L463->SetBinContent(6,1224.98); h_SL1L463->SetBinContent(7,1209.667); h_SL1L463->SetBinContent(8,1194.355); h_SL1L463->SetBinContent(9,1439.351); h_SL1L463->SetBinContent(10,1194.355); h_SL1L463->SetBinContent(11,1561.849); h_SL1L463->SetBinContent(12,1577.161); h_SL1L463->SetBinContent(13,1944.655); h_SL1L463->SetBinContent(14,9585.467); h_SL1L463->SetBinContent(15,7349.879); h_SL1L463->SetBinContent(16,7334.566); h_SL1L463->SetBinContent(17,2051.841); h_SL1L463->SetBinContent(18,1852.782); h_SL1L463->SetBinContent(19,1929.343); h_SL1L463->SetBinContent(20,2296.837); h_SL1L463->SetBinContent(21,2250.9); h_SL1L463->SetBinContent(22,2067.153); h_SL1L463->SetBinContent(23,1730.284); h_SL1L463->SetBinContent(24,2204.964); h_SL1L463->SetBinContent(25,1868.094); h_SL1L463->SetBinContent(26,2067.153); h_SL1L463->SetBinContent(27,2128.402); h_SL1L463->SetBinContent(28,2021.217); h_SL1L463->SetBinContent(29,2051.841); h_SL1L463->SetBinContent(30,2097.778); h_SL1L463->SetBinContent(31,2312.149); h_SL1L463->SetBinContent(32,1669.035); h_SL1L463->SetBinContent(49,1454.663); h_SL1L463->SetBinContent(50,1699.659); h_SL1L463->SetBinContent(51,1546.537); h_SL1L463->SetBinContent(52,1592.474); h_SL1L463->SetBinContent(53,1255.604); h_SL1L463->SetBinContent(54,1577.161); h_SL1L463->SetBinContent(56,1699.659); h_SL1L463->SetMaximum(13541.39); 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.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("SL1, run 7045"); pt->Draw(); c->Modified(); c->cd(); c->SetSelected(c); }