void RatesPerCell_Removing_noisy_cells_run_6574_SL2() { //=========Macro generated from canvas: c/c //========= (Wed Jan 16 13:20:29 2019) by ROOT version6.02/13 TCanvas *c = new TCanvas("c", "c",0,0,800,600); gStyle->SetOptStat(0); c->Range(-7.500001,-11354.09,67.5,102186.8); c->SetFillColor(0); c->SetBorderMode(0); c->SetBorderSize(2); c->SetFrameBorderMode(0); c->SetFrameBorderMode(0); TH1D *h_SL2L164 = new TH1D("h_SL2L164","SL2, run 6574",60,0,60); h_SL2L164->SetBinContent(1,260.8839); h_SL2L164->SetBinContent(2,410.1339); h_SL2L164->SetBinContent(3,513.274); h_SL2L164->SetBinContent(4,535.1155); h_SL2L164->SetBinContent(5,569.091); h_SL2L164->SetBinContent(6,600.6398); h_SL2L164->SetBinContent(7,638.2556); h_SL2L164->SetBinContent(8,650.3898); h_SL2L164->SetBinContent(9,736.5421); h_SL2L164->SetBinContent(10,860.3103); h_SL2L164->SetBinContent(11,968.3041); h_SL2L164->SetBinContent(12,1047.176); h_SL2L164->SetBinContent(13,1095.713); h_SL2L164->SetBinContent(14,1167.304); h_SL2L164->SetBinContent(15,1323.834); h_SL2L164->SetBinContent(16,1392.999); h_SL2L164->SetBinContent(17,1596.852); h_SL2L164->SetBinContent(18,1755.81); h_SL2L164->SetBinContent(19,1958.45); h_SL2L164->SetBinContent(20,2089.499); h_SL2L164->SetBinContent(21,2202.346); h_SL2L164->SetBinContent(22,2495.992); h_SL2L164->SetBinContent(23,2881.858); h_SL2L164->SetBinContent(24,3415.76); h_SL2L164->SetBinContent(25,8759.634); h_SL2L164->SetBinContent(26,28414.51); h_SL2L164->SetBinContent(27,45789.38); h_SL2L164->SetBinContent(28,56691.9); h_SL2L164->SetBinContent(29,60725.29); h_SL2L164->SetBinContent(30,56082.77); h_SL2L164->SetBinContent(31,49002.5); h_SL2L164->SetBinContent(32,44264.12); h_SL2L164->SetBinContent(33,39463.86); h_SL2L164->SetBinContent(34,19381.86); h_SL2L164->SetBinContent(36,3000.772); h_SL2L164->SetBinContent(37,8048.573); h_SL2L164->SetBinContent(38,4447.161); h_SL2L164->SetBinContent(39,6160.501); h_SL2L164->SetBinContent(40,38911.75); h_SL2L164->SetBinContent(41,68682.86); h_SL2L164->SetBinContent(42,12600.09); h_SL2L164->SetBinContent(43,12930.14); h_SL2L164->SetBinContent(44,13194.66); h_SL2L164->SetBinContent(45,763.2372); h_SL2L164->SetBinContent(46,679.5117); h_SL2L164->SetBinContent(47,621.2678); h_SL2L164->SetBinContent(48,612.7739); h_SL2L164->SetBinContent(49,554.5301); h_SL2L164->SetBinContent(50,444.1094); h_SL2L164->SetBinContent(51,425.9082); h_SL2L164->SetBinContent(52,401.64); h_SL2L164->SetBinContent(53,373.7314); h_SL2L164->SetBinContent(54,328.8351); h_SL2L164->SetBinContent(55,311.8473); h_SL2L164->SetBinContent(56,240.2559); h_SL2L164->SetBinContent(57,7430.946); h_SL2L164->SetMaximum(90832.75); 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,242.6827); h_SL2L265->SetBinContent(2,342.1827); h_SL2L265->SetBinContent(3,464.7375); h_SL2L265->SetBinContent(4,481.7253); h_SL2L265->SetBinContent(5,546.0362); h_SL2L265->SetBinContent(6,588.5057); h_SL2L265->SetBinContent(7,601.8532); h_SL2L265->SetBinContent(8,609.1337); h_SL2L265->SetBinContent(9,695.2861); h_SL2L265->SetBinContent(10,792.3591); h_SL2L265->SetBinContent(11,873.6579); h_SL2L265->SetBinContent(12,1003.493); h_SL2L265->SetBinContent(13,1047.176); h_SL2L265->SetBinContent(14,1121.194); h_SL2L265->SetBinContent(15,1195.213); h_SL2L265->SetBinContent(16,1310.487); h_SL2L265->SetBinContent(17,1450.029); h_SL2L265->SetBinContent(18,1652.669); h_SL2L265->SetBinContent(19,1783.718); h_SL2L265->SetBinContent(20,1987.572); h_SL2L265->SetBinContent(21,2203.559); h_SL2L265->SetBinContent(22,2221.76); h_SL2L265->SetBinContent(23,2601.559); h_SL2L265->SetBinContent(24,3090.565); h_SL2L265->SetBinContent(25,4166.863); h_SL2L265->SetBinContent(26,18257.02); h_SL2L265->SetBinContent(27,37276.07); h_SL2L265->SetBinContent(28,52409.77); h_SL2L265->SetBinContent(29,59567.69); h_SL2L265->SetBinContent(30,58457.42); h_SL2L265->SetBinContent(31,52579.64); h_SL2L265->SetBinContent(32,46041.77); h_SL2L265->SetBinContent(33,42913.59); h_SL2L265->SetBinContent(34,31047.62); h_SL2L265->SetBinContent(35,10232.72); h_SL2L265->SetBinContent(36,3728.82); h_SL2L265->SetBinContent(37,2611.266); h_SL2L265->SetBinContent(38,1991.212); h_SL2L265->SetBinContent(39,3092.991); h_SL2L265->SetBinContent(40,4606.119); h_SL2L265->SetBinContent(41,4005.479); h_SL2L265->SetBinContent(42,2812.693); h_SL2L265->SetBinContent(43,1585.932); h_SL2L265->SetBinContent(44,2804.199); h_SL2L265->SetBinContent(45,788.7189); h_SL2L265->SetBinContent(46,702.5665); h_SL2L265->SetBinContent(47,627.3349); h_SL2L265->SetBinContent(48,594.5727); h_SL2L265->SetBinContent(49,550.8898); h_SL2L265->SetBinContent(50,479.2984); h_SL2L265->SetBinContent(51,416.2009); h_SL2L265->SetBinContent(52,429.5485); h_SL2L265->SetBinContent(53,384.6522); h_SL2L265->SetBinContent(54,292.4327); h_SL2L265->SetBinContent(55,297.2863); h_SL2L265->SetBinContent(56,282.7254); h_SL2L265->SetBinContent(57,228.1218); h_SL2L265->SetMaximum(78985.29); 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,275.4449); h_SL2L366->SetBinContent(2,401.64); h_SL2L366->SetBinContent(3,440.4692); h_SL2L366->SetBinContent(4,469.5911); h_SL2L366->SetBinContent(5,558.1703); h_SL2L366->SetBinContent(6,530.2618); h_SL2L366->SetBinContent(7,639.4691); h_SL2L366->SetBinContent(8,583.652); h_SL2L366->SetBinContent(9,683.1519); h_SL2L366->SetBinContent(10,822.6945); h_SL2L366->SetBinContent(11,887.0054); h_SL2L366->SetBinContent(12,999.8529); h_SL2L366->SetBinContent(13,1056.883); h_SL2L366->SetBinContent(14,1105.42); h_SL2L366->SetBinContent(15,1237.682); h_SL2L366->SetBinContent(16,1258.31); h_SL2L366->SetBinContent(17,1536.182); h_SL2L366->SetBinContent(18,1646.602); h_SL2L366->SetBinContent(19,1905.06); h_SL2L366->SetBinContent(20,2032.468); h_SL2L366->SetBinContent(21,2102.846); h_SL2L366->SetBinContent(22,2425.614); h_SL2L366->SetBinContent(23,2813.906); h_SL2L366->SetBinContent(24,3283.498); h_SL2L366->SetBinContent(25,8649.213); h_SL2L366->SetBinContent(26,28507.94); h_SL2L366->SetBinContent(27,45681.39); h_SL2L366->SetBinContent(28,56827.8); h_SL2L366->SetBinContent(29,60356.41); h_SL2L366->SetBinContent(30,56168.92); h_SL2L366->SetBinContent(31,49179.66); h_SL2L366->SetBinContent(32,44491.03); h_SL2L366->SetBinContent(33,39422.6); h_SL2L366->SetBinContent(34,19385.5); h_SL2L366->SetBinContent(35,5406.972); h_SL2L366->SetBinContent(36,2870.937); h_SL2L366->SetBinContent(37,2185.358); h_SL2L366->SetBinContent(38,1814.053); h_SL2L366->SetBinContent(39,1475.511); h_SL2L366->SetBinContent(40,3368.437); h_SL2L366->SetBinContent(41,1726.688); h_SL2L366->SetBinContent(42,1059.31); h_SL2L366->SetBinContent(43,957.3834); h_SL2L366->SetBinContent(44,781.4384); h_SL2L366->SetBinContent(45,726.8348); h_SL2L366->SetBinContent(46,621.2678); h_SL2L366->SetBinContent(47,558.1703); h_SL2L366->SetBinContent(48,567.8776); h_SL2L366->SetBinContent(49,489.0057); h_SL2L366->SetBinContent(50,379.7985); h_SL2L366->SetBinContent(51,408.9204); h_SL2L366->SetBinContent(52,405.2802); h_SL2L366->SetBinContent(53,338.5424); h_SL2L366->SetBinContent(54,291.2193); h_SL2L366->SetBinContent(55,313.0607); h_SL2L366->SetBinContent(56,256.0303); h_SL2L366->SetBinContent(57,313.0607); h_SL2L366->SetMaximum(78985.29); 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,326.4083); h_SL2L467->SetBinContent(3,442.896); h_SL2L467->SetBinContent(4,438.0424); h_SL2L467->SetBinContent(5,486.5789); h_SL2L467->SetBinContent(6,529.0484); h_SL2L467->SetBinContent(7,532.6886); h_SL2L467->SetBinContent(8,588.5057); h_SL2L467->SetBinContent(9,596.9996); h_SL2L467->SetBinContent(10,737.7556); h_SL2L467->SetBinContent(11,828.7616); h_SL2L467->SetBinContent(12,901.5664); h_SL2L467->SetBinContent(13,952.5298); h_SL2L467->SetBinContent(14,1037.469); h_SL2L467->SetBinContent(15,1101.78); h_SL2L467->SetBinContent(16,1201.28); h_SL2L467->SetBinContent(17,1310.487); h_SL2L467->SetBinContent(18,1528.901); h_SL2L467->SetBinContent(19,1658.737); h_SL2L467->SetBinContent(20,1958.45); h_SL2L467->SetBinContent(21,2030.041); h_SL2L467->SetBinContent(22,2202.346); h_SL2L467->SetBinContent(23,2504.486); h_SL2L467->SetBinContent(24,2963.156); h_SL2L467->SetBinContent(25,3986.064); h_SL2L467->SetBinContent(26,18049.53); h_SL2L467->SetBinContent(27,37312.47); h_SL2L467->SetBinContent(28,52431.61); h_SL2L467->SetBinContent(29,59466.98); h_SL2L467->SetBinContent(30,59298.32); h_SL2L467->SetBinContent(31,52600.27); h_SL2L467->SetBinContent(32,46033.28); h_SL2L467->SetBinContent(33,42888.11); h_SL2L467->SetBinContent(34,31053.68); h_SL2L467->SetBinContent(35,10167.19); h_SL2L467->SetBinContent(36,3534.674); h_SL2L467->SetBinContent(37,2494.779); h_SL2L467->SetBinContent(38,1912.34); h_SL2L467->SetBinContent(39,1640.535); h_SL2L467->SetBinContent(40,1258.31); h_SL2L467->SetBinContent(41,1174.584); h_SL2L467->SetBinContent(42,1508.273); h_SL2L467->SetBinContent(43,952.5298); h_SL2L467->SetBinContent(44,817.8408); h_SL2L467->SetBinContent(45,738.9689); h_SL2L467->SetBinContent(46,683.1519); h_SL2L467->SetBinContent(47,607.9203); h_SL2L467->SetBinContent(48,570.3044); h_SL2L467->SetBinContent(49,512.0606); h_SL2L467->SetBinContent(50,433.1887); h_SL2L467->SetBinContent(51,367.6644); h_SL2L467->SetBinContent(52,395.5729); h_SL2L467->SetBinContent(53,373.7314); h_SL2L467->SetBinContent(54,343.3961); h_SL2L467->SetBinContent(55,263.3108); h_SL2L467->SetBinContent(56,265.7376); h_SL2L467->SetBinContent(57,235.4023); h_SL2L467->SetMaximum(78985.29); 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 6574"); pt->Draw(); c->Modified(); c->cd(); c->SetSelected(c); }