void RatesPerCell_Removing_noisy_cells_run_4977_SL1() { //=========Macro generated from canvas: c/c //========= (Sun Jan 13 16:08:47 2019) by ROOT version6.02/13 TCanvas *c = new TCanvas("c", "c",0,0,800,600); gStyle->SetOptStat(0); c->Range(-7.500001,-37761.98,67.5,339857.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 4977",60,0,60); h_SL1L160->SetBinContent(1,445.7143); h_SL1L160->SetBinContent(2,943.5715); h_SL1L160->SetBinContent(3,475.7143); h_SL1L160->SetBinContent(4,517.8572); h_SL1L160->SetBinContent(5,530.7143); h_SL1L160->SetBinContent(6,526.4286); h_SL1L160->SetBinContent(7,561.4286); h_SL1L160->SetBinContent(8,608.5715); h_SL1L160->SetBinContent(9,640.7143); h_SL1L160->SetBinContent(10,677.8572); h_SL1L160->SetBinContent(11,765); h_SL1L160->SetBinContent(12,908.5715); h_SL1L160->SetBinContent(13,875); h_SL1L160->SetBinContent(14,960); h_SL1L160->SetBinContent(15,912.8572); h_SL1L160->SetBinContent(16,891.4286); h_SL1L160->SetBinContent(17,1000.714); h_SL1L160->SetBinContent(18,1341.429); h_SL1L160->SetBinContent(19,1355.714); h_SL1L160->SetBinContent(20,1570); h_SL1L160->SetBinContent(21,1772.143); h_SL1L160->SetBinContent(22,2085); h_SL1L160->SetBinContent(23,2304.286); h_SL1L160->SetBinContent(24,2452.143); h_SL1L160->SetBinContent(25,2790); h_SL1L160->SetBinContent(26,2917.857); h_SL1L160->SetBinContent(27,3327.143); h_SL1L160->SetBinContent(28,4098.571); h_SL1L160->SetBinContent(29,4515); h_SL1L160->SetBinContent(30,5082.143); h_SL1L160->SetBinContent(31,7600.714); h_SL1L160->SetBinContent(32,13976.43); h_SL1L160->SetBinContent(33,66731.43); h_SL1L160->SetBinContent(34,68802.14); h_SL1L160->SetBinContent(35,66376.43); h_SL1L160->SetBinContent(36,64154.29); h_SL1L160->SetBinContent(37,59418.57); h_SL1L160->SetBinContent(38,47595.71); h_SL1L160->SetBinContent(39,29294.29); h_SL1L160->SetBinContent(40,7020); h_SL1L160->SetBinContent(41,4673.572); h_SL1L160->SetBinContent(42,3965); h_SL1L160->SetBinContent(43,3698.572); h_SL1L160->SetBinContent(44,3346.429); h_SL1L160->SetBinContent(45,3122.857); h_SL1L160->SetBinContent(46,2855.714); h_SL1L160->SetBinContent(47,2608.572); h_SL1L160->SetBinContent(48,2414.286); h_SL1L160->SetBinContent(49,2241.429); h_SL1L160->SetBinContent(50,2014.286); h_SL1L160->SetBinContent(51,1788.571); h_SL1L160->SetBinContent(52,1712.143); h_SL1L160->SetBinContent(53,1668.571); h_SL1L160->SetBinContent(54,1602.143); h_SL1L160->SetBinContent(55,1650); h_SL1L160->SetBinContent(56,1508.571); h_SL1L160->SetBinContent(57,1517.143); h_SL1L160->SetBinContent(58,1491.429); h_SL1L160->SetBinContent(59,1435); h_SL1L160->SetMaximum(302095.8); 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,376.4286); h_SL1L261->SetBinContent(2,363.5714); h_SL1L261->SetBinContent(3,390.7143); h_SL1L261->SetBinContent(4,415.7143); h_SL1L261->SetBinContent(5,460); h_SL1L261->SetBinContent(6,468.5714); h_SL1L261->SetBinContent(7,500.7143); h_SL1L261->SetBinContent(8,571.4286); h_SL1L261->SetBinContent(9,535.7143); h_SL1L261->SetBinContent(10,597.1429); h_SL1L261->SetBinContent(11,670); h_SL1L261->SetBinContent(12,741.4286); h_SL1L261->SetBinContent(13,815); h_SL1L261->SetBinContent(14,851.4286); h_SL1L261->SetBinContent(15,910.7143); h_SL1L261->SetBinContent(16,788.5715); h_SL1L261->SetBinContent(17,892.1429); h_SL1L261->SetBinContent(18,1102.143); h_SL1L261->SetBinContent(19,1275.714); h_SL1L261->SetBinContent(20,1404.286); h_SL1L261->SetBinContent(21,1625.714); h_SL1L261->SetBinContent(22,1793.571); h_SL1L261->SetBinContent(23,2001.429); h_SL1L261->SetBinContent(24,2325); h_SL1L261->SetBinContent(25,2545.714); h_SL1L261->SetBinContent(26,2654.286); h_SL1L261->SetBinContent(27,3007.143); h_SL1L261->SetBinContent(28,3891.429); h_SL1L261->SetBinContent(29,4085.714); h_SL1L261->SetBinContent(30,4632.857); h_SL1L261->SetBinContent(31,5475.714); h_SL1L261->SetBinContent(32,10032.86); h_SL1L261->SetBinContent(33,38786.43); h_SL1L261->SetBinContent(34,71835.72); h_SL1L261->SetBinContent(35,66435); h_SL1L261->SetBinContent(36,65226.43); h_SL1L261->SetBinContent(37,61895.71); h_SL1L261->SetBinContent(38,53565); h_SL1L261->SetBinContent(39,39577.14); h_SL1L261->SetBinContent(40,12594.29); h_SL1L261->SetBinContent(41,6015); h_SL1L261->SetBinContent(42,3987.857); h_SL1L261->SetBinContent(43,3757.143); h_SL1L261->SetBinContent(44,3361.429); h_SL1L261->SetBinContent(45,3025.714); h_SL1L261->SetBinContent(46,2811.429); h_SL1L261->SetBinContent(47,2557.143); h_SL1L261->SetBinContent(48,2418.572); h_SL1L261->SetBinContent(49,228427.9); h_SL1L261->SetBinContent(50,2016.429); h_SL1L261->SetBinContent(51,1777.857); h_SL1L261->SetBinContent(52,25347.14); h_SL1L261->SetBinContent(53,26791.43); h_SL1L261->SetBinContent(54,1592.143); h_SL1L261->SetBinContent(55,1562.857); h_SL1L261->SetBinContent(56,90224.29); h_SL1L261->SetBinContent(57,1455.714); h_SL1L261->SetBinContent(58,1449.286); h_SL1L261->SetBinContent(59,1380.714); h_SL1L261->SetMaximum(262692); 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.7143); h_SL1L362->SetBinContent(2,345.7143); h_SL1L362->SetBinContent(3,362.8571); h_SL1L362->SetBinContent(4,385.7143); h_SL1L362->SetBinContent(5,425.7143); h_SL1L362->SetBinContent(6,440); h_SL1L362->SetBinContent(7,464.2857); h_SL1L362->SetBinContent(8,495.7143); h_SL1L362->SetBinContent(9,515); h_SL1L362->SetBinContent(10,565); h_SL1L362->SetBinContent(11,645); h_SL1L362->SetBinContent(12,720.7143); h_SL1L362->SetBinContent(13,772.1429); h_SL1L362->SetBinContent(14,812.1429); h_SL1L362->SetBinContent(15,788.5715); h_SL1L362->SetBinContent(16,817.1429); h_SL1L362->SetBinContent(17,945.7143); h_SL1L362->SetBinContent(18,1201.429); h_SL1L362->SetBinContent(19,1230); h_SL1L362->SetBinContent(20,1429.286); h_SL1L362->SetBinContent(21,1611.429); h_SL1L362->SetBinContent(22,1845.714); h_SL1L362->SetBinContent(23,2084.286); h_SL1L362->SetBinContent(24,2289.286); h_SL1L362->SetBinContent(25,2526.429); h_SL1L362->SetBinContent(26,2755); h_SL1L362->SetBinContent(27,3150.714); h_SL1L362->SetBinContent(28,3829.286); h_SL1L362->SetBinContent(29,4247.143); h_SL1L362->SetBinContent(30,4820.714); h_SL1L362->SetBinContent(31,7415.714); h_SL1L362->SetBinContent(32,14005); h_SL1L362->SetBinContent(33,66780); h_SL1L362->SetBinContent(34,68452.86); h_SL1L362->SetBinContent(35,66123.57); h_SL1L362->SetBinContent(36,64017.86); h_SL1L362->SetBinContent(37,58809.29); h_SL1L362->SetBinContent(38,46666.43); h_SL1L362->SetBinContent(39,27127.86); h_SL1L362->SetBinContent(40,6947.143); h_SL1L362->SetBinContent(41,4465); h_SL1L362->SetBinContent(42,3827.857); h_SL1L362->SetBinContent(43,3458.572); h_SL1L362->SetBinContent(44,3043.572); h_SL1L362->SetBinContent(45,2872.857); h_SL1L362->SetBinContent(46,2582.857); h_SL1L362->SetBinContent(47,2408.572); h_SL1L362->SetBinContent(48,2186.429); h_SL1L362->SetBinContent(49,13513.57); h_SL1L362->SetBinContent(50,1815.714); h_SL1L362->SetBinContent(51,1683.571); h_SL1L362->SetBinContent(52,1716.429); h_SL1L362->SetBinContent(53,100092.9); h_SL1L362->SetBinContent(54,1507.857); h_SL1L362->SetBinContent(55,1530); h_SL1L362->SetBinContent(56,115150.7); h_SL1L362->SetBinContent(57,1360.714); h_SL1L362->SetBinContent(58,1437.143); h_SL1L362->SetBinContent(59,1315); h_SL1L362->SetMaximum(262692); 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,317.1429); h_SL1L463->SetBinContent(3,302.1429); h_SL1L463->SetBinContent(4,339.2857); h_SL1L463->SetBinContent(5,353.5714); h_SL1L463->SetBinContent(6,371.4286); h_SL1L463->SetBinContent(7,419.2857); h_SL1L463->SetBinContent(8,430.7143); h_SL1L463->SetBinContent(9,452.1429); h_SL1L463->SetBinContent(10,507.1429); h_SL1L463->SetBinContent(11,537.1429); h_SL1L463->SetBinContent(12,602.1429); h_SL1L463->SetBinContent(13,660.7143); h_SL1L463->SetBinContent(14,713.5715); h_SL1L463->SetBinContent(15,751.4286); h_SL1L463->SetBinContent(16,711.4286); h_SL1L463->SetBinContent(17,827.8572); h_SL1L463->SetBinContent(18,1027.143); h_SL1L463->SetBinContent(19,1061.429); h_SL1L463->SetBinContent(20,1265.714); h_SL1L463->SetBinContent(21,1389.286); h_SL1L463->SetBinContent(22,1567.857); h_SL1L463->SetBinContent(23,1781.429); h_SL1L463->SetBinContent(24,2059.286); h_SL1L463->SetBinContent(25,2250.714); h_SL1L463->SetBinContent(26,2434.286); h_SL1L463->SetBinContent(27,2828.572); h_SL1L463->SetBinContent(28,3469.286); h_SL1L463->SetBinContent(29,3787.857); h_SL1L463->SetBinContent(30,4386.429); h_SL1L463->SetBinContent(31,5327.143); h_SL1L463->SetBinContent(32,9605); h_SL1L463->SetBinContent(33,37272.14); h_SL1L463->SetBinContent(34,71309.29); h_SL1L463->SetBinContent(35,66237.86); h_SL1L463->SetBinContent(36,64365.71); h_SL1L463->SetBinContent(37,60503.57); h_SL1L463->SetBinContent(38,52139.29); h_SL1L463->SetBinContent(39,39320.71); h_SL1L463->SetBinContent(40,12287.14); h_SL1L463->SetBinContent(41,5710.714); h_SL1L463->SetBinContent(42,3906.429); h_SL1L463->SetBinContent(43,3502.143); h_SL1L463->SetBinContent(44,3082.143); h_SL1L463->SetBinContent(45,2737.857); h_SL1L463->SetBinContent(46,2602.143); h_SL1L463->SetBinContent(47,2335); h_SL1L463->SetBinContent(48,2136.429); h_SL1L463->SetBinContent(49,1971.429); h_SL1L463->SetBinContent(50,1811.429); h_SL1L463->SetBinContent(51,1672.143); h_SL1L463->SetBinContent(52,1514.286); h_SL1L463->SetBinContent(53,1519.286); h_SL1L463->SetBinContent(54,1448.571); h_SL1L463->SetBinContent(55,5); h_SL1L463->SetBinContent(56,1438.571); h_SL1L463->SetBinContent(57,1365.714); h_SL1L463->SetBinContent(58,1341.429); h_SL1L463->SetBinContent(59,1298.571); h_SL1L463->SetMaximum(262692); 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 4977"); pt->Draw(); c->Modified(); c->cd(); c->SetSelected(c); }