void RatesPerCell_Removing_noisy_cells_run_7483_SL1() { //=========Macro generated from canvas: c/c //========= (Fri Jan 18 19:15:55 2019) by ROOT version6.02/13 TCanvas *c = new TCanvas("c", "c",0,0,800,600); gStyle->SetOptStat(0); c->Range(-7.500001,-7820.432,67.5,70383.88); c->SetFillColor(0); c->SetBorderMode(0); c->SetBorderSize(2); c->SetFrameBorderMode(0); c->SetFrameBorderMode(0); TH1D *h_SL1L160 = new TH1D("h_SL1L160","SL1, run 7483",60,0,60); h_SL1L160->SetBinContent(1,12207.14); h_SL1L160->SetBinContent(2,11821.43); h_SL1L160->SetBinContent(3,11042.86); h_SL1L160->SetBinContent(4,10471.43); h_SL1L160->SetBinContent(5,8021.429); h_SL1L160->SetBinContent(6,9235.714); h_SL1L160->SetBinContent(7,8700); h_SL1L160->SetBinContent(8,9300); h_SL1L160->SetBinContent(9,8507.143); h_SL1L160->SetBinContent(10,8300); h_SL1L160->SetBinContent(11,9057.143); h_SL1L160->SetBinContent(12,8628.571); h_SL1L160->SetBinContent(13,13692.86); h_SL1L160->SetBinContent(14,14842.86); h_SL1L160->SetBinContent(15,14614.29); h_SL1L160->SetBinContent(16,7842.857); h_SL1L160->SetBinContent(17,6435.714); h_SL1L160->SetBinContent(18,7735.714); h_SL1L160->SetBinContent(19,7571.429); h_SL1L160->SetBinContent(20,7100); h_SL1L160->SetBinContent(21,6928.571); h_SL1L160->SetBinContent(22,7085.714); h_SL1L160->SetBinContent(23,6592.857); h_SL1L160->SetBinContent(24,5778.571); h_SL1L160->SetBinContent(25,5714.286); h_SL1L160->SetBinContent(26,6035.714); h_SL1L160->SetBinContent(27,5978.571); h_SL1L160->SetBinContent(28,5757.143); h_SL1L160->SetBinContent(29,5978.571); h_SL1L160->SetBinContent(30,6157.143); h_SL1L160->SetBinContent(31,5914.286); h_SL1L160->SetBinContent(32,5785.714); h_SL1L160->SetBinContent(33,24628.57); h_SL1L160->SetBinContent(34,25942.86); h_SL1L160->SetBinContent(35,24964.29); h_SL1L160->SetBinContent(36,24907.14); h_SL1L160->SetBinContent(37,26221.43); h_SL1L160->SetBinContent(38,26407.14); h_SL1L160->SetBinContent(39,24528.57); h_SL1L160->SetBinContent(41,5542.857); h_SL1L160->SetBinContent(42,6214.286); h_SL1L160->SetBinContent(43,6357.143); h_SL1L160->SetBinContent(44,5792.857); h_SL1L160->SetBinContent(45,5042.857); h_SL1L160->SetBinContent(46,4650); h_SL1L160->SetBinContent(47,4907.143); h_SL1L160->SetBinContent(48,4864.286); h_SL1L160->SetBinContent(49,5285.714); h_SL1L160->SetBinContent(50,5428.571); h_SL1L160->SetBinContent(51,5585.714); h_SL1L160->SetBinContent(52,5400); h_SL1L160->SetBinContent(53,5592.857); h_SL1L160->SetBinContent(54,5278.571); h_SL1L160->SetBinContent(55,5600); h_SL1L160->SetBinContent(56,6478.571); h_SL1L160->SetMaximum(62563.45); 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,35157.14); h_SL1L261->SetBinContent(2,35921.43); h_SL1L261->SetBinContent(3,37600); h_SL1L261->SetBinContent(4,39385.71); h_SL1L261->SetBinContent(5,39178.57); h_SL1L261->SetBinContent(6,40542.86); h_SL1L261->SetBinContent(7,40564.29); h_SL1L261->SetBinContent(8,41892.86); h_SL1L261->SetBinContent(9,41235.71); h_SL1L261->SetBinContent(10,40671.43); h_SL1L261->SetBinContent(11,41850); h_SL1L261->SetBinContent(12,41807.14); h_SL1L261->SetBinContent(13,42064.29); h_SL1L261->SetBinContent(14,43942.86); h_SL1L261->SetBinContent(15,43500); h_SL1L261->SetBinContent(16,41657.14); h_SL1L261->SetBinContent(17,43514.29); h_SL1L261->SetBinContent(18,45571.43); h_SL1L261->SetBinContent(19,46621.43); h_SL1L261->SetBinContent(20,46100); h_SL1L261->SetBinContent(21,47307.14); h_SL1L261->SetBinContent(22,46200); h_SL1L261->SetBinContent(23,44564.29); h_SL1L261->SetBinContent(24,43621.43); h_SL1L261->SetBinContent(25,44142.86); h_SL1L261->SetBinContent(26,41021.43); h_SL1L261->SetBinContent(27,40178.57); h_SL1L261->SetBinContent(28,43578.57); h_SL1L261->SetBinContent(29,45371.43); h_SL1L261->SetBinContent(30,45714.29); h_SL1L261->SetBinContent(31,45957.14); h_SL1L261->SetBinContent(32,43464.29); h_SL1L261->SetBinContent(33,42235.71); h_SL1L261->SetBinContent(34,43814.29); h_SL1L261->SetBinContent(35,43000); h_SL1L261->SetBinContent(36,42435.71); h_SL1L261->SetBinContent(37,45742.86); h_SL1L261->SetBinContent(38,46478.57); h_SL1L261->SetBinContent(39,45242.86); h_SL1L261->SetBinContent(40,42835.71); h_SL1L261->SetBinContent(41,44457.14); h_SL1L261->SetBinContent(42,45464.29); h_SL1L261->SetBinContent(43,44435.71); h_SL1L261->SetBinContent(44,41692.86); h_SL1L261->SetBinContent(45,41571.43); h_SL1L261->SetBinContent(46,42950); h_SL1L261->SetBinContent(47,41978.57); h_SL1L261->SetBinContent(48,41742.86); h_SL1L261->SetBinContent(49,45178.57); h_SL1L261->SetBinContent(50,43321.43); h_SL1L261->SetBinContent(51,42671.43); h_SL1L261->SetBinContent(52,42271.43); h_SL1L261->SetBinContent(53,43100); h_SL1L261->SetBinContent(54,43642.86); h_SL1L261->SetBinContent(55,42892.86); h_SL1L261->SetBinContent(56,41421.43); h_SL1L261->SetMaximum(54403.21); 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,34364.29); h_SL1L362->SetBinContent(2,36435.71); h_SL1L362->SetBinContent(3,38271.43); h_SL1L362->SetBinContent(4,37521.43); h_SL1L362->SetBinContent(5,38371.43); h_SL1L362->SetBinContent(6,39514.29); h_SL1L362->SetBinContent(7,40907.14); h_SL1L362->SetBinContent(8,41721.43); h_SL1L362->SetBinContent(9,40692.86); h_SL1L362->SetBinContent(10,39542.86); h_SL1L362->SetBinContent(11,41178.57); h_SL1L362->SetBinContent(12,42035.71); h_SL1L362->SetBinContent(13,41228.57); h_SL1L362->SetBinContent(14,43457.14); h_SL1L362->SetBinContent(15,45221.43); h_SL1L362->SetBinContent(16,41671.43); h_SL1L362->SetBinContent(17,43128.57); h_SL1L362->SetBinContent(18,45478.57); h_SL1L362->SetBinContent(19,44992.86); h_SL1L362->SetBinContent(20,45800); h_SL1L362->SetBinContent(21,45121.43); h_SL1L362->SetBinContent(22,43235.71); h_SL1L362->SetBinContent(23,42228.57); h_SL1L362->SetBinContent(24,43250); h_SL1L362->SetBinContent(25,41500); h_SL1L362->SetBinContent(26,40085.71); h_SL1L362->SetBinContent(27,40664.29); h_SL1L362->SetBinContent(28,44157.14); h_SL1L362->SetBinContent(29,45264.29); h_SL1L362->SetBinContent(30,43971.43); h_SL1L362->SetBinContent(31,43928.57); h_SL1L362->SetBinContent(32,41900); h_SL1L362->SetBinContent(33,42900); h_SL1L362->SetBinContent(34,42378.57); h_SL1L362->SetBinContent(35,41928.57); h_SL1L362->SetBinContent(36,43857.14); h_SL1L362->SetBinContent(37,47228.57); h_SL1L362->SetBinContent(38,45000); h_SL1L362->SetBinContent(39,42364.29); h_SL1L362->SetBinContent(40,43028.57); h_SL1L362->SetBinContent(41,45150); h_SL1L362->SetBinContent(42,44292.86); h_SL1L362->SetBinContent(43,41442.86); h_SL1L362->SetBinContent(44,41092.86); h_SL1L362->SetBinContent(45,41242.86); h_SL1L362->SetBinContent(46,41978.57); h_SL1L362->SetBinContent(47,42100); h_SL1L362->SetBinContent(48,42714.29); h_SL1L362->SetBinContent(49,43214.29); h_SL1L362->SetBinContent(50,42135.71); h_SL1L362->SetBinContent(51,42378.57); h_SL1L362->SetBinContent(52,41714.29); h_SL1L362->SetBinContent(53,42057.14); h_SL1L362->SetBinContent(54,41378.57); h_SL1L362->SetBinContent(55,41135.71); h_SL1L362->SetBinContent(56,41028.57); h_SL1L362->SetMaximum(54403.21); 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,31585.71); h_SL1L463->SetBinContent(3,32435.71); h_SL1L463->SetBinContent(4,31285.71); h_SL1L463->SetBinContent(5,30942.86); h_SL1L463->SetBinContent(6,31700); h_SL1L463->SetBinContent(7,31807.14); h_SL1L463->SetBinContent(8,33850); h_SL1L463->SetBinContent(9,33700); h_SL1L463->SetBinContent(10,34878.57); h_SL1L463->SetBinContent(11,36028.57); h_SL1L463->SetBinContent(12,36721.43); h_SL1L463->SetBinContent(13,37435.71); h_SL1L463->SetBinContent(14,46885.71); h_SL1L463->SetBinContent(15,45107.14); h_SL1L463->SetBinContent(16,42450); h_SL1L463->SetBinContent(17,35728.57); h_SL1L463->SetBinContent(18,37635.71); h_SL1L463->SetBinContent(19,36414.29); h_SL1L463->SetBinContent(20,37421.43); h_SL1L463->SetBinContent(21,37500); h_SL1L463->SetBinContent(22,34842.86); h_SL1L463->SetBinContent(23,33614.29); h_SL1L463->SetBinContent(24,34971.43); h_SL1L463->SetBinContent(25,31557.14); h_SL1L463->SetBinContent(26,30371.43); h_SL1L463->SetBinContent(27,30135.71); h_SL1L463->SetBinContent(28,32307.14); h_SL1L463->SetBinContent(29,31650); h_SL1L463->SetBinContent(30,33371.43); h_SL1L463->SetBinContent(31,31628.57); h_SL1L463->SetBinContent(32,30221.43); h_SL1L463->SetBinContent(33,28300); h_SL1L463->SetBinContent(34,32214.29); h_SL1L463->SetBinContent(35,33257.14); h_SL1L463->SetBinContent(36,30064.29); h_SL1L463->SetBinContent(37,8300); h_SL1L463->SetBinContent(38,28.57143); h_SL1L463->SetBinContent(41,26828.57); h_SL1L463->SetBinContent(42,29100); h_SL1L463->SetBinContent(43,28992.86); h_SL1L463->SetBinContent(44,26885.71); h_SL1L463->SetBinContent(45,25057.14); h_SL1L463->SetBinContent(46,27200); h_SL1L463->SetBinContent(47,26135.71); h_SL1L463->SetBinContent(48,24685.71); h_SL1L463->SetBinContent(49,24050); h_SL1L463->SetBinContent(50,26057.14); h_SL1L463->SetBinContent(51,24835.71); h_SL1L463->SetBinContent(52,26442.86); h_SL1L463->SetBinContent(53,26150); h_SL1L463->SetBinContent(54,25171.43); h_SL1L463->SetBinContent(56,26028.57); h_SL1L463->SetMaximum(54403.21); 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 7483"); pt->Draw(); c->Modified(); c->cd(); c->SetSelected(c); }