void RatesPerCell_Removing_noisy_cells_run_7548_SL1() { //=========Macro generated from canvas: c/c //========= (Fri Dec 21 17:19:01 2018) by ROOT version6.02/13 TCanvas *c = new TCanvas("c", "c",0,0,800,600); gStyle->SetOptStat(0); c->Range(-7.500001,-7823.882,67.5,70414.93); c->SetFillColor(0); c->SetBorderMode(0); c->SetBorderSize(2); c->SetFrameBorderMode(0); c->SetFrameBorderMode(0); TH1D *h_SL1L160 = new TH1D("h_SL1L160","SL1, run 7548",60,0,60); h_SL1L160->SetBinContent(1,28164.29); h_SL1L160->SetBinContent(2,29071.43); h_SL1L160->SetBinContent(3,28357.14); h_SL1L160->SetBinContent(4,25657.14); h_SL1L160->SetBinContent(5,22135.71); h_SL1L160->SetBinContent(6,23985.71); h_SL1L160->SetBinContent(7,23050); h_SL1L160->SetBinContent(8,25028.57); h_SL1L160->SetBinContent(9,24307.14); h_SL1L160->SetBinContent(10,24292.86); h_SL1L160->SetBinContent(11,25071.43); h_SL1L160->SetBinContent(12,22928.57); h_SL1L160->SetBinContent(13,23557.14); h_SL1L160->SetBinContent(14,36928.57); h_SL1L160->SetBinContent(15,34228.57); h_SL1L160->SetBinContent(16,21157.14); h_SL1L160->SetBinContent(17,18907.14); h_SL1L160->SetBinContent(18,20650); h_SL1L160->SetBinContent(19,21307.14); h_SL1L160->SetBinContent(20,21742.86); h_SL1L160->SetBinContent(21,20178.57); h_SL1L160->SetBinContent(22,20950); h_SL1L160->SetBinContent(23,18785.71); h_SL1L160->SetBinContent(24,16785.71); h_SL1L160->SetBinContent(25,15664.29); h_SL1L160->SetBinContent(26,17300); h_SL1L160->SetBinContent(27,16542.86); h_SL1L160->SetBinContent(28,16814.29); h_SL1L160->SetBinContent(29,18607.14); h_SL1L160->SetBinContent(30,16271.43); h_SL1L160->SetBinContent(31,15385.71); h_SL1L160->SetBinContent(32,14328.57); h_SL1L160->SetBinContent(33,41164.29); h_SL1L160->SetBinContent(34,41728.57); h_SL1L160->SetBinContent(35,42050); h_SL1L160->SetBinContent(36,42578.57); h_SL1L160->SetBinContent(37,43971.43); h_SL1L160->SetBinContent(38,42864.29); h_SL1L160->SetBinContent(39,41871.43); h_SL1L160->SetBinContent(41,14764.29); h_SL1L160->SetBinContent(42,15171.43); h_SL1L160->SetBinContent(43,14735.71); h_SL1L160->SetBinContent(44,14114.29); h_SL1L160->SetBinContent(45,13671.43); h_SL1L160->SetBinContent(46,13307.14); h_SL1L160->SetBinContent(47,12571.43); h_SL1L160->SetBinContent(48,12714.29); h_SL1L160->SetBinContent(49,13971.43); h_SL1L160->SetBinContent(50,14814.29); h_SL1L160->SetBinContent(51,15078.57); h_SL1L160->SetBinContent(52,15214.29); h_SL1L160->SetBinContent(53,14935.71); h_SL1L160->SetBinContent(54,14978.57); h_SL1L160->SetBinContent(55,14492.86); h_SL1L160->SetBinContent(56,16764.29); h_SL1L160->SetMaximum(62591.05); 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,36064.29); h_SL1L261->SetBinContent(2,36135.71); h_SL1L261->SetBinContent(3,37585.71); h_SL1L261->SetBinContent(4,39142.86); h_SL1L261->SetBinContent(5,39128.57); h_SL1L261->SetBinContent(6,38985.71); h_SL1L261->SetBinContent(7,39942.86); h_SL1L261->SetBinContent(8,42185.71); h_SL1L261->SetBinContent(9,42464.29); h_SL1L261->SetBinContent(10,40107.14); h_SL1L261->SetBinContent(11,42300); h_SL1L261->SetBinContent(12,42164.29); h_SL1L261->SetBinContent(13,42200); h_SL1L261->SetBinContent(14,41985.71); h_SL1L261->SetBinContent(15,42492.86); h_SL1L261->SetBinContent(16,41421.43); h_SL1L261->SetBinContent(17,42657.14); h_SL1L261->SetBinContent(18,45514.29); h_SL1L261->SetBinContent(19,45021.43); h_SL1L261->SetBinContent(20,45292.86); h_SL1L261->SetBinContent(21,45185.71); h_SL1L261->SetBinContent(22,43371.43); h_SL1L261->SetBinContent(23,42900); h_SL1L261->SetBinContent(24,41828.57); h_SL1L261->SetBinContent(25,43021.43); h_SL1L261->SetBinContent(26,38950); h_SL1L261->SetBinContent(27,39021.43); h_SL1L261->SetBinContent(28,41964.29); h_SL1L261->SetBinContent(29,44135.71); h_SL1L261->SetBinContent(30,44050); h_SL1L261->SetBinContent(31,44035.71); h_SL1L261->SetBinContent(32,43014.29); h_SL1L261->SetBinContent(33,42071.43); h_SL1L261->SetBinContent(34,43042.86); h_SL1L261->SetBinContent(35,40142.86); h_SL1L261->SetBinContent(36,41935.71); h_SL1L261->SetBinContent(37,44514.29); h_SL1L261->SetBinContent(38,45614.29); h_SL1L261->SetBinContent(39,44564.29); h_SL1L261->SetBinContent(40,42257.14); h_SL1L261->SetBinContent(41,43078.57); h_SL1L261->SetBinContent(42,42950); h_SL1L261->SetBinContent(43,41264.29); h_SL1L261->SetBinContent(44,41250); h_SL1L261->SetBinContent(45,41257.14); h_SL1L261->SetBinContent(46,42557.14); h_SL1L261->SetBinContent(47,42328.57); h_SL1L261->SetBinContent(48,42157.14); h_SL1L261->SetBinContent(49,42378.57); h_SL1L261->SetBinContent(50,43714.29); h_SL1L261->SetBinContent(51,41742.86); h_SL1L261->SetBinContent(52,41878.57); h_SL1L261->SetBinContent(53,42357.14); h_SL1L261->SetBinContent(54,41807.14); h_SL1L261->SetBinContent(55,43000); h_SL1L261->SetBinContent(56,41050); h_SL1L261->SetMaximum(54427.86); 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,35050); h_SL1L362->SetBinContent(2,36035.71); h_SL1L362->SetBinContent(3,37085.71); h_SL1L362->SetBinContent(4,37500); h_SL1L362->SetBinContent(5,39035.71); h_SL1L362->SetBinContent(6,38614.29); h_SL1L362->SetBinContent(7,40207.14); h_SL1L362->SetBinContent(8,41100); h_SL1L362->SetBinContent(9,39285.71); h_SL1L362->SetBinContent(10,40678.57); h_SL1L362->SetBinContent(11,40042.86); h_SL1L362->SetBinContent(12,42250); h_SL1L362->SetBinContent(13,41100); h_SL1L362->SetBinContent(14,41042.86); h_SL1L362->SetBinContent(15,41314.29); h_SL1L362->SetBinContent(16,40714.29); h_SL1L362->SetBinContent(17,41785.71); h_SL1L362->SetBinContent(18,45192.86); h_SL1L362->SetBinContent(19,42742.86); h_SL1L362->SetBinContent(20,45992.86); h_SL1L362->SetBinContent(21,44100); h_SL1L362->SetBinContent(22,41642.86); h_SL1L362->SetBinContent(23,40535.71); h_SL1L362->SetBinContent(24,42878.57); h_SL1L362->SetBinContent(25,40800); h_SL1L362->SetBinContent(26,38100); h_SL1L362->SetBinContent(27,39771.43); h_SL1L362->SetBinContent(28,43107.14); h_SL1L362->SetBinContent(29,42657.14); h_SL1L362->SetBinContent(30,42707.14); h_SL1L362->SetBinContent(31,42871.43); h_SL1L362->SetBinContent(32,42064.29); h_SL1L362->SetBinContent(33,41685.71); h_SL1L362->SetBinContent(34,40292.86); h_SL1L362->SetBinContent(35,39578.57); h_SL1L362->SetBinContent(36,41578.57); h_SL1L362->SetBinContent(37,42614.29); h_SL1L362->SetBinContent(38,43935.71); h_SL1L362->SetBinContent(39,42271.43); h_SL1L362->SetBinContent(40,42878.57); h_SL1L362->SetBinContent(41,41557.14); h_SL1L362->SetBinContent(42,42628.57); h_SL1L362->SetBinContent(43,41014.29); h_SL1L362->SetBinContent(44,40864.29); h_SL1L362->SetBinContent(45,41085.71); h_SL1L362->SetBinContent(46,40714.29); h_SL1L362->SetBinContent(47,39992.86); h_SL1L362->SetBinContent(48,41557.14); h_SL1L362->SetBinContent(49,41921.43); h_SL1L362->SetBinContent(50,41978.57); h_SL1L362->SetBinContent(51,41107.14); h_SL1L362->SetBinContent(52,41142.86); h_SL1L362->SetBinContent(53,41257.14); h_SL1L362->SetBinContent(54,40607.14); h_SL1L362->SetBinContent(55,40650); h_SL1L362->SetBinContent(56,40121.43); h_SL1L362->SetMaximum(54427.86); 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,24578.57); h_SL1L463->SetBinContent(3,21157.14); h_SL1L463->SetBinContent(4,21171.43); h_SL1L463->SetBinContent(5,20500); h_SL1L463->SetBinContent(6,20428.57); h_SL1L463->SetBinContent(7,19685.71); h_SL1L463->SetBinContent(8,22250); h_SL1L463->SetBinContent(9,22078.57); h_SL1L463->SetBinContent(10,24614.29); h_SL1L463->SetBinContent(11,26700); h_SL1L463->SetBinContent(12,28557.14); h_SL1L463->SetBinContent(13,27435.71); h_SL1L463->SetBinContent(14,28785.71); h_SL1L463->SetBinContent(15,47328.57); h_SL1L463->SetBinContent(16,32542.86); h_SL1L463->SetBinContent(17,25028.57); h_SL1L463->SetBinContent(18,24521.43); h_SL1L463->SetBinContent(19,23592.86); h_SL1L463->SetBinContent(20,23614.29); h_SL1L463->SetBinContent(21,22828.57); h_SL1L463->SetBinContent(22,22835.71); h_SL1L463->SetBinContent(23,21300); h_SL1L463->SetBinContent(24,21992.86); h_SL1L463->SetBinContent(25,18550); h_SL1L463->SetBinContent(26,19085.71); h_SL1L463->SetBinContent(27,17878.57); h_SL1L463->SetBinContent(28,18964.29); h_SL1L463->SetBinContent(29,18500); h_SL1L463->SetBinContent(30,19007.14); h_SL1L463->SetBinContent(31,18157.14); h_SL1L463->SetBinContent(32,16964.29); h_SL1L463->SetBinContent(33,15821.43); h_SL1L463->SetBinContent(34,18800); h_SL1L463->SetBinContent(35,18250); h_SL1L463->SetBinContent(36,16271.43); h_SL1L463->SetBinContent(37,2735.714); h_SL1L463->SetBinContent(38,35.71429); h_SL1L463->SetBinContent(41,15014.29); h_SL1L463->SetBinContent(42,14742.86); h_SL1L463->SetBinContent(43,15128.57); h_SL1L463->SetBinContent(44,14385.71); h_SL1L463->SetBinContent(45,13407.14); h_SL1L463->SetBinContent(46,14850); h_SL1L463->SetBinContent(47,14100); h_SL1L463->SetBinContent(48,13621.43); h_SL1L463->SetBinContent(49,12721.43); h_SL1L463->SetBinContent(50,13807.14); h_SL1L463->SetBinContent(51,14742.86); h_SL1L463->SetBinContent(52,14421.43); h_SL1L463->SetBinContent(53,14357.14); h_SL1L463->SetBinContent(54,13564.29); h_SL1L463->SetBinContent(55,7.142857); h_SL1L463->SetBinContent(56,14871.43); h_SL1L463->SetMaximum(54427.86); 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 7548"); pt->Draw(); c->Modified(); c->cd(); c->SetSelected(c); }