void RatesPerCell_Removing_noisy_cells_run_5490_SL1() { //=========Macro generated from canvas: c/c //========= (Sun Jan 13 15:11:24 2019) by ROOT version6.02/13 TCanvas *c = new TCanvas("c", "c",0,0,800,600); gStyle->SetOptStat(0); c->Range(-7.500001,-18613.9,67.5,167525.1); c->SetFillColor(0); c->SetBorderMode(0); c->SetBorderSize(2); c->SetFrameBorderMode(0); c->SetFrameBorderMode(0); TH1D *h_SL1L160 = new TH1D("h_SL1L160","SL1, run 5490",60,0,60); h_SL1L160->SetBinContent(1,8.571428); h_SL1L160->SetBinContent(2,5.714286); h_SL1L160->SetBinContent(3,10); h_SL1L160->SetBinContent(4,14.28572); h_SL1L160->SetBinContent(5,8.571428); h_SL1L160->SetBinContent(6,10); h_SL1L160->SetBinContent(7,5.714286); h_SL1L160->SetBinContent(8,10); h_SL1L160->SetBinContent(9,15.71429); h_SL1L160->SetBinContent(10,8.571428); h_SL1L160->SetBinContent(11,22.85714); h_SL1L160->SetBinContent(12,14.28572); h_SL1L160->SetBinContent(13,20); h_SL1L160->SetBinContent(14,18.57143); h_SL1L160->SetBinContent(15,11.42857); h_SL1L160->SetBinContent(16,11.42857); h_SL1L160->SetBinContent(17,5.714286); h_SL1L160->SetBinContent(18,20); h_SL1L160->SetBinContent(19,22.85714); h_SL1L160->SetBinContent(20,28.57143); h_SL1L160->SetBinContent(21,22.85714); h_SL1L160->SetBinContent(22,25.71429); h_SL1L160->SetBinContent(23,32.85714); h_SL1L160->SetBinContent(24,38.57143); h_SL1L160->SetBinContent(25,20); h_SL1L160->SetBinContent(26,42.85714); h_SL1L160->SetBinContent(27,44.28572); h_SL1L160->SetBinContent(28,55.71429); h_SL1L160->SetBinContent(29,70); h_SL1L160->SetBinContent(30,60); h_SL1L160->SetBinContent(31,84.28571); h_SL1L160->SetBinContent(32,91.42857); h_SL1L160->SetBinContent(33,222.8571); h_SL1L160->SetBinContent(34,395.7143); h_SL1L160->SetBinContent(35,564.2857); h_SL1L160->SetBinContent(36,728.5715); h_SL1L160->SetBinContent(37,1645.714); h_SL1L160->SetBinContent(38,2038.572); h_SL1L160->SetBinContent(39,1108.571); h_SL1L160->SetBinContent(40,170); h_SL1L160->SetBinContent(41,117.1429); h_SL1L160->SetBinContent(42,88.57143); h_SL1L160->SetBinContent(43,72.85715); h_SL1L160->SetBinContent(44,88.57143); h_SL1L160->SetBinContent(45,61.42857); h_SL1L160->SetBinContent(46,58.57143); h_SL1L160->SetBinContent(47,52.85714); h_SL1L160->SetBinContent(48,51.42857); h_SL1L160->SetBinContent(49,41.42857); h_SL1L160->SetBinContent(50,31.42857); h_SL1L160->SetBinContent(51,41.42857); h_SL1L160->SetBinContent(52,21.42857); h_SL1L160->SetBinContent(53,40); h_SL1L160->SetBinContent(54,35.71429); h_SL1L160->SetBinContent(55,28.57143); h_SL1L160->SetBinContent(56,28.57143); h_SL1L160->SetBinContent(57,25.71429); h_SL1L160->SetBinContent(58,28.57143); h_SL1L160->SetBinContent(59,24.28572); h_SL1L160->SetMaximum(148911.2); 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,367.1429); h_SL1L261->SetBinContent(2,354.2857); h_SL1L261->SetBinContent(3,361.4286); h_SL1L261->SetBinContent(4,378.5714); h_SL1L261->SetBinContent(5,365.7143); h_SL1L261->SetBinContent(6,397.1429); h_SL1L261->SetBinContent(7,442.8571); h_SL1L261->SetBinContent(8,468.5714); h_SL1L261->SetBinContent(9,537.1429); h_SL1L261->SetBinContent(10,542.8572); h_SL1L261->SetBinContent(11,550); h_SL1L261->SetBinContent(12,598.5715); h_SL1L261->SetBinContent(13,632.8572); h_SL1L261->SetBinContent(14,657.1429); h_SL1L261->SetBinContent(15,651.4286); h_SL1L261->SetBinContent(16,608.5715); h_SL1L261->SetBinContent(17,632.8572); h_SL1L261->SetBinContent(18,827.1429); h_SL1L261->SetBinContent(19,875.7143); h_SL1L261->SetBinContent(20,987.1429); h_SL1L261->SetBinContent(21,1087.143); h_SL1L261->SetBinContent(22,1241.429); h_SL1L261->SetBinContent(23,1372.857); h_SL1L261->SetBinContent(24,1562.857); h_SL1L261->SetBinContent(25,1674.286); h_SL1L261->SetBinContent(26,1614.286); h_SL1L261->SetBinContent(27,1901.429); h_SL1L261->SetBinContent(28,2344.286); h_SL1L261->SetBinContent(29,2671.429); h_SL1L261->SetBinContent(30,2942.857); h_SL1L261->SetBinContent(31,3314.286); h_SL1L261->SetBinContent(32,4550); h_SL1L261->SetBinContent(33,8897.144); h_SL1L261->SetBinContent(34,18290); h_SL1L261->SetBinContent(35,26514.29); h_SL1L261->SetBinContent(36,39638.57); h_SL1L261->SetBinContent(37,65144.29); h_SL1L261->SetBinContent(38,106231.4); h_SL1L261->SetBinContent(39,101211.4); h_SL1L261->SetBinContent(40,26315.71); h_SL1L261->SetBinContent(41,8965.715); h_SL1L261->SetBinContent(42,4692.857); h_SL1L261->SetBinContent(43,3920); h_SL1L261->SetBinContent(44,3561.429); h_SL1L261->SetBinContent(45,3192.857); h_SL1L261->SetBinContent(46,2961.429); h_SL1L261->SetBinContent(47,2781.429); h_SL1L261->SetBinContent(48,2544.286); h_SL1L261->SetBinContent(49,2295.714); h_SL1L261->SetBinContent(50,2122.857); h_SL1L261->SetBinContent(51,2044.286); h_SL1L261->SetBinContent(52,1754.286); h_SL1L261->SetBinContent(53,1708.571); h_SL1L261->SetBinContent(54,1622.857); h_SL1L261->SetBinContent(55,1524.286); h_SL1L261->SetBinContent(56,1304.286); h_SL1L261->SetBinContent(57,1212.857); h_SL1L261->SetBinContent(58,1205.714); h_SL1L261->SetBinContent(59,1131.429); h_SL1L261->SetMaximum(129488.4); 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,320); h_SL1L362->SetBinContent(2,355.7143); h_SL1L362->SetBinContent(3,352.8571); h_SL1L362->SetBinContent(4,364.2857); h_SL1L362->SetBinContent(5,368.5714); h_SL1L362->SetBinContent(6,360); h_SL1L362->SetBinContent(7,412.8571); h_SL1L362->SetBinContent(8,497.1429); h_SL1L362->SetBinContent(9,458.5714); h_SL1L362->SetBinContent(10,471.4286); h_SL1L362->SetBinContent(11,545.7143); h_SL1L362->SetBinContent(12,608.5715); h_SL1L362->SetBinContent(13,578.5715); h_SL1L362->SetBinContent(14,620); h_SL1L362->SetBinContent(15,552.8572); h_SL1L362->SetBinContent(16,627.1429); h_SL1L362->SetBinContent(17,605.7143); h_SL1L362->SetBinContent(18,852.8572); h_SL1L362->SetBinContent(19,830); h_SL1L362->SetBinContent(20,1005.714); h_SL1L362->SetBinContent(21,1132.857); h_SL1L362->SetBinContent(22,1107.143); h_SL1L362->SetBinContent(23,1482.857); h_SL1L362->SetBinContent(24,1504.286); h_SL1L362->SetBinContent(25,1551.429); h_SL1L362->SetBinContent(26,1628.571); h_SL1L362->SetBinContent(27,1918.572); h_SL1L362->SetBinContent(28,2558.572); h_SL1L362->SetBinContent(29,2695.714); h_SL1L362->SetBinContent(30,2941.429); h_SL1L362->SetBinContent(31,3802.857); h_SL1L362->SetBinContent(32,5280); h_SL1L362->SetBinContent(33,14420); h_SL1L362->SetBinContent(34,21928.57); h_SL1L362->SetBinContent(35,32417.14); h_SL1L362->SetBinContent(36,49730); h_SL1L362->SetBinContent(37,86672.86); h_SL1L362->SetBinContent(38,112598.6); h_SL1L362->SetBinContent(39,67724.29); h_SL1L362->SetBinContent(40,11085.71); h_SL1L362->SetBinContent(41,5642.857); h_SL1L362->SetBinContent(42,4255.714); h_SL1L362->SetBinContent(43,3675.714); h_SL1L362->SetBinContent(44,3274.286); h_SL1L362->SetBinContent(45,3040); h_SL1L362->SetBinContent(46,2702.857); h_SL1L362->SetBinContent(47,2565.714); h_SL1L362->SetBinContent(48,2208.572); h_SL1L362->SetBinContent(49,2135.714); h_SL1L362->SetBinContent(50,1940); h_SL1L362->SetBinContent(51,1814.286); h_SL1L362->SetBinContent(52,1618.571); h_SL1L362->SetBinContent(53,1562.857); h_SL1L362->SetBinContent(54,1544.286); h_SL1L362->SetBinContent(55,1411.429); h_SL1L362->SetBinContent(56,1141.429); h_SL1L362->SetBinContent(57,1181.429); h_SL1L362->SetBinContent(58,1088.571); h_SL1L362->SetBinContent(59,1048.571); h_SL1L362->SetMaximum(129488.4); 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,345.7143); h_SL1L463->SetBinContent(3,327.1429); h_SL1L463->SetBinContent(4,321.4286); h_SL1L463->SetBinContent(5,331.4286); h_SL1L463->SetBinContent(6,318.5714); h_SL1L463->SetBinContent(7,371.4286); h_SL1L463->SetBinContent(8,398.5714); h_SL1L463->SetBinContent(9,450); h_SL1L463->SetBinContent(10,441.4286); h_SL1L463->SetBinContent(11,482.8571); h_SL1L463->SetBinContent(12,517.1429); h_SL1L463->SetBinContent(13,524.2857); h_SL1L463->SetBinContent(14,585.7143); h_SL1L463->SetBinContent(15,595.7143); h_SL1L463->SetBinContent(16,550); h_SL1L463->SetBinContent(17,588.5715); h_SL1L463->SetBinContent(18,727.1429); h_SL1L463->SetBinContent(19,737.1429); h_SL1L463->SetBinContent(20,867.1429); h_SL1L463->SetBinContent(21,997.1429); h_SL1L463->SetBinContent(22,1052.857); h_SL1L463->SetBinContent(23,1221.429); h_SL1L463->SetBinContent(24,1361.429); h_SL1L463->SetBinContent(25,1521.429); h_SL1L463->SetBinContent(26,1467.143); h_SL1L463->SetBinContent(27,1715.714); h_SL1L463->SetBinContent(28,2164.286); h_SL1L463->SetBinContent(29,2572.857); h_SL1L463->SetBinContent(30,2660); h_SL1L463->SetBinContent(31,3200); h_SL1L463->SetBinContent(32,4472.857); h_SL1L463->SetBinContent(33,8712.857); h_SL1L463->SetBinContent(34,18352.86); h_SL1L463->SetBinContent(35,26724.29); h_SL1L463->SetBinContent(36,39664.29); h_SL1L463->SetBinContent(37,65617.14); h_SL1L463->SetBinContent(38,106331.4); h_SL1L463->SetBinContent(39,102298.6); h_SL1L463->SetBinContent(40,26817.14); h_SL1L463->SetBinContent(41,8872.857); h_SL1L463->SetBinContent(42,4664.286); h_SL1L463->SetBinContent(43,3812.857); h_SL1L463->SetBinContent(44,3531.429); h_SL1L463->SetBinContent(45,3057.143); h_SL1L463->SetBinContent(46,2800); h_SL1L463->SetBinContent(47,2587.143); h_SL1L463->SetBinContent(48,2388.572); h_SL1L463->SetBinContent(49,2138.572); h_SL1L463->SetBinContent(50,1937.143); h_SL1L463->SetBinContent(51,1857.143); h_SL1L463->SetBinContent(52,1590); h_SL1L463->SetBinContent(53,1584.286); h_SL1L463->SetBinContent(54,1408.571); h_SL1L463->SetBinContent(56,1221.429); h_SL1L463->SetBinContent(57,1047.143); h_SL1L463->SetBinContent(58,1111.429); h_SL1L463->SetBinContent(59,1037.143); h_SL1L463->SetMaximum(129488.4); 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 5490"); pt->Draw(); c->Modified(); c->cd(); c->SetSelected(c); }