void RatesPerCell_Removing_noisy_cells_run_7566_SL1() { //=========Macro generated from canvas: c/c //========= (Fri Jan 18 19:12:21 2019) by ROOT version6.02/13 TCanvas *c = new TCanvas("c", "c",0,0,800,600); gStyle->SetOptStat(0); c->Range(-7.500001,-17350.63,67.5,156155.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 7566",60,0,60); h_SL1L160->SetBinContent(1,66964.28); h_SL1L160->SetBinContent(2,67685.71); h_SL1L160->SetBinContent(3,66507.14); h_SL1L160->SetBinContent(4,59628.57); h_SL1L160->SetBinContent(5,46092.86); h_SL1L160->SetBinContent(6,48021.43); h_SL1L160->SetBinContent(7,45842.86); h_SL1L160->SetBinContent(8,48871.43); h_SL1L160->SetBinContent(9,47821.43); h_SL1L160->SetBinContent(10,47700); h_SL1L160->SetBinContent(11,47892.86); h_SL1L160->SetBinContent(12,45807.14); h_SL1L160->SetBinContent(13,46378.57); h_SL1L160->SetBinContent(14,70271.43); h_SL1L160->SetBinContent(15,66285.71); h_SL1L160->SetBinContent(16,38128.57); h_SL1L160->SetBinContent(17,42935.71); h_SL1L160->SetBinContent(18,46550); h_SL1L160->SetBinContent(19,47014.29); h_SL1L160->SetBinContent(20,45357.14); h_SL1L160->SetBinContent(21,41478.57); h_SL1L160->SetBinContent(22,40250); h_SL1L160->SetBinContent(23,38392.86); h_SL1L160->SetBinContent(24,33850); h_SL1L160->SetBinContent(25,32671.43); h_SL1L160->SetBinContent(26,33328.57); h_SL1L160->SetBinContent(27,32607.14); h_SL1L160->SetBinContent(28,34150); h_SL1L160->SetBinContent(29,36607.14); h_SL1L160->SetBinContent(30,32828.57); h_SL1L160->SetBinContent(31,36078.57); h_SL1L160->SetBinContent(32,35850); h_SL1L160->SetBinContent(33,95364.28); h_SL1L160->SetBinContent(34,97778.57); h_SL1L160->SetBinContent(35,94264.28); h_SL1L160->SetBinContent(36,97000); h_SL1L160->SetBinContent(37,89042.86); h_SL1L160->SetBinContent(38,89535.71); h_SL1L160->SetBinContent(39,99185.71); h_SL1L160->SetBinContent(41,29028.57); h_SL1L160->SetBinContent(42,29407.14); h_SL1L160->SetBinContent(43,31571.43); h_SL1L160->SetBinContent(44,30542.86); h_SL1L160->SetBinContent(45,27714.29); h_SL1L160->SetBinContent(46,26800); h_SL1L160->SetBinContent(47,26114.29); h_SL1L160->SetBinContent(48,26007.14); h_SL1L160->SetBinContent(49,28678.57); h_SL1L160->SetBinContent(50,30642.86); h_SL1L160->SetBinContent(51,29914.29); h_SL1L160->SetBinContent(52,29428.57); h_SL1L160->SetBinContent(53,29500); h_SL1L160->SetBinContent(54,28385.71); h_SL1L160->SetBinContent(55,30400); h_SL1L160->SetBinContent(56,35307.14); h_SL1L160->SetMaximum(138805); 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,90314.28); h_SL1L261->SetBinContent(2,90864.28); h_SL1L261->SetBinContent(3,92835.71); h_SL1L261->SetBinContent(4,94707.14); h_SL1L261->SetBinContent(5,85607.14); h_SL1L261->SetBinContent(6,89971.43); h_SL1L261->SetBinContent(7,88007.14); h_SL1L261->SetBinContent(8,90892.86); h_SL1L261->SetBinContent(9,91128.57); h_SL1L261->SetBinContent(10,88035.71); h_SL1L261->SetBinContent(11,89028.57); h_SL1L261->SetBinContent(12,90921.43); h_SL1L261->SetBinContent(13,89971.43); h_SL1L261->SetBinContent(14,92035.71); h_SL1L261->SetBinContent(15,91514.28); h_SL1L261->SetBinContent(16,88242.86); h_SL1L261->SetBinContent(17,96300); h_SL1L261->SetBinContent(18,101192.9); h_SL1L261->SetBinContent(19,104957.1); h_SL1L261->SetBinContent(20,103271.4); h_SL1L261->SetBinContent(21,97228.57); h_SL1L261->SetBinContent(22,92192.86); h_SL1L261->SetBinContent(23,90071.43); h_SL1L261->SetBinContent(24,90942.86); h_SL1L261->SetBinContent(25,89221.43); h_SL1L261->SetBinContent(26,83407.14); h_SL1L261->SetBinContent(27,83728.57); h_SL1L261->SetBinContent(28,87514.28); h_SL1L261->SetBinContent(29,93314.28); h_SL1L261->SetBinContent(30,92585.71); h_SL1L261->SetBinContent(31,99821.43); h_SL1L261->SetBinContent(32,97735.71); h_SL1L261->SetBinContent(33,92942.86); h_SL1L261->SetBinContent(34,95000); h_SL1L261->SetBinContent(35,94721.43); h_SL1L261->SetBinContent(36,95550); h_SL1L261->SetBinContent(37,88714.28); h_SL1L261->SetBinContent(38,90642.86); h_SL1L261->SetBinContent(39,98250); h_SL1L261->SetBinContent(40,95707.14); h_SL1L261->SetBinContent(41,88750); h_SL1L261->SetBinContent(42,91214.28); h_SL1L261->SetBinContent(43,97900); h_SL1L261->SetBinContent(44,92042.86); h_SL1L261->SetBinContent(45,94314.28); h_SL1L261->SetBinContent(46,94235.71); h_SL1L261->SetBinContent(47,90007.14); h_SL1L261->SetBinContent(48,89021.43); h_SL1L261->SetBinContent(49,96464.28); h_SL1L261->SetBinContent(50,96285.71); h_SL1L261->SetBinContent(51,95728.57); h_SL1L261->SetBinContent(52,94721.43); h_SL1L261->SetBinContent(53,89685.71); h_SL1L261->SetBinContent(54,88157.14); h_SL1L261->SetBinContent(55,90778.57); h_SL1L261->SetBinContent(56,88385.71); h_SL1L261->SetMaximum(120700.7); 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,87100); h_SL1L362->SetBinContent(2,88164.28); h_SL1L362->SetBinContent(3,90421.43); h_SL1L362->SetBinContent(4,90442.86); h_SL1L362->SetBinContent(5,87307.14); h_SL1L362->SetBinContent(6,86285.71); h_SL1L362->SetBinContent(7,87200); h_SL1L362->SetBinContent(8,87785.71); h_SL1L362->SetBinContent(9,84314.28); h_SL1L362->SetBinContent(10,87464.28); h_SL1L362->SetBinContent(11,89392.86); h_SL1L362->SetBinContent(12,87535.71); h_SL1L362->SetBinContent(13,87592.86); h_SL1L362->SetBinContent(14,87064.28); h_SL1L362->SetBinContent(15,85735.71); h_SL1L362->SetBinContent(16,85707.14); h_SL1L362->SetBinContent(17,94071.43); h_SL1L362->SetBinContent(18,101400); h_SL1L362->SetBinContent(19,102221.4); h_SL1L362->SetBinContent(20,102914.3); h_SL1L362->SetBinContent(21,92150); h_SL1L362->SetBinContent(22,88500); h_SL1L362->SetBinContent(23,88385.71); h_SL1L362->SetBinContent(24,88342.86); h_SL1L362->SetBinContent(25,83550); h_SL1L362->SetBinContent(26,79735.71); h_SL1L362->SetBinContent(27,82300); h_SL1L362->SetBinContent(28,90057.14); h_SL1L362->SetBinContent(29,91507.14); h_SL1L362->SetBinContent(30,88821.43); h_SL1L362->SetBinContent(31,96050); h_SL1L362->SetBinContent(32,92314.28); h_SL1L362->SetBinContent(33,93542.86); h_SL1L362->SetBinContent(34,94471.43); h_SL1L362->SetBinContent(35,91200); h_SL1L362->SetBinContent(36,94057.14); h_SL1L362->SetBinContent(37,89428.57); h_SL1L362->SetBinContent(38,88514.28); h_SL1L362->SetBinContent(39,92671.43); h_SL1L362->SetBinContent(40,93628.57); h_SL1L362->SetBinContent(41,87485.71); h_SL1L362->SetBinContent(42,88578.57); h_SL1L362->SetBinContent(43,93042.86); h_SL1L362->SetBinContent(44,90442.86); h_SL1L362->SetBinContent(45,92057.14); h_SL1L362->SetBinContent(46,92221.43); h_SL1L362->SetBinContent(47,86292.86); h_SL1L362->SetBinContent(48,87528.57); h_SL1L362->SetBinContent(49,93328.57); h_SL1L362->SetBinContent(50,94557.14); h_SL1L362->SetBinContent(51,91071.43); h_SL1L362->SetBinContent(52,92478.57); h_SL1L362->SetBinContent(53,85207.14); h_SL1L362->SetBinContent(54,85707.14); h_SL1L362->SetBinContent(55,86092.86); h_SL1L362->SetBinContent(56,84071.43); h_SL1L362->SetMaximum(120700.7); 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,55578.57); h_SL1L463->SetBinContent(3,50314.29); h_SL1L463->SetBinContent(4,46407.14); h_SL1L463->SetBinContent(5,42092.86); h_SL1L463->SetBinContent(6,42221.43); h_SL1L463->SetBinContent(7,42000); h_SL1L463->SetBinContent(8,44800); h_SL1L463->SetBinContent(9,46814.29); h_SL1L463->SetBinContent(10,50521.43); h_SL1L463->SetBinContent(11,55014.29); h_SL1L463->SetBinContent(12,56321.43); h_SL1L463->SetBinContent(13,56621.43); h_SL1L463->SetBinContent(14,58828.57); h_SL1L463->SetBinContent(15,93907.14); h_SL1L463->SetBinContent(16,64828.57); h_SL1L463->SetBinContent(17,51842.86); h_SL1L463->SetBinContent(18,51564.29); h_SL1L463->SetBinContent(19,50064.29); h_SL1L463->SetBinContent(20,49735.71); h_SL1L463->SetBinContent(21,45628.57); h_SL1L463->SetBinContent(22,46835.71); h_SL1L463->SetBinContent(23,43350); h_SL1L463->SetBinContent(24,43557.14); h_SL1L463->SetBinContent(25,37392.86); h_SL1L463->SetBinContent(26,38021.43); h_SL1L463->SetBinContent(27,38400); h_SL1L463->SetBinContent(28,38264.29); h_SL1L463->SetBinContent(29,36578.57); h_SL1L463->SetBinContent(30,37442.86); h_SL1L463->SetBinContent(31,38007.14); h_SL1L463->SetBinContent(32,34771.43); h_SL1L463->SetBinContent(33,32721.43); h_SL1L463->SetBinContent(34,36950); h_SL1L463->SetBinContent(35,37657.14); h_SL1L463->SetBinContent(36,32642.86); h_SL1L463->SetBinContent(37,657.1428); h_SL1L463->SetBinContent(41,27814.29); h_SL1L463->SetBinContent(42,28764.29); h_SL1L463->SetBinContent(43,30250); h_SL1L463->SetBinContent(44,28835.71); h_SL1L463->SetBinContent(45,26985.71); h_SL1L463->SetBinContent(46,28642.86); h_SL1L463->SetBinContent(47,26342.86); h_SL1L463->SetBinContent(48,25128.57); h_SL1L463->SetBinContent(49,25464.29); h_SL1L463->SetBinContent(50,27371.43); h_SL1L463->SetBinContent(51,27350); h_SL1L463->SetBinContent(52,27335.71); h_SL1L463->SetBinContent(53,28342.86); h_SL1L463->SetBinContent(54,25771.43); h_SL1L463->SetBinContent(56,29814.29); h_SL1L463->SetMaximum(120700.7); 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 7566"); pt->Draw(); c->Modified(); c->cd(); c->SetSelected(c); }