void RatesPerCell_Removing_noisy_cells_run_7390_SL2() { //=========Macro generated from canvas: c/c //========= (Sat Dec 22 18:31:07 2018) by ROOT version6.02/13 TCanvas *c = new TCanvas("c", "c",0,0,800,600); gStyle->SetOptStat(0); c->Range(-7.500001,-45319.92,67.5,407879.3); c->SetFillColor(0); c->SetBorderMode(0); c->SetBorderSize(2); c->SetFrameBorderMode(0); c->SetFrameBorderMode(0); TH1D *h_SL2L164 = new TH1D("h_SL2L164","SL2, run 7390",60,0,60); h_SL2L164->SetBinContent(1,176641.9); h_SL2L164->SetBinContent(2,219502); h_SL2L164->SetBinContent(3,263784.9); h_SL2L164->SetBinContent(4,274147.6); h_SL2L164->SetBinContent(5,266691); h_SL2L164->SetBinContent(6,247381.8); h_SL2L164->SetBinContent(7,224206.8); h_SL2L164->SetBinContent(8,211797.1); h_SL2L164->SetBinContent(9,234542.6); h_SL2L164->SetBinContent(10,234160); h_SL2L164->SetBinContent(11,241193.8); h_SL2L164->SetBinContent(12,231790.8); h_SL2L164->SetBinContent(13,202340.5); h_SL2L164->SetBinContent(14,198709.5); h_SL2L164->SetBinContent(15,198273.2); h_SL2L164->SetBinContent(16,195541.6); h_SL2L164->SetBinContent(17,174219); h_SL2L164->SetBinContent(18,154701.7); h_SL2L164->SetBinContent(19,156399.8); h_SL2L164->SetBinContent(20,163131.5); h_SL2L164->SetBinContent(21,162849.6); h_SL2L164->SetBinContent(22,158030.7); h_SL2L164->SetBinContent(23,147090.8); h_SL2L164->SetBinContent(24,139385.9); h_SL2L164->SetBinContent(25,127432.6); h_SL2L164->SetBinContent(26,119969.3); h_SL2L164->SetBinContent(27,118861.9); h_SL2L164->SetBinContent(28,117392.1); h_SL2L164->SetBinContent(29,116486); h_SL2L164->SetBinContent(30,111069.8); h_SL2L164->SetBinContent(31,109344.9); h_SL2L164->SetBinContent(32,117002.8); h_SL2L164->SetBinContent(33,123050); h_SL2L164->SetBinContent(34,128513.2); h_SL2L164->SetBinContent(36,131607.2); h_SL2L164->SetBinContent(37,151540.6); h_SL2L164->SetBinContent(38,152560.7); h_SL2L164->SetBinContent(39,159815.9); h_SL2L164->SetBinContent(40,150392.9); h_SL2L164->SetBinContent(41,191615.4); h_SL2L164->SetBinContent(42,167769.2); h_SL2L164->SetBinContent(43,163044.2); h_SL2L164->SetBinContent(44,156628); h_SL2L164->SetBinContent(45,143567.2); h_SL2L164->SetBinContent(46,135835.5); h_SL2L164->SetBinContent(47,135265); h_SL2L164->SetBinContent(48,135781.8); h_SL2L164->SetBinContent(49,143285.3); h_SL2L164->SetBinContent(50,137204.7); h_SL2L164->SetBinContent(51,152191.6); h_SL2L164->SetBinContent(52,174836.4); h_SL2L164->SetBinContent(53,201669.3); h_SL2L164->SetBinContent(54,214891.1); h_SL2L164->SetBinContent(55,215622.7); h_SL2L164->SetBinContent(56,182850.1); h_SL2L164->SetBinContent(57,152399.7); h_SL2L164->SetMaximum(362559.3); 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,143339); h_SL2L265->SetBinContent(2,210414.5); h_SL2L265->SetBinContent(3,228112.9); h_SL2L265->SetBinContent(4,261301.6); h_SL2L265->SetBinContent(5,261556.7); h_SL2L265->SetBinContent(6,246818); h_SL2L265->SetBinContent(7,230831.1); h_SL2L265->SetBinContent(8,195689.3); h_SL2L265->SetBinContent(9,219421.4); h_SL2L265->SetBinContent(10,224663.2); h_SL2L265->SetBinContent(11,233045.9); h_SL2L265->SetBinContent(12,228428.3); h_SL2L265->SetBinContent(13,203884.1); h_SL2L265->SetBinContent(14,194353.7); h_SL2L265->SetBinContent(15,184239.4); h_SL2L265->SetBinContent(16,195011.4); h_SL2L265->SetBinContent(17,178990.9); h_SL2L265->SetBinContent(18,157721.9); h_SL2L265->SetBinContent(19,147312.3); h_SL2L265->SetBinContent(20,153520.5); h_SL2L265->SetBinContent(21,160648.2); h_SL2L265->SetBinContent(22,154131.2); h_SL2L265->SetBinContent(23,145688.1); h_SL2L265->SetBinContent(24,136875.8); h_SL2L265->SetBinContent(25,126788.3); h_SL2L265->SetBinContent(26,119922.4); h_SL2L265->SetBinContent(27,114861.8); h_SL2L265->SetBinContent(28,112747.7); h_SL2L265->SetBinContent(29,111714.1); h_SL2L265->SetBinContent(30,111150.3); h_SL2L265->SetBinContent(31,100720.6); h_SL2L265->SetBinContent(32,110553); h_SL2L265->SetBinContent(33,115371.9); h_SL2L265->SetBinContent(34,123204.3); h_SL2L265->SetBinContent(35,124694.3); h_SL2L265->SetBinContent(36,125889); h_SL2L265->SetBinContent(37,135486.5); h_SL2L265->SetBinContent(38,146547.2); h_SL2L265->SetBinContent(39,148359.3); h_SL2L265->SetBinContent(40,153124.5); h_SL2L265->SetBinContent(41,151453.3); h_SL2L265->SetBinContent(42,150963.4); h_SL2L265->SetBinContent(43,150507); h_SL2L265->SetBinContent(44,147332.4); h_SL2L265->SetBinContent(45,139687.9); h_SL2L265->SetBinContent(46,136224.8); h_SL2L265->SetBinContent(47,132258.2); h_SL2L265->SetBinContent(48,128868.9); h_SL2L265->SetBinContent(49,131452.8); h_SL2L265->SetBinContent(50,137855.7); h_SL2L265->SetBinContent(51,131197.8); h_SL2L265->SetBinContent(52,158097.8); h_SL2L265->SetBinContent(53,177769.4); h_SL2L265->SetBinContent(54,198722.9); h_SL2L265->SetBinContent(55,207884.2); h_SL2L265->SetBinContent(56,186044.8); h_SL2L265->SetBinContent(57,175178.7); h_SL2L265->SetMaximum(315269.7); 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,169111.5); h_SL2L366->SetBinContent(2,203092.2); h_SL2L366->SetBinContent(3,251267.8); h_SL2L366->SetBinContent(4,250160.4); h_SL2L366->SetBinContent(5,245959); h_SL2L366->SetBinContent(6,226911.5); h_SL2L366->SetBinContent(7,206307); h_SL2L366->SetBinContent(8,199521.6); h_SL2L366->SetBinContent(9,213448.1); h_SL2L366->SetBinContent(10,221267.1); h_SL2L366->SetBinContent(11,221649.7); h_SL2L366->SetBinContent(12,210837.3); h_SL2L366->SetBinContent(13,188232.7); h_SL2L366->SetBinContent(14,183863.5); h_SL2L366->SetBinContent(15,180319.8); h_SL2L366->SetBinContent(16,179091.6); h_SL2L366->SetBinContent(17,161299.2); h_SL2L366->SetBinContent(18,143943.1); h_SL2L366->SetBinContent(19,142661.2); h_SL2L366->SetBinContent(20,150252); h_SL2L366->SetBinContent(21,152258.7); h_SL2L366->SetBinContent(22,144748.5); h_SL2L366->SetBinContent(23,135506.6); h_SL2L366->SetBinContent(24,127412.5); h_SL2L366->SetBinContent(25,117016.2); h_SL2L366->SetBinContent(26,112828.2); h_SL2L366->SetBinContent(27,109297.9); h_SL2L366->SetBinContent(28,107995.9); h_SL2L366->SetBinContent(29,106069.7); h_SL2L366->SetBinContent(30,102029.3); h_SL2L366->SetBinContent(31,100901.8); h_SL2L366->SetBinContent(32,106707.3); h_SL2L366->SetBinContent(33,112841.7); h_SL2L366->SetBinContent(34,116492.8); h_SL2L366->SetBinContent(35,118224.3); h_SL2L366->SetBinContent(36,123432.5); h_SL2L366->SetBinContent(37,129754.8); h_SL2L366->SetBinContent(38,137057); h_SL2L366->SetBinContent(39,141318.9); h_SL2L366->SetBinContent(40,144151.1); h_SL2L366->SetBinContent(41,141641); h_SL2L366->SetBinContent(42,140768.5); h_SL2L366->SetBinContent(43,139949.7); h_SL2L366->SetBinContent(44,134204.6); h_SL2L366->SetBinContent(45,129103.8); h_SL2L366->SetBinContent(46,123177.5); h_SL2L366->SetBinContent(47,121687.5); h_SL2L366->SetBinContent(48,119143.8); h_SL2L366->SetBinContent(49,129392.4); h_SL2L366->SetBinContent(50,125741.3); h_SL2L366->SetBinContent(51,133835.5); h_SL2L366->SetBinContent(52,157319.2); h_SL2L366->SetBinContent(53,179292.9); h_SL2L366->SetBinContent(54,191769.7); h_SL2L366->SetBinContent(55,197447.7); h_SL2L366->SetBinContent(56,164232.2); h_SL2L366->SetBinContent(57,157520.6); h_SL2L366->SetMaximum(315269.7); 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,185393.8); h_SL2L467->SetBinContent(3,208394.3); h_SL2L467->SetBinContent(4,230287.5); h_SL2L467->SetBinContent(5,223059.1); h_SL2L467->SetBinContent(6,204743.2); h_SL2L467->SetBinContent(7,194830.2); h_SL2L467->SetBinContent(8,167769.2); h_SL2L467->SetBinContent(9,178185.5); h_SL2L467->SetBinContent(10,180635.2); h_SL2L467->SetBinContent(11,186823.3); h_SL2L467->SetBinContent(12,182970.9); h_SL2L467->SetBinContent(13,151500.3); h_SL2L467->SetBinContent(14,144815.6); h_SL2L467->SetBinContent(15,138855.7); h_SL2L467->SetBinContent(16,143238.4); h_SL2L467->SetBinContent(17,156372.9); h_SL2L467->SetBinContent(18,137721.5); h_SL2L467->SetBinContent(19,131285); h_SL2L467->SetBinContent(20,135016.7); h_SL2L467->SetBinContent(21,135661); h_SL2L467->SetBinContent(22,132271.7); h_SL2L467->SetBinContent(23,125882.2); h_SL2L467->SetBinContent(24,114324.9); h_SL2L467->SetBinContent(25,102989.1); h_SL2L467->SetBinContent(26,96519.11); h_SL2L467->SetBinContent(27,92512.3); h_SL2L467->SetBinContent(28,90646.48); h_SL2L467->SetBinContent(29,83928.2); h_SL2L467->SetBinContent(30,83934.91); h_SL2L467->SetBinContent(31,74954.84); h_SL2L467->SetBinContent(32,82391.26); h_SL2L467->SetBinContent(33,78767.01); h_SL2L467->SetBinContent(34,82169.77); h_SL2L467->SetBinContent(35,83384.57); h_SL2L467->SetBinContent(36,89035.71); h_SL2L467->SetBinContent(37,85002.05); h_SL2L467->SetBinContent(38,90384.73); h_SL2L467->SetBinContent(39,94223.76); h_SL2L467->SetBinContent(40,95243.91); h_SL2L467->SetBinContent(41,83565.78); h_SL2L467->SetBinContent(42,83995.32); h_SL2L467->SetBinContent(43,84391.3); h_SL2L467->SetBinContent(44,82424.81); h_SL2L467->SetBinContent(45,72552.09); h_SL2L467->SetBinContent(46,69639.27); h_SL2L467->SetBinContent(47,68914.42); h_SL2L467->SetBinContent(48,69357.38); h_SL2L467->SetBinContent(49,91800.88); h_SL2L467->SetBinContent(50,95257.34); h_SL2L467->SetBinContent(51,89438.41); h_SL2L467->SetBinContent(52,107673.7); h_SL2L467->SetBinContent(53,111720.8); h_SL2L467->SetBinContent(54,127003.1); h_SL2L467->SetBinContent(55,130003.1); h_SL2L467->SetBinContent(56,120083.4); h_SL2L467->SetBinContent(57,97344.63); h_SL2L467->SetMaximum(315269.7); 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 7390"); pt->Draw(); c->Modified(); c->cd(); c->SetSelected(c); }