void RatesPerCell_Removing_noisy_cells_run_6262_SL1() { //=========Macro generated from canvas: c/c //========= (Sun Jan 13 15:22:03 2019) by ROOT version6.02/13 TCanvas *c = new TCanvas("c", "c",0,0,800,600); gStyle->SetOptStat(0); c->Range(-7.500001,-38472.82,67.5,346255.4); c->SetFillColor(0); c->SetBorderMode(0); c->SetBorderSize(2); c->SetFrameBorderMode(0); c->SetFrameBorderMode(0); TH1D *h_SL1L160 = new TH1D("h_SL1L160","SL1, run 6262",60,0,60); h_SL1L160->SetBinContent(1,123635.7); h_SL1L160->SetBinContent(2,127828.6); h_SL1L160->SetBinContent(3,130778.6); h_SL1L160->SetBinContent(4,120100); h_SL1L160->SetBinContent(5,98992.86); h_SL1L160->SetBinContent(6,103792.9); h_SL1L160->SetBinContent(7,103978.6); h_SL1L160->SetBinContent(8,110192.9); h_SL1L160->SetBinContent(9,106850); h_SL1L160->SetBinContent(10,109321.4); h_SL1L160->SetBinContent(11,110514.3); h_SL1L160->SetBinContent(12,103914.3); h_SL1L160->SetBinContent(13,100271.4); h_SL1L160->SetBinContent(14,89121.43); h_SL1L160->SetBinContent(15,80971.43); h_SL1L160->SetBinContent(16,80400); h_SL1L160->SetBinContent(17,80171.43); h_SL1L160->SetBinContent(18,82864.28); h_SL1L160->SetBinContent(19,84707.14); h_SL1L160->SetBinContent(20,80342.86); h_SL1L160->SetBinContent(21,82435.71); h_SL1L160->SetBinContent(22,81171.43); h_SL1L160->SetBinContent(23,74964.28); h_SL1L160->SetBinContent(24,66792.86); h_SL1L160->SetBinContent(25,62457.14); h_SL1L160->SetBinContent(26,65107.14); h_SL1L160->SetBinContent(27,63800); h_SL1L160->SetBinContent(28,67000); h_SL1L160->SetBinContent(29,69492.86); h_SL1L160->SetBinContent(30,65264.29); h_SL1L160->SetBinContent(31,64664.29); h_SL1L160->SetBinContent(32,60157.14); h_SL1L160->SetBinContent(33,7307.143); h_SL1L160->SetBinContent(34,6778.571); h_SL1L160->SetBinContent(35,7021.429); h_SL1L160->SetBinContent(36,6550); h_SL1L160->SetBinContent(37,6878.571); h_SL1L160->SetBinContent(38,7500); h_SL1L160->SetBinContent(39,7285.714); h_SL1L160->SetBinContent(40,6557.143); h_SL1L160->SetBinContent(41,7185.714); h_SL1L160->SetBinContent(42,7164.286); h_SL1L160->SetBinContent(43,7107.143); h_SL1L160->SetBinContent(44,7335.714); h_SL1L160->SetBinContent(45,7192.857); h_SL1L160->SetBinContent(46,6692.857); h_SL1L160->SetBinContent(47,6435.714); h_SL1L160->SetBinContent(48,6728.571); h_SL1L160->SetBinContent(49,62428.57); h_SL1L160->SetBinContent(50,67692.86); h_SL1L160->SetBinContent(51,71214.28); h_SL1L160->SetBinContent(52,69864.28); h_SL1L160->SetBinContent(53,69200); h_SL1L160->SetBinContent(54,66535.71); h_SL1L160->SetBinContent(55,70150); h_SL1L160->SetBinContent(56,80457.14); h_SL1L160->SetBinContent(57,106857.1); h_SL1L160->SetBinContent(58,126114.3); h_SL1L160->SetBinContent(59,138607.1); h_SL1L160->SetMaximum(307782.5); 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,181228.6); h_SL1L261->SetBinContent(2,187150); h_SL1L261->SetBinContent(3,194014.3); h_SL1L261->SetBinContent(4,200628.6); h_SL1L261->SetBinContent(5,200578.6); h_SL1L261->SetBinContent(6,210792.9); h_SL1L261->SetBinContent(7,210957.1); h_SL1L261->SetBinContent(8,222085.7); h_SL1L261->SetBinContent(9,223692.9); h_SL1L261->SetBinContent(10,213600); h_SL1L261->SetBinContent(11,229392.9); h_SL1L261->SetBinContent(12,232514.3); h_SL1L261->SetBinContent(13,228750); h_SL1L261->SetBinContent(14,230407.1); h_SL1L261->SetBinContent(15,230221.4); h_SL1L261->SetBinContent(16,212557.1); h_SL1L261->SetBinContent(17,209042.9); h_SL1L261->SetBinContent(18,222000); h_SL1L261->SetBinContent(19,224692.9); h_SL1L261->SetBinContent(20,220242.9); h_SL1L261->SetBinContent(21,222550); h_SL1L261->SetBinContent(22,220585.7); h_SL1L261->SetBinContent(23,215500); h_SL1L261->SetBinContent(24,208071.4); h_SL1L261->SetBinContent(25,206750); h_SL1L261->SetBinContent(26,189128.6); h_SL1L261->SetBinContent(27,191028.6); h_SL1L261->SetBinContent(28,202321.4); h_SL1L261->SetBinContent(29,221642.9); h_SL1L261->SetBinContent(30,226885.7); h_SL1L261->SetBinContent(31,226850); h_SL1L261->SetBinContent(32,228392.9); h_SL1L261->SetBinContent(33,25642.86); h_SL1L261->SetBinContent(34,24892.86); h_SL1L261->SetBinContent(35,23964.29); h_SL1L261->SetBinContent(36,23450); h_SL1L261->SetBinContent(37,22385.71); h_SL1L261->SetBinContent(38,22050); h_SL1L261->SetBinContent(39,23257.14); h_SL1L261->SetBinContent(40,24342.86); h_SL1L261->SetBinContent(41,23928.57); h_SL1L261->SetBinContent(42,24392.86); h_SL1L261->SetBinContent(43,25514.29); h_SL1L261->SetBinContent(44,25578.57); h_SL1L261->SetBinContent(45,25035.71); h_SL1L261->SetBinContent(46,25378.57); h_SL1L261->SetBinContent(47,25085.71); h_SL1L261->SetBinContent(48,25042.86); h_SL1L261->SetBinContent(49,224292.9); h_SL1L261->SetBinContent(50,232728.6); h_SL1L261->SetBinContent(51,224200); h_SL1L261->SetBinContent(52,223192.9); h_SL1L261->SetBinContent(53,229064.3); h_SL1L261->SetBinContent(54,222100); h_SL1L261->SetBinContent(55,227771.4); h_SL1L261->SetBinContent(56,223950); h_SL1L261->SetBinContent(57,221385.7); h_SL1L261->SetBinContent(58,228857.1); h_SL1L261->SetBinContent(59,225278.6); h_SL1L261->SetMaximum(267637.8); 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,168250); h_SL1L362->SetBinContent(2,174414.3); h_SL1L362->SetBinContent(3,181107.1); h_SL1L362->SetBinContent(4,186521.4); h_SL1L362->SetBinContent(5,190135.7); h_SL1L362->SetBinContent(6,193750); h_SL1L362->SetBinContent(7,201100); h_SL1L362->SetBinContent(8,206050); h_SL1L362->SetBinContent(9,195492.9); h_SL1L362->SetBinContent(10,205185.7); h_SL1L362->SetBinContent(11,209192.9); h_SL1L362->SetBinContent(12,214900); h_SL1L362->SetBinContent(13,210692.9); h_SL1L362->SetBinContent(14,208221.4); h_SL1L362->SetBinContent(15,196421.4); h_SL1L362->SetBinContent(16,193792.9); h_SL1L362->SetBinContent(17,194521.4); h_SL1L362->SetBinContent(18,201592.9); h_SL1L362->SetBinContent(19,200992.9); h_SL1L362->SetBinContent(20,202778.6); h_SL1L362->SetBinContent(21,204121.4); h_SL1L362->SetBinContent(22,197692.9); h_SL1L362->SetBinContent(23,192042.9); h_SL1L362->SetBinContent(24,190321.4); h_SL1L362->SetBinContent(25,178064.3); h_SL1L362->SetBinContent(26,173442.9); h_SL1L362->SetBinContent(27,183407.1); h_SL1L362->SetBinContent(28,197814.3); h_SL1L362->SetBinContent(29,205885.7); h_SL1L362->SetBinContent(30,207285.7); h_SL1L362->SetBinContent(31,207864.3); h_SL1L362->SetBinContent(32,209300); h_SL1L362->SetBinContent(33,22992.86); h_SL1L362->SetBinContent(34,22607.14); h_SL1L362->SetBinContent(35,22028.57); h_SL1L362->SetBinContent(36,20728.57); h_SL1L362->SetBinContent(37,20571.43); h_SL1L362->SetBinContent(38,21521.43); h_SL1L362->SetBinContent(39,22014.29); h_SL1L362->SetBinContent(40,21385.71); h_SL1L362->SetBinContent(41,23321.43); h_SL1L362->SetBinContent(42,24307.14); h_SL1L362->SetBinContent(43,23692.86); h_SL1L362->SetBinContent(44,24200); h_SL1L362->SetBinContent(45,22378.57); h_SL1L362->SetBinContent(46,22385.71); h_SL1L362->SetBinContent(47,22700); h_SL1L362->SetBinContent(48,21771.43); h_SL1L362->SetBinContent(49,209871.4); h_SL1L362->SetBinContent(50,205657.1); h_SL1L362->SetBinContent(51,201871.4); h_SL1L362->SetBinContent(52,206750); h_SL1L362->SetBinContent(53,200735.7); h_SL1L362->SetBinContent(54,201207.1); h_SL1L362->SetBinContent(55,202150); h_SL1L362->SetBinContent(56,199950); h_SL1L362->SetBinContent(57,207385.7); h_SL1L362->SetBinContent(58,205242.9); h_SL1L362->SetBinContent(59,205757.1); h_SL1L362->SetMaximum(267637.8); 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,112857.1); h_SL1L463->SetBinContent(3,101542.9); h_SL1L463->SetBinContent(4,95171.43); h_SL1L463->SetBinContent(5,89914.28); h_SL1L463->SetBinContent(6,88407.14); h_SL1L463->SetBinContent(7,85314.28); h_SL1L463->SetBinContent(8,93792.86); h_SL1L463->SetBinContent(9,101728.6); h_SL1L463->SetBinContent(10,120707.1); h_SL1L463->SetBinContent(11,137028.6); h_SL1L463->SetBinContent(12,143742.9); h_SL1L463->SetBinContent(13,145528.6); h_SL1L463->SetBinContent(14,148107.1); h_SL1L463->SetBinContent(15,135457.1); h_SL1L463->SetBinContent(16,122242.9); h_SL1L463->SetBinContent(17,111935.7); h_SL1L463->SetBinContent(18,111985.7); h_SL1L463->SetBinContent(19,107571.4); h_SL1L463->SetBinContent(20,102385.7); h_SL1L463->SetBinContent(21,101321.4); h_SL1L463->SetBinContent(22,99885.71); h_SL1L463->SetBinContent(23,94507.14); h_SL1L463->SetBinContent(24,93157.14); h_SL1L463->SetBinContent(25,84242.86); h_SL1L463->SetBinContent(26,83928.57); h_SL1L463->SetBinContent(27,82450); h_SL1L463->SetBinContent(28,88292.86); h_SL1L463->SetBinContent(29,84864.28); h_SL1L463->SetBinContent(30,86650); h_SL1L463->SetBinContent(31,83271.43); h_SL1L463->SetBinContent(32,78535.71); h_SL1L463->SetBinContent(33,8064.286); h_SL1L463->SetBinContent(34,7814.286); h_SL1L463->SetBinContent(35,7700); h_SL1L463->SetBinContent(36,6350); h_SL1L463->SetBinContent(37,5192.857); h_SL1L463->SetBinContent(38,5964.286); h_SL1L463->SetBinContent(39,6621.429); h_SL1L463->SetBinContent(40,5742.857); h_SL1L463->SetBinContent(41,5392.857); h_SL1L463->SetBinContent(42,6114.286); h_SL1L463->SetBinContent(43,5842.857); h_SL1L463->SetBinContent(44,6350); h_SL1L463->SetBinContent(45,5185.714); h_SL1L463->SetBinContent(46,5257.143); h_SL1L463->SetBinContent(47,5264.286); h_SL1L463->SetBinContent(48,5178.571); h_SL1L463->SetBinContent(49,46235.71); h_SL1L463->SetBinContent(50,49785.71); h_SL1L463->SetBinContent(51,50978.57); h_SL1L463->SetBinContent(52,54442.86); h_SL1L463->SetBinContent(53,52528.57); h_SL1L463->SetBinContent(54,53735.71); h_SL1L463->SetBinContent(55,21.42857); h_SL1L463->SetBinContent(56,64685.71); h_SL1L463->SetBinContent(57,78842.86); h_SL1L463->SetBinContent(58,111371.4); h_SL1L463->SetBinContent(59,124421.4); h_SL1L463->SetMaximum(267637.8); 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 6262"); pt->Draw(); c->Modified(); c->cd(); c->SetSelected(c); }