void RatesPerCell_Removing_noisy_cells_run_7567_SL2() { //=========Macro generated from canvas: c/c //========= (Fri Dec 21 17:23:42 2018) by ROOT version6.02/13 TCanvas *c = new TCanvas("c", "c",0,0,800,600); gStyle->SetOptStat(0); c->Range(-7.500001,-17686,67.5,159173.9); c->SetFillColor(0); c->SetBorderMode(0); c->SetBorderSize(2); c->SetFrameBorderMode(0); c->SetFrameBorderMode(0); TH1D *h_SL2L164 = new TH1D("h_SL2L164","SL2, run 7567",60,0,60); h_SL2L164->SetBinContent(1,66328.57); h_SL2L164->SetBinContent(2,85200); h_SL2L164->SetBinContent(3,103900); h_SL2L164->SetBinContent(4,106985.7); h_SL2L164->SetBinContent(5,106364.3); h_SL2L164->SetBinContent(6,100328.6); h_SL2L164->SetBinContent(7,90557.14); h_SL2L164->SetBinContent(8,87428.57); h_SL2L164->SetBinContent(9,95228.57); h_SL2L164->SetBinContent(10,98000); h_SL2L164->SetBinContent(11,101214.3); h_SL2L164->SetBinContent(12,100821.4); h_SL2L164->SetBinContent(13,99007.14); h_SL2L164->SetBinContent(14,99857.14); h_SL2L164->SetBinContent(15,100135.7); h_SL2L164->SetBinContent(16,96807.14); h_SL2L164->SetBinContent(17,95685.71); h_SL2L164->SetBinContent(18,94750); h_SL2L164->SetBinContent(19,94671.43); h_SL2L164->SetBinContent(20,91242.86); h_SL2L164->SetBinContent(21,87035.71); h_SL2L164->SetBinContent(22,82557.14); h_SL2L164->SetBinContent(23,78221.43); h_SL2L164->SetBinContent(24,72607.14); h_SL2L164->SetBinContent(25,69764.28); h_SL2L164->SetBinContent(26,66228.57); h_SL2L164->SetBinContent(27,67507.14); h_SL2L164->SetBinContent(28,66664.28); h_SL2L164->SetBinContent(29,65750); h_SL2L164->SetBinContent(30,63992.86); h_SL2L164->SetBinContent(31,62964.29); h_SL2L164->SetBinContent(32,66614.28); h_SL2L164->SetBinContent(33,67614.28); h_SL2L164->SetBinContent(34,67800); h_SL2L164->SetBinContent(36,67828.57); h_SL2L164->SetBinContent(37,75985.71); h_SL2L164->SetBinContent(38,71964.28); h_SL2L164->SetBinContent(39,73892.86); h_SL2L164->SetBinContent(40,91657.14); h_SL2L164->SetBinContent(41,91135.71); h_SL2L164->SetBinContent(42,78714.28); h_SL2L164->SetBinContent(43,78057.14); h_SL2L164->SetBinContent(44,75178.57); h_SL2L164->SetBinContent(45,64814.29); h_SL2L164->SetBinContent(46,61621.43); h_SL2L164->SetBinContent(47,60257.14); h_SL2L164->SetBinContent(48,57714.29); h_SL2L164->SetBinContent(49,58492.86); h_SL2L164->SetBinContent(50,58385.71); h_SL2L164->SetBinContent(51,63800); h_SL2L164->SetBinContent(52,70914.28); h_SL2L164->SetBinContent(53,79050); h_SL2L164->SetBinContent(54,82285.71); h_SL2L164->SetBinContent(55,82685.71); h_SL2L164->SetBinContent(56,68471.43); h_SL2L164->SetBinContent(57,57471.43); h_SL2L164->SetMaximum(141487.9); 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,55414.29); h_SL2L265->SetBinContent(2,80735.71); h_SL2L265->SetBinContent(3,90385.71); h_SL2L265->SetBinContent(4,102192.9); h_SL2L265->SetBinContent(5,103600); h_SL2L265->SetBinContent(6,97428.57); h_SL2L265->SetBinContent(7,93414.28); h_SL2L265->SetBinContent(8,80842.86); h_SL2L265->SetBinContent(9,90292.86); h_SL2L265->SetBinContent(10,93442.86); h_SL2L265->SetBinContent(11,97857.14); h_SL2L265->SetBinContent(12,98578.57); h_SL2L265->SetBinContent(13,98185.71); h_SL2L265->SetBinContent(14,96671.43); h_SL2L265->SetBinContent(15,94721.43); h_SL2L265->SetBinContent(16,95542.86); h_SL2L265->SetBinContent(17,92642.86); h_SL2L265->SetBinContent(18,91171.43); h_SL2L265->SetBinContent(19,92528.57); h_SL2L265->SetBinContent(20,87892.86); h_SL2L265->SetBinContent(21,86942.86); h_SL2L265->SetBinContent(22,81428.57); h_SL2L265->SetBinContent(23,77264.28); h_SL2L265->SetBinContent(24,72128.57); h_SL2L265->SetBinContent(25,68571.43); h_SL2L265->SetBinContent(26,64807.14); h_SL2L265->SetBinContent(27,64685.71); h_SL2L265->SetBinContent(28,64407.14); h_SL2L265->SetBinContent(29,65585.71); h_SL2L265->SetBinContent(30,64078.57); h_SL2L265->SetBinContent(31,58642.86); h_SL2L265->SetBinContent(32,62857.14); h_SL2L265->SetBinContent(33,64150); h_SL2L265->SetBinContent(34,65864.28); h_SL2L265->SetBinContent(35,65207.14); h_SL2L265->SetBinContent(36,64657.14); h_SL2L265->SetBinContent(37,68464.28); h_SL2L265->SetBinContent(38,69485.71); h_SL2L265->SetBinContent(39,69357.14); h_SL2L265->SetBinContent(40,69942.86); h_SL2L265->SetBinContent(41,68600); h_SL2L265->SetBinContent(42,66528.57); h_SL2L265->SetBinContent(43,67542.86); h_SL2L265->SetBinContent(44,67521.43); h_SL2L265->SetBinContent(45,63700); h_SL2L265->SetBinContent(46,61407.14); h_SL2L265->SetBinContent(47,58271.43); h_SL2L265->SetBinContent(48,57514.29); h_SL2L265->SetBinContent(49,56592.86); h_SL2L265->SetBinContent(50,57200); h_SL2L265->SetBinContent(51,54957.14); h_SL2L265->SetBinContent(52,64671.43); h_SL2L265->SetBinContent(53,72264.28); h_SL2L265->SetBinContent(54,77978.57); h_SL2L265->SetBinContent(55,81628.57); h_SL2L265->SetBinContent(56,71692.86); h_SL2L265->SetBinContent(57,65278.57); h_SL2L265->SetMaximum(123033.6); 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,64421.43); h_SL2L366->SetBinContent(2,80521.43); h_SL2L366->SetBinContent(3,97150); h_SL2L366->SetBinContent(4,98721.43); h_SL2L366->SetBinContent(5,98528.57); h_SL2L366->SetBinContent(6,91564.28); h_SL2L366->SetBinContent(7,83807.14); h_SL2L366->SetBinContent(8,82364.28); h_SL2L366->SetBinContent(9,89450); h_SL2L366->SetBinContent(10,91814.28); h_SL2L366->SetBinContent(11,93728.57); h_SL2L366->SetBinContent(12,92514.28); h_SL2L366->SetBinContent(13,92557.14); h_SL2L366->SetBinContent(14,93035.71); h_SL2L366->SetBinContent(15,93435.71); h_SL2L366->SetBinContent(16,90285.71); h_SL2L366->SetBinContent(17,88500); h_SL2L366->SetBinContent(18,88385.71); h_SL2L366->SetBinContent(19,86464.28); h_SL2L366->SetBinContent(20,82200); h_SL2L366->SetBinContent(21,80621.43); h_SL2L366->SetBinContent(22,77735.71); h_SL2L366->SetBinContent(23,71278.57); h_SL2L366->SetBinContent(24,67192.86); h_SL2L366->SetBinContent(25,63714.29); h_SL2L366->SetBinContent(26,62035.71); h_SL2L366->SetBinContent(27,63207.14); h_SL2L366->SetBinContent(28,60771.43); h_SL2L366->SetBinContent(29,62171.43); h_SL2L366->SetBinContent(30,58414.29); h_SL2L366->SetBinContent(31,58142.86); h_SL2L366->SetBinContent(32,62228.57); h_SL2L366->SetBinContent(33,62957.14); h_SL2L366->SetBinContent(34,63321.43); h_SL2L366->SetBinContent(35,62321.43); h_SL2L366->SetBinContent(36,63878.57); h_SL2L366->SetBinContent(37,66135.71); h_SL2L366->SetBinContent(38,64857.14); h_SL2L366->SetBinContent(39,64414.29); h_SL2L366->SetBinContent(40,64814.29); h_SL2L366->SetBinContent(41,63357.14); h_SL2L366->SetBinContent(42,64814.29); h_SL2L366->SetBinContent(43,63464.29); h_SL2L366->SetBinContent(44,61550); h_SL2L366->SetBinContent(45,59985.71); h_SL2L366->SetBinContent(46,58807.14); h_SL2L366->SetBinContent(47,56907.14); h_SL2L366->SetBinContent(48,53978.57); h_SL2L366->SetBinContent(49,54621.43); h_SL2L366->SetBinContent(50,55985.71); h_SL2L366->SetBinContent(51,57485.71); h_SL2L366->SetBinContent(52,64635.71); h_SL2L366->SetBinContent(53,72428.57); h_SL2L366->SetBinContent(54,77214.28); h_SL2L366->SetBinContent(55,77442.86); h_SL2L366->SetBinContent(56,63642.86); h_SL2L366->SetBinContent(57,59428.57); h_SL2L366->SetMaximum(123033.6); 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,73635.71); h_SL2L467->SetBinContent(3,85314.28); h_SL2L467->SetBinContent(4,94914.28); h_SL2L467->SetBinContent(5,96721.43); h_SL2L467->SetBinContent(6,89957.14); h_SL2L467->SetBinContent(7,87892.86); h_SL2L467->SetBinContent(8,75578.57); h_SL2L467->SetBinContent(9,85992.86); h_SL2L467->SetBinContent(10,86800); h_SL2L467->SetBinContent(11,89357.14); h_SL2L467->SetBinContent(12,90578.57); h_SL2L467->SetBinContent(13,90657.14); h_SL2L467->SetBinContent(14,89521.43); h_SL2L467->SetBinContent(15,89878.57); h_SL2L467->SetBinContent(16,87614.28); h_SL2L467->SetBinContent(17,85878.57); h_SL2L467->SetBinContent(18,86371.43); h_SL2L467->SetBinContent(19,84492.86); h_SL2L467->SetBinContent(20,83542.86); h_SL2L467->SetBinContent(21,80057.14); h_SL2L467->SetBinContent(22,74878.57); h_SL2L467->SetBinContent(23,71264.28); h_SL2L467->SetBinContent(24,65964.28); h_SL2L467->SetBinContent(25,64657.14); h_SL2L467->SetBinContent(26,60757.14); h_SL2L467->SetBinContent(27,59514.29); h_SL2L467->SetBinContent(28,60978.57); h_SL2L467->SetBinContent(29,58642.86); h_SL2L467->SetBinContent(30,59742.86); h_SL2L467->SetBinContent(31,55892.86); h_SL2L467->SetBinContent(32,59450); h_SL2L467->SetBinContent(33,60835.71); h_SL2L467->SetBinContent(34,61428.57); h_SL2L467->SetBinContent(35,61985.71); h_SL2L467->SetBinContent(36,61564.29); h_SL2L467->SetBinContent(37,62021.43); h_SL2L467->SetBinContent(38,63171.43); h_SL2L467->SetBinContent(39,64178.57); h_SL2L467->SetBinContent(40,62764.29); h_SL2L467->SetBinContent(41,62371.43); h_SL2L467->SetBinContent(42,61357.14); h_SL2L467->SetBinContent(43,61114.29); h_SL2L467->SetBinContent(44,60864.29); h_SL2L467->SetBinContent(45,59457.14); h_SL2L467->SetBinContent(46,57192.86); h_SL2L467->SetBinContent(47,55735.71); h_SL2L467->SetBinContent(48,53042.86); h_SL2L467->SetBinContent(49,52771.43); h_SL2L467->SetBinContent(50,53057.14); h_SL2L467->SetBinContent(51,53121.43); h_SL2L467->SetBinContent(52,60364.29); h_SL2L467->SetBinContent(53,66550); h_SL2L467->SetBinContent(54,73428.57); h_SL2L467->SetBinContent(55,76228.57); h_SL2L467->SetBinContent(56,67985.71); h_SL2L467->SetBinContent(57,60435.71); h_SL2L467->SetMaximum(123033.6); 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 7567"); pt->Draw(); c->Modified(); c->cd(); c->SetSelected(c); }