void RatesPerCell_Removing_noisy_cells_run_7390_SL1() { //=========Macro generated from canvas: c/c //========= (Mon Jan 21 13:17:03 2019) by ROOT version6.02/13 TCanvas *c = new TCanvas("c", "c",0,0,800,600); gStyle->SetOptStat(0); c->Range(-7.500001,-39962.07,67.5,359658.6); c->SetFillColor(0); c->SetBorderMode(0); c->SetBorderSize(2); c->SetFrameBorderMode(0); c->SetFrameBorderMode(0); TH1D *h_SL1L160 = new TH1D("h_SL1L160","SL1, run 7390",60,0,60); h_SL1L160->SetBinContent(1,189306.6); h_SL1L160->SetBinContent(2,189682.4); h_SL1L160->SetBinContent(3,186125.3); h_SL1L160->SetBinContent(4,170265.9); h_SL1L160->SetBinContent(5,134345.5); h_SL1L160->SetBinContent(6,133895.9); h_SL1L160->SetBinContent(7,134164.3); h_SL1L160->SetBinContent(8,133781.8); h_SL1L160->SetBinContent(9,122586.9); h_SL1L160->SetBinContent(10,114727.6); h_SL1L160->SetBinContent(11,110452.3); h_SL1L160->SetBinContent(12,95203.64); h_SL1L160->SetBinContent(13,94888.2); h_SL1L160->SetBinContent(14,144104.2); h_SL1L160->SetBinContent(15,140607.4); h_SL1L160->SetBinContent(16,92183.44); h_SL1L160->SetBinContent(17,95196.93); h_SL1L160->SetBinContent(18,98646.68); h_SL1L160->SetBinContent(19,101599.8); h_SL1L160->SetBinContent(20,99210.45); h_SL1L160->SetBinContent(21,96646.63); h_SL1L160->SetBinContent(22,92821.04); h_SL1L160->SetBinContent(23,87183.31); h_SL1L160->SetBinContent(24,75189.73); h_SL1L160->SetBinContent(25,73001.77); h_SL1L160->SetBinContent(26,76679.7); h_SL1L160->SetBinContent(27,71887.64); h_SL1L160->SetBinContent(28,73042.03); h_SL1L160->SetBinContent(29,70605.73); h_SL1L160->SetBinContent(30,66270.06); h_SL1L160->SetBinContent(31,67572.1); h_SL1L160->SetBinContent(32,62840.45); h_SL1L160->SetBinContent(33,206609); h_SL1L160->SetBinContent(34,211622.6); h_SL1L160->SetBinContent(35,207307); h_SL1L160->SetBinContent(36,208750); h_SL1L160->SetBinContent(37,205837.2); h_SL1L160->SetBinContent(38,204273.4); h_SL1L160->SetBinContent(39,203045.2); h_SL1L160->SetBinContent(41,61598.8); h_SL1L160->SetBinContent(42,62820.31); h_SL1L160->SetBinContent(43,62793.46); h_SL1L160->SetBinContent(44,63303.54); h_SL1L160->SetBinContent(45,61900.82); h_SL1L160->SetBinContent(46,60363.88); h_SL1L160->SetBinContent(47,61290.07); h_SL1L160->SetBinContent(48,63545.16); h_SL1L160->SetBinContent(49,70135.92); h_SL1L160->SetBinContent(50,77753.55); h_SL1L160->SetBinContent(51,81861.04); h_SL1L160->SetBinContent(52,78914.66); h_SL1L160->SetBinContent(53,76887.77); h_SL1L160->SetBinContent(54,78693.18); h_SL1L160->SetBinContent(55,85404.75); h_SL1L160->SetBinContent(56,96787.58); h_SL1L160->SetMaximum(319696.5); 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,231307.6); h_SL1L261->SetBinContent(2,237596.3); h_SL1L261->SetBinContent(3,241737.4); h_SL1L261->SetBinContent(4,241623.3); h_SL1L261->SetBinContent(5,232381.5); h_SL1L261->SetBinContent(6,239797.8); h_SL1L261->SetBinContent(7,233448.6); h_SL1L261->SetBinContent(8,233072.8); h_SL1L261->SetBinContent(9,218542.2); h_SL1L261->SetBinContent(10,205877.5); h_SL1L261->SetBinContent(11,195373.9); h_SL1L261->SetBinContent(12,173145.1); h_SL1L261->SetBinContent(13,170890); h_SL1L261->SetBinContent(14,164936.9); h_SL1L261->SetBinContent(15,181957.4); h_SL1L261->SetBinContent(16,179487.6); h_SL1L261->SetBinContent(17,195769.8); h_SL1L261->SetBinContent(18,207515.1); h_SL1L261->SetBinContent(19,211166.2); h_SL1L261->SetBinContent(20,217736.8); h_SL1L261->SetBinContent(21,222455); h_SL1L261->SetBinContent(22,221240.2); h_SL1L261->SetBinContent(23,218616); h_SL1L261->SetBinContent(24,216193.1); h_SL1L261->SetBinContent(25,221891.3); h_SL1L261->SetBinContent(26,199736.4); h_SL1L261->SetBinContent(27,194769.8); h_SL1L261->SetBinContent(28,203736.5); h_SL1L261->SetBinContent(29,209830.6); h_SL1L261->SetBinContent(30,205125.8); h_SL1L261->SetBinContent(31,207568.8); h_SL1L261->SetBinContent(32,203629.1); h_SL1L261->SetBinContent(33,201025); h_SL1L261->SetBinContent(34,200159.2); h_SL1L261->SetBinContent(35,197709.5); h_SL1L261->SetBinContent(36,198602.1); h_SL1L261->SetBinContent(37,199186); h_SL1L261->SetBinContent(38,201501.5); h_SL1L261->SetBinContent(39,198729.6); h_SL1L261->SetBinContent(40,197212.8); h_SL1L261->SetBinContent(41,201320.3); h_SL1L261->SetBinContent(42,208501.7); h_SL1L261->SetBinContent(43,211669.5); h_SL1L261->SetBinContent(44,210045.3); h_SL1L261->SetBinContent(45,210387.6); h_SL1L261->SetBinContent(46,211078.9); h_SL1L261->SetBinContent(47,214173); h_SL1L261->SetBinContent(48,220448.3); h_SL1L261->SetBinContent(49,224951.8); h_SL1L261->SetBinContent(50,224153.1); h_SL1L261->SetBinContent(51,223072.5); h_SL1L261->SetBinContent(52,223428.2); h_SL1L261->SetBinContent(53,212515.2); h_SL1L261->SetBinContent(54,208407.7); h_SL1L261->SetBinContent(55,213428); h_SL1L261->SetBinContent(56,212246.8); h_SL1L261->SetMaximum(277998); 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,226414.9); h_SL1L362->SetBinContent(2,235314.4); h_SL1L362->SetBinContent(3,236723.8); h_SL1L362->SetBinContent(4,231408.3); h_SL1L362->SetBinContent(5,228482); h_SL1L362->SetBinContent(6,222757.1); h_SL1L362->SetBinContent(7,227757.2); h_SL1L362->SetBinContent(8,221978.5); h_SL1L362->SetBinContent(9,201226.3); h_SL1L362->SetBinContent(10,196998); h_SL1L362->SetBinContent(11,178769.4); h_SL1L362->SetBinContent(12,164332.8); h_SL1L362->SetBinContent(13,160084.4); h_SL1L362->SetBinContent(14,167279.2); h_SL1L362->SetBinContent(15,174762.6); h_SL1L362->SetBinContent(16,181910.4); h_SL1L362->SetBinContent(17,192917.4); h_SL1L362->SetBinContent(18,205917.7); h_SL1L362->SetBinContent(19,208219.8); h_SL1L362->SetBinContent(20,217199.9); h_SL1L362->SetBinContent(21,217971.7); h_SL1L362->SetBinContent(22,212374.3); h_SL1L362->SetBinContent(23,211132.6); h_SL1L362->SetBinContent(24,211535.3); h_SL1L362->SetBinContent(25,202441.1); h_SL1L362->SetBinContent(26,191508); h_SL1L362->SetBinContent(27,194132.2); h_SL1L362->SetBinContent(28,210756.8); h_SL1L362->SetBinContent(29,203528.4); h_SL1L362->SetBinContent(30,198675.9); h_SL1L362->SetBinContent(31,201280); h_SL1L362->SetBinContent(32,190836.8); h_SL1L362->SetBinContent(33,195206.1); h_SL1L362->SetBinContent(34,196360.5); h_SL1L362->SetBinContent(35,189165.6); h_SL1L362->SetBinContent(36,197481.3); h_SL1L362->SetBinContent(37,194904); h_SL1L362->SetBinContent(38,192897.3); h_SL1L362->SetBinContent(39,193259.7); h_SL1L362->SetBinContent(40,191387.2); h_SL1L362->SetBinContent(41,198642.4); h_SL1L362->SetBinContent(42,207354); h_SL1L362->SetBinContent(43,203253.2); h_SL1L362->SetBinContent(44,200488.1); h_SL1L362->SetBinContent(45,205743.2); h_SL1L362->SetBinContent(46,203367.3); h_SL1L362->SetBinContent(47,213099.1); h_SL1L362->SetBinContent(48,213025.3); h_SL1L362->SetBinContent(49,220085.9); h_SL1L362->SetBinContent(50,214709.9); h_SL1L362->SetBinContent(51,216293.8); h_SL1L362->SetBinContent(52,217025.4); h_SL1L362->SetBinContent(53,203884.1); h_SL1L362->SetBinContent(54,201541.8); h_SL1L362->SetBinContent(55,203166); h_SL1L362->SetBinContent(56,199669.3); h_SL1L362->SetMaximum(277998); 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,164205.3); h_SL1L463->SetBinContent(3,145204.9); h_SL1L463->SetBinContent(4,129063.5); h_SL1L463->SetBinContent(5,110418.8); h_SL1L463->SetBinContent(6,103573); h_SL1L463->SetBinContent(7,102270.9); h_SL1L463->SetBinContent(8,110875.2); h_SL1L463->SetBinContent(9,115257.8); h_SL1L463->SetBinContent(10,121519.7); h_SL1L463->SetBinContent(11,125895.7); h_SL1L463->SetBinContent(12,118962.6); h_SL1L463->SetBinContent(13,117418.9); h_SL1L463->SetBinContent(14,116788.1); h_SL1L463->SetBinContent(15,209320.5); h_SL1L463->SetBinContent(16,136815.4); h_SL1L463->SetBinContent(17,117439.1); h_SL1L463->SetBinContent(18,119801.6); h_SL1L463->SetBinContent(19,115606.8); h_SL1L463->SetBinContent(20,114996.1); h_SL1L463->SetBinContent(21,114170.5); h_SL1L463->SetBinContent(22,114271.2); h_SL1L463->SetBinContent(23,109720.8); h_SL1L463->SetBinContent(24,111130.2); h_SL1L463->SetBinContent(25,95968.77); h_SL1L463->SetBinContent(26,91612.95); h_SL1L463->SetBinContent(27,87666.55); h_SL1L463->SetBinContent(28,89988.75); h_SL1L463->SetBinContent(29,80901.29); h_SL1L463->SetBinContent(30,84384.59); h_SL1L463->SetBinContent(31,79639.51); h_SL1L463->SetBinContent(32,76297.15); h_SL1L463->SetBinContent(33,70666.14); h_SL1L463->SetBinContent(34,77491.8); h_SL1L463->SetBinContent(35,76397.82); h_SL1L463->SetBinContent(36,68109.03); h_SL1L463->SetBinContent(37,60.40414); h_SL1L463->SetBinContent(38,46.981); h_SL1L463->SetBinContent(41,58075.23); h_SL1L463->SetBinContent(42,61001.48); h_SL1L463->SetBinContent(43,62008.21); h_SL1L463->SetBinContent(44,59343.72); h_SL1L463->SetBinContent(45,55195.96); h_SL1L463->SetBinContent(46,56987.96); h_SL1L463->SetBinContent(47,52947.59); h_SL1L463->SetBinContent(48,54437.56); h_SL1L463->SetBinContent(49,52585.16); h_SL1L463->SetBinContent(50,57357.09); h_SL1L463->SetBinContent(51,58961.16); h_SL1L463->SetBinContent(52,61699.48); h_SL1L463->SetBinContent(53,60947.78); h_SL1L463->SetBinContent(54,60290.05); h_SL1L463->SetBinContent(56,76297.15); h_SL1L463->SetMaximum(277998); 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 7390"); pt->Draw(); c->Modified(); c->cd(); c->SetSelected(c); }