void RatesPerCell_Removing_noisy_cells_run_7298_SL1() { //=========Macro generated from canvas: c/c //========= (Sat Dec 22 21:54:27 2018) by ROOT version6.02/13 TCanvas *c = new TCanvas("c", "c",0,0,800,600); gStyle->SetOptStat(0); c->Range(-7.500001,-1980.013,67.5,17820.11); c->SetFillColor(0); c->SetBorderMode(0); c->SetBorderSize(2); c->SetFrameBorderMode(0); c->SetFrameBorderMode(0); TH1D *h_SL1L160 = new TH1D("h_SL1L160","SL1, run 7298",60,0,60); h_SL1L160->SetBinContent(1,2657.774); h_SL1L160->SetBinContent(2,3781.385); h_SL1L160->SetBinContent(3,4292.773); h_SL1L160->SetBinContent(4,5488.411); h_SL1L160->SetBinContent(5,5790.922); h_SL1L160->SetBinContent(6,5942.177); h_SL1L160->SetBinContent(7,5826.935); h_SL1L160->SetBinContent(8,6352.728); h_SL1L160->SetBinContent(9,6028.609); h_SL1L160->SetBinContent(10,6129.446); h_SL1L160->SetBinContent(11,5841.34); h_SL1L160->SetBinContent(12,6518.388); h_SL1L160->SetBinContent(13,7159.423); h_SL1L160->SetBinContent(14,11977.99); h_SL1L160->SetBinContent(15,11034.44); h_SL1L160->SetBinContent(16,6431.957); h_SL1L160->SetBinContent(17,6784.886); h_SL1L160->SetBinContent(18,6849.71); h_SL1L160->SetBinContent(19,6309.512); h_SL1L160->SetBinContent(20,6179.864); h_SL1L160->SetBinContent(21,6626.428); h_SL1L160->SetBinContent(22,7065.789); h_SL1L160->SetBinContent(23,6057.419); h_SL1L160->SetBinContent(24,6813.697); h_SL1L160->SetBinContent(25,6820.899); h_SL1L160->SetBinContent(26,7036.979); h_SL1L160->SetBinContent(27,6669.644); h_SL1L160->SetBinContent(28,6467.97); h_SL1L160->SetBinContent(29,7274.666); h_SL1L160->SetBinContent(30,7181.031); h_SL1L160->SetBinContent(31,6792.089); h_SL1L160->SetBinContent(32,7094.6); h_SL1L160->SetBinContent(33,7389.908); h_SL1L160->SetBinContent(34,7642); h_SL1L160->SetBinContent(35,6864.115); h_SL1L160->SetBinContent(36,6705.657); h_SL1L160->SetBinContent(37,7087.397); h_SL1L160->SetBinContent(38,6446.362); h_SL1L160->SetBinContent(39,6395.943); h_SL1L160->SetBinContent(41,6345.525); h_SL1L160->SetBinContent(42,6381.538); h_SL1L160->SetBinContent(43,5697.288); h_SL1L160->SetBinContent(44,5848.543); h_SL1L160->SetBinContent(45,6100.635); h_SL1L160->SetBinContent(46,6064.622); h_SL1L160->SetBinContent(47,4753.742); h_SL1L160->SetBinContent(48,4652.905); h_SL1L160->SetBinContent(49,5466.803); h_SL1L160->SetBinContent(50,5481.208); h_SL1L160->SetBinContent(51,4588.081); h_SL1L160->SetBinContent(52,4465.636); h_SL1L160->SetBinContent(53,4616.892); h_SL1L160->SetBinContent(54,4660.107); h_SL1L160->SetBinContent(55,3903.83); h_SL1L160->SetBinContent(56,3817.399); h_SL1L160->SetMaximum(15840.1); 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,2542.531); h_SL1L261->SetBinContent(2,3298.809); h_SL1L261->SetBinContent(3,4098.302); h_SL1L261->SetBinContent(4,4991.429); h_SL1L261->SetBinContent(5,5733.301); h_SL1L261->SetBinContent(6,6079.027); h_SL1L261->SetBinContent(7,6172.662); h_SL1L261->SetBinContent(8,6302.309); h_SL1L261->SetBinContent(9,6684.049); h_SL1L261->SetBinContent(10,6201.472); h_SL1L261->SetBinContent(11,5826.935); h_SL1L261->SetBinContent(12,6482.375); h_SL1L261->SetBinContent(13,7094.6); h_SL1L261->SetBinContent(14,7051.384); h_SL1L261->SetBinContent(15,6086.23); h_SL1L261->SetBinContent(16,6338.322); h_SL1L261->SetBinContent(17,7116.208); h_SL1L261->SetBinContent(18,6921.736); h_SL1L261->SetBinContent(19,6936.142); h_SL1L261->SetBinContent(20,6165.459); h_SL1L261->SetBinContent(21,6734.468); h_SL1L261->SetBinContent(22,7274.666); h_SL1L261->SetBinContent(23,6784.886); h_SL1L261->SetBinContent(24,6417.551); h_SL1L261->SetBinContent(25,7145.018); h_SL1L261->SetBinContent(26,7137.815); h_SL1L261->SetBinContent(27,6878.521); h_SL1L261->SetBinContent(28,6460.767); h_SL1L261->SetBinContent(29,7605.987); h_SL1L261->SetBinContent(30,7231.45); h_SL1L261->SetBinContent(31,7461.934); h_SL1L261->SetBinContent(32,7152.221); h_SL1L261->SetBinContent(33,7512.353); h_SL1L261->SetBinContent(34,7865.282); h_SL1L261->SetBinContent(35,7202.639); h_SL1L261->SetBinContent(36,7022.573); h_SL1L261->SetBinContent(37,7217.044); h_SL1L261->SetBinContent(38,6957.75); h_SL1L261->SetBinContent(39,6539.996); h_SL1L261->SetBinContent(40,6446.362); h_SL1L261->SetBinContent(41,6496.78); h_SL1L261->SetBinContent(42,6633.63); h_SL1L261->SetBinContent(43,5963.785); h_SL1L261->SetBinContent(44,6107.838); h_SL1L261->SetBinContent(45,6381.538); h_SL1L261->SetBinContent(46,6287.904); h_SL1L261->SetBinContent(47,5344.358); h_SL1L261->SetBinContent(48,4832.971); h_SL1L261->SetBinContent(49,4984.226); h_SL1L261->SetBinContent(50,5805.327); h_SL1L261->SetBinContent(51,5099.468); h_SL1L261->SetBinContent(52,4372.002); h_SL1L261->SetBinContent(53,4832.971); h_SL1L261->SetBinContent(54,4926.605); h_SL1L261->SetBinContent(55,4595.284); h_SL1L261->SetBinContent(56,4026.275); h_SL1L261->SetMaximum(13774.69); 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,2866.65); h_SL1L362->SetBinContent(2,3817.399); h_SL1L362->SetBinContent(3,4746.539); h_SL1L362->SetBinContent(4,5423.587); h_SL1L362->SetBinContent(5,6208.675); h_SL1L362->SetBinContent(6,6295.106); h_SL1L362->SetBinContent(7,6143.851); h_SL1L362->SetBinContent(8,6777.684); h_SL1L362->SetBinContent(9,6784.886); h_SL1L362->SetBinContent(10,6093.433); h_SL1L362->SetBinContent(11,5970.988); h_SL1L362->SetBinContent(12,7022.573); h_SL1L362->SetBinContent(13,7440.326); h_SL1L362->SetBinContent(14,6633.63); h_SL1L362->SetBinContent(15,6007.001); h_SL1L362->SetBinContent(16,7087.397); h_SL1L362->SetBinContent(17,7116.208); h_SL1L362->SetBinContent(18,6633.63); h_SL1L362->SetBinContent(19,6662.441); h_SL1L362->SetBinContent(20,6684.049); h_SL1L362->SetBinContent(21,6943.344); h_SL1L362->SetBinContent(22,6878.521); h_SL1L362->SetBinContent(23,6511.186); h_SL1L362->SetBinContent(24,7152.221); h_SL1L362->SetBinContent(25,7159.423); h_SL1L362->SetBinContent(26,6957.75); h_SL1L362->SetBinContent(27,6698.455); h_SL1L362->SetBinContent(28,7015.371); h_SL1L362->SetBinContent(29,7591.582); h_SL1L362->SetBinContent(30,7152.221); h_SL1L362->SetBinContent(31,7267.463); h_SL1L362->SetBinContent(32,7202.639); h_SL1L362->SetBinContent(33,7822.066); h_SL1L362->SetBinContent(34,7627.595); h_SL1L362->SetBinContent(35,7109.005); h_SL1L362->SetBinContent(36,6972.155); h_SL1L362->SetBinContent(37,7361.097); h_SL1L362->SetBinContent(38,6583.212); h_SL1L362->SetBinContent(39,6662.441); h_SL1L362->SetBinContent(40,6475.172); h_SL1L362->SetBinContent(41,6705.657); h_SL1L362->SetBinContent(42,6561.604); h_SL1L362->SetBinContent(43,5985.393); h_SL1L362->SetBinContent(44,6158.256); h_SL1L362->SetBinContent(45,6367.133); h_SL1L362->SetBinContent(46,5891.759); h_SL1L362->SetBinContent(47,4948.213); h_SL1L362->SetBinContent(48,5085.063); h_SL1L362->SetBinContent(49,5762.111); h_SL1L362->SetBinContent(50,5502.816); h_SL1L362->SetBinContent(51,4660.107); h_SL1L362->SetBinContent(52,4760.944); h_SL1L362->SetBinContent(53,5128.279); h_SL1L362->SetBinContent(54,5063.455); h_SL1L362->SetBinContent(55,4141.518); h_SL1L362->SetBinContent(56,4213.544); h_SL1L362->SetMaximum(13774.69); 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,878.722); h_SL1L463->SetBinContent(3,1051.585); h_SL1L463->SetBinContent(4,1065.991); h_SL1L463->SetBinContent(5,1476.541); h_SL1L463->SetBinContent(6,1555.77); h_SL1L463->SetBinContent(7,1598.986); h_SL1L463->SetBinContent(8,1411.717); h_SL1L463->SetBinContent(9,1750.241); h_SL1L463->SetBinContent(10,1368.501); h_SL1L463->SetBinContent(11,1512.554); h_SL1L463->SetBinContent(12,1577.378); h_SL1L463->SetBinContent(13,1987.928); h_SL1L463->SetBinContent(14,1807.862); h_SL1L463->SetBinContent(15,8016.537); h_SL1L463->SetBinContent(16,4696.121); h_SL1L463->SetBinContent(17,1851.078); h_SL1L463->SetBinContent(18,1606.188); h_SL1L463->SetBinContent(19,1505.352); h_SL1L463->SetBinContent(20,1505.352); h_SL1L463->SetBinContent(21,1440.528); h_SL1L463->SetBinContent(22,1771.849); h_SL1L463->SetBinContent(23,1310.88); h_SL1L463->SetBinContent(24,1318.083); h_SL1L463->SetBinContent(25,1440.528); h_SL1L463->SetBinContent(26,1591.783); h_SL1L463->SetBinContent(27,1368.501); h_SL1L463->SetBinContent(28,1397.312); h_SL1L463->SetBinContent(29,1411.717); h_SL1L463->SetBinContent(30,1260.462); h_SL1L463->SetBinContent(31,1613.391); h_SL1L463->SetBinContent(32,1318.083); h_SL1L463->SetBinContent(33,1253.259); h_SL1L463->SetBinContent(34,1800.66); h_SL1L463->SetBinContent(35,1476.541); h_SL1L463->SetBinContent(36,1584.581); h_SL1L463->SetBinContent(38,7.202639); h_SL1L463->SetBinContent(41,1382.907); h_SL1L463->SetBinContent(42,1274.867); h_SL1L463->SetBinContent(43,1346.894); h_SL1L463->SetBinContent(44,1490.946); h_SL1L463->SetBinContent(45,1418.92); h_SL1L463->SetBinContent(46,1382.907); h_SL1L463->SetBinContent(47,1008.369); h_SL1L463->SetBinContent(48,943.5457); h_SL1L463->SetBinContent(49,993.9642); h_SL1L463->SetBinContent(50,1217.246); h_SL1L463->SetBinContent(51,1166.828); h_SL1L463->SetBinContent(52,957.951); h_SL1L463->SetBinContent(53,1015.572); h_SL1L463->SetBinContent(54,1109.206); h_SL1L463->SetBinContent(56,1073.193); h_SL1L463->SetMaximum(13774.69); 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 7298"); pt->Draw(); c->Modified(); c->cd(); c->SetSelected(c); }