void RatesPerCell_Removing_noisy_cells_run_7475_SL2() { //=========Macro generated from canvas: c/c //========= (Sat Dec 22 18:33:19 2018) by ROOT version6.02/13 TCanvas *c = new TCanvas("c", "c",0,0,800,600); gStyle->SetOptStat(0); c->Range(-7.500001,-16272.64,67.5,146453.8); c->SetFillColor(0); c->SetBorderMode(0); c->SetBorderSize(2); c->SetFrameBorderMode(0); c->SetFrameBorderMode(0); TH1D *h_SL2L164 = new TH1D("h_SL2L164","SL2, run 7475",60,0,60); h_SL2L164->SetBinContent(1,10400); h_SL2L164->SetBinContent(2,13992.86); h_SL2L164->SetBinContent(3,20621.43); h_SL2L164->SetBinContent(4,25864.29); h_SL2L164->SetBinContent(5,28007.14); h_SL2L164->SetBinContent(6,30650); h_SL2L164->SetBinContent(7,44821.43); h_SL2L164->SetBinContent(8,55007.14); h_SL2L164->SetBinContent(9,71928.57); h_SL2L164->SetBinContent(10,81921.43); h_SL2L164->SetBinContent(11,84642.86); h_SL2L164->SetBinContent(12,86850); h_SL2L164->SetBinContent(13,87878.57); h_SL2L164->SetBinContent(14,87414.28); h_SL2L164->SetBinContent(15,87485.71); h_SL2L164->SetBinContent(16,85714.28); h_SL2L164->SetBinContent(17,83414.28); h_SL2L164->SetBinContent(18,81078.57); h_SL2L164->SetBinContent(19,81671.43); h_SL2L164->SetBinContent(20,76942.86); h_SL2L164->SetBinContent(21,75300); h_SL2L164->SetBinContent(22,70457.14); h_SL2L164->SetBinContent(23,65228.57); h_SL2L164->SetBinContent(24,60735.71); h_SL2L164->SetBinContent(25,57600); h_SL2L164->SetBinContent(26,55521.43); h_SL2L164->SetBinContent(27,54507.14); h_SL2L164->SetBinContent(28,55350); h_SL2L164->SetBinContent(29,55935.71); h_SL2L164->SetBinContent(30,54150); h_SL2L164->SetBinContent(31,52271.43); h_SL2L164->SetBinContent(32,54757.14); h_SL2L164->SetBinContent(33,57300); h_SL2L164->SetBinContent(34,57257.14); h_SL2L164->SetBinContent(36,55135.71); h_SL2L164->SetBinContent(37,59164.29); h_SL2L164->SetBinContent(38,60228.57); h_SL2L164->SetBinContent(39,60485.71); h_SL2L164->SetBinContent(40,64200); h_SL2L164->SetBinContent(41,98435.71); h_SL2L164->SetBinContent(42,61885.71); h_SL2L164->SetBinContent(43,62235.71); h_SL2L164->SetBinContent(44,59992.86); h_SL2L164->SetBinContent(45,54607.14); h_SL2L164->SetBinContent(46,52614.29); h_SL2L164->SetBinContent(47,51192.86); h_SL2L164->SetBinContent(48,48121.43); h_SL2L164->SetBinContent(49,51142.86); h_SL2L164->SetBinContent(50,49857.14); h_SL2L164->SetBinContent(51,54271.43); h_SL2L164->SetBinContent(52,60635.71); h_SL2L164->SetBinContent(53,69128.57); h_SL2L164->SetBinContent(54,74050); h_SL2L164->SetBinContent(55,71342.86); h_SL2L164->SetBinContent(56,61357.14); h_SL2L164->SetBinContent(57,50271.43); h_SL2L164->SetMaximum(130181.1); h_SL2L164->SetEntries(60); h_SL2L164->SetDirectory(0); h_SL2L164->SetStats(0); h_SL2L164->SetLineWidth(2); h_SL2L164->GetXaxis()->SetTitle("Cell"); h_SL2L164->GetXaxis()->SetLabelFont(42); h_SL2L164->GetXaxis()->SetLabelSize(0.035); h_SL2L164->GetXaxis()->SetTitleSize(0.035); h_SL2L164->GetXaxis()->SetTitleFont(42); h_SL2L164->GetYaxis()->SetTitle("Hz"); h_SL2L164->GetYaxis()->SetLabelFont(42); h_SL2L164->GetYaxis()->SetLabelSize(0.035); h_SL2L164->GetYaxis()->SetTitleSize(0.035); h_SL2L164->GetYaxis()->SetTitleOffset(1.45); h_SL2L164->GetYaxis()->SetTitleFont(42); h_SL2L164->GetZaxis()->SetLabelFont(42); h_SL2L164->GetZaxis()->SetLabelSize(0.035); h_SL2L164->GetZaxis()->SetTitleSize(0.035); h_SL2L164->GetZaxis()->SetTitleFont(42); h_SL2L164->Draw(""); TH1D *h_SL2L265 = new TH1D("h_SL2L265","",60,0,60); h_SL2L265->SetBinContent(1,9057.143); h_SL2L265->SetBinContent(2,12478.57); h_SL2L265->SetBinContent(3,16650); h_SL2L265->SetBinContent(4,23921.43); h_SL2L265->SetBinContent(5,25878.57); h_SL2L265->SetBinContent(6,30035.71); h_SL2L265->SetBinContent(7,36464.29); h_SL2L265->SetBinContent(8,44228.57); h_SL2L265->SetBinContent(9,62371.43); h_SL2L265->SetBinContent(10,73700); h_SL2L265->SetBinContent(11,81107.14); h_SL2L265->SetBinContent(12,84700); h_SL2L265->SetBinContent(13,86078.57); h_SL2L265->SetBinContent(14,84442.86); h_SL2L265->SetBinContent(15,83435.71); h_SL2L265->SetBinContent(16,80678.57); h_SL2L265->SetBinContent(17,81185.71); h_SL2L265->SetBinContent(18,78285.71); h_SL2L265->SetBinContent(19,78307.14); h_SL2L265->SetBinContent(20,76628.57); h_SL2L265->SetBinContent(21,72342.86); h_SL2L265->SetBinContent(22,70371.43); h_SL2L265->SetBinContent(23,66035.71); h_SL2L265->SetBinContent(24,60607.14); h_SL2L265->SetBinContent(25,55985.71); h_SL2L265->SetBinContent(26,54264.29); h_SL2L265->SetBinContent(27,52650); h_SL2L265->SetBinContent(28,53264.29); h_SL2L265->SetBinContent(29,53742.86); h_SL2L265->SetBinContent(30,52892.86); h_SL2L265->SetBinContent(31,48642.86); h_SL2L265->SetBinContent(32,53335.71); h_SL2L265->SetBinContent(33,54714.29); h_SL2L265->SetBinContent(34,55192.86); h_SL2L265->SetBinContent(35,54657.14); h_SL2L265->SetBinContent(36,53878.57); h_SL2L265->SetBinContent(37,55642.86); h_SL2L265->SetBinContent(38,58778.57); h_SL2L265->SetBinContent(39,58728.57); h_SL2L265->SetBinContent(40,57807.14); h_SL2L265->SetBinContent(41,57257.14); h_SL2L265->SetBinContent(42,56750); h_SL2L265->SetBinContent(43,55307.14); h_SL2L265->SetBinContent(44,56278.57); h_SL2L265->SetBinContent(45,52128.57); h_SL2L265->SetBinContent(46,51464.29); h_SL2L265->SetBinContent(47,49900); h_SL2L265->SetBinContent(48,48142.86); h_SL2L265->SetBinContent(49,47714.29); h_SL2L265->SetBinContent(50,48200); h_SL2L265->SetBinContent(51,47257.14); h_SL2L265->SetBinContent(52,55771.43); h_SL2L265->SetBinContent(53,62557.14); h_SL2L265->SetBinContent(54,70378.57); h_SL2L265->SetBinContent(55,71207.14); h_SL2L265->SetBinContent(56,63635.71); h_SL2L265->SetBinContent(57,59785.71); h_SL2L265->SetMaximum(113201.1); h_SL2L265->SetEntries(60); h_SL2L265->SetDirectory(0); h_SL2L265->SetStats(0); Int_t ci; // for color index setting TColor *color; // for color definition with alpha ci = TColor::GetColor("#cc0000"); h_SL2L265->SetLineColor(ci); h_SL2L265->SetLineWidth(2); h_SL2L265->GetXaxis()->SetTitle("Cell"); h_SL2L265->GetXaxis()->SetLabelFont(42); h_SL2L265->GetXaxis()->SetLabelSize(0.035); h_SL2L265->GetXaxis()->SetTitleSize(0.035); h_SL2L265->GetXaxis()->SetTitleFont(42); h_SL2L265->GetYaxis()->SetTitle("Hz"); h_SL2L265->GetYaxis()->SetLabelFont(42); h_SL2L265->GetYaxis()->SetLabelSize(0.035); h_SL2L265->GetYaxis()->SetTitleSize(0.035); h_SL2L265->GetYaxis()->SetTitleOffset(1.45); h_SL2L265->GetYaxis()->SetTitleFont(42); h_SL2L265->GetZaxis()->SetLabelFont(42); h_SL2L265->GetZaxis()->SetLabelSize(0.035); h_SL2L265->GetZaxis()->SetTitleSize(0.035); h_SL2L265->GetZaxis()->SetTitleFont(42); h_SL2L265->Draw("same"); TH1D *h_SL2L366 = new TH1D("h_SL2L366","",60,0,60); h_SL2L366->SetBinContent(1,11407.14); h_SL2L366->SetBinContent(2,14378.57); h_SL2L366->SetBinContent(3,21914.29); h_SL2L366->SetBinContent(4,24385.71); h_SL2L366->SetBinContent(5,27114.29); h_SL2L366->SetBinContent(6,31007.14); h_SL2L366->SetBinContent(7,41607.14); h_SL2L366->SetBinContent(8,53428.57); h_SL2L366->SetBinContent(9,68257.14); h_SL2L366->SetBinContent(10,76614.28); h_SL2L366->SetBinContent(11,80150); h_SL2L366->SetBinContent(12,82214.28); h_SL2L366->SetBinContent(13,81871.43); h_SL2L366->SetBinContent(14,81085.71); h_SL2L366->SetBinContent(15,80607.14); h_SL2L366->SetBinContent(16,79628.57); h_SL2L366->SetBinContent(17,77307.14); h_SL2L366->SetBinContent(18,76600); h_SL2L366->SetBinContent(19,75342.86); h_SL2L366->SetBinContent(20,72392.86); h_SL2L366->SetBinContent(21,69164.28); h_SL2L366->SetBinContent(22,65542.86); h_SL2L366->SetBinContent(23,60614.29); h_SL2L366->SetBinContent(24,56935.71); h_SL2L366->SetBinContent(25,52628.57); h_SL2L366->SetBinContent(26,51728.57); h_SL2L366->SetBinContent(27,51785.71); h_SL2L366->SetBinContent(28,50907.14); h_SL2L366->SetBinContent(29,52142.86); h_SL2L366->SetBinContent(30,48757.14); h_SL2L366->SetBinContent(31,49414.29); h_SL2L366->SetBinContent(32,51257.14); h_SL2L366->SetBinContent(33,53142.86); h_SL2L366->SetBinContent(34,52607.14); h_SL2L366->SetBinContent(35,51807.14); h_SL2L366->SetBinContent(36,52664.29); h_SL2L366->SetBinContent(37,56100); h_SL2L366->SetBinContent(38,56150); h_SL2L366->SetBinContent(39,55728.57); h_SL2L366->SetBinContent(40,53321.43); h_SL2L366->SetBinContent(41,56121.43); h_SL2L366->SetBinContent(42,54300); h_SL2L366->SetBinContent(43,53842.86); h_SL2L366->SetBinContent(44,53792.86); h_SL2L366->SetBinContent(45,51528.57); h_SL2L366->SetBinContent(46,49457.14); h_SL2L366->SetBinContent(47,47292.86); h_SL2L366->SetBinContent(48,45364.29); h_SL2L366->SetBinContent(49,46528.57); h_SL2L366->SetBinContent(50,46485.71); h_SL2L366->SetBinContent(51,50857.14); h_SL2L366->SetBinContent(52,56257.14); h_SL2L366->SetBinContent(53,62307.14); h_SL2L366->SetBinContent(54,67828.57); h_SL2L366->SetBinContent(55,69428.57); h_SL2L366->SetBinContent(56,56828.57); h_SL2L366->SetBinContent(57,53321.43); h_SL2L366->SetMaximum(113201.1); h_SL2L366->SetEntries(60); h_SL2L366->SetDirectory(0); h_SL2L366->SetStats(0); ci = TColor::GetColor("#009900"); h_SL2L366->SetLineColor(ci); h_SL2L366->SetLineWidth(2); h_SL2L366->GetXaxis()->SetTitle("Cell"); h_SL2L366->GetXaxis()->SetLabelFont(42); h_SL2L366->GetXaxis()->SetLabelSize(0.035); h_SL2L366->GetXaxis()->SetTitleSize(0.035); h_SL2L366->GetXaxis()->SetTitleFont(42); h_SL2L366->GetYaxis()->SetTitle("Hz"); h_SL2L366->GetYaxis()->SetLabelFont(42); h_SL2L366->GetYaxis()->SetLabelSize(0.035); h_SL2L366->GetYaxis()->SetTitleSize(0.035); h_SL2L366->GetYaxis()->SetTitleOffset(1.45); h_SL2L366->GetYaxis()->SetTitleFont(42); h_SL2L366->GetZaxis()->SetLabelFont(42); h_SL2L366->GetZaxis()->SetLabelSize(0.035); h_SL2L366->GetZaxis()->SetTitleSize(0.035); h_SL2L366->GetZaxis()->SetTitleFont(42); h_SL2L366->Draw("same"); TH1D *h_SL2L467 = new TH1D("h_SL2L467","",60,0,60); h_SL2L467->SetBinContent(2,12992.86); h_SL2L467->SetBinContent(3,17835.71); h_SL2L467->SetBinContent(4,22264.29); h_SL2L467->SetBinContent(5,24464.29); h_SL2L467->SetBinContent(6,26042.86); h_SL2L467->SetBinContent(7,32635.71); h_SL2L467->SetBinContent(8,42535.71); h_SL2L467->SetBinContent(9,59971.43); h_SL2L467->SetBinContent(10,68621.43); h_SL2L467->SetBinContent(11,76192.86); h_SL2L467->SetBinContent(12,77778.57); h_SL2L467->SetBinContent(13,78164.28); h_SL2L467->SetBinContent(14,78300); h_SL2L467->SetBinContent(15,78421.43); h_SL2L467->SetBinContent(16,76214.28); h_SL2L467->SetBinContent(17,75907.14); h_SL2L467->SetBinContent(18,75364.28); h_SL2L467->SetBinContent(19,74592.86); h_SL2L467->SetBinContent(20,71614.28); h_SL2L467->SetBinContent(21,69635.71); h_SL2L467->SetBinContent(22,65157.14); h_SL2L467->SetBinContent(23,60185.71); h_SL2L467->SetBinContent(24,55192.86); h_SL2L467->SetBinContent(25,54392.86); h_SL2L467->SetBinContent(26,51028.57); h_SL2L467->SetBinContent(27,49657.14); h_SL2L467->SetBinContent(28,49642.86); h_SL2L467->SetBinContent(29,50314.29); h_SL2L467->SetBinContent(30,49214.29); h_SL2L467->SetBinContent(31,45657.14); h_SL2L467->SetBinContent(32,50035.71); h_SL2L467->SetBinContent(33,51757.14); h_SL2L467->SetBinContent(34,50842.86); h_SL2L467->SetBinContent(35,51150); h_SL2L467->SetBinContent(36,50750); h_SL2L467->SetBinContent(37,52735.71); h_SL2L467->SetBinContent(38,54028.57); h_SL2L467->SetBinContent(39,54942.86); h_SL2L467->SetBinContent(40,54435.71); h_SL2L467->SetBinContent(41,51935.71); h_SL2L467->SetBinContent(42,53485.71); h_SL2L467->SetBinContent(43,52521.43); h_SL2L467->SetBinContent(44,51342.86); h_SL2L467->SetBinContent(45,51221.43); h_SL2L467->SetBinContent(46,48814.29); h_SL2L467->SetBinContent(47,48221.43); h_SL2L467->SetBinContent(48,45542.86); h_SL2L467->SetBinContent(49,45028.57); h_SL2L467->SetBinContent(50,47428.57); h_SL2L467->SetBinContent(51,44342.86); h_SL2L467->SetBinContent(52,52907.14); h_SL2L467->SetBinContent(53,58571.43); h_SL2L467->SetBinContent(54,64971.43); h_SL2L467->SetBinContent(55,66242.86); h_SL2L467->SetBinContent(56,61200); h_SL2L467->SetBinContent(57,53235.71); h_SL2L467->SetMaximum(113201.1); h_SL2L467->SetEntries(60); h_SL2L467->SetDirectory(0); h_SL2L467->SetStats(0); ci = TColor::GetColor("#0000cc"); h_SL2L467->SetLineColor(ci); h_SL2L467->SetLineWidth(2); h_SL2L467->GetXaxis()->SetTitle("Cell"); h_SL2L467->GetXaxis()->SetLabelFont(42); h_SL2L467->GetXaxis()->SetLabelSize(0.035); h_SL2L467->GetXaxis()->SetTitleSize(0.035); h_SL2L467->GetXaxis()->SetTitleFont(42); h_SL2L467->GetYaxis()->SetTitle("Hz"); h_SL2L467->GetYaxis()->SetLabelFont(42); h_SL2L467->GetYaxis()->SetLabelSize(0.035); h_SL2L467->GetYaxis()->SetTitleSize(0.035); h_SL2L467->GetYaxis()->SetTitleOffset(1.45); h_SL2L467->GetYaxis()->SetTitleFont(42); h_SL2L467->GetZaxis()->SetLabelFont(42); h_SL2L467->GetZaxis()->SetLabelSize(0.035); h_SL2L467->GetZaxis()->SetTitleSize(0.035); h_SL2L467->GetZaxis()->SetTitleFont(42); h_SL2L467->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_SL2L1","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_SL2L2","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_SL2L3","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_SL2L4","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("SL2, run 7475"); pt->Draw(); c->Modified(); c->cd(); c->SetSelected(c); }