void RatesPerCell_Removing_noisy_cells_run_6391_SL1() { //=========Macro generated from canvas: c/c //========= (Sun Jan 13 15:39:50 2019) by ROOT version6.02/13 TCanvas *c = new TCanvas("c", "c",0,0,800,600); gStyle->SetOptStat(0); c->Range(-7.500001,-4152.219,67.5,37369.97); c->SetFillColor(0); c->SetBorderMode(0); c->SetBorderSize(2); c->SetFrameBorderMode(0); c->SetFrameBorderMode(0); TH1D *h_SL1L160 = new TH1D("h_SL1L160","SL1, run 6391",60,0,60); h_SL1L160->SetBinContent(1,16167.86); h_SL1L160->SetBinContent(2,18182.14); h_SL1L160->SetBinContent(3,17875); h_SL1L160->SetBinContent(4,18321.43); h_SL1L160->SetBinContent(5,17764.29); h_SL1L160->SetBinContent(6,18114.29); h_SL1L160->SetBinContent(7,17521.43); h_SL1L160->SetBinContent(8,19171.43); h_SL1L160->SetBinContent(9,18421.43); h_SL1L160->SetBinContent(10,18750); h_SL1L160->SetBinContent(11,19139.29); h_SL1L160->SetBinContent(12,19185.71); h_SL1L160->SetBinContent(13,18657.14); h_SL1L160->SetBinContent(14,17742.86); h_SL1L160->SetBinContent(15,16192.86); h_SL1L160->SetBinContent(16,16135.71); h_SL1L160->SetBinContent(17,15003.57); h_SL1L160->SetBinContent(18,15860.71); h_SL1L160->SetBinContent(19,15971.43); h_SL1L160->SetBinContent(20,16378.57); h_SL1L160->SetBinContent(21,15789.29); h_SL1L160->SetBinContent(22,15435.71); h_SL1L160->SetBinContent(23,15446.43); h_SL1L160->SetBinContent(24,14682.14); h_SL1L160->SetBinContent(25,14250); h_SL1L160->SetBinContent(26,14307.14); h_SL1L160->SetBinContent(27,13896.43); h_SL1L160->SetBinContent(28,14528.57); h_SL1L160->SetBinContent(29,14989.29); h_SL1L160->SetBinContent(30,14817.86); h_SL1L160->SetBinContent(31,14332.14); h_SL1L160->SetBinContent(32,13596.43); h_SL1L160->SetBinContent(33,14603.57); h_SL1L160->SetBinContent(34,14800); h_SL1L160->SetBinContent(35,14546.43); h_SL1L160->SetBinContent(36,14400); h_SL1L160->SetBinContent(37,14939.29); h_SL1L160->SetBinContent(38,15642.86); h_SL1L160->SetBinContent(39,14067.86); h_SL1L160->SetBinContent(40,13689.29); h_SL1L160->SetBinContent(41,14232.14); h_SL1L160->SetBinContent(42,14360.71); h_SL1L160->SetBinContent(43,13914.29); h_SL1L160->SetBinContent(44,13592.86); h_SL1L160->SetBinContent(45,13889.29); h_SL1L160->SetBinContent(46,13353.57); h_SL1L160->SetBinContent(47,12403.57); h_SL1L160->SetBinContent(48,12803.57); h_SL1L160->SetBinContent(49,12532.14); h_SL1L160->SetBinContent(50,13525); h_SL1L160->SetBinContent(51,12700); h_SL1L160->SetBinContent(52,12953.57); h_SL1L160->SetBinContent(53,12246.43); h_SL1L160->SetBinContent(54,12500); h_SL1L160->SetBinContent(55,12439.29); h_SL1L160->SetBinContent(56,12746.43); h_SL1L160->SetBinContent(57,15000); h_SL1L160->SetBinContent(58,15939.29); h_SL1L160->SetBinContent(59,15103.57); h_SL1L160->SetMaximum(33217.75); 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,17310.71); h_SL1L261->SetBinContent(2,18971.43); h_SL1L261->SetBinContent(3,20192.86); h_SL1L261->SetBinContent(4,21378.57); h_SL1L261->SetBinContent(5,21339.29); h_SL1L261->SetBinContent(6,22814.29); h_SL1L261->SetBinContent(7,21950); h_SL1L261->SetBinContent(8,22757.14); h_SL1L261->SetBinContent(9,23550); h_SL1L261->SetBinContent(10,23992.86); h_SL1L261->SetBinContent(11,23650); h_SL1L261->SetBinContent(12,24132.14); h_SL1L261->SetBinContent(13,24557.14); h_SL1L261->SetBinContent(14,24196.43); h_SL1L261->SetBinContent(15,23500); h_SL1L261->SetBinContent(16,22785.71); h_SL1L261->SetBinContent(17,22089.29); h_SL1L261->SetBinContent(18,23300); h_SL1L261->SetBinContent(19,23210.71); h_SL1L261->SetBinContent(20,23632.14); h_SL1L261->SetBinContent(21,23700); h_SL1L261->SetBinContent(22,24578.57); h_SL1L261->SetBinContent(23,23660.71); h_SL1L261->SetBinContent(24,22935.71); h_SL1L261->SetBinContent(25,23785.71); h_SL1L261->SetBinContent(26,23021.43); h_SL1L261->SetBinContent(27,21782.14); h_SL1L261->SetBinContent(28,22907.14); h_SL1L261->SetBinContent(29,23857.14); h_SL1L261->SetBinContent(30,24550); h_SL1L261->SetBinContent(31,24382.14); h_SL1L261->SetBinContent(32,24350); h_SL1L261->SetBinContent(33,24903.57); h_SL1L261->SetBinContent(34,25117.86); h_SL1L261->SetBinContent(35,23985.71); h_SL1L261->SetBinContent(36,24085.71); h_SL1L261->SetBinContent(37,23989.29); h_SL1L261->SetBinContent(38,23914.29); h_SL1L261->SetBinContent(39,23778.57); h_SL1L261->SetBinContent(40,23439.29); h_SL1L261->SetBinContent(41,24264.29); h_SL1L261->SetBinContent(42,23742.86); h_SL1L261->SetBinContent(43,23589.29); h_SL1L261->SetBinContent(44,23739.29); h_SL1L261->SetBinContent(45,22975); h_SL1L261->SetBinContent(46,23271.43); h_SL1L261->SetBinContent(47,22150); h_SL1L261->SetBinContent(48,21760.71); h_SL1L261->SetBinContent(49,22264.29); h_SL1L261->SetBinContent(50,21789.29); h_SL1L261->SetBinContent(51,21367.86); h_SL1L261->SetBinContent(52,21296.43); h_SL1L261->SetBinContent(53,21435.71); h_SL1L261->SetBinContent(54,21382.14); h_SL1L261->SetBinContent(55,20800); h_SL1L261->SetBinContent(56,20007.14); h_SL1L261->SetBinContent(57,20128.57); h_SL1L261->SetBinContent(58,19221.43); h_SL1L261->SetBinContent(59,18335.71); h_SL1L261->SetMaximum(28885.54); 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,17635.71); h_SL1L362->SetBinContent(2,19542.86); h_SL1L362->SetBinContent(3,21028.57); h_SL1L362->SetBinContent(4,21610.71); h_SL1L362->SetBinContent(5,22439.29); h_SL1L362->SetBinContent(6,21475); h_SL1L362->SetBinContent(7,22325); h_SL1L362->SetBinContent(8,23207.14); h_SL1L362->SetBinContent(9,23082.14); h_SL1L362->SetBinContent(10,23175); h_SL1L362->SetBinContent(11,23417.86); h_SL1L362->SetBinContent(12,24096.43); h_SL1L362->SetBinContent(13,23846.43); h_SL1L362->SetBinContent(14,23671.43); h_SL1L362->SetBinContent(15,22396.43); h_SL1L362->SetBinContent(16,21921.43); h_SL1L362->SetBinContent(17,21982.14); h_SL1L362->SetBinContent(18,22757.14); h_SL1L362->SetBinContent(19,22978.57); h_SL1L362->SetBinContent(20,23917.86); h_SL1L362->SetBinContent(21,23610.71); h_SL1L362->SetBinContent(22,23460.71); h_SL1L362->SetBinContent(23,22985.71); h_SL1L362->SetBinContent(24,23060.71); h_SL1L362->SetBinContent(25,23196.43); h_SL1L362->SetBinContent(26,21514.29); h_SL1L362->SetBinContent(27,21964.29); h_SL1L362->SetBinContent(28,23417.86); h_SL1L362->SetBinContent(29,24078.57); h_SL1L362->SetBinContent(30,23914.29); h_SL1L362->SetBinContent(31,24092.86); h_SL1L362->SetBinContent(32,23985.71); h_SL1L362->SetBinContent(33,24564.29); h_SL1L362->SetBinContent(34,23960.71); h_SL1L362->SetBinContent(35,23696.43); h_SL1L362->SetBinContent(36,23303.57); h_SL1L362->SetBinContent(37,24246.43); h_SL1L362->SetBinContent(38,23060.71); h_SL1L362->SetBinContent(39,23467.86); h_SL1L362->SetBinContent(40,23060.71); h_SL1L362->SetBinContent(41,23596.43); h_SL1L362->SetBinContent(42,24121.43); h_SL1L362->SetBinContent(43,23296.43); h_SL1L362->SetBinContent(44,22946.43); h_SL1L362->SetBinContent(45,23203.57); h_SL1L362->SetBinContent(46,22392.86); h_SL1L362->SetBinContent(47,20939.29); h_SL1L362->SetBinContent(48,21596.43); h_SL1L362->SetBinContent(49,21675); h_SL1L362->SetBinContent(50,21546.43); h_SL1L362->SetBinContent(51,21032.14); h_SL1L362->SetBinContent(52,20775); h_SL1L362->SetBinContent(53,21171.43); h_SL1L362->SetBinContent(54,20621.43); h_SL1L362->SetBinContent(55,20067.86); h_SL1L362->SetBinContent(56,19375); h_SL1L362->SetBinContent(57,19553.57); h_SL1L362->SetBinContent(58,18546.43); h_SL1L362->SetBinContent(59,16903.57); h_SL1L362->SetMaximum(28885.54); 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,14785.71); h_SL1L463->SetBinContent(3,15257.14); h_SL1L463->SetBinContent(4,16035.71); h_SL1L463->SetBinContent(5,15603.57); h_SL1L463->SetBinContent(6,15535.71); h_SL1L463->SetBinContent(7,15242.86); h_SL1L463->SetBinContent(8,16003.57); h_SL1L463->SetBinContent(9,16742.86); h_SL1L463->SetBinContent(10,17710.71); h_SL1L463->SetBinContent(11,18514.29); h_SL1L463->SetBinContent(12,19300); h_SL1L463->SetBinContent(13,18925); h_SL1L463->SetBinContent(14,19564.29); h_SL1L463->SetBinContent(15,18357.14); h_SL1L463->SetBinContent(16,17357.14); h_SL1L463->SetBinContent(17,16582.14); h_SL1L463->SetBinContent(18,17228.57); h_SL1L463->SetBinContent(19,16139.29); h_SL1L463->SetBinContent(20,16789.29); h_SL1L463->SetBinContent(21,16910.71); h_SL1L463->SetBinContent(22,17075); h_SL1L463->SetBinContent(23,15828.57); h_SL1L463->SetBinContent(24,16628.57); h_SL1L463->SetBinContent(25,15753.57); h_SL1L463->SetBinContent(26,15350); h_SL1L463->SetBinContent(27,14746.43); h_SL1L463->SetBinContent(28,15196.43); h_SL1L463->SetBinContent(29,15403.57); h_SL1L463->SetBinContent(30,16196.43); h_SL1L463->SetBinContent(31,15571.43); h_SL1L463->SetBinContent(32,14946.43); h_SL1L463->SetBinContent(33,13896.43); h_SL1L463->SetBinContent(34,14635.71); h_SL1L463->SetBinContent(35,14092.86); h_SL1L463->SetBinContent(36,13492.86); h_SL1L463->SetBinContent(37,12217.86); h_SL1L463->SetBinContent(38,13175); h_SL1L463->SetBinContent(39,13821.43); h_SL1L463->SetBinContent(40,12200); h_SL1L463->SetBinContent(41,12535.71); h_SL1L463->SetBinContent(42,12910.71); h_SL1L463->SetBinContent(43,13121.43); h_SL1L463->SetBinContent(44,12807.14); h_SL1L463->SetBinContent(45,11607.14); h_SL1L463->SetBinContent(46,12421.43); h_SL1L463->SetBinContent(47,11942.86); h_SL1L463->SetBinContent(48,11750); h_SL1L463->SetBinContent(49,11400); h_SL1L463->SetBinContent(50,12246.43); h_SL1L463->SetBinContent(51,12396.43); h_SL1L463->SetBinContent(52,12160.71); h_SL1L463->SetBinContent(53,12171.43); h_SL1L463->SetBinContent(54,11842.86); h_SL1L463->SetBinContent(55,10.71429); h_SL1L463->SetBinContent(56,11739.29); h_SL1L463->SetBinContent(57,12471.43); h_SL1L463->SetBinContent(58,14996.43); h_SL1L463->SetBinContent(59,14114.29); h_SL1L463->SetMaximum(28885.54); 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.3744221,0.9362587,0.6255779,0.995,"blNDC"); pt->SetName("title"); pt->SetBorderSize(0); pt->SetFillColor(0); pt->SetFillStyle(0); pt->SetTextFont(42); TText *AText = pt->AddText("SL1, run 6391"); pt->Draw(); c->Modified(); c->cd(); c->SetSelected(c); }