void RatesPerCell_Removing_noisy_cells_run_7448_SL1() { //=========Macro generated from canvas: c/c //========= (Fri Dec 21 17:33:04 2018) by ROOT version6.02/13 TCanvas *c = new TCanvas("c", "c",0,0,800,600); gStyle->SetOptStat(0); c->Range(-7.500001,-35036.77,67.5,315330.9); c->SetFillColor(0); c->SetBorderMode(0); c->SetBorderSize(2); c->SetFrameBorderMode(0); c->SetFrameBorderMode(0); TH1D *h_SL1L160 = new TH1D("h_SL1L160","SL1, run 7448",60,0,60); h_SL1L160->SetBinContent(1,123400); h_SL1L160->SetBinContent(2,120421.4); h_SL1L160->SetBinContent(3,116957.1); h_SL1L160->SetBinContent(4,111392.9); h_SL1L160->SetBinContent(5,84892.86); h_SL1L160->SetBinContent(6,89921.43); h_SL1L160->SetBinContent(7,92057.14); h_SL1L160->SetBinContent(8,96421.43); h_SL1L160->SetBinContent(9,85250); h_SL1L160->SetBinContent(10,86250); h_SL1L160->SetBinContent(11,86685.71); h_SL1L160->SetBinContent(12,82407.14); h_SL1L160->SetBinContent(13,132642.9); h_SL1L160->SetBinContent(14,151721.4); h_SL1L160->SetBinContent(15,155192.9); h_SL1L160->SetBinContent(16,80457.14); h_SL1L160->SetBinContent(17,80171.43); h_SL1L160->SetBinContent(18,82807.14); h_SL1L160->SetBinContent(19,86100); h_SL1L160->SetBinContent(20,85078.57); h_SL1L160->SetBinContent(21,84800); h_SL1L160->SetBinContent(22,78907.14); h_SL1L160->SetBinContent(23,67192.86); h_SL1L160->SetBinContent(24,58492.86); h_SL1L160->SetBinContent(25,54885.71); h_SL1L160->SetBinContent(26,61500); h_SL1L160->SetBinContent(27,56800); h_SL1L160->SetBinContent(28,61535.71); h_SL1L160->SetBinContent(29,61650); h_SL1L160->SetBinContent(30,58607.14); h_SL1L160->SetBinContent(31,56564.29); h_SL1L160->SetBinContent(32,53257.14); h_SL1L160->SetBinContent(33,153742.9); h_SL1L160->SetBinContent(34,158621.4); h_SL1L160->SetBinContent(35,152542.9); h_SL1L160->SetBinContent(36,153750); h_SL1L160->SetBinContent(37,154185.7); h_SL1L160->SetBinContent(38,156371.4); h_SL1L160->SetBinContent(39,152200); h_SL1L160->SetBinContent(41,56792.86); h_SL1L160->SetBinContent(42,58242.86); h_SL1L160->SetBinContent(43,55200); h_SL1L160->SetBinContent(44,52371.43); h_SL1L160->SetBinContent(45,49835.71); h_SL1L160->SetBinContent(46,46978.57); h_SL1L160->SetBinContent(47,49042.86); h_SL1L160->SetBinContent(48,51500); h_SL1L160->SetBinContent(49,55235.71); h_SL1L160->SetBinContent(50,59242.86); h_SL1L160->SetBinContent(51,59392.86); h_SL1L160->SetBinContent(52,59542.86); h_SL1L160->SetBinContent(53,57750); h_SL1L160->SetBinContent(54,59428.57); h_SL1L160->SetBinContent(55,61614.29); h_SL1L160->SetBinContent(56,71071.43); h_SL1L160->SetMaximum(280294.1); 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,146385.7); h_SL1L261->SetBinContent(2,150035.7); h_SL1L261->SetBinContent(3,149850); h_SL1L261->SetBinContent(4,150742.9); h_SL1L261->SetBinContent(5,143521.4); h_SL1L261->SetBinContent(6,147871.4); h_SL1L261->SetBinContent(7,153392.9); h_SL1L261->SetBinContent(8,158250); h_SL1L261->SetBinContent(9,151328.6); h_SL1L261->SetBinContent(10,145892.9); h_SL1L261->SetBinContent(11,153428.6); h_SL1L261->SetBinContent(12,151957.1); h_SL1L261->SetBinContent(13,150192.9); h_SL1L261->SetBinContent(14,160507.1); h_SL1L261->SetBinContent(15,171850); h_SL1L261->SetBinContent(16,157657.1); h_SL1L261->SetBinContent(17,160042.9); h_SL1L261->SetBinContent(18,170771.4); h_SL1L261->SetBinContent(19,171857.1); h_SL1L261->SetBinContent(20,175535.7); h_SL1L261->SetBinContent(21,172478.6); h_SL1L261->SetBinContent(22,163985.7); h_SL1L261->SetBinContent(23,149764.3); h_SL1L261->SetBinContent(24,148907.1); h_SL1L261->SetBinContent(25,151550); h_SL1L261->SetBinContent(26,137535.7); h_SL1L261->SetBinContent(27,138928.6); h_SL1L261->SetBinContent(28,152492.9); h_SL1L261->SetBinContent(29,159928.6); h_SL1L261->SetBinContent(30,158635.7); h_SL1L261->SetBinContent(31,156264.3); h_SL1L261->SetBinContent(32,151757.1); h_SL1L261->SetBinContent(33,151685.7); h_SL1L261->SetBinContent(34,151121.4); h_SL1L261->SetBinContent(35,149678.6); h_SL1L261->SetBinContent(36,149864.3); h_SL1L261->SetBinContent(37,146850); h_SL1L261->SetBinContent(38,153450); h_SL1L261->SetBinContent(39,155157.1); h_SL1L261->SetBinContent(40,151428.6); h_SL1L261->SetBinContent(41,159785.7); h_SL1L261->SetBinContent(42,162250); h_SL1L261->SetBinContent(43,152092.9); h_SL1L261->SetBinContent(44,144628.6); h_SL1L261->SetBinContent(45,146907.1); h_SL1L261->SetBinContent(46,150135.7); h_SL1L261->SetBinContent(47,152242.9); h_SL1L261->SetBinContent(48,154285.7); h_SL1L261->SetBinContent(49,181164.3); h_SL1L261->SetBinContent(50,162885.7); h_SL1L261->SetBinContent(51,163807.1); h_SL1L261->SetBinContent(52,161692.9); h_SL1L261->SetBinContent(53,156028.6); h_SL1L261->SetBinContent(54,153992.9); h_SL1L261->SetBinContent(55,155500); h_SL1L261->SetBinContent(56,155828.6); h_SL1L261->SetMaximum(243734.3); 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,140921.4); h_SL1L362->SetBinContent(2,143635.7); h_SL1L362->SetBinContent(3,146842.9); h_SL1L362->SetBinContent(4,147114.3); h_SL1L362->SetBinContent(5,142864.3); h_SL1L362->SetBinContent(6,143407.1); h_SL1L362->SetBinContent(7,152064.3); h_SL1L362->SetBinContent(8,155664.3); h_SL1L362->SetBinContent(9,142200); h_SL1L362->SetBinContent(10,149392.9); h_SL1L362->SetBinContent(11,150471.4); h_SL1L362->SetBinContent(12,149464.3); h_SL1L362->SetBinContent(13,147864.3); h_SL1L362->SetBinContent(14,161657.1); h_SL1L362->SetBinContent(15,198478.6); h_SL1L362->SetBinContent(16,160107.1); h_SL1L362->SetBinContent(17,161857.1); h_SL1L362->SetBinContent(18,168228.6); h_SL1L362->SetBinContent(19,166307.1); h_SL1L362->SetBinContent(20,170864.3); h_SL1L362->SetBinContent(21,163164.3); h_SL1L362->SetBinContent(22,156150); h_SL1L362->SetBinContent(23,143850); h_SL1L362->SetBinContent(24,145007.1); h_SL1L362->SetBinContent(25,139278.6); h_SL1L362->SetBinContent(26,133057.1); h_SL1L362->SetBinContent(27,139757.1); h_SL1L362->SetBinContent(28,152050); h_SL1L362->SetBinContent(29,155614.3); h_SL1L362->SetBinContent(30,151685.7); h_SL1L362->SetBinContent(31,150021.4); h_SL1L362->SetBinContent(32,143942.9); h_SL1L362->SetBinContent(33,147728.6); h_SL1L362->SetBinContent(34,148600); h_SL1L362->SetBinContent(35,144542.9); h_SL1L362->SetBinContent(36,149428.6); h_SL1L362->SetBinContent(37,147950); h_SL1L362->SetBinContent(38,148192.9); h_SL1L362->SetBinContent(39,148042.9); h_SL1L362->SetBinContent(40,146021.4); h_SL1L362->SetBinContent(41,158407.1); h_SL1L362->SetBinContent(42,160371.4); h_SL1L362->SetBinContent(43,145550); h_SL1L362->SetBinContent(44,137300); h_SL1L362->SetBinContent(45,143642.9); h_SL1L362->SetBinContent(46,144878.6); h_SL1L362->SetBinContent(47,149657.1); h_SL1L362->SetBinContent(48,149985.7); h_SL1L362->SetBinContent(49,158928.6); h_SL1L362->SetBinContent(50,157478.6); h_SL1L362->SetBinContent(51,156042.9); h_SL1L362->SetBinContent(52,158578.6); h_SL1L362->SetBinContent(53,156250); h_SL1L362->SetBinContent(54,149057.1); h_SL1L362->SetBinContent(55,147485.7); h_SL1L362->SetBinContent(56,157821.4); h_SL1L362->SetMaximum(243734.3); 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,101971.4); h_SL1L463->SetBinContent(3,92721.43); h_SL1L463->SetBinContent(4,83835.71); h_SL1L463->SetBinContent(5,76121.43); h_SL1L463->SetBinContent(6,74935.71); h_SL1L463->SetBinContent(7,75914.28); h_SL1L463->SetBinContent(8,81592.86); h_SL1L463->SetBinContent(9,85750); h_SL1L463->SetBinContent(10,92335.71); h_SL1L463->SetBinContent(11,105392.9); h_SL1L463->SetBinContent(12,102878.6); h_SL1L463->SetBinContent(13,107250); h_SL1L463->SetBinContent(14,211942.9); h_SL1L463->SetBinContent(15,184971.4); h_SL1L463->SetBinContent(16,178700); h_SL1L463->SetBinContent(17,95971.43); h_SL1L463->SetBinContent(18,99100); h_SL1L463->SetBinContent(19,95307.14); h_SL1L463->SetBinContent(20,92235.71); h_SL1L463->SetBinContent(21,89992.86); h_SL1L463->SetBinContent(22,83964.28); h_SL1L463->SetBinContent(23,76485.71); h_SL1L463->SetBinContent(24,76464.28); h_SL1L463->SetBinContent(25,67092.86); h_SL1L463->SetBinContent(26,66350); h_SL1L463->SetBinContent(27,67371.43); h_SL1L463->SetBinContent(28,69550); h_SL1L463->SetBinContent(29,65692.86); h_SL1L463->SetBinContent(30,69700); h_SL1L463->SetBinContent(31,66678.57); h_SL1L463->SetBinContent(32,63364.29); h_SL1L463->SetBinContent(33,58078.57); h_SL1L463->SetBinContent(34,65928.57); h_SL1L463->SetBinContent(35,70028.57); h_SL1L463->SetBinContent(36,57750); h_SL1L463->SetBinContent(37,2414.286); h_SL1L463->SetBinContent(41,49685.71); h_SL1L463->SetBinContent(42,56092.86); h_SL1L463->SetBinContent(43,55007.14); h_SL1L463->SetBinContent(44,52771.43); h_SL1L463->SetBinContent(45,47735.71); h_SL1L463->SetBinContent(46,48700); h_SL1L463->SetBinContent(47,47378.57); h_SL1L463->SetBinContent(48,47257.14); h_SL1L463->SetBinContent(49,46592.86); h_SL1L463->SetBinContent(50,50907.14); h_SL1L463->SetBinContent(51,48007.14); h_SL1L463->SetBinContent(52,51364.29); h_SL1L463->SetBinContent(53,50121.43); h_SL1L463->SetBinContent(54,49400); h_SL1L463->SetBinContent(56,58992.86); h_SL1L463->SetMaximum(243734.3); 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 7448"); pt->Draw(); c->Modified(); c->cd(); c->SetSelected(c); }