void RatesPerCell_Removing_noisy_cells_run_7694_SL2() { //=========Macro generated from canvas: c/c //========= (Thu Dec 27 12:29:28 2018) by ROOT version6.02/13 TCanvas *c = new TCanvas("c", "c",0,0,800,600); gStyle->SetOptStat(0); c->Range(-7.500001,-9926.944,67.5,89342.49); c->SetFillColor(0); c->SetBorderMode(0); c->SetBorderSize(2); c->SetFrameBorderMode(0); c->SetFrameBorderMode(0); TH1D *h_SL2L164 = new TH1D("h_SL2L164","SL2, run 7694",60,0,60); h_SL2L164->SetBinContent(1,30164.29); h_SL2L164->SetBinContent(2,36107.14); h_SL2L164->SetBinContent(3,45150); h_SL2L164->SetBinContent(4,46492.86); h_SL2L164->SetBinContent(5,46407.14); h_SL2L164->SetBinContent(6,44785.71); h_SL2L164->SetBinContent(7,40514.29); h_SL2L164->SetBinContent(8,38828.57); h_SL2L164->SetBinContent(9,43728.57); h_SL2L164->SetBinContent(10,44371.43); h_SL2L164->SetBinContent(11,45350); h_SL2L164->SetBinContent(12,45250); h_SL2L164->SetBinContent(13,45035.71); h_SL2L164->SetBinContent(14,44371.43); h_SL2L164->SetBinContent(15,42907.14); h_SL2L164->SetBinContent(16,43971.43); h_SL2L164->SetBinContent(17,40307.14); h_SL2L164->SetBinContent(18,42271.43); h_SL2L164->SetBinContent(19,40692.86); h_SL2L164->SetBinContent(20,39750); h_SL2L164->SetBinContent(21,38692.86); h_SL2L164->SetBinContent(22,34750); h_SL2L164->SetBinContent(23,33292.86); h_SL2L164->SetBinContent(24,31321.43); h_SL2L164->SetBinContent(25,30064.29); h_SL2L164->SetBinContent(26,28850); h_SL2L164->SetBinContent(27,29378.57); h_SL2L164->SetBinContent(28,28778.57); h_SL2L164->SetBinContent(29,28414.29); h_SL2L164->SetBinContent(30,27335.71); h_SL2L164->SetBinContent(31,27042.86); h_SL2L164->SetBinContent(32,29150); h_SL2L164->SetBinContent(33,29335.71); h_SL2L164->SetBinContent(34,30707.14); h_SL2L164->SetBinContent(36,29714.29); h_SL2L164->SetBinContent(37,37771.43); h_SL2L164->SetBinContent(38,34350); h_SL2L164->SetBinContent(39,35214.29); h_SL2L164->SetBinContent(40,60050); h_SL2L164->SetBinContent(41,49185.71); h_SL2L164->SetBinContent(42,39378.57); h_SL2L164->SetBinContent(43,40428.57); h_SL2L164->SetBinContent(44,38300); h_SL2L164->SetBinContent(45,29550); h_SL2L164->SetBinContent(46,27721.43); h_SL2L164->SetBinContent(47,27585.71); h_SL2L164->SetBinContent(48,26257.14); h_SL2L164->SetBinContent(49,26650); h_SL2L164->SetBinContent(50,26921.43); h_SL2L164->SetBinContent(51,28221.43); h_SL2L164->SetBinContent(52,31435.71); h_SL2L164->SetBinContent(53,35521.43); h_SL2L164->SetBinContent(54,37535.71); h_SL2L164->SetBinContent(55,35021.43); h_SL2L164->SetBinContent(56,30064.29); h_SL2L164->SetBinContent(57,24792.86); h_SL2L164->SetMaximum(79415.55); 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,23264.29); h_SL2L265->SetBinContent(2,35164.29); h_SL2L265->SetBinContent(3,38521.43); h_SL2L265->SetBinContent(4,45928.57); h_SL2L265->SetBinContent(5,45642.86); h_SL2L265->SetBinContent(6,44371.43); h_SL2L265->SetBinContent(7,41357.14); h_SL2L265->SetBinContent(8,36785.71); h_SL2L265->SetBinContent(9,40814.29); h_SL2L265->SetBinContent(10,42278.57); h_SL2L265->SetBinContent(11,43578.57); h_SL2L265->SetBinContent(12,43257.14); h_SL2L265->SetBinContent(13,42364.29); h_SL2L265->SetBinContent(14,43021.43); h_SL2L265->SetBinContent(15,42428.57); h_SL2L265->SetBinContent(16,42064.29); h_SL2L265->SetBinContent(17,41071.43); h_SL2L265->SetBinContent(18,40864.29); h_SL2L265->SetBinContent(19,40250); h_SL2L265->SetBinContent(20,39378.57); h_SL2L265->SetBinContent(21,39185.71); h_SL2L265->SetBinContent(22,35621.43); h_SL2L265->SetBinContent(23,31935.71); h_SL2L265->SetBinContent(24,31185.71); h_SL2L265->SetBinContent(25,30150); h_SL2L265->SetBinContent(26,27964.29); h_SL2L265->SetBinContent(27,27528.57); h_SL2L265->SetBinContent(28,28200); h_SL2L265->SetBinContent(29,28085.71); h_SL2L265->SetBinContent(30,27992.86); h_SL2L265->SetBinContent(31,25478.57); h_SL2L265->SetBinContent(32,27821.43); h_SL2L265->SetBinContent(33,28478.57); h_SL2L265->SetBinContent(34,29521.43); h_SL2L265->SetBinContent(35,28300); h_SL2L265->SetBinContent(36,27828.57); h_SL2L265->SetBinContent(37,29842.86); h_SL2L265->SetBinContent(38,31221.43); h_SL2L265->SetBinContent(39,31578.57); h_SL2L265->SetBinContent(40,33500); h_SL2L265->SetBinContent(41,30842.86); h_SL2L265->SetBinContent(42,30542.86); h_SL2L265->SetBinContent(43,29300); h_SL2L265->SetBinContent(44,30114.29); h_SL2L265->SetBinContent(45,28385.71); h_SL2L265->SetBinContent(46,27357.14); h_SL2L265->SetBinContent(47,27278.57); h_SL2L265->SetBinContent(48,25950); h_SL2L265->SetBinContent(49,25721.43); h_SL2L265->SetBinContent(50,26650); h_SL2L265->SetBinContent(51,25685.71); h_SL2L265->SetBinContent(52,29800); h_SL2L265->SetBinContent(53,31764.29); h_SL2L265->SetBinContent(54,37078.57); h_SL2L265->SetBinContent(55,35707.14); h_SL2L265->SetBinContent(56,32385.71); h_SL2L265->SetBinContent(57,28692.86); h_SL2L265->SetMaximum(69057.5); 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,27942.86); h_SL2L366->SetBinContent(2,33835.71); h_SL2L366->SetBinContent(3,43114.29); h_SL2L366->SetBinContent(4,43585.71); h_SL2L366->SetBinContent(5,42007.14); h_SL2L366->SetBinContent(6,40214.29); h_SL2L366->SetBinContent(7,38071.43); h_SL2L366->SetBinContent(8,37514.29); h_SL2L366->SetBinContent(9,41085.71); h_SL2L366->SetBinContent(10,41521.43); h_SL2L366->SetBinContent(11,42864.29); h_SL2L366->SetBinContent(12,42485.71); h_SL2L366->SetBinContent(13,41985.71); h_SL2L366->SetBinContent(14,41714.29); h_SL2L366->SetBinContent(15,41014.29); h_SL2L366->SetBinContent(16,40728.57); h_SL2L366->SetBinContent(17,40035.71); h_SL2L366->SetBinContent(18,39700); h_SL2L366->SetBinContent(19,38414.29); h_SL2L366->SetBinContent(20,37857.14); h_SL2L366->SetBinContent(21,35307.14); h_SL2L366->SetBinContent(22,33771.43); h_SL2L366->SetBinContent(23,30357.14); h_SL2L366->SetBinContent(24,29942.86); h_SL2L366->SetBinContent(25,28700); h_SL2L366->SetBinContent(26,27350); h_SL2L366->SetBinContent(27,27085.71); h_SL2L366->SetBinContent(28,26428.57); h_SL2L366->SetBinContent(29,27357.14); h_SL2L366->SetBinContent(30,26464.29); h_SL2L366->SetBinContent(31,25750); h_SL2L366->SetBinContent(32,26614.29); h_SL2L366->SetBinContent(33,28307.14); h_SL2L366->SetBinContent(34,28478.57); h_SL2L366->SetBinContent(35,28035.71); h_SL2L366->SetBinContent(36,27857.14); h_SL2L366->SetBinContent(37,28914.29); h_SL2L366->SetBinContent(38,28971.43); h_SL2L366->SetBinContent(39,29042.86); h_SL2L366->SetBinContent(40,29650); h_SL2L366->SetBinContent(41,28892.86); h_SL2L366->SetBinContent(42,28514.29); h_SL2L366->SetBinContent(43,29314.29); h_SL2L366->SetBinContent(44,27528.57); h_SL2L366->SetBinContent(45,27364.29); h_SL2L366->SetBinContent(46,26700); h_SL2L366->SetBinContent(47,25585.71); h_SL2L366->SetBinContent(48,25121.43); h_SL2L366->SetBinContent(49,25742.86); h_SL2L366->SetBinContent(50,25128.57); h_SL2L366->SetBinContent(51,26871.43); h_SL2L366->SetBinContent(52,29207.14); h_SL2L366->SetBinContent(53,33150); h_SL2L366->SetBinContent(54,35800); h_SL2L366->SetBinContent(55,34721.43); h_SL2L366->SetBinContent(56,27457.14); h_SL2L366->SetBinContent(57,26721.43); h_SL2L366->SetMaximum(69057.5); 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,31435.71); h_SL2L467->SetBinContent(3,38207.14); h_SL2L467->SetBinContent(4,42050); h_SL2L467->SetBinContent(5,43692.86); h_SL2L467->SetBinContent(6,40200); h_SL2L467->SetBinContent(7,39578.57); h_SL2L467->SetBinContent(8,34757.14); h_SL2L467->SetBinContent(9,39814.29); h_SL2L467->SetBinContent(10,39614.29); h_SL2L467->SetBinContent(11,39385.71); h_SL2L467->SetBinContent(12,40328.57); h_SL2L467->SetBinContent(13,41121.43); h_SL2L467->SetBinContent(14,40392.86); h_SL2L467->SetBinContent(15,40750); h_SL2L467->SetBinContent(16,40714.29); h_SL2L467->SetBinContent(17,38578.57); h_SL2L467->SetBinContent(18,38550); h_SL2L467->SetBinContent(19,37985.71); h_SL2L467->SetBinContent(20,37457.14); h_SL2L467->SetBinContent(21,35385.71); h_SL2L467->SetBinContent(22,35250); h_SL2L467->SetBinContent(23,31121.43); h_SL2L467->SetBinContent(24,28885.71); h_SL2L467->SetBinContent(25,27942.86); h_SL2L467->SetBinContent(26,26914.29); h_SL2L467->SetBinContent(27,25864.29); h_SL2L467->SetBinContent(28,26928.57); h_SL2L467->SetBinContent(29,26135.71); h_SL2L467->SetBinContent(30,27514.29); h_SL2L467->SetBinContent(31,24535.71); h_SL2L467->SetBinContent(32,27478.57); h_SL2L467->SetBinContent(33,26864.29); h_SL2L467->SetBinContent(34,27342.86); h_SL2L467->SetBinContent(35,27250); h_SL2L467->SetBinContent(36,27400); h_SL2L467->SetBinContent(37,27435.71); h_SL2L467->SetBinContent(38,29185.71); h_SL2L467->SetBinContent(39,27785.71); h_SL2L467->SetBinContent(40,28957.14); h_SL2L467->SetBinContent(41,27750); h_SL2L467->SetBinContent(42,27871.43); h_SL2L467->SetBinContent(43,28571.43); h_SL2L467->SetBinContent(44,27914.29); h_SL2L467->SetBinContent(45,26950); h_SL2L467->SetBinContent(46,26200); h_SL2L467->SetBinContent(47,25557.14); h_SL2L467->SetBinContent(48,25100); h_SL2L467->SetBinContent(49,25121.43); h_SL2L467->SetBinContent(50,25285.71); h_SL2L467->SetBinContent(51,23650); h_SL2L467->SetBinContent(52,27921.43); h_SL2L467->SetBinContent(53,31142.86); h_SL2L467->SetBinContent(54,33321.43); h_SL2L467->SetBinContent(55,34007.14); h_SL2L467->SetBinContent(56,30557.14); h_SL2L467->SetBinContent(57,26150); h_SL2L467->SetMaximum(69057.5); 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 7694"); pt->Draw(); c->Modified(); c->cd(); c->SetSelected(c); }