void RatesPerCell_Removing_noisy_cells_run_7052_SL2() { //=========Macro generated from canvas: c/c //========= (Fri Dec 21 17:12:11 2018) by ROOT version6.02/13 TCanvas *c = new TCanvas("c", "c",0,0,800,600); gStyle->SetOptStat(0); c->Range(-7.500001,-3829.213,67.5,34462.91); c->SetFillColor(0); c->SetBorderMode(0); c->SetBorderSize(2); c->SetFrameBorderMode(0); c->SetFrameBorderMode(0); TH1D *h_SL2L164 = new TH1D("h_SL2L164","SL2, run 7052",60,0,60); h_SL2L164->SetBinContent(1,74.88319); h_SL2L164->SetBinContent(2,74.88319); h_SL2L164->SetBinContent(3,74.88319); h_SL2L164->SetBinContent(4,74.88319); h_SL2L164->SetBinContent(5,124.8053); h_SL2L164->SetBinContent(6,49.92212); h_SL2L164->SetBinContent(7,149.7664); h_SL2L164->SetBinContent(8,124.8053); h_SL2L164->SetBinContent(9,199.6885); h_SL2L164->SetBinContent(10,224.6496); h_SL2L164->SetBinContent(11,324.4938); h_SL2L164->SetBinContent(12,399.377); h_SL2L164->SetBinContent(13,399.377); h_SL2L164->SetBinContent(14,349.4549); h_SL2L164->SetBinContent(15,424.338); h_SL2L164->SetBinContent(16,599.0655); h_SL2L164->SetBinContent(17,299.5327); h_SL2L164->SetBinContent(18,449.2991); h_SL2L164->SetBinContent(19,1048.365); h_SL2L164->SetBinContent(20,1173.17); h_SL2L164->SetBinContent(21,1422.781); h_SL2L164->SetBinContent(22,1747.274); h_SL2L164->SetBinContent(23,2396.262); h_SL2L164->SetBinContent(24,2071.768); h_SL2L164->SetBinContent(25,2745.717); h_SL2L164->SetBinContent(26,3868.965); h_SL2L164->SetBinContent(27,5316.706); h_SL2L164->SetBinContent(28,5741.044); h_SL2L164->SetBinContent(29,6914.214); h_SL2L164->SetBinContent(30,8361.956); h_SL2L164->SetBinContent(31,7712.968); h_SL2L164->SetBinContent(32,8861.177); h_SL2L164->SetBinContent(33,10483.65); h_SL2L164->SetBinContent(34,12081.15); h_SL2L164->SetBinContent(36,11806.58); h_SL2L164->SetBinContent(37,14103); h_SL2L164->SetBinContent(38,14202.84); h_SL2L164->SetBinContent(39,16848.72); h_SL2L164->SetBinContent(40,14577.26); h_SL2L164->SetBinContent(41,15850.27); h_SL2L164->SetBinContent(42,17747.31); h_SL2L164->SetBinContent(43,19145.13); h_SL2L164->SetBinContent(44,19319.86); h_SL2L164->SetBinContent(45,20468.07); h_SL2L164->SetBinContent(46,19869.01); h_SL2L164->SetBinContent(47,22215.34); h_SL2L164->SetBinContent(48,20767.6); h_SL2L164->SetBinContent(49,21566.36); h_SL2L164->SetBinContent(50,19794.12); h_SL2L164->SetBinContent(51,23163.87); h_SL2L164->SetBinContent(52,19943.89); h_SL2L164->SetBinContent(53,20043.73); h_SL2L164->SetBinContent(54,18346.38); h_SL2L164->SetBinContent(55,14127.96); h_SL2L164->SetBinContent(56,11082.71); h_SL2L164->SetBinContent(57,4492.991); h_SL2L164->SetMaximum(30633.7); 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,74.88319); h_SL2L265->SetBinContent(2,124.8053); h_SL2L265->SetBinContent(3,99.84425); h_SL2L265->SetBinContent(4,124.8053); h_SL2L265->SetBinContent(5,149.7664); h_SL2L265->SetBinContent(6,199.6885); h_SL2L265->SetBinContent(7,149.7664); h_SL2L265->SetBinContent(8,224.6496); h_SL2L265->SetBinContent(9,149.7664); h_SL2L265->SetBinContent(10,199.6885); h_SL2L265->SetBinContent(11,274.5717); h_SL2L265->SetBinContent(12,224.6496); h_SL2L265->SetBinContent(13,274.5717); h_SL2L265->SetBinContent(14,449.2991); h_SL2L265->SetBinContent(15,374.4159); h_SL2L265->SetBinContent(16,399.377); h_SL2L265->SetBinContent(17,524.1823); h_SL2L265->SetBinContent(18,798.754); h_SL2L265->SetBinContent(19,549.1434); h_SL2L265->SetBinContent(20,748.8318); h_SL2L265->SetBinContent(21,1223.092); h_SL2L265->SetBinContent(22,1747.274); h_SL2L265->SetBinContent(23,2221.534); h_SL2L265->SetBinContent(24,2071.768); h_SL2L265->SetBinContent(25,2546.028); h_SL2L265->SetBinContent(26,3269.899); h_SL2L265->SetBinContent(27,4343.225); h_SL2L265->SetBinContent(28,5416.55); h_SL2L265->SetBinContent(29,6190.343); h_SL2L265->SetBinContent(30,6864.292); h_SL2L265->SetBinContent(31,8137.306); h_SL2L265->SetBinContent(32,8087.384); h_SL2L265->SetBinContent(33,9260.554); h_SL2L265->SetBinContent(34,10333.88); h_SL2L265->SetBinContent(35,9285.515); h_SL2L265->SetBinContent(36,9385.359); h_SL2L265->SetBinContent(37,13379.13); h_SL2L265->SetBinContent(38,14127.96); h_SL2L265->SetBinContent(39,16025); h_SL2L265->SetBinContent(40,15825.31); h_SL2L265->SetBinContent(41,15850.27); h_SL2L265->SetBinContent(42,16399.42); h_SL2L265->SetBinContent(43,18521.11); h_SL2L265->SetBinContent(44,18745.76); h_SL2L265->SetBinContent(45,18920.48); h_SL2L265->SetBinContent(46,20842.49); h_SL2L265->SetBinContent(47,19918.93); h_SL2L265->SetBinContent(48,21766.04); h_SL2L265->SetBinContent(49,21017.21); h_SL2L265->SetBinContent(50,19819.08); h_SL2L265->SetBinContent(51,20842.49); h_SL2L265->SetBinContent(52,21366.67); h_SL2L265->SetBinContent(53,20318.3); h_SL2L265->SetBinContent(54,19968.85); h_SL2L265->SetBinContent(55,17198.17); h_SL2L265->SetBinContent(56,13454.01); h_SL2L265->SetBinContent(57,7912.656); h_SL2L265->SetMaximum(26638.45); 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,49.92212); h_SL2L366->SetBinContent(2,149.7664); h_SL2L366->SetBinContent(3,74.88319); h_SL2L366->SetBinContent(4,149.7664); h_SL2L366->SetBinContent(5,199.6885); h_SL2L366->SetBinContent(6,149.7664); h_SL2L366->SetBinContent(7,99.84425); h_SL2L366->SetBinContent(8,249.6106); h_SL2L366->SetBinContent(9,149.7664); h_SL2L366->SetBinContent(10,149.7664); h_SL2L366->SetBinContent(11,374.4159); h_SL2L366->SetBinContent(12,399.377); h_SL2L366->SetBinContent(13,474.2602); h_SL2L366->SetBinContent(14,324.4938); h_SL2L366->SetBinContent(15,499.2212); h_SL2L366->SetBinContent(16,599.0655); h_SL2L366->SetBinContent(17,574.1044); h_SL2L366->SetBinContent(18,673.9487); h_SL2L366->SetBinContent(19,723.8708); h_SL2L366->SetBinContent(20,898.5982); h_SL2L366->SetBinContent(21,1148.209); h_SL2L366->SetBinContent(22,2146.651); h_SL2L366->SetBinContent(23,1847.119); h_SL2L366->SetBinContent(24,2021.846); h_SL2L366->SetBinContent(25,3120.133); h_SL2L366->SetBinContent(26,3769.12); h_SL2L366->SetBinContent(27,4243.38); h_SL2L366->SetBinContent(28,5890.811); h_SL2L366->SetBinContent(29,6889.253); h_SL2L366->SetBinContent(30,7463.357); h_SL2L366->SetBinContent(31,7588.163); h_SL2L366->SetBinContent(32,8636.527); h_SL2L366->SetBinContent(33,10508.61); h_SL2L366->SetBinContent(34,9684.892); h_SL2L366->SetBinContent(35,11307.36); h_SL2L366->SetBinContent(36,10458.68); h_SL2L366->SetBinContent(37,13853.39); h_SL2L366->SetBinContent(38,15450.9); h_SL2L366->SetBinContent(39,15400.97); h_SL2L366->SetBinContent(40,16025); h_SL2L366->SetBinContent(41,16174.77); h_SL2L366->SetBinContent(42,17722.35); h_SL2L366->SetBinContent(43,19070.25); h_SL2L366->SetBinContent(44,18870.56); h_SL2L366->SetBinContent(45,20168.54); h_SL2L366->SetBinContent(46,20817.53); h_SL2L366->SetBinContent(47,19993.81); h_SL2L366->SetBinContent(48,21316.75); h_SL2L366->SetBinContent(49,19669.32); h_SL2L366->SetBinContent(50,20418.15); h_SL2L366->SetBinContent(51,20393.19); h_SL2L366->SetBinContent(52,21466.51); h_SL2L366->SetBinContent(53,21017.21); h_SL2L366->SetBinContent(54,19120.17); h_SL2L366->SetBinContent(55,16000.04); h_SL2L366->SetBinContent(56,9959.464); h_SL2L366->SetBinContent(57,6614.681); h_SL2L366->SetMaximum(26638.45); 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,74.88319); h_SL2L467->SetBinContent(3,74.88319); h_SL2L467->SetBinContent(4,149.7664); h_SL2L467->SetBinContent(5,149.7664); h_SL2L467->SetBinContent(6,99.84425); h_SL2L467->SetBinContent(7,74.88319); h_SL2L467->SetBinContent(8,124.8053); h_SL2L467->SetBinContent(9,124.8053); h_SL2L467->SetBinContent(10,124.8053); h_SL2L467->SetBinContent(11,274.5717); h_SL2L467->SetBinContent(12,299.5327); h_SL2L467->SetBinContent(13,499.2212); h_SL2L467->SetBinContent(14,224.6496); h_SL2L467->SetBinContent(15,474.2602); h_SL2L467->SetBinContent(16,299.5327); h_SL2L467->SetBinContent(17,499.2212); h_SL2L467->SetBinContent(18,624.0266); h_SL2L467->SetBinContent(19,673.9487); h_SL2L467->SetBinContent(20,873.6371); h_SL2L467->SetBinContent(21,723.8708); h_SL2L467->SetBinContent(22,1946.963); h_SL2L467->SetBinContent(23,1922.002); h_SL2L467->SetBinContent(24,1922.002); h_SL2L467->SetBinContent(25,2795.639); h_SL2L467->SetBinContent(26,3918.887); h_SL2L467->SetBinContent(27,4018.731); h_SL2L467->SetBinContent(28,4917.329); h_SL2L467->SetBinContent(29,6390.032); h_SL2L467->SetBinContent(30,7688.007); h_SL2L467->SetBinContent(31,7887.695); h_SL2L467->SetBinContent(32,8187.228); h_SL2L467->SetBinContent(33,9335.437); h_SL2L467->SetBinContent(34,10708.29); h_SL2L467->SetBinContent(35,10259); h_SL2L467->SetBinContent(36,12181); h_SL2L467->SetBinContent(37,12106.12); h_SL2L467->SetBinContent(38,15101.44); h_SL2L467->SetBinContent(39,14976.64); h_SL2L467->SetBinContent(40,16424.38); h_SL2L467->SetBinContent(41,15775.39); h_SL2L467->SetBinContent(42,16998.48); h_SL2L467->SetBinContent(43,18246.54); h_SL2L467->SetBinContent(44,19594.43); h_SL2L467->SetBinContent(45,18645.91); h_SL2L467->SetBinContent(46,20842.49); h_SL2L467->SetBinContent(47,20293.34); h_SL2L467->SetBinContent(48,20717.68); h_SL2L467->SetBinContent(49,21915.81); h_SL2L467->SetBinContent(50,19893.97); h_SL2L467->SetBinContent(51,20792.56); h_SL2L467->SetBinContent(52,22365.11); h_SL2L467->SetBinContent(53,21865.89); h_SL2L467->SetBinContent(54,21491.47); h_SL2L467->SetBinContent(55,18920.48); h_SL2L467->SetBinContent(56,13803.47); h_SL2L467->SetBinContent(57,5815.927); h_SL2L467->SetMaximum(26638.45); 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 7052"); pt->Draw(); c->Modified(); c->cd(); c->SetSelected(c); }