void RatesPerCell_Removing_noisy_cells_run_7389_SL1() { //=========Macro generated from canvas: c/c //========= (Mon Jan 21 13:17:20 2019) by ROOT version6.02/13 TCanvas *c = new TCanvas("c", "c",0,0,800,600); gStyle->SetOptStat(0); c->Range(-7.500001,-40077.65,67.5,360698.8); c->SetFillColor(0); c->SetBorderMode(0); c->SetBorderSize(2); c->SetFrameBorderMode(0); c->SetFrameBorderMode(0); TH1D *h_SL1L160 = new TH1D("h_SL1L160","SL1, run 7389",60,0,60); h_SL1L160->SetBinContent(1,156985.1); h_SL1L160->SetBinContent(2,156068.4); h_SL1L160->SetBinContent(3,149219.3); h_SL1L160->SetBinContent(4,132481.7); h_SL1L160->SetBinContent(5,99442.46); h_SL1L160->SetBinContent(6,99562.62); h_SL1L160->SetBinContent(7,100185.7); h_SL1L160->SetBinContent(8,101649.8); h_SL1L160->SetBinContent(9,89527.14); h_SL1L160->SetBinContent(10,86714.54); h_SL1L160->SetBinContent(11,83154.28); h_SL1L160->SetBinContent(12,72202.03); h_SL1L160->SetBinContent(13,70769.03); h_SL1L160->SetBinContent(14,109304.4); h_SL1L160->SetBinContent(15,104213.2); h_SL1L160->SetBinContent(16,68040.98); h_SL1L160->SetBinContent(17,72308.84); h_SL1L160->SetBinContent(18,75192.65); h_SL1L160->SetBinContent(19,77373.31); h_SL1L160->SetBinContent(20,73813.05); h_SL1L160->SetBinContent(21,71031.6); h_SL1L160->SetBinContent(22,68089.94); h_SL1L160->SetBinContent(23,63377.04); h_SL1L160->SetBinContent(24,54560.96); h_SL1L160->SetBinContent(25,52549.41); h_SL1L160->SetBinContent(26,56821.72); h_SL1L160->SetBinContent(27,52384.75); h_SL1L160->SetBinContent(28,52616.16); h_SL1L160->SetBinContent(29,52046.52); h_SL1L160->SetBinContent(30,49901.47); h_SL1L160->SetBinContent(31,49318.48); h_SL1L160->SetBinContent(32,45776.02); h_SL1L160->SetBinContent(33,202489.7); h_SL1L160->SetBinContent(34,209236.4); h_SL1L160->SetBinContent(35,204843.9); h_SL1L160->SetBinContent(36,207976.9); h_SL1L160->SetBinContent(37,203713.5); h_SL1L160->SetBinContent(38,201510.6); h_SL1L160->SetBinContent(39,199240.9); h_SL1L160->SetBinContent(41,45593.55); h_SL1L160->SetBinContent(42,46621.58); h_SL1L160->SetBinContent(43,45184.12); h_SL1L160->SetBinContent(44,45304.29); h_SL1L160->SetBinContent(45,44578.88); h_SL1L160->SetBinContent(46,42856.61); h_SL1L160->SetBinContent(47,43706.62); h_SL1L160->SetBinContent(48,45495.65); h_SL1L160->SetBinContent(49,50693.62); h_SL1L160->SetBinContent(50,57547.12); h_SL1L160->SetBinContent(51,60399.78); h_SL1L160->SetBinContent(52,60244.02); h_SL1L160->SetBinContent(53,56007.31); h_SL1L160->SetBinContent(54,57720.68); h_SL1L160->SetBinContent(55,61623.62); h_SL1L160->SetBinContent(56,73132.15); h_SL1L160->SetMaximum(320621.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,233530.7); h_SL1L261->SetBinContent(2,235493.3); h_SL1L261->SetBinContent(3,242435.8); h_SL1L261->SetBinContent(4,241648.1); h_SL1L261->SetBinContent(5,233935.7); h_SL1L261->SetBinContent(6,236864); h_SL1L261->SetBinContent(7,234229.4); h_SL1L261->SetBinContent(8,232306.8); h_SL1L261->SetBinContent(9,217157.9); h_SL1L261->SetBinContent(10,203704.6); h_SL1L261->SetBinContent(11,199628.1); h_SL1L261->SetBinContent(12,175663.1); h_SL1L261->SetBinContent(13,169183.5); h_SL1L261->SetBinContent(14,166393.1); h_SL1L261->SetBinContent(15,181524.2); h_SL1L261->SetBinContent(16,183495.7); h_SL1L261->SetBinContent(17,194189.8); h_SL1L261->SetBinContent(18,207941.3); h_SL1L261->SetBinContent(19,213019.1); h_SL1L261->SetBinContent(20,219525.5); h_SL1L261->SetBinContent(21,221857.5); h_SL1L261->SetBinContent(22,220451.2); h_SL1L261->SetBinContent(23,218226); h_SL1L261->SetBinContent(24,217607.4); h_SL1L261->SetBinContent(25,219392); h_SL1L261->SetBinContent(26,199009.5); h_SL1L261->SetBinContent(27,196343.8); h_SL1L261->SetBinContent(28,204692.6); h_SL1L261->SetBinContent(29,214345.3); h_SL1L261->SetBinContent(30,211795.3); h_SL1L261->SetBinContent(31,211096.6); h_SL1L261->SetBinContent(32,206900); h_SL1L261->SetBinContent(33,202089.2); h_SL1L261->SetBinContent(34,200883.1); h_SL1L261->SetBinContent(35,200589.4); h_SL1L261->SetBinContent(36,197474.2); h_SL1L261->SetBinContent(37,199018.4); h_SL1L261->SetBinContent(38,200794.1); h_SL1L261->SetBinContent(39,198555.6); h_SL1L261->SetBinContent(40,197914.8); h_SL1L261->SetBinContent(41,199926.3); h_SL1L261->SetBinContent(42,207963.6); h_SL1L261->SetBinContent(43,214060.5); h_SL1L261->SetBinContent(44,208386.4); h_SL1L261->SetBinContent(45,210776.2); h_SL1L261->SetBinContent(46,210451.3); h_SL1L261->SetBinContent(47,214287.5); h_SL1L261->SetBinContent(48,219828.1); h_SL1L261->SetBinContent(49,225916.2); h_SL1L261->SetBinContent(50,224723.5); h_SL1L261->SetBinContent(51,222729.8); h_SL1L261->SetBinContent(52,222529.5); h_SL1L261->SetBinContent(53,211946.6); h_SL1L261->SetBinContent(54,211190.1); h_SL1L261->SetBinContent(55,212129.1); h_SL1L261->SetBinContent(56,210175.4); h_SL1L261->SetMaximum(278801.1); 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,225506.8); h_SL1L362->SetBinContent(2,232832); h_SL1L362->SetBinContent(3,233971.3); h_SL1L362->SetBinContent(4,232155.5); h_SL1L362->SetBinContent(5,231937.5); h_SL1L362->SetBinContent(6,224078.2); h_SL1L362->SetBinContent(7,226672.7); h_SL1L362->SetBinContent(8,221274.5); h_SL1L362->SetBinContent(9,201933.4); h_SL1L362->SetBinContent(10,195026.5); h_SL1L362->SetBinContent(11,180242.5); h_SL1L362->SetBinContent(12,167140.8); h_SL1L362->SetBinContent(13,161199.6); h_SL1L362->SetBinContent(14,167599.2); h_SL1L362->SetBinContent(15,175400.6); h_SL1L362->SetBinContent(16,183104.1); h_SL1L362->SetBinContent(17,196050.1); h_SL1L362->SetBinContent(18,208017); h_SL1L362->SetBinContent(19,207741.1); h_SL1L362->SetBinContent(20,220428.9); h_SL1L362->SetBinContent(21,218395.1); h_SL1L362->SetBinContent(22,213143.8); h_SL1L362->SetBinContent(23,211474.9); h_SL1L362->SetBinContent(24,214323.1); h_SL1L362->SetBinContent(25,203838.1); h_SL1L362->SetBinContent(26,190772); h_SL1L362->SetBinContent(27,194358.9); h_SL1L362->SetBinContent(28,209481.1); h_SL1L362->SetBinContent(29,207856.8); h_SL1L362->SetBinContent(30,204483.4); h_SL1L362->SetBinContent(31,201506.2); h_SL1L362->SetBinContent(32,191323.8); h_SL1L362->SetBinContent(33,193998.5); h_SL1L362->SetBinContent(34,197011.3); h_SL1L362->SetBinContent(35,191528.5); h_SL1L362->SetBinContent(36,197674.4); h_SL1L362->SetBinContent(37,196637.5); h_SL1L362->SetBinContent(38,194399); h_SL1L362->SetBinContent(39,192810.2); h_SL1L362->SetBinContent(40,189935.3); h_SL1L362->SetBinContent(41,197220.5); h_SL1L362->SetBinContent(42,207411.7); h_SL1L362->SetBinContent(43,208132.7); h_SL1L362->SetBinContent(44,201390.5); h_SL1L362->SetBinContent(45,205426.9); h_SL1L362->SetBinContent(46,204741.5); h_SL1L362->SetBinContent(47,212890.1); h_SL1L362->SetBinContent(48,213660); h_SL1L362->SetBinContent(49,218671); h_SL1L362->SetBinContent(50,218346.2); h_SL1L362->SetBinContent(51,214719.2); h_SL1L362->SetBinContent(52,214888.3); h_SL1L362->SetBinContent(53,202236); h_SL1L362->SetBinContent(54,203037.1); h_SL1L362->SetBinContent(55,203629); h_SL1L362->SetBinContent(56,200509.3); h_SL1L362->SetMaximum(278801.1); 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,133465.2); h_SL1L463->SetBinContent(3,114791.6); h_SL1L463->SetBinContent(4,97524.37); h_SL1L463->SetBinContent(5,82589.09); h_SL1L463->SetBinContent(6,79318.1); h_SL1L463->SetBinContent(7,77853.95); h_SL1L463->SetBinContent(8,85575.25); h_SL1L463->SetBinContent(9,88975.3); h_SL1L463->SetBinContent(10,96781.16); h_SL1L463->SetBinContent(11,100755.3); h_SL1L463->SetBinContent(12,96242.68); h_SL1L463->SetBinContent(13,95143.45); h_SL1L463->SetBinContent(14,96153.67); h_SL1L463->SetBinContent(15,163838.6); h_SL1L463->SetBinContent(16,110292.3); h_SL1L463->SetBinContent(17,92415.4); h_SL1L463->SetBinContent(18,91663.3); h_SL1L463->SetBinContent(19,89166.66); h_SL1L463->SetBinContent(20,90172.44); h_SL1L463->SetBinContent(21,87911.67); h_SL1L463->SetBinContent(22,86790.2); h_SL1L463->SetBinContent(23,83866.33); h_SL1L463->SetBinContent(24,84685.19); h_SL1L463->SetBinContent(25,70457.51); h_SL1L463->SetBinContent(26,70154.88); h_SL1L463->SetBinContent(27,65032.57); h_SL1L463->SetBinContent(28,65860.33); h_SL1L463->SetBinContent(29,61903.99); h_SL1L463->SetBinContent(30,63247.98); h_SL1L463->SetBinContent(31,60270.72); h_SL1L463->SetBinContent(32,55962.81); h_SL1L463->SetBinContent(33,52963.29); h_SL1L463->SetBinContent(34,58245.82); h_SL1L463->SetBinContent(35,58050.01); h_SL1L463->SetBinContent(36,50520.06); h_SL1L463->SetBinContent(37,89.00645); h_SL1L463->SetBinContent(41,42527.28); h_SL1L463->SetBinContent(42,45228.63); h_SL1L463->SetBinContent(43,46955.36); h_SL1L463->SetBinContent(44,45295.38); h_SL1L463->SetBinContent(45,40257.62); h_SL1L463->SetBinContent(46,42117.85); h_SL1L463->SetBinContent(47,40747.15); h_SL1L463->SetBinContent(48,39073.83); h_SL1L463->SetBinContent(49,39852.64); h_SL1L463->SetBinContent(50,42865.51); h_SL1L463->SetBinContent(51,43737.77); h_SL1L463->SetBinContent(52,45540.15); h_SL1L463->SetBinContent(53,44391.97); h_SL1L463->SetBinContent(54,44173.9); h_SL1L463->SetBinContent(55,26.70193); h_SL1L463->SetBinContent(56,58410.48); h_SL1L463->SetMaximum(278801.1); 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 7389"); pt->Draw(); c->Modified(); c->cd(); c->SetSelected(c); }