void RatesPerCell_Removing_noisy_cells_run_7362_SL2() { //=========Macro generated from canvas: c/c //========= (Fri Dec 21 17:23:59 2018) by ROOT version6.02/13 TCanvas *c = new TCanvas("c", "c",0,0,800,600); gStyle->SetOptStat(0); c->Range(-7.500001,-15262.37,67.5,137361.3); c->SetFillColor(0); c->SetBorderMode(0); c->SetBorderSize(2); c->SetFrameBorderMode(0); c->SetFrameBorderMode(0); TH1D *h_SL2L164 = new TH1D("h_SL2L164","SL2, run 7362",60,0,60); h_SL2L164->SetBinContent(1,30160.71); h_SL2L164->SetBinContent(2,38260.71); h_SL2L164->SetBinContent(3,46910.71); h_SL2L164->SetBinContent(4,49646.43); h_SL2L164->SetBinContent(5,49050); h_SL2L164->SetBinContent(6,47792.86); h_SL2L164->SetBinContent(7,44260.71); h_SL2L164->SetBinContent(8,42807.14); h_SL2L164->SetBinContent(9,44271.43); h_SL2L164->SetBinContent(10,46132.14); h_SL2L164->SetBinContent(11,47321.43); h_SL2L164->SetBinContent(12,47396.43); h_SL2L164->SetBinContent(13,46700); h_SL2L164->SetBinContent(14,45785.71); h_SL2L164->SetBinContent(15,45403.57); h_SL2L164->SetBinContent(16,45814.29); h_SL2L164->SetBinContent(17,43664.29); h_SL2L164->SetBinContent(18,41800); h_SL2L164->SetBinContent(19,42575); h_SL2L164->SetBinContent(20,42578.57); h_SL2L164->SetBinContent(21,42607.14); h_SL2L164->SetBinContent(22,42360.71); h_SL2L164->SetBinContent(23,41814.29); h_SL2L164->SetBinContent(24,40514.29); h_SL2L164->SetBinContent(25,40257.14); h_SL2L164->SetBinContent(26,40410.71); h_SL2L164->SetBinContent(27,39900); h_SL2L164->SetBinContent(28,38464.29); h_SL2L164->SetBinContent(29,39035.71); h_SL2L164->SetBinContent(30,37714.29); h_SL2L164->SetBinContent(31,36532.14); h_SL2L164->SetBinContent(32,36925); h_SL2L164->SetBinContent(33,38385.71); h_SL2L164->SetBinContent(34,38678.57); h_SL2L164->SetBinContent(36,38775); h_SL2L164->SetBinContent(37,45117.86); h_SL2L164->SetBinContent(38,41239.29); h_SL2L164->SetBinContent(39,42889.29); h_SL2L164->SetBinContent(40,68460.71); h_SL2L164->SetBinContent(41,92325); h_SL2L164->SetBinContent(42,46142.86); h_SL2L164->SetBinContent(43,47110.71); h_SL2L164->SetBinContent(44,46550); h_SL2L164->SetBinContent(45,37803.57); h_SL2L164->SetBinContent(46,36325); h_SL2L164->SetBinContent(47,35703.57); h_SL2L164->SetBinContent(48,35178.57); h_SL2L164->SetBinContent(49,34589.29); h_SL2L164->SetBinContent(50,33464.29); h_SL2L164->SetBinContent(51,35032.14); h_SL2L164->SetBinContent(52,36110.71); h_SL2L164->SetBinContent(53,38310.71); h_SL2L164->SetBinContent(54,37750); h_SL2L164->SetBinContent(55,36032.14); h_SL2L164->SetBinContent(56,30042.86); h_SL2L164->SetBinContent(57,23278.57); h_SL2L164->SetMaximum(122098.9); 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,23857.14); h_SL2L265->SetBinContent(2,35596.43); h_SL2L265->SetBinContent(3,41067.86); h_SL2L265->SetBinContent(4,47492.86); h_SL2L265->SetBinContent(5,48132.14); h_SL2L265->SetBinContent(6,47014.29); h_SL2L265->SetBinContent(7,44082.14); h_SL2L265->SetBinContent(8,40646.43); h_SL2L265->SetBinContent(9,42628.57); h_SL2L265->SetBinContent(10,43103.57); h_SL2L265->SetBinContent(11,45317.86); h_SL2L265->SetBinContent(12,46128.57); h_SL2L265->SetBinContent(13,45867.86); h_SL2L265->SetBinContent(14,44846.43); h_SL2L265->SetBinContent(15,43167.86); h_SL2L265->SetBinContent(16,44882.14); h_SL2L265->SetBinContent(17,43210.71); h_SL2L265->SetBinContent(18,41810.71); h_SL2L265->SetBinContent(19,40871.43); h_SL2L265->SetBinContent(20,41839.29); h_SL2L265->SetBinContent(21,41614.29); h_SL2L265->SetBinContent(22,41414.29); h_SL2L265->SetBinContent(23,40621.43); h_SL2L265->SetBinContent(24,39885.71); h_SL2L265->SetBinContent(25,40125); h_SL2L265->SetBinContent(26,38785.71); h_SL2L265->SetBinContent(27,38967.86); h_SL2L265->SetBinContent(28,38382.14); h_SL2L265->SetBinContent(29,37771.43); h_SL2L265->SetBinContent(30,36625); h_SL2L265->SetBinContent(31,35489.29); h_SL2L265->SetBinContent(32,35467.86); h_SL2L265->SetBinContent(33,36707.14); h_SL2L265->SetBinContent(34,37607.14); h_SL2L265->SetBinContent(35,36457.14); h_SL2L265->SetBinContent(36,35967.86); h_SL2L265->SetBinContent(37,37957.14); h_SL2L265->SetBinContent(38,38450); h_SL2L265->SetBinContent(39,38735.71); h_SL2L265->SetBinContent(40,40350); h_SL2L265->SetBinContent(41,38375); h_SL2L265->SetBinContent(42,37803.57); h_SL2L265->SetBinContent(43,37075); h_SL2L265->SetBinContent(44,37292.86); h_SL2L265->SetBinContent(45,35750); h_SL2L265->SetBinContent(46,35800); h_SL2L265->SetBinContent(47,34610.71); h_SL2L265->SetBinContent(48,34157.14); h_SL2L265->SetBinContent(49,33896.43); h_SL2L265->SetBinContent(50,32903.57); h_SL2L265->SetBinContent(51,32357.14); h_SL2L265->SetBinContent(52,33942.86); h_SL2L265->SetBinContent(53,35385.71); h_SL2L265->SetBinContent(54,36967.86); h_SL2L265->SetBinContent(55,37164.29); h_SL2L265->SetBinContent(56,31553.57); h_SL2L265->SetBinContent(57,27946.43); h_SL2L265->SetMaximum(106173.7); 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,28289.29); h_SL2L366->SetBinContent(2,36971.43); h_SL2L366->SetBinContent(3,44610.71); h_SL2L366->SetBinContent(4,47082.14); h_SL2L366->SetBinContent(5,45760.71); h_SL2L366->SetBinContent(6,43914.29); h_SL2L366->SetBinContent(7,41325); h_SL2L366->SetBinContent(8,40121.43); h_SL2L366->SetBinContent(9,41564.29); h_SL2L366->SetBinContent(10,42707.14); h_SL2L366->SetBinContent(11,44496.43); h_SL2L366->SetBinContent(12,44396.43); h_SL2L366->SetBinContent(13,43325); h_SL2L366->SetBinContent(14,42296.43); h_SL2L366->SetBinContent(15,42875); h_SL2L366->SetBinContent(16,42250); h_SL2L366->SetBinContent(17,41225); h_SL2L366->SetBinContent(18,40117.86); h_SL2L366->SetBinContent(19,40185.71); h_SL2L366->SetBinContent(20,40207.14); h_SL2L366->SetBinContent(21,40646.43); h_SL2L366->SetBinContent(22,39964.29); h_SL2L366->SetBinContent(23,38814.29); h_SL2L366->SetBinContent(24,38564.29); h_SL2L366->SetBinContent(25,37928.57); h_SL2L366->SetBinContent(26,37289.29); h_SL2L366->SetBinContent(27,37964.29); h_SL2L366->SetBinContent(28,36810.71); h_SL2L366->SetBinContent(29,36307.14); h_SL2L366->SetBinContent(30,35375); h_SL2L366->SetBinContent(31,34985.71); h_SL2L366->SetBinContent(32,34382.14); h_SL2L366->SetBinContent(33,36514.29); h_SL2L366->SetBinContent(34,36310.71); h_SL2L366->SetBinContent(35,34810.71); h_SL2L366->SetBinContent(36,35796.43); h_SL2L366->SetBinContent(37,36525); h_SL2L366->SetBinContent(38,36939.29); h_SL2L366->SetBinContent(39,36682.14); h_SL2L366->SetBinContent(40,38032.14); h_SL2L366->SetBinContent(41,36175); h_SL2L366->SetBinContent(42,35650); h_SL2L366->SetBinContent(43,35717.86); h_SL2L366->SetBinContent(44,35246.43); h_SL2L366->SetBinContent(45,35242.86); h_SL2L366->SetBinContent(46,33875); h_SL2L366->SetBinContent(47,33328.57); h_SL2L366->SetBinContent(48,33250); h_SL2L366->SetBinContent(49,32853.57); h_SL2L366->SetBinContent(50,31421.43); h_SL2L366->SetBinContent(51,32467.86); h_SL2L366->SetBinContent(52,33321.43); h_SL2L366->SetBinContent(53,35307.14); h_SL2L366->SetBinContent(54,35917.86); h_SL2L366->SetBinContent(55,34289.29); h_SL2L366->SetBinContent(56,27864.29); h_SL2L366->SetBinContent(57,24832.14); h_SL2L366->SetMaximum(106173.7); 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,33467.86); h_SL2L467->SetBinContent(3,39021.43); h_SL2L467->SetBinContent(4,44396.43); h_SL2L467->SetBinContent(5,44417.86); h_SL2L467->SetBinContent(6,43082.14); h_SL2L467->SetBinContent(7,41460.71); h_SL2L467->SetBinContent(8,38117.86); h_SL2L467->SetBinContent(9,40639.29); h_SL2L467->SetBinContent(10,40792.86); h_SL2L467->SetBinContent(11,42917.86); h_SL2L467->SetBinContent(12,42785.71); h_SL2L467->SetBinContent(13,42328.57); h_SL2L467->SetBinContent(14,41800); h_SL2L467->SetBinContent(15,41017.86); h_SL2L467->SetBinContent(16,41739.29); h_SL2L467->SetBinContent(17,40239.29); h_SL2L467->SetBinContent(18,39357.14); h_SL2L467->SetBinContent(19,38367.86); h_SL2L467->SetBinContent(20,38810.71); h_SL2L467->SetBinContent(21,38432.14); h_SL2L467->SetBinContent(22,38425); h_SL2L467->SetBinContent(23,37978.57); h_SL2L467->SetBinContent(24,37017.86); h_SL2L467->SetBinContent(25,36850); h_SL2L467->SetBinContent(26,35889.29); h_SL2L467->SetBinContent(27,36296.43); h_SL2L467->SetBinContent(28,36260.71); h_SL2L467->SetBinContent(29,35628.57); h_SL2L467->SetBinContent(30,34917.86); h_SL2L467->SetBinContent(31,33860.71); h_SL2L467->SetBinContent(32,33821.43); h_SL2L467->SetBinContent(33,34160.71); h_SL2L467->SetBinContent(34,35289.29); h_SL2L467->SetBinContent(35,34246.43); h_SL2L467->SetBinContent(36,34746.43); h_SL2L467->SetBinContent(37,35782.14); h_SL2L467->SetBinContent(38,35517.86); h_SL2L467->SetBinContent(39,35314.29); h_SL2L467->SetBinContent(40,35292.86); h_SL2L467->SetBinContent(41,34457.14); h_SL2L467->SetBinContent(42,35435.71); h_SL2L467->SetBinContent(43,35082.14); h_SL2L467->SetBinContent(44,34485.71); h_SL2L467->SetBinContent(45,33921.43); h_SL2L467->SetBinContent(46,33650); h_SL2L467->SetBinContent(47,33300); h_SL2L467->SetBinContent(48,32092.86); h_SL2L467->SetBinContent(49,31875); h_SL2L467->SetBinContent(50,31432.14); h_SL2L467->SetBinContent(51,30367.86); h_SL2L467->SetBinContent(52,31678.57); h_SL2L467->SetBinContent(53,32767.86); h_SL2L467->SetBinContent(54,34885.71); h_SL2L467->SetBinContent(55,33960.71); h_SL2L467->SetBinContent(56,30050); h_SL2L467->SetBinContent(57,25100); h_SL2L467->SetMaximum(106173.7); 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 7362"); pt->Draw(); c->Modified(); c->cd(); c->SetSelected(c); }