void RatesPerCell_Removing_noisy_cells_run_6798_SL2() { //=========Macro generated from canvas: c/c //========= (Sun Jan 13 16:14:03 2019) by ROOT version6.02/13 TCanvas *c = new TCanvas("c", "c",0,0,800,600); gStyle->SetOptStat(0); c->Range(-7.500001,-9287.688,67.5,83589.19); c->SetFillColor(0); c->SetBorderMode(0); c->SetBorderSize(2); c->SetFrameBorderMode(0); c->SetFrameBorderMode(0); TH1D *h_SL2L164 = new TH1D("h_SL2L164","SL2, run 6798",60,0,60); h_SL2L164->SetBinContent(1,4617.533); h_SL2L164->SetBinContent(2,5668.146); h_SL2L164->SetBinContent(3,6659.178); h_SL2L164->SetBinContent(4,7115.966); h_SL2L164->SetBinContent(5,6891.544); h_SL2L164->SetBinContent(6,6444.686); h_SL2L164->SetBinContent(7,5791.28); h_SL2L164->SetBinContent(8,5842.917); h_SL2L164->SetBinContent(9,6518.169); h_SL2L164->SetBinContent(10,6873.67); h_SL2L164->SetBinContent(11,7185.478); h_SL2L164->SetBinContent(12,7110.008); h_SL2L164->SetBinContent(13,6967.014); h_SL2L164->SetBinContent(14,7058.371); h_SL2L164->SetBinContent(15,7034.539); h_SL2L164->SetBinContent(16,6929.279); h_SL2L164->SetBinContent(17,6951.125); h_SL2L164->SetBinContent(18,7042.483); h_SL2L164->SetBinContent(19,7052.413); h_SL2L164->SetBinContent(20,6907.433); h_SL2L164->SetBinContent(21,6323.538); h_SL2L164->SetBinContent(22,6399.007); h_SL2L164->SetBinContent(23,6208.348); h_SL2L164->SetBinContent(24,6619.458); h_SL2L164->SetBinContent(25,11838.76); h_SL2L164->SetBinContent(26,30187.74); h_SL2L164->SetBinContent(27,44753.33); h_SL2L164->SetBinContent(28,52397.58); h_SL2L164->SetBinContent(29,56182.97); h_SL2L164->SetBinContent(30,53853.35); h_SL2L164->SetBinContent(31,50991.47); h_SL2L164->SetBinContent(32,50236.78); h_SL2L164->SetBinContent(33,661.3499); h_SL2L164->SetBinContent(34,361.4585); h_SL2L164->SetBinContent(36,119.1621); h_SL2L164->SetBinContent(37,17.87432); h_SL2L164->SetBinContent(38,17.87432); h_SL2L164->SetBinContent(39,3.972072); h_SL2L164->SetBinContent(40,204.5617); h_SL2L164->SetBinContent(41,35.74865); h_SL2L164->SetBinContent(42,11.91621); h_SL2L164->SetBinContent(43,11.91621); h_SL2L164->SetBinContent(44,11.91621); h_SL2L164->SetBinContent(47,1.986036); h_SL2L164->SetBinContent(49,73.48332); h_SL2L164->SetBinContent(50,99.30179); h_SL2L164->SetBinContent(51,63.55315); h_SL2L164->SetBinContent(52,85.39954); h_SL2L164->SetBinContent(53,7.944143); h_SL2L164->SetBinContent(54,15.88829); h_SL2L164->SetBinContent(55,7.944143); h_SL2L164->SetBinContent(56,7.944143); h_SL2L164->SetBinContent(57,3.972072); h_SL2L164->SetMaximum(74301.5); 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,3860.854); h_SL2L265->SetBinContent(2,5529.124); h_SL2L265->SetBinContent(3,5773.406); h_SL2L265->SetBinContent(4,6506.253); h_SL2L265->SetBinContent(5,6708.829); h_SL2L265->SetBinContent(6,6494.337); h_SL2L265->SetBinContent(7,6063.367); h_SL2L265->SetBinContent(8,5541.04); h_SL2L265->SetBinContent(9,6178.558); h_SL2L265->SetBinContent(10,6573.779); h_SL2L265->SetBinContent(11,6873.67); h_SL2L265->SetBinContent(12,6845.866); h_SL2L265->SetBinContent(13,6611.513); h_SL2L265->SetBinContent(14,6943.181); h_SL2L265->SetBinContent(15,6986.874); h_SL2L265->SetBinContent(16,6750.536); h_SL2L265->SetBinContent(17,6738.62); h_SL2L265->SetBinContent(18,6824.019); h_SL2L265->SetBinContent(19,6716.773); h_SL2L265->SetBinContent(20,6671.094); h_SL2L265->SetBinContent(21,6416.882); h_SL2L265->SetBinContent(22,6043.507); h_SL2L265->SetBinContent(23,5928.317); h_SL2L265->SetBinContent(24,6156.711); h_SL2L265->SetBinContent(25,7286.766); h_SL2L265->SetBinContent(26,20686.55); h_SL2L265->SetBinContent(27,38352.34); h_SL2L265->SetBinContent(28,49352.99); h_SL2L265->SetBinContent(29,54252.54); h_SL2L265->SetBinContent(30,55191.93); h_SL2L265->SetBinContent(31,51813.69); h_SL2L265->SetBinContent(32,49913.05); h_SL2L265->SetBinContent(33,659.3639); h_SL2L265->SetBinContent(34,516.3693); h_SL2L265->SetBinContent(35,222.436); h_SL2L265->SetBinContent(36,135.0504); h_SL2L265->SetBinContent(37,21.84639); h_SL2L265->SetBinContent(38,3.972072); h_SL2L265->SetBinContent(39,9.93018); h_SL2L265->SetBinContent(40,15.88829); h_SL2L265->SetBinContent(41,3.972072); h_SL2L265->SetBinContent(42,1.986036); h_SL2L265->SetBinContent(43,1.986036); h_SL2L265->SetBinContent(44,1.986036); h_SL2L265->SetBinContent(49,75.46936); h_SL2L265->SetBinContent(50,71.49729); h_SL2L265->SetBinContent(51,87.38557); h_SL2L265->SetBinContent(52,71.49729); h_SL2L265->SetBinContent(53,21.84639); h_SL2L265->SetBinContent(54,9.93018); h_SL2L265->SetBinContent(55,9.93018); h_SL2L265->SetBinContent(56,9.93018); h_SL2L265->SetBinContent(57,3.972072); h_SL2L265->SetMaximum(64610.41); 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,4516.246); h_SL2L366->SetBinContent(2,5215.33); h_SL2L366->SetBinContent(3,6393.049); h_SL2L366->SetBinContent(4,6688.969); h_SL2L366->SetBinContent(5,6236.152); h_SL2L366->SetBinContent(6,5787.309); h_SL2L366->SetBinContent(7,5608.565); h_SL2L366->SetBinContent(8,5729.713); h_SL2L366->SetBinContent(9,6248.069); h_SL2L366->SetBinContent(10,6565.834); h_SL2L366->SetBinContent(11,6536.044); h_SL2L366->SetBinContent(12,6603.569); h_SL2L366->SetBinContent(13,6740.605); h_SL2L366->SetBinContent(14,6671.094); h_SL2L366->SetBinContent(15,6883.6); h_SL2L366->SetBinContent(16,6549.946); h_SL2L366->SetBinContent(17,6418.868); h_SL2L366->SetBinContent(18,6460.575); h_SL2L366->SetBinContent(19,6484.407); h_SL2L366->SetBinContent(20,6087.2); h_SL2L366->SetBinContent(21,5838.945); h_SL2L366->SetBinContent(22,5932.289); h_SL2L366->SetBinContent(23,5743.616); h_SL2L366->SetBinContent(24,6345.384); h_SL2L366->SetBinContent(25,11511.06); h_SL2L366->SetBinContent(26,29931.55); h_SL2L366->SetBinContent(27,44322.36); h_SL2L366->SetBinContent(28,52117.55); h_SL2L366->SetBinContent(29,54963.54); h_SL2L366->SetBinContent(30,53448.2); h_SL2L366->SetBinContent(31,50773); h_SL2L366->SetBinContent(32,50290.4); h_SL2L366->SetBinContent(33,673.2662); h_SL2L366->SetBinContent(34,349.5423); h_SL2L366->SetBinContent(35,182.7153); h_SL2L366->SetBinContent(36,133.0644); h_SL2L366->SetBinContent(37,7.944143); h_SL2L366->SetBinContent(38,15.88829); h_SL2L366->SetBinContent(39,13.90225); h_SL2L366->SetBinContent(40,5.958107); h_SL2L366->SetBinContent(41,3.972072); h_SL2L366->SetBinContent(42,1.986036); h_SL2L366->SetBinContent(44,3.972072); h_SL2L366->SetBinContent(49,61.56711); h_SL2L366->SetBinContent(50,83.41351); h_SL2L366->SetBinContent(51,91.35765); h_SL2L366->SetBinContent(52,57.59504); h_SL2L366->SetBinContent(53,13.90225); h_SL2L366->SetBinContent(54,7.944143); h_SL2L366->SetBinContent(55,9.93018); h_SL2L366->SetBinContent(56,1.986036); h_SL2L366->SetBinContent(57,1.986036); h_SL2L366->SetMaximum(64610.41); 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,5030.629); h_SL2L467->SetBinContent(3,5578.774); h_SL2L467->SetBinContent(4,6077.27); h_SL2L467->SetBinContent(5,6184.516); h_SL2L467->SetBinContent(6,5904.484); h_SL2L467->SetBinContent(7,5624.454); h_SL2L467->SetBinContent(8,5161.707); h_SL2L467->SetBinContent(9,5902.499); h_SL2L467->SetBinContent(10,5999.814); h_SL2L467->SetBinContent(11,6238.139); h_SL2L467->SetBinContent(12,6389.077); h_SL2L467->SetBinContent(13,6172.599); h_SL2L467->SetBinContent(14,6238.139); h_SL2L467->SetBinContent(15,6377.161); h_SL2L467->SetBinContent(16,6077.27); h_SL2L467->SetBinContent(17,6422.84); h_SL2L467->SetBinContent(18,6015.703); h_SL2L467->SetBinContent(19,6424.826); h_SL2L467->SetBinContent(20,6077.27); h_SL2L467->SetBinContent(21,5757.518); h_SL2L467->SetBinContent(22,5854.833); h_SL2L467->SetBinContent(23,5693.965); h_SL2L467->SetBinContent(24,5707.867); h_SL2L467->SetBinContent(25,6889.558); h_SL2L467->SetBinContent(26,20426.38); h_SL2L467->SetBinContent(27,37853.84); h_SL2L467->SetBinContent(28,49092.82); h_SL2L467->SetBinContent(29,53982.44); h_SL2L467->SetBinContent(30,55668.59); h_SL2L467->SetBinContent(31,51770); h_SL2L467->SetBinContent(32,49930.93); h_SL2L467->SetBinContent(33,623.6152); h_SL2L467->SetBinContent(34,510.4112); h_SL2L467->SetBinContent(35,222.436); h_SL2L467->SetBinContent(36,142.9946); h_SL2L467->SetBinContent(37,25.81847); h_SL2L467->SetBinContent(38,17.87432); h_SL2L467->SetBinContent(39,13.90225); h_SL2L467->SetBinContent(40,5.958107); h_SL2L467->SetBinContent(41,3.972072); h_SL2L467->SetBinContent(42,5.958107); h_SL2L467->SetBinContent(44,1.986036); h_SL2L467->SetBinContent(49,77.4554); h_SL2L467->SetBinContent(50,81.42747); h_SL2L467->SetBinContent(51,75.46936); h_SL2L467->SetBinContent(52,61.56711); h_SL2L467->SetBinContent(53,11.91621); h_SL2L467->SetBinContent(54,9.93018); h_SL2L467->SetBinContent(55,13.90225); h_SL2L467->SetBinContent(56,5.958107); h_SL2L467->SetBinContent(57,5.958107); h_SL2L467->SetMaximum(64610.41); 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 6798"); pt->Draw(); c->Modified(); c->cd(); c->SetSelected(c); }