void RatesPerCell_Removing_noisy_cells_run_7052_SL1() { //=========Macro generated from canvas: c/c //========= (Fri Jan 18 19:08:24 2019) by ROOT version6.02/13 TCanvas *c = new TCanvas("c", "c",0,0,800,600); gStyle->SetOptStat(0); c->Range(-7.500001,-1860.988,67.5,16748.89); c->SetFillColor(0); c->SetBorderMode(0); c->SetBorderSize(2); c->SetFrameBorderMode(0); c->SetFrameBorderMode(0); TH1D *h_SL1L160 = new TH1D("h_SL1L160","SL1, run 7052",60,0,60); h_SL1L160->SetBinContent(1,2396.262); h_SL1L160->SetBinContent(2,2895.483); h_SL1L160->SetBinContent(3,3344.782); h_SL1L160->SetBinContent(4,4293.303); h_SL1L160->SetBinContent(5,4892.368); h_SL1L160->SetBinContent(6,5541.355); h_SL1L160->SetBinContent(7,4917.329); h_SL1L160->SetBinContent(8,5291.745); h_SL1L160->SetBinContent(9,4617.796); h_SL1L160->SetBinContent(10,5416.55); h_SL1L160->SetBinContent(11,4967.251); h_SL1L160->SetBinContent(12,5216.862); h_SL1L160->SetBinContent(13,9485.203); h_SL1L160->SetBinContent(14,11257.44); h_SL1L160->SetBinContent(15,10932.95); h_SL1L160->SetBinContent(16,5865.85); h_SL1L160->SetBinContent(17,5266.784); h_SL1L160->SetBinContent(18,6265.227); h_SL1L160->SetBinContent(19,5216.862); h_SL1L160->SetBinContent(20,5641.2); h_SL1L160->SetBinContent(21,6514.837); h_SL1L160->SetBinContent(22,5790.966); h_SL1L160->SetBinContent(23,5591.278); h_SL1L160->SetBinContent(24,5166.94); h_SL1L160->SetBinContent(25,6065.538); h_SL1L160->SetBinContent(26,5815.927); h_SL1L160->SetBinContent(27,5990.655); h_SL1L160->SetBinContent(28,5491.434); h_SL1L160->SetBinContent(29,6140.421); h_SL1L160->SetBinContent(30,6639.643); h_SL1L160->SetBinContent(31,5766.005); h_SL1L160->SetBinContent(32,6140.421); h_SL1L160->SetBinContent(49,5291.745); h_SL1L160->SetBinContent(50,5566.317); h_SL1L160->SetBinContent(51,4018.731); h_SL1L160->SetBinContent(52,4542.913); h_SL1L160->SetBinContent(53,5566.317); h_SL1L160->SetBinContent(54,4842.446); h_SL1L160->SetBinContent(55,4393.147); h_SL1L160->SetBinContent(56,4093.614); h_SL1L160->SetMaximum(14887.9); 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,2970.366); h_SL1L261->SetBinContent(2,3195.016); h_SL1L261->SetBinContent(3,4717.641); h_SL1L261->SetBinContent(4,4742.602); h_SL1L261->SetBinContent(5,5466.473); h_SL1L261->SetBinContent(6,6015.616); h_SL1L261->SetBinContent(7,5566.317); h_SL1L261->SetBinContent(8,5915.771); h_SL1L261->SetBinContent(9,8936.06); h_SL1L261->SetBinContent(10,6190.343); h_SL1L261->SetBinContent(11,6090.499); h_SL1L261->SetBinContent(12,6140.421); h_SL1L261->SetBinContent(13,6190.343); h_SL1L261->SetBinContent(14,6789.409); h_SL1L261->SetBinContent(15,7388.474); h_SL1L261->SetBinContent(16,6639.643); h_SL1L261->SetBinContent(17,6614.681); h_SL1L261->SetBinContent(18,6489.876); h_SL1L261->SetBinContent(19,6190.343); h_SL1L261->SetBinContent(20,6839.331); h_SL1L261->SetBinContent(21,6814.37); h_SL1L261->SetBinContent(22,7837.773); h_SL1L261->SetBinContent(23,5516.395); h_SL1L261->SetBinContent(24,6514.837); h_SL1L261->SetBinContent(25,6914.214); h_SL1L261->SetBinContent(26,7737.929); h_SL1L261->SetBinContent(27,6439.954); h_SL1L261->SetBinContent(28,6090.499); h_SL1L261->SetBinContent(29,7463.357); h_SL1L261->SetBinContent(30,7812.812); h_SL1L261->SetBinContent(31,6165.382); h_SL1L261->SetBinContent(32,7363.513); h_SL1L261->SetBinContent(49,5890.811); h_SL1L261->SetBinContent(50,6015.616); h_SL1L261->SetBinContent(51,5741.044); h_SL1L261->SetBinContent(52,4792.524); h_SL1L261->SetBinContent(53,5291.745); h_SL1L261->SetBinContent(54,5790.966); h_SL1L261->SetBinContent(55,4443.069); h_SL1L261->SetBinContent(56,4742.602); h_SL1L261->SetMaximum(12946.05); 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,2570.989); h_SL1L362->SetBinContent(2,3519.51); h_SL1L362->SetBinContent(3,3918.887); h_SL1L362->SetBinContent(4,5266.784); h_SL1L362->SetBinContent(5,5691.122); h_SL1L362->SetBinContent(6,5790.966); h_SL1L362->SetBinContent(7,5641.2); h_SL1L362->SetBinContent(8,6340.109); h_SL1L362->SetBinContent(9,5766.005); h_SL1L362->SetBinContent(10,6140.421); h_SL1L362->SetBinContent(11,5466.473); h_SL1L362->SetBinContent(12,6639.643); h_SL1L362->SetBinContent(13,6889.253); h_SL1L362->SetBinContent(14,7338.552); h_SL1L362->SetBinContent(15,9585.048); h_SL1L362->SetBinContent(16,7213.747); h_SL1L362->SetBinContent(17,5940.732); h_SL1L362->SetBinContent(18,6864.292); h_SL1L362->SetBinContent(19,6414.993); h_SL1L362->SetBinContent(20,7138.864); h_SL1L362->SetBinContent(21,7513.279); h_SL1L362->SetBinContent(22,6889.253); h_SL1L362->SetBinContent(23,6090.499); h_SL1L362->SetBinContent(24,7163.825); h_SL1L362->SetBinContent(25,7138.864); h_SL1L362->SetBinContent(26,6439.954); h_SL1L362->SetBinContent(27,6464.915); h_SL1L362->SetBinContent(28,6964.136); h_SL1L362->SetBinContent(29,7937.618); h_SL1L362->SetBinContent(30,7688.007); h_SL1L362->SetBinContent(31,6714.525); h_SL1L362->SetBinContent(32,7488.318); h_SL1L362->SetBinContent(49,6240.265); h_SL1L362->SetBinContent(50,6140.421); h_SL1L362->SetBinContent(51,5092.057); h_SL1L362->SetBinContent(52,5366.628); h_SL1L362->SetBinContent(53,5616.239); h_SL1L362->SetBinContent(54,5716.083); h_SL1L362->SetBinContent(55,5291.745); h_SL1L362->SetBinContent(56,5017.173); h_SL1L362->SetMaximum(12946.05); 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,24.96106); h_SL1L463->SetBinContent(3,24.96106); h_SL1L463->SetBinContent(4,24.96106); h_SL1L463->SetBinContent(6,24.96106); h_SL1L463->SetBinContent(7,24.96106); h_SL1L463->SetBinContent(8,74.88319); h_SL1L463->SetBinContent(9,74.88319); h_SL1L463->SetBinContent(10,99.84425); h_SL1L463->SetBinContent(11,224.6496); h_SL1L463->SetBinContent(12,124.8053); h_SL1L463->SetBinContent(13,299.5327); h_SL1L463->SetBinContent(14,7563.202); h_SL1L463->SetBinContent(15,6015.616); h_SL1L463->SetBinContent(16,6165.382); h_SL1L463->SetBinContent(17,99.84425); h_SL1L463->SetBinContent(18,24.96106); h_SL1L463->SetBinContent(19,49.92212); h_SL1L463->SetBinContent(20,74.88319); h_SL1L463->SetBinContent(21,74.88319); h_SL1L463->SetBinContent(22,24.96106); h_SL1L463->SetBinContent(23,74.88319); h_SL1L463->SetBinContent(25,24.96106); h_SL1L463->SetBinContent(26,24.96106); h_SL1L463->SetBinContent(28,49.92212); h_SL1L463->SetBinContent(29,74.88319); h_SL1L463->SetBinContent(31,124.8053); h_SL1L463->SetBinContent(32,49.92212); h_SL1L463->SetBinContent(50,74.88319); h_SL1L463->SetBinContent(51,24.96106); h_SL1L463->SetBinContent(53,49.92212); h_SL1L463->SetMaximum(12946.05); 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.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("SL1, run 7052"); pt->Draw(); c->Modified(); c->cd(); c->SetSelected(c); }