void RatesPerCell_Removing_noisy_cells_run_6392_SL1() { //=========Macro generated from canvas: c/c //========= (Sun Jan 13 15:42:20 2019) by ROOT version6.02/13 TCanvas *c = new TCanvas("c", "c",0,0,800,600); gStyle->SetOptStat(0); c->Range(-7.500001,-5685.457,67.5,51169.11); c->SetFillColor(0); c->SetBorderMode(0); c->SetBorderSize(2); c->SetFrameBorderMode(0); c->SetFrameBorderMode(0); TH1D *h_SL1L160 = new TH1D("h_SL1L160","SL1, run 6392",60,0,60); h_SL1L160->SetBinContent(1,22157.14); h_SL1L160->SetBinContent(2,23628.57); h_SL1L160->SetBinContent(3,24085.71); h_SL1L160->SetBinContent(4,23396.43); h_SL1L160->SetBinContent(5,22496.43); h_SL1L160->SetBinContent(6,23571.43); h_SL1L160->SetBinContent(7,23242.86); h_SL1L160->SetBinContent(8,24882.14); h_SL1L160->SetBinContent(9,24164.29); h_SL1L160->SetBinContent(10,25007.14); h_SL1L160->SetBinContent(11,24653.57); h_SL1L160->SetBinContent(12,24225); h_SL1L160->SetBinContent(13,24953.57); h_SL1L160->SetBinContent(14,23600); h_SL1L160->SetBinContent(15,20610.71); h_SL1L160->SetBinContent(16,20364.29); h_SL1L160->SetBinContent(17,19314.29); h_SL1L160->SetBinContent(18,20353.57); h_SL1L160->SetBinContent(19,20710.71); h_SL1L160->SetBinContent(20,20814.29); h_SL1L160->SetBinContent(21,20671.43); h_SL1L160->SetBinContent(22,20635.71); h_SL1L160->SetBinContent(23,19917.86); h_SL1L160->SetBinContent(24,18378.57); h_SL1L160->SetBinContent(25,17989.29); h_SL1L160->SetBinContent(26,18421.43); h_SL1L160->SetBinContent(27,17639.29); h_SL1L160->SetBinContent(28,18525); h_SL1L160->SetBinContent(29,19625); h_SL1L160->SetBinContent(30,18239.29); h_SL1L160->SetBinContent(31,18242.86); h_SL1L160->SetBinContent(32,17625); h_SL1L160->SetBinContent(33,19021.43); h_SL1L160->SetBinContent(34,18453.57); h_SL1L160->SetBinContent(35,18350); h_SL1L160->SetBinContent(36,18050); h_SL1L160->SetBinContent(37,18039.29); h_SL1L160->SetBinContent(38,19139.29); h_SL1L160->SetBinContent(39,18664.29); h_SL1L160->SetBinContent(40,17046.43); h_SL1L160->SetBinContent(41,18371.43); h_SL1L160->SetBinContent(42,17957.14); h_SL1L160->SetBinContent(43,17853.57); h_SL1L160->SetBinContent(44,18178.57); h_SL1L160->SetBinContent(45,17010.71); h_SL1L160->SetBinContent(46,16864.29); h_SL1L160->SetBinContent(47,16278.57); h_SL1L160->SetBinContent(48,16307.14); h_SL1L160->SetBinContent(49,16239.29); h_SL1L160->SetBinContent(50,17032.14); h_SL1L160->SetBinContent(51,17275); h_SL1L160->SetBinContent(52,16471.43); h_SL1L160->SetBinContent(53,16339.29); h_SL1L160->SetBinContent(54,15942.86); h_SL1L160->SetBinContent(55,15839.29); h_SL1L160->SetBinContent(56,16978.57); h_SL1L160->SetBinContent(57,20650); h_SL1L160->SetBinContent(58,21764.29); h_SL1L160->SetBinContent(59,22025); h_SL1L160->SetMaximum(45483.65); 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,23978.57); h_SL1L261->SetBinContent(2,25467.86); h_SL1L261->SetBinContent(3,27517.86); h_SL1L261->SetBinContent(4,28957.14); h_SL1L261->SetBinContent(5,29442.86); h_SL1L261->SetBinContent(6,30828.57); h_SL1L261->SetBinContent(7,31196.43); h_SL1L261->SetBinContent(8,31857.14); h_SL1L261->SetBinContent(9,32171.43); h_SL1L261->SetBinContent(10,31628.57); h_SL1L261->SetBinContent(11,32303.57); h_SL1L261->SetBinContent(12,33025); h_SL1L261->SetBinContent(13,33382.14); h_SL1L261->SetBinContent(14,34392.86); h_SL1L261->SetBinContent(15,32589.29); h_SL1L261->SetBinContent(16,30617.86); h_SL1L261->SetBinContent(17,30450); h_SL1L261->SetBinContent(18,32157.14); h_SL1L261->SetBinContent(19,31564.29); h_SL1L261->SetBinContent(20,31821.43); h_SL1L261->SetBinContent(21,32896.43); h_SL1L261->SetBinContent(22,32939.29); h_SL1L261->SetBinContent(23,32025); h_SL1L261->SetBinContent(24,31835.71); h_SL1L261->SetBinContent(25,32042.86); h_SL1L261->SetBinContent(26,30317.86); h_SL1L261->SetBinContent(27,29160.71); h_SL1L261->SetBinContent(28,31567.86); h_SL1L261->SetBinContent(29,33603.57); h_SL1L261->SetBinContent(30,32732.14); h_SL1L261->SetBinContent(31,33264.29); h_SL1L261->SetBinContent(32,33550); h_SL1L261->SetBinContent(33,33628.57); h_SL1L261->SetBinContent(34,34103.57); h_SL1L261->SetBinContent(35,32275); h_SL1L261->SetBinContent(36,32025); h_SL1L261->SetBinContent(37,32417.86); h_SL1L261->SetBinContent(38,32614.29); h_SL1L261->SetBinContent(39,32885.71); h_SL1L261->SetBinContent(40,31821.43); h_SL1L261->SetBinContent(41,32832.14); h_SL1L261->SetBinContent(42,32785.71); h_SL1L261->SetBinContent(43,32239.29); h_SL1L261->SetBinContent(44,32682.14); h_SL1L261->SetBinContent(45,31707.14); h_SL1L261->SetBinContent(46,32510.71); h_SL1L261->SetBinContent(47,30689.29); h_SL1L261->SetBinContent(48,30603.57); h_SL1L261->SetBinContent(49,30932.14); h_SL1L261->SetBinContent(50,31457.14); h_SL1L261->SetBinContent(51,30703.57); h_SL1L261->SetBinContent(52,30150); h_SL1L261->SetBinContent(53,30953.57); h_SL1L261->SetBinContent(54,30167.86); h_SL1L261->SetBinContent(55,29650); h_SL1L261->SetBinContent(56,29600); h_SL1L261->SetBinContent(57,29575); h_SL1L261->SetBinContent(58,28882.14); h_SL1L261->SetBinContent(59,27617.86); h_SL1L261->SetMaximum(39551.78); 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,24032.14); h_SL1L362->SetBinContent(2,25710.71); h_SL1L362->SetBinContent(3,27046.43); h_SL1L362->SetBinContent(4,28450); h_SL1L362->SetBinContent(5,29700); h_SL1L362->SetBinContent(6,30289.29); h_SL1L362->SetBinContent(7,30682.14); h_SL1L362->SetBinContent(8,31932.14); h_SL1L362->SetBinContent(9,31407.14); h_SL1L362->SetBinContent(10,31392.86); h_SL1L362->SetBinContent(11,32085.71); h_SL1L362->SetBinContent(12,32678.57); h_SL1L362->SetBinContent(13,32692.86); h_SL1L362->SetBinContent(14,32578.57); h_SL1L362->SetBinContent(15,30332.14); h_SL1L362->SetBinContent(16,30182.14); h_SL1L362->SetBinContent(17,30110.71); h_SL1L362->SetBinContent(18,31303.57); h_SL1L362->SetBinContent(19,31075); h_SL1L362->SetBinContent(20,31989.29); h_SL1L362->SetBinContent(21,32142.86); h_SL1L362->SetBinContent(22,31528.57); h_SL1L362->SetBinContent(23,30910.71); h_SL1L362->SetBinContent(24,31185.71); h_SL1L362->SetBinContent(25,30378.57); h_SL1L362->SetBinContent(26,29132.14); h_SL1L362->SetBinContent(27,29992.86); h_SL1L362->SetBinContent(28,32421.43); h_SL1L362->SetBinContent(29,33460.71); h_SL1L362->SetBinContent(30,32875); h_SL1L362->SetBinContent(31,32753.57); h_SL1L362->SetBinContent(32,33371.43); h_SL1L362->SetBinContent(33,33121.43); h_SL1L362->SetBinContent(34,32000); h_SL1L362->SetBinContent(35,31807.14); h_SL1L362->SetBinContent(36,32042.86); h_SL1L362->SetBinContent(37,32582.14); h_SL1L362->SetBinContent(38,31732.14); h_SL1L362->SetBinContent(39,31817.86); h_SL1L362->SetBinContent(40,31314.29); h_SL1L362->SetBinContent(41,32289.29); h_SL1L362->SetBinContent(42,32167.86); h_SL1L362->SetBinContent(43,31603.57); h_SL1L362->SetBinContent(44,31553.57); h_SL1L362->SetBinContent(45,31507.14); h_SL1L362->SetBinContent(46,30942.86); h_SL1L362->SetBinContent(47,30150); h_SL1L362->SetBinContent(48,30332.14); h_SL1L362->SetBinContent(49,30253.57); h_SL1L362->SetBinContent(50,30375); h_SL1L362->SetBinContent(51,29792.86); h_SL1L362->SetBinContent(52,30582.14); h_SL1L362->SetBinContent(53,29721.43); h_SL1L362->SetBinContent(54,29014.29); h_SL1L362->SetBinContent(55,28864.29); h_SL1L362->SetBinContent(56,29028.57); h_SL1L362->SetBinContent(57,28550); h_SL1L362->SetBinContent(58,27292.86); h_SL1L362->SetBinContent(59,26567.86); h_SL1L362->SetMaximum(39551.78); 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,18892.86); h_SL1L463->SetBinContent(3,19325); h_SL1L463->SetBinContent(4,19600); h_SL1L463->SetBinContent(5,19782.14); h_SL1L463->SetBinContent(6,20192.86); h_SL1L463->SetBinContent(7,19371.43); h_SL1L463->SetBinContent(8,20907.14); h_SL1L463->SetBinContent(9,22271.43); h_SL1L463->SetBinContent(10,23453.57); h_SL1L463->SetBinContent(11,24071.43); h_SL1L463->SetBinContent(12,25607.14); h_SL1L463->SetBinContent(13,25514.29); h_SL1L463->SetBinContent(14,26139.29); h_SL1L463->SetBinContent(15,24089.29); h_SL1L463->SetBinContent(16,23242.86); h_SL1L463->SetBinContent(17,21253.57); h_SL1L463->SetBinContent(18,21553.57); h_SL1L463->SetBinContent(19,20957.14); h_SL1L463->SetBinContent(20,21146.43); h_SL1L463->SetBinContent(21,22089.29); h_SL1L463->SetBinContent(22,22292.86); h_SL1L463->SetBinContent(23,20864.29); h_SL1L463->SetBinContent(24,21492.86); h_SL1L463->SetBinContent(25,20042.86); h_SL1L463->SetBinContent(26,19639.29); h_SL1L463->SetBinContent(27,19342.86); h_SL1L463->SetBinContent(28,19560.71); h_SL1L463->SetBinContent(29,19503.57); h_SL1L463->SetBinContent(30,20110.71); h_SL1L463->SetBinContent(31,19325); h_SL1L463->SetBinContent(32,18964.29); h_SL1L463->SetBinContent(33,17907.14); h_SL1L463->SetBinContent(34,17792.86); h_SL1L463->SetBinContent(35,18289.29); h_SL1L463->SetBinContent(36,16835.71); h_SL1L463->SetBinContent(37,15628.57); h_SL1L463->SetBinContent(38,16596.43); h_SL1L463->SetBinContent(39,17753.57); h_SL1L463->SetBinContent(40,15471.43); h_SL1L463->SetBinContent(41,15550); h_SL1L463->SetBinContent(42,16796.43); h_SL1L463->SetBinContent(43,16617.86); h_SL1L463->SetBinContent(44,16539.29); h_SL1L463->SetBinContent(45,15092.86); h_SL1L463->SetBinContent(46,15835.71); h_SL1L463->SetBinContent(47,14982.14); h_SL1L463->SetBinContent(48,14685.71); h_SL1L463->SetBinContent(49,14196.43); h_SL1L463->SetBinContent(50,15128.57); h_SL1L463->SetBinContent(51,15339.29); h_SL1L463->SetBinContent(52,15639.29); h_SL1L463->SetBinContent(53,15142.86); h_SL1L463->SetBinContent(54,15439.29); h_SL1L463->SetBinContent(55,21.42857); h_SL1L463->SetBinContent(56,16175); h_SL1L463->SetBinContent(57,17246.43); h_SL1L463->SetBinContent(58,20539.29); h_SL1L463->SetBinContent(59,20053.57); h_SL1L463->SetMaximum(39551.78); 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 6392"); pt->Draw(); c->Modified(); c->cd(); c->SetSelected(c); }