void RatesPerCell_Removing_noisy_cells_run_6789_SL2() { //=========Macro generated from canvas: c/c //========= (Sun Jan 13 16:10:46 2019) by ROOT version6.02/13 TCanvas *c = new TCanvas("c", "c",0,0,800,600); gStyle->SetOptStat(0); c->Range(-7.500001,-9153.138,67.5,82378.24); c->SetFillColor(0); c->SetBorderMode(0); c->SetBorderSize(2); c->SetFrameBorderMode(0); c->SetFrameBorderMode(0); TH1D *h_SL2L164 = new TH1D("h_SL2L164","SL2, run 6789",60,0,60); h_SL2L164->SetBinContent(1,4529.08); h_SL2L164->SetBinContent(2,5643.074); h_SL2L164->SetBinContent(3,6871.948); h_SL2L164->SetBinContent(4,6906.76); h_SL2L164->SetBinContent(5,6711.812); h_SL2L164->SetBinContent(6,6363.688); h_SL2L164->SetBinContent(7,6001.641); h_SL2L164->SetBinContent(8,6078.228); h_SL2L164->SetBinContent(9,6555.156); h_SL2L164->SetBinContent(10,6631.743); h_SL2L164->SetBinContent(11,7039.047); h_SL2L164->SetBinContent(12,6986.829); h_SL2L164->SetBinContent(13,6882.392); h_SL2L164->SetBinContent(14,7087.784); h_SL2L164->SetBinContent(15,7014.679); h_SL2L164->SetBinContent(16,6854.542); h_SL2L164->SetBinContent(17,6708.33); h_SL2L164->SetBinContent(18,6781.436); h_SL2L164->SetBinContent(19,6854.542); h_SL2L164->SetBinContent(20,6576.043); h_SL2L164->SetBinContent(21,6259.251); h_SL2L164->SetBinContent(22,6259.251); h_SL2L164->SetBinContent(23,6509.9); h_SL2L164->SetBinContent(24,6722.255); h_SL2L164->SetBinContent(25,10997.21); h_SL2L164->SetBinContent(26,30011.68); h_SL2L164->SetBinContent(27,44702.48); h_SL2L164->SetBinContent(28,52218.45); h_SL2L164->SetBinContent(29,55368.96); h_SL2L164->SetBinContent(30,53642.27); h_SL2L164->SetBinContent(31,50672.79); h_SL2L164->SetBinContent(32,51236.74); h_SL2L164->SetBinContent(33,49530.94); h_SL2L164->SetBinContent(34,29409.43); h_SL2L164->SetBinContent(36,5270.582); h_SL2L164->SetBinContent(37,6280.139); h_SL2L164->SetBinContent(38,5343.688); h_SL2L164->SetBinContent(39,5308.876); h_SL2L164->SetBinContent(40,45471.83); h_SL2L164->SetBinContent(41,51664.93); h_SL2L164->SetBinContent(42,8069.491); h_SL2L164->SetBinContent(43,7905.874); h_SL2L164->SetBinContent(44,7738.774); h_SL2L164->SetBinContent(45,3084.37); h_SL2L164->SetBinContent(46,2861.571); h_SL2L164->SetBinContent(47,2774.54); h_SL2L164->SetBinContent(48,2802.39); h_SL2L164->SetBinContent(49,2805.871); h_SL2L164->SetBinContent(50,2722.322); h_SL2L164->SetBinContent(51,2572.629); h_SL2L164->SetBinContent(52,2795.428); h_SL2L164->SetBinContent(53,3133.107); h_SL2L164->SetBinContent(54,3216.656); h_SL2L164->SetBinContent(55,3223.619); h_SL2L164->SetBinContent(56,2851.127); h_SL2L164->SetBinContent(57,7505.532); h_SL2L164->SetMaximum(73225.1); 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,3836.315); h_SL2L265->SetBinContent(2,5347.169); h_SL2L265->SetBinContent(3,5712.698); h_SL2L265->SetBinContent(4,6722.255); h_SL2L265->SetBinContent(5,6729.218); h_SL2L265->SetBinContent(6,6356.726); h_SL2L265->SetBinContent(7,5778.842); h_SL2L265->SetBinContent(8,5437.681); h_SL2L265->SetBinContent(9,6224.439); h_SL2L265->SetBinContent(10,6276.658); h_SL2L265->SetBinContent(11,6823.211); h_SL2L265->SetBinContent(12,6725.736); h_SL2L265->SetBinContent(13,6997.272); h_SL2L265->SetBinContent(14,6837.136); h_SL2L265->SetBinContent(15,6729.218); h_SL2L265->SetBinContent(16,6680.48); h_SL2L265->SetBinContent(17,6596.931); h_SL2L265->SetBinContent(18,6363.688); h_SL2L265->SetBinContent(19,7056.453); h_SL2L265->SetBinContent(20,6530.788); h_SL2L265->SetBinContent(21,6217.477); h_SL2L265->SetBinContent(22,5813.654); h_SL2L265->SetBinContent(23,6154.814); h_SL2L265->SetBinContent(24,6461.163); h_SL2L265->SetBinContent(25,7056.453); h_SL2L265->SetBinContent(26,19930.04); h_SL2L265->SetBinContent(27,37997.62); h_SL2L265->SetBinContent(28,48796.4); h_SL2L265->SetBinContent(29,53450.8); h_SL2L265->SetBinContent(30,54432.51); h_SL2L265->SetBinContent(31,51355.11); h_SL2L265->SetBinContent(32,50352.51); h_SL2L265->SetBinContent(33,50662.34); h_SL2L265->SetBinContent(34,42634.62); h_SL2L265->SetBinContent(35,16424.44); h_SL2L265->SetBinContent(36,6819.729); h_SL2L265->SetBinContent(37,4992.084); h_SL2L265->SetBinContent(38,4515.155); h_SL2L265->SetBinContent(39,4570.855); h_SL2L265->SetBinContent(40,5110.446); h_SL2L265->SetBinContent(41,5267.101); h_SL2L265->SetBinContent(42,4504.711); h_SL2L265->SetBinContent(43,3610.036); h_SL2L265->SetBinContent(44,4006.896); h_SL2L265->SetBinContent(45,3028.67); h_SL2L265->SetBinContent(46,2851.127); h_SL2L265->SetBinContent(47,2795.428); h_SL2L265->SetBinContent(48,2572.629); h_SL2L265->SetBinContent(49,2732.766); h_SL2L265->SetBinContent(50,2746.69); h_SL2L265->SetBinContent(51,2576.11); h_SL2L265->SetBinContent(52,2743.209); h_SL2L265->SetBinContent(53,2920.752); h_SL2L265->SetBinContent(54,3035.633); h_SL2L265->SetBinContent(55,3167.919); h_SL2L265->SetBinContent(56,2906.827); h_SL2L265->SetBinContent(57,2492.561); h_SL2L265->SetMaximum(63674.31); 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,4372.425); h_SL2L366->SetBinContent(2,5225.326); h_SL2L366->SetBinContent(3,6398.501); h_SL2L366->SetBinContent(4,6301.026); h_SL2L366->SetBinContent(5,6433.313); h_SL2L366->SetBinContent(6,6071.265); h_SL2L366->SetBinContent(7,5301.913); h_SL2L366->SetBinContent(8,5629.149); h_SL2L366->SetBinContent(9,6095.634); h_SL2L366->SetBinContent(10,6475.088); h_SL2L366->SetBinContent(11,6569.081); h_SL2L366->SetBinContent(12,6534.269); h_SL2L366->SetBinContent(13,6401.982); h_SL2L366->SetBinContent(14,6666.556); h_SL2L366->SetBinContent(15,6673.518); h_SL2L366->SetBinContent(16,6262.733); h_SL2L366->SetBinContent(17,5987.716); h_SL2L366->SetBinContent(18,6395.02); h_SL2L366->SetBinContent(19,6297.545); h_SL2L366->SetBinContent(20,6053.859); h_SL2L366->SetBinContent(21,5778.842); h_SL2L366->SetBinContent(22,5726.624); h_SL2L366->SetBinContent(23,5761.436); h_SL2L366->SetBinContent(24,6259.251); h_SL2L366->SetBinContent(25,10683.89); h_SL2L366->SetBinContent(26,29444.24); h_SL2L366->SetBinContent(27,44169.85); h_SL2L366->SetBinContent(28,51967.8); h_SL2L366->SetBinContent(29,54568.28); h_SL2L366->SetBinContent(30,52928.62); h_SL2L366->SetBinContent(31,50871.21); h_SL2L366->SetBinContent(32,50954.77); h_SL2L366->SetBinContent(33,49245.48); h_SL2L366->SetBinContent(34,29068.27); h_SL2L366->SetBinContent(35,9183.484); h_SL2L366->SetBinContent(36,5409.832); h_SL2L366->SetBinContent(37,4483.824); h_SL2L366->SetBinContent(38,4180.957); h_SL2L366->SetBinContent(39,3909.421); h_SL2L366->SetBinContent(40,3742.322); h_SL2L366->SetBinContent(41,3919.865); h_SL2L366->SetBinContent(42,3293.244); h_SL2L366->SetBinContent(43,3237.544); h_SL2L366->SetBinContent(44,2903.346); h_SL2L366->SetBinContent(45,2708.397); h_SL2L366->SetBinContent(46,2701.435); h_SL2L366->SetBinContent(47,2645.735); h_SL2L366->SetBinContent(48,2583.073); h_SL2L366->SetBinContent(49,2516.929); h_SL2L366->SetBinContent(50,2457.748); h_SL2L366->SetBinContent(51,2450.786); h_SL2L366->SetBinContent(52,2457.748); h_SL2L366->SetBinContent(53,2882.458); h_SL2L366->SetBinContent(54,2812.834); h_SL2L366->SetBinContent(55,2959.045); h_SL2L366->SetBinContent(56,2624.847); h_SL2L366->SetBinContent(57,2520.411); h_SL2L366->SetMaximum(63674.31); 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,5002.527); h_SL2L467->SetBinContent(3,5813.654); h_SL2L467->SetBinContent(4,6182.665); h_SL2L467->SetBinContent(5,5872.835); h_SL2L467->SetBinContent(6,6078.228); h_SL2L467->SetBinContent(7,5166.146); h_SL2L467->SetBinContent(8,5159.183); h_SL2L467->SetBinContent(9,5712.698); h_SL2L467->SetBinContent(10,5935.497); h_SL2L467->SetBinContent(11,6398.501); h_SL2L467->SetBinContent(12,6133.927); h_SL2L467->SetBinContent(13,6231.402); h_SL2L467->SetBinContent(14,6220.958); h_SL2L467->SetBinContent(15,6384.576); h_SL2L467->SetBinContent(16,6384.576); h_SL2L467->SetBinContent(17,6060.821); h_SL2L467->SetBinContent(18,6259.251); h_SL2L467->SetBinContent(19,6234.883); h_SL2L467->SetBinContent(20,5963.347); h_SL2L467->SetBinContent(21,5768.398); h_SL2L467->SetBinContent(22,5475.975); h_SL2L467->SetBinContent(23,5601.299); h_SL2L467->SetBinContent(24,5747.511); h_SL2L467->SetBinContent(25,6607.375); h_SL2L467->SetBinContent(26,19762.94); h_SL2L467->SetBinContent(27,37673.87); h_SL2L467->SetBinContent(28,48208.07); h_SL2L467->SetBinContent(29,53332.45); h_SL2L467->SetBinContent(30,55090.46); h_SL2L467->SetBinContent(31,51292.44); h_SL2L467->SetBinContent(32,50648.41); h_SL2L467->SetBinContent(33,50672.79); h_SL2L467->SetBinContent(34,42516.26); h_SL2L467->SetBinContent(35,16483.62); h_SL2L467->SetBinContent(36,6422.87); h_SL2L467->SetBinContent(37,4751.879); h_SL2L467->SetBinContent(38,4462.937); h_SL2L467->SetBinContent(39,3930.309); h_SL2L467->SetBinContent(40,3401.162); h_SL2L467->SetBinContent(41,3321.094); h_SL2L467->SetBinContent(42,3721.435); h_SL2L467->SetBinContent(43,3080.889); h_SL2L467->SetBinContent(44,3195.769); h_SL2L467->SetBinContent(45,2816.315); h_SL2L467->SetBinContent(46,2562.185); h_SL2L467->SetBinContent(47,2551.742); h_SL2L467->SetBinContent(48,2443.823); h_SL2L467->SetBinContent(49,2450.786); h_SL2L467->SetBinContent(50,2485.598); h_SL2L467->SetBinContent(51,2262.8); h_SL2L467->SetBinContent(52,2687.51); h_SL2L467->SetBinContent(53,2670.104); h_SL2L467->SetBinContent(54,2767.578); h_SL2L467->SetBinContent(55,2708.397); h_SL2L467->SetBinContent(56,2603.96); h_SL2L467->SetBinContent(57,2422.936); h_SL2L467->SetMaximum(63674.31); 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 6789"); pt->Draw(); c->Modified(); c->cd(); c->SetSelected(c); }