void RatesPerCell_Removing_noisy_cells_run_6789_SL3() { //=========Macro generated from canvas: c/c //========= (Sun Jan 13 16:10:47 2019) by ROOT version6.02/13 TCanvas *c = new TCanvas("c", "c",0,0,800,600); gStyle->SetOptStat(0); c->Range(-7.500001,-11944.76,67.5,107502.9); c->SetFillColor(0); c->SetBorderMode(0); c->SetBorderSize(2); c->SetFrameBorderMode(0); c->SetFrameBorderMode(0); TH1D *h_SL3L168 = new TH1D("h_SL3L168","SL3, run 6789",60,0,60); h_SL3L168->SetBinContent(1,2509.967); h_SL3L168->SetBinContent(2,1817.202); h_SL3L168->SetBinContent(4,2892.902); h_SL3L168->SetBinContent(5,3105.257); h_SL3L168->SetBinContent(6,3181.844); h_SL3L168->SetBinContent(7,3108.739); h_SL3L168->SetBinContent(8,3237.544); h_SL3L168->SetBinContent(9,3167.919); h_SL3L168->SetBinContent(10,2955.564); h_SL3L168->SetBinContent(11,2858.09); h_SL3L168->SetBinContent(12,3181.844); h_SL3L168->SetBinContent(13,3025.189); h_SL3L168->SetBinContent(14,3258.431); h_SL3L168->SetBinContent(15,3244.506); h_SL3L168->SetBinContent(16,3324.575); h_SL3L168->SetBinContent(17,3066.964); h_SL3L168->SetBinContent(18,3429.011); h_SL3L168->SetBinContent(19,3310.65); h_SL3L168->SetBinContent(20,3488.192); h_SL3L168->SetBinContent(21,3846.759); h_SL3L168->SetBinContent(22,3752.766); h_SL3L168->SetBinContent(23,4121.776); h_SL3L168->SetBinContent(24,4438.568); h_SL3L168->SetBinContent(25,4476.862); h_SL3L168->SetBinContent(26,4511.674); h_SL3L168->SetBinContent(27,4650.923); h_SL3L168->SetBinContent(28,4706.623); h_SL3L168->SetBinContent(29,4838.91); h_SL3L168->SetBinContent(30,5448.125); h_SL3L168->SetBinContent(31,5963.347); h_SL3L168->SetBinContent(32,7101.709); h_SL3L168->SetBinContent(33,11087.72); h_SL3L168->SetBinContent(34,40765.2); h_SL3L168->SetBinContent(35,59706.57); h_SL3L168->SetBinContent(36,64566.38); h_SL3L168->SetBinContent(37,69829.99); h_SL3L168->SetBinContent(38,72256.41); h_SL3L168->SetBinContent(39,65231.29); h_SL3L168->SetBinContent(40,42453.6); h_SL3L168->SetBinContent(41,11578.57); h_SL3L168->SetBinContent(42,6941.573); h_SL3L168->SetBinContent(43,5858.91); h_SL3L168->SetBinContent(44,5322.801); h_SL3L168->SetBinContent(45,4828.466); h_SL3L168->SetBinContent(46,4438.568); h_SL3L168->SetBinContent(47,4445.531); h_SL3L168->SetBinContent(48,4135.701); h_SL3L168->SetBinContent(49,20104.1); h_SL3L168->SetBinContent(50,3916.384); h_SL3L168->SetBinContent(51,3839.797); h_SL3L168->SetBinContent(52,3756.247); h_SL3L168->SetBinContent(53,3529.967); h_SL3L168->SetBinContent(54,3439.455); h_SL3L168->SetBinContent(55,3408.124); h_SL3L168->SetBinContent(56,3484.711); h_SL3L168->SetBinContent(57,3254.95); h_SL3L168->SetBinContent(58,2673.585); h_SL3L168->SetBinContent(59,2485.598); h_SL3L168->SetMaximum(95558.1); 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,2527.373); h_SL3L269->SetBinContent(2,1925.12); h_SL3L269->SetBinContent(4,2328.943); h_SL3L269->SetBinContent(5,3032.151); h_SL3L269->SetBinContent(6,2910.308); h_SL3L269->SetBinContent(7,3098.295); h_SL3L269->SetBinContent(8,3126.145); h_SL3L269->SetBinContent(9,3140.07); h_SL3L269->SetBinContent(10,2990.377); h_SL3L269->SetBinContent(11,2896.383); h_SL3L269->SetBinContent(12,2760.615); h_SL3L269->SetBinContent(13,2743.209); h_SL3L269->SetBinContent(14,2910.308); h_SL3L269->SetBinContent(15,3467.305); h_SL3L269->SetBinContent(16,3025.189); h_SL3L269->SetBinContent(17,2899.865); h_SL3L269->SetBinContent(18,3164.438); h_SL3L269->SetBinContent(19,3265.394); h_SL3L269->SetBinContent(20,3658.773); h_SL3L269->SetBinContent(21,3704.029); h_SL3L269->SetBinContent(22,3766.691); h_SL3L269->SetBinContent(23,3912.903); h_SL3L269->SetBinContent(24,4006.896); h_SL3L269->SetBinContent(25,4215.77); h_SL3L269->SetBinContent(26,4194.882); h_SL3L269->SetBinContent(27,4452.493); h_SL3L269->SetBinContent(28,4424.644); h_SL3L269->SetBinContent(29,4654.404); h_SL3L269->SetBinContent(30,5044.302); h_SL3L269->SetBinContent(31,5333.245); h_SL3L269->SetBinContent(32,5970.31); h_SL3L269->SetBinContent(33,9005.942); h_SL3L269->SetBinContent(34,21259.87); h_SL3L269->SetBinContent(35,53607.46); h_SL3L269->SetBinContent(36,62136.48); h_SL3L269->SetBinContent(37,65819.62); h_SL3L269->SetBinContent(38,71995.32); h_SL3L269->SetBinContent(39,69467.95); h_SL3L269->SetBinContent(40,57516.88); h_SL3L269->SetBinContent(41,21688.06); h_SL3L269->SetBinContent(42,9127.785); h_SL3L269->SetBinContent(43,5757.955); h_SL3L269->SetBinContent(44,5329.763); h_SL3L269->SetBinContent(45,4918.978); h_SL3L269->SetBinContent(46,4570.855); h_SL3L269->SetBinContent(47,4337.613); h_SL3L269->SetBinContent(48,4167.032); h_SL3L269->SetBinContent(49,5190.514); h_SL3L269->SetBinContent(50,3860.684); h_SL3L269->SetBinContent(51,3488.192); h_SL3L269->SetBinContent(52,3756.247); h_SL3L269->SetBinContent(53,5587.374); h_SL3L269->SetBinContent(54,3355.906); h_SL3L269->SetBinContent(55,3415.087); h_SL3L269->SetBinContent(56,3317.612); h_SL3L269->SetBinContent(57,3227.1); h_SL3L269->SetBinContent(58,3122.663); h_SL3L269->SetBinContent(59,2617.885); h_SL3L269->SetMaximum(83094.88); 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,2259.318); h_SL3L370->SetBinContent(2,1764.984); h_SL3L370->SetBinContent(3,2106.144); h_SL3L370->SetBinContent(4,2690.991); h_SL3L370->SetBinContent(5,2858.09); h_SL3L370->SetBinContent(6,2920.752); h_SL3L370->SetBinContent(7,2851.127); h_SL3L370->SetBinContent(8,3063.482); h_SL3L370->SetBinContent(9,2697.953); h_SL3L370->SetBinContent(10,2791.947); h_SL3L370->SetBinContent(11,2753.653); h_SL3L370->SetBinContent(12,2544.779); h_SL3L370->SetBinContent(13,2750.172); h_SL3L370->SetBinContent(14,2920.752); h_SL3L370->SetBinContent(15,3115.701); h_SL3L370->SetBinContent(16,3084.37); h_SL3L370->SetBinContent(17,2851.127); h_SL3L370->SetBinContent(18,2959.045); h_SL3L370->SetBinContent(19,3080.889); h_SL3L370->SetBinContent(20,3112.22); h_SL3L370->SetBinContent(21,3543.892); h_SL3L370->SetBinContent(22,3745.803); h_SL3L370->SetBinContent(23,3564.78); h_SL3L370->SetBinContent(24,3992.971); h_SL3L370->SetBinContent(25,3864.165); h_SL3L370->SetBinContent(26,4243.62); h_SL3L370->SetBinContent(27,4104.37); h_SL3L370->SetBinContent(28,4219.251); h_SL3L370->SetBinContent(29,4365.462); h_SL3L370->SetBinContent(30,4884.166); h_SL3L370->SetBinContent(31,5573.449); h_SL3L370->SetBinContent(32,6683.961); h_SL3L370->SetBinContent(33,10976.32); h_SL3L370->SetBinContent(34,40343.98); h_SL3L370->SetBinContent(35,59010.33); h_SL3L370->SetBinContent(36,64468.9); h_SL3L370->SetBinContent(37,69102.41); h_SL3L370->SetBinContent(38,71361.73); h_SL3L370->SetBinContent(39,64959.75); h_SL3L370->SetBinContent(40,42115.92); h_SL3L370->SetBinContent(41,11495.02); h_SL3L370->SetBinContent(42,6687.443); h_SL3L370->SetBinContent(43,5388.944); h_SL3L370->SetBinContent(44,4863.278); h_SL3L370->SetBinContent(45,320.2732); h_SL3L370->SetBinContent(46,4355.019); h_SL3L370->SetBinContent(47,4086.964); h_SL3L370->SetBinContent(48,3881.572); h_SL3L370->SetBinContent(49,3557.817); h_SL3L370->SetBinContent(50,3676.179); h_SL3L370->SetBinContent(51,3519.523); h_SL3L370->SetBinContent(52,3502.117); h_SL3L370->SetBinContent(53,3516.042); h_SL3L370->SetBinContent(54,3286.281); h_SL3L370->SetBinContent(55,3352.425); h_SL3L370->SetBinContent(56,3035.633); h_SL3L370->SetBinContent(57,3000.82); h_SL3L370->SetBinContent(58,2687.51); h_SL3L370->SetBinContent(59,2461.23); h_SL3L370->SetMaximum(83094.88); 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,1789.352); h_SL3L471->SetBinContent(3,1862.458); h_SL3L471->SetBinContent(4,2335.905); h_SL3L471->SetBinContent(5,2697.953); h_SL3L471->SetBinContent(6,2938.158); h_SL3L471->SetBinContent(7,2847.646); h_SL3L471->SetBinContent(8,2774.54); h_SL3L471->SetBinContent(9,2861.571); h_SL3L471->SetBinContent(10,2603.96); h_SL3L471->SetBinContent(11,2583.073); h_SL3L471->SetBinContent(12,2743.209); h_SL3L471->SetBinContent(13,2614.404); h_SL3L471->SetBinContent(14,2743.209); h_SL3L471->SetBinContent(15,2955.564); h_SL3L471->SetBinContent(16,2993.858); h_SL3L471->SetBinContent(17,2945.121); h_SL3L471->SetBinContent(18,2990.377); h_SL3L471->SetBinContent(19,2948.602); h_SL3L471->SetBinContent(20,3279.319); h_SL3L471->SetBinContent(21,3359.387); h_SL3L471->SetBinContent(22,3794.541); h_SL3L471->SetBinContent(23,3745.803); h_SL3L471->SetBinContent(24,3756.247); h_SL3L471->SetBinContent(25,3878.09); h_SL3L471->SetBinContent(26,3867.646); h_SL3L471->SetBinContent(27,4073.039); h_SL3L471->SetBinContent(28,4198.363); h_SL3L471->SetBinContent(29,4142.664); h_SL3L471->SetBinContent(30,4713.585); h_SL3L471->SetBinContent(31,5016.453); h_SL3L471->SetBinContent(32,5966.828); h_SL3L471->SetBinContent(33,8553.382); h_SL3L471->SetBinContent(34,21158.92); h_SL3L471->SetBinContent(35,53896.4); h_SL3L471->SetBinContent(36,62105.14); h_SL3L471->SetBinContent(37,65474.97); h_SL3L471->SetBinContent(38,71734.23); h_SL3L471->SetBinContent(39,69464.46); h_SL3L471->SetBinContent(40,57210.54); h_SL3L471->SetBinContent(41,22001.37); h_SL3L471->SetBinContent(42,9079.048); h_SL3L471->SetBinContent(43,5775.361); h_SL3L471->SetBinContent(44,4737.954); h_SL3L471->SetBinContent(45,4421.162); h_SL3L471->SetBinContent(46,4066.077); h_SL3L471->SetBinContent(47,4111.333); h_SL3L471->SetBinContent(48,4003.415); h_SL3L471->SetBinContent(49,3804.984); h_SL3L471->SetBinContent(50,3456.861); h_SL3L471->SetBinContent(51,3557.817); h_SL3L471->SetBinContent(52,3425.53); h_SL3L471->SetBinContent(53,3376.793); h_SL3L471->SetBinContent(54,3136.588); h_SL3L471->SetBinContent(55,3046.076); h_SL3L471->SetBinContent(56,2993.858); h_SL3L471->SetBinContent(57,3115.701); h_SL3L471->SetBinContent(58,2892.902); h_SL3L471->SetBinContent(59,2384.643); h_SL3L471->SetMaximum(83094.88); 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 6789"); pt->Draw(); c->Modified(); c->cd(); c->SetSelected(c); }