void RatesPerCell_Removing_noisy_cells_run_6825_SL2() { //=========Macro generated from canvas: c/c //========= (Sun Jan 13 16:10:22 2019) by ROOT version6.02/13 TCanvas *c = new TCanvas("c", "c",0,0,800,600); gStyle->SetOptStat(0); c->Range(-7.500001,-27915.96,67.5,251243.7); c->SetFillColor(0); c->SetBorderMode(0); c->SetBorderSize(2); c->SetFrameBorderMode(0); c->SetFrameBorderMode(0); TH1D *h_SL2L164 = new TH1D("h_SL2L164","SL2, run 6825",60,0,60); h_SL2L164->SetBinContent(1,49400); h_SL2L164->SetBinContent(2,62014.29); h_SL2L164->SetBinContent(3,73875); h_SL2L164->SetBinContent(4,75839.28); h_SL2L164->SetBinContent(5,73628.57); h_SL2L164->SetBinContent(6,67382.14); h_SL2L164->SetBinContent(7,61175); h_SL2L164->SetBinContent(8,58832.14); h_SL2L164->SetBinContent(9,67985.71); h_SL2L164->SetBinContent(10,69175); h_SL2L164->SetBinContent(11,69692.86); h_SL2L164->SetBinContent(12,67678.57); h_SL2L164->SetBinContent(13,68571.43); h_SL2L164->SetBinContent(14,66725); h_SL2L164->SetBinContent(15,66989.28); h_SL2L164->SetBinContent(16,63128.57); h_SL2L164->SetBinContent(17,60785.71); h_SL2L164->SetBinContent(18,61032.14); h_SL2L164->SetBinContent(19,59653.57); h_SL2L164->SetBinContent(20,54192.86); h_SL2L164->SetBinContent(21,49857.14); h_SL2L164->SetBinContent(22,46225); h_SL2L164->SetBinContent(23,44992.86); h_SL2L164->SetBinContent(24,41696.43); h_SL2L164->SetBinContent(25,43057.14); h_SL2L164->SetBinContent(26,60253.57); h_SL2L164->SetBinContent(27,70703.57); h_SL2L164->SetBinContent(28,78092.86); h_SL2L164->SetBinContent(29,80850); h_SL2L164->SetBinContent(30,77146.43); h_SL2L164->SetBinContent(31,73171.43); h_SL2L164->SetBinContent(32,73157.14); h_SL2L164->SetBinContent(33,70775); h_SL2L164->SetBinContent(34,51567.86); h_SL2L164->SetBinContent(35,7.142857); h_SL2L164->SetBinContent(36,28196.43); h_SL2L164->SetBinContent(37,29992.86); h_SL2L164->SetBinContent(38,28021.43); h_SL2L164->SetBinContent(39,28700); h_SL2L164->SetBinContent(40,78642.86); h_SL2L164->SetBinContent(41,103310.7); h_SL2L164->SetBinContent(42,30700); h_SL2L164->SetBinContent(43,30321.43); h_SL2L164->SetBinContent(44,30475); h_SL2L164->SetBinContent(45,24007.14); h_SL2L164->SetBinContent(46,22239.29); h_SL2L164->SetBinContent(47,23157.14); h_SL2L164->SetBinContent(48,23135.71); h_SL2L164->SetBinContent(49,24292.86); h_SL2L164->SetBinContent(50,23246.43); h_SL2L164->SetBinContent(51,25600); h_SL2L164->SetBinContent(52,29346.43); h_SL2L164->SetBinContent(53,31835.71); h_SL2L164->SetBinContent(54,33000); h_SL2L164->SetBinContent(55,32925); h_SL2L164->SetBinContent(56,28725); h_SL2L164->SetBinContent(57,168867.9); h_SL2L164->SetMaximum(223327.7); 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,39650); h_SL2L265->SetBinContent(2,58025); h_SL2L265->SetBinContent(3,63132.14); h_SL2L265->SetBinContent(4,73664.28); h_SL2L265->SetBinContent(5,73450); h_SL2L265->SetBinContent(6,68053.57); h_SL2L265->SetBinContent(7,63057.14); h_SL2L265->SetBinContent(8,56989.29); h_SL2L265->SetBinContent(9,63850); h_SL2L265->SetBinContent(10,65196.43); h_SL2L265->SetBinContent(11,68567.86); h_SL2L265->SetBinContent(12,65582.14); h_SL2L265->SetBinContent(13,66042.86); h_SL2L265->SetBinContent(14,66314.28); h_SL2L265->SetBinContent(15,64350); h_SL2L265->SetBinContent(16,62775); h_SL2L265->SetBinContent(17,59582.14); h_SL2L265->SetBinContent(18,58464.29); h_SL2L265->SetBinContent(19,57550); h_SL2L265->SetBinContent(20,54160.71); h_SL2L265->SetBinContent(21,50553.57); h_SL2L265->SetBinContent(22,45700); h_SL2L265->SetBinContent(23,42910.71); h_SL2L265->SetBinContent(24,42092.86); h_SL2L265->SetBinContent(25,39367.86); h_SL2L265->SetBinContent(26,49960.71); h_SL2L265->SetBinContent(27,64235.71); h_SL2L265->SetBinContent(28,74967.86); h_SL2L265->SetBinContent(29,76557.14); h_SL2L265->SetBinContent(30,77360.71); h_SL2L265->SetBinContent(31,70917.86); h_SL2L265->SetBinContent(32,71292.86); h_SL2L265->SetBinContent(33,70639.28); h_SL2L265->SetBinContent(34,62764.29); h_SL2L265->SetBinContent(35,37946.43); h_SL2L265->SetBinContent(36,27882.14); h_SL2L265->SetBinContent(37,26496.43); h_SL2L265->SetBinContent(38,26571.43); h_SL2L265->SetBinContent(39,26653.57); h_SL2L265->SetBinContent(40,27678.57); h_SL2L265->SetBinContent(41,26292.86); h_SL2L265->SetBinContent(42,24957.14); h_SL2L265->SetBinContent(43,24996.43); h_SL2L265->SetBinContent(44,24946.43); h_SL2L265->SetBinContent(45,22646.43); h_SL2L265->SetBinContent(46,21889.29); h_SL2L265->SetBinContent(47,21260.71); h_SL2L265->SetBinContent(48,21746.43); h_SL2L265->SetBinContent(49,22896.43); h_SL2L265->SetBinContent(50,22285.71); h_SL2L265->SetBinContent(51,22100); h_SL2L265->SetBinContent(52,25767.86); h_SL2L265->SetBinContent(53,27417.86); h_SL2L265->SetBinContent(54,31057.14); h_SL2L265->SetBinContent(55,33671.43); h_SL2L265->SetBinContent(56,29246.43); h_SL2L265->SetBinContent(57,28239.29); h_SL2L265->SetMaximum(194198); 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,65828.57); h_SL2L366->SetBinContent(2,55921.43); h_SL2L366->SetBinContent(3,69875); h_SL2L366->SetBinContent(4,70942.86); h_SL2L366->SetBinContent(5,68003.57); h_SL2L366->SetBinContent(6,62100); h_SL2L366->SetBinContent(7,56167.86); h_SL2L366->SetBinContent(8,56742.86); h_SL2L366->SetBinContent(9,63410.71); h_SL2L366->SetBinContent(10,63653.57); h_SL2L366->SetBinContent(11,63903.57); h_SL2L366->SetBinContent(12,62032.14); h_SL2L366->SetBinContent(13,61746.43); h_SL2L366->SetBinContent(14,63003.57); h_SL2L366->SetBinContent(15,60957.14); h_SL2L366->SetBinContent(16,58092.86); h_SL2L366->SetBinContent(17,56528.57); h_SL2L366->SetBinContent(18,56250); h_SL2L366->SetBinContent(19,53103.57); h_SL2L366->SetBinContent(20,49189.29); h_SL2L366->SetBinContent(21,46092.86); h_SL2L366->SetBinContent(22,42503.57); h_SL2L366->SetBinContent(23,41364.29); h_SL2L366->SetBinContent(24,38460.71); h_SL2L366->SetBinContent(25,40328.57); h_SL2L366->SetBinContent(26,57217.86); h_SL2L366->SetBinContent(27,69021.43); h_SL2L366->SetBinContent(28,75403.57); h_SL2L366->SetBinContent(29,75971.43); h_SL2L366->SetBinContent(30,73496.43); h_SL2L366->SetBinContent(31,70853.57); h_SL2L366->SetBinContent(32,70957.14); h_SL2L366->SetBinContent(33,67971.43); h_SL2L366->SetBinContent(34,49403.57); h_SL2L366->SetBinContent(35,29164.29); h_SL2L366->SetBinContent(36,26296.43); h_SL2L366->SetBinContent(37,25389.29); h_SL2L366->SetBinContent(38,25067.86); h_SL2L366->SetBinContent(39,24575); h_SL2L366->SetBinContent(40,24128.57); h_SL2L366->SetBinContent(41,23964.29); h_SL2L366->SetBinContent(42,23278.57); h_SL2L366->SetBinContent(43,23003.57); h_SL2L366->SetBinContent(44,22732.14); h_SL2L366->SetBinContent(45,21475); h_SL2L366->SetBinContent(46,21117.86); h_SL2L366->SetBinContent(47,22200); h_SL2L366->SetBinContent(48,21528.57); h_SL2L366->SetBinContent(49,21742.86); h_SL2L366->SetBinContent(50,21935.71); h_SL2L366->SetBinContent(51,23039.29); h_SL2L366->SetBinContent(52,25596.43); h_SL2L366->SetBinContent(53,27978.57); h_SL2L366->SetBinContent(54,30657.14); h_SL2L366->SetBinContent(55,31467.86); h_SL2L366->SetBinContent(56,26507.14); h_SL2L366->SetBinContent(57,47925); h_SL2L366->SetMaximum(194198); 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,54146.43); h_SL2L467->SetBinContent(3,60664.29); h_SL2L467->SetBinContent(4,67264.28); h_SL2L467->SetBinContent(5,66878.57); h_SL2L467->SetBinContent(6,61378.57); h_SL2L467->SetBinContent(7,57464.29); h_SL2L467->SetBinContent(8,50910.71); h_SL2L467->SetBinContent(9,59767.86); h_SL2L467->SetBinContent(10,61275); h_SL2L467->SetBinContent(11,62485.71); h_SL2L467->SetBinContent(12,61603.57); h_SL2L467->SetBinContent(13,60642.86); h_SL2L467->SetBinContent(14,60425); h_SL2L467->SetBinContent(15,58896.43); h_SL2L467->SetBinContent(16,57342.86); h_SL2L467->SetBinContent(17,55210.71); h_SL2L467->SetBinContent(18,53414.29); h_SL2L467->SetBinContent(19,53485.71); h_SL2L467->SetBinContent(20,50514.29); h_SL2L467->SetBinContent(21,46921.43); h_SL2L467->SetBinContent(22,42385.71); h_SL2L467->SetBinContent(23,40325); h_SL2L467->SetBinContent(24,37689.29); h_SL2L467->SetBinContent(25,36421.43); h_SL2L467->SetBinContent(26,47235.71); h_SL2L467->SetBinContent(27,62610.71); h_SL2L467->SetBinContent(28,72275); h_SL2L467->SetBinContent(29,74289.28); h_SL2L467->SetBinContent(30,75671.43); h_SL2L467->SetBinContent(31,70475); h_SL2L467->SetBinContent(32,70350); h_SL2L467->SetBinContent(33,69325); h_SL2L467->SetBinContent(34,60553.57); h_SL2L467->SetBinContent(35,36307.14); h_SL2L467->SetBinContent(36,25675); h_SL2L467->SetBinContent(37,24367.86); h_SL2L467->SetBinContent(38,24439.29); h_SL2L467->SetBinContent(39,23825); h_SL2L467->SetBinContent(40,23550); h_SL2L467->SetBinContent(41,22417.86); h_SL2L467->SetBinContent(42,22982.14); h_SL2L467->SetBinContent(43,22353.57); h_SL2L467->SetBinContent(44,22200); h_SL2L467->SetBinContent(45,21689.29); h_SL2L467->SetBinContent(46,20453.57); h_SL2L467->SetBinContent(47,20882.14); h_SL2L467->SetBinContent(48,20210.71); h_SL2L467->SetBinContent(49,20560.71); h_SL2L467->SetBinContent(50,21342.86); h_SL2L467->SetBinContent(51,20760.71); h_SL2L467->SetBinContent(52,23314.29); h_SL2L467->SetBinContent(53,26007.14); h_SL2L467->SetBinContent(54,28739.29); h_SL2L467->SetBinContent(55,30725); h_SL2L467->SetBinContent(56,26810.71); h_SL2L467->SetBinContent(57,25964.29); h_SL2L467->SetMaximum(194198); 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 6825"); pt->Draw(); c->Modified(); c->cd(); c->SetSelected(c); }