void RatesPerCell_Removing_noisy_cells_run_5625_SL1() { //=========Macro generated from canvas: c/c //========= (Sun Jan 13 15:01:29 2019) by ROOT version6.02/13 TCanvas *c = new TCanvas("c", "c",0,0,800,600); gStyle->SetOptStat(0); c->Range(-7.500001,-11867.57,67.5,106808.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 5625",60,0,60); h_SL1L160->SetBinContent(1,500); h_SL1L160->SetBinContent(2,471.4286); h_SL1L160->SetBinContent(3,503.5714); h_SL1L160->SetBinContent(4,500); h_SL1L160->SetBinContent(5,525); h_SL1L160->SetBinContent(6,492.8571); h_SL1L160->SetBinContent(7,457.1429); h_SL1L160->SetBinContent(8,596.4286); h_SL1L160->SetBinContent(9,557.1428); h_SL1L160->SetBinContent(10,700); h_SL1L160->SetBinContent(11,735.7143); h_SL1L160->SetBinContent(12,625); h_SL1L160->SetBinContent(13,867.8571); h_SL1L160->SetBinContent(14,896.4286); h_SL1L160->SetBinContent(15,803.5714); h_SL1L160->SetBinContent(16,821.4286); h_SL1L160->SetBinContent(17,996.4286); h_SL1L160->SetBinContent(18,1135.714); h_SL1L160->SetBinContent(19,1232.143); h_SL1L160->SetBinContent(20,1400); h_SL1L160->SetBinContent(21,1642.857); h_SL1L160->SetBinContent(22,1771.429); h_SL1L160->SetBinContent(23,1985.714); h_SL1L160->SetBinContent(24,2035.714); h_SL1L160->SetBinContent(25,2285.714); h_SL1L160->SetBinContent(26,2310.714); h_SL1L160->SetBinContent(27,2500); h_SL1L160->SetBinContent(28,3360.714); h_SL1L160->SetBinContent(29,3653.571); h_SL1L160->SetBinContent(30,4335.714); h_SL1L160->SetBinContent(31,5764.286); h_SL1L160->SetBinContent(32,8767.857); h_SL1L160->SetBinContent(33,37703.57); h_SL1L160->SetBinContent(34,50367.86); h_SL1L160->SetBinContent(35,58646.43); h_SL1L160->SetBinContent(36,66239.28); h_SL1L160->SetBinContent(37,71742.86); h_SL1L160->SetBinContent(38,65114.29); h_SL1L160->SetBinContent(39,43214.29); h_SL1L160->SetBinContent(40,9892.857); h_SL1L160->SetBinContent(41,5660.714); h_SL1L160->SetBinContent(42,4925); h_SL1L160->SetBinContent(43,4335.714); h_SL1L160->SetBinContent(44,3867.857); h_SL1L160->SetBinContent(45,3467.857); h_SL1L160->SetBinContent(46,3300); h_SL1L160->SetBinContent(47,3089.286); h_SL1L160->SetBinContent(48,2703.571); h_SL1L160->SetBinContent(49,2721.428); h_SL1L160->SetBinContent(50,2442.857); h_SL1L160->SetBinContent(51,2339.286); h_SL1L160->SetBinContent(52,2064.286); h_SL1L160->SetBinContent(53,2010.714); h_SL1L160->SetBinContent(54,1835.714); h_SL1L160->SetBinContent(55,1782.143); h_SL1L160->SetBinContent(56,1582.143); h_SL1L160->SetBinContent(57,1714.286); h_SL1L160->SetBinContent(58,1550); h_SL1L160->SetBinContent(59,1464.286); h_SL1L160->SetMaximum(94940.55); 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,378.5714); h_SL1L261->SetBinContent(2,400); h_SL1L261->SetBinContent(3,414.2857); h_SL1L261->SetBinContent(4,453.5714); h_SL1L261->SetBinContent(5,485.7143); h_SL1L261->SetBinContent(6,457.1429); h_SL1L261->SetBinContent(7,421.4286); h_SL1L261->SetBinContent(8,460.7143); h_SL1L261->SetBinContent(9,528.5714); h_SL1L261->SetBinContent(10,532.1428); h_SL1L261->SetBinContent(11,664.2857); h_SL1L261->SetBinContent(12,567.8571); h_SL1L261->SetBinContent(13,789.2857); h_SL1L261->SetBinContent(14,750); h_SL1L261->SetBinContent(15,760.7143); h_SL1L261->SetBinContent(16,767.8571); h_SL1L261->SetBinContent(17,917.8571); h_SL1L261->SetBinContent(18,989.2857); h_SL1L261->SetBinContent(19,1164.286); h_SL1L261->SetBinContent(20,1160.714); h_SL1L261->SetBinContent(21,1492.857); h_SL1L261->SetBinContent(22,1625); h_SL1L261->SetBinContent(23,1692.857); h_SL1L261->SetBinContent(24,1928.571); h_SL1L261->SetBinContent(25,2146.428); h_SL1L261->SetBinContent(26,2007.143); h_SL1L261->SetBinContent(27,2321.428); h_SL1L261->SetBinContent(28,2903.571); h_SL1L261->SetBinContent(29,3307.143); h_SL1L261->SetBinContent(30,3917.857); h_SL1L261->SetBinContent(31,4675); h_SL1L261->SetBinContent(32,7292.857); h_SL1L261->SetBinContent(33,20303.57); h_SL1L261->SetBinContent(34,46539.29); h_SL1L261->SetBinContent(35,54364.29); h_SL1L261->SetBinContent(36,62000); h_SL1L261->SetBinContent(37,70228.57); h_SL1L261->SetBinContent(38,69489.28); h_SL1L261->SetBinContent(39,59121.43); h_SL1L261->SetBinContent(40,20000); h_SL1L261->SetBinContent(41,8100); h_SL1L261->SetBinContent(42,4857.143); h_SL1L261->SetBinContent(43,4610.714); h_SL1L261->SetBinContent(44,4032.143); h_SL1L261->SetBinContent(45,3507.143); h_SL1L261->SetBinContent(46,3289.286); h_SL1L261->SetBinContent(47,3196.428); h_SL1L261->SetBinContent(48,2800); h_SL1L261->SetBinContent(49,2664.286); h_SL1L261->SetBinContent(50,2532.143); h_SL1L261->SetBinContent(51,2260.714); h_SL1L261->SetBinContent(52,2142.857); h_SL1L261->SetBinContent(53,1950); h_SL1L261->SetBinContent(54,1800); h_SL1L261->SetBinContent(55,1842.857); h_SL1L261->SetBinContent(56,1771.429); h_SL1L261->SetBinContent(57,1500); h_SL1L261->SetBinContent(58,1592.857); h_SL1L261->SetBinContent(59,1389.286); h_SL1L261->SetMaximum(82557.67); 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,360.7143); h_SL1L362->SetBinContent(2,378.5714); h_SL1L362->SetBinContent(3,421.4286); h_SL1L362->SetBinContent(4,375); h_SL1L362->SetBinContent(5,460.7143); h_SL1L362->SetBinContent(6,382.1429); h_SL1L362->SetBinContent(7,385.7143); h_SL1L362->SetBinContent(8,428.5714); h_SL1L362->SetBinContent(9,482.1429); h_SL1L362->SetBinContent(10,557.1428); h_SL1L362->SetBinContent(11,571.4286); h_SL1L362->SetBinContent(12,546.4286); h_SL1L362->SetBinContent(13,700); h_SL1L362->SetBinContent(14,742.8571); h_SL1L362->SetBinContent(15,632.1428); h_SL1L362->SetBinContent(16,703.5714); h_SL1L362->SetBinContent(17,903.5714); h_SL1L362->SetBinContent(18,1053.571); h_SL1L362->SetBinContent(19,1050); h_SL1L362->SetBinContent(20,1225); h_SL1L362->SetBinContent(21,1446.429); h_SL1L362->SetBinContent(22,1575); h_SL1L362->SetBinContent(23,1682.143); h_SL1L362->SetBinContent(24,1925); h_SL1L362->SetBinContent(25,2003.571); h_SL1L362->SetBinContent(26,2082.143); h_SL1L362->SetBinContent(27,2410.714); h_SL1L362->SetBinContent(28,3114.286); h_SL1L362->SetBinContent(29,3485.714); h_SL1L362->SetBinContent(30,4067.857); h_SL1L362->SetBinContent(31,5707.143); h_SL1L362->SetBinContent(32,8707.143); h_SL1L362->SetBinContent(33,37750); h_SL1L362->SetBinContent(34,50203.57); h_SL1L362->SetBinContent(35,58603.57); h_SL1L362->SetBinContent(36,66414.28); h_SL1L362->SetBinContent(37,71789.28); h_SL1L362->SetBinContent(38,65389.29); h_SL1L362->SetBinContent(39,43410.71); h_SL1L362->SetBinContent(40,9932.143); h_SL1L362->SetBinContent(41,5503.571); h_SL1L362->SetBinContent(42,4767.857); h_SL1L362->SetBinContent(43,4253.571); h_SL1L362->SetBinContent(44,3564.286); h_SL1L362->SetBinContent(45,3310.714); h_SL1L362->SetBinContent(46,3146.428); h_SL1L362->SetBinContent(47,2842.857); h_SL1L362->SetBinContent(48,2507.143); h_SL1L362->SetBinContent(49,2500); h_SL1L362->SetBinContent(50,2307.143); h_SL1L362->SetBinContent(51,2196.428); h_SL1L362->SetBinContent(52,2007.143); h_SL1L362->SetBinContent(53,1775); h_SL1L362->SetBinContent(54,1753.571); h_SL1L362->SetBinContent(55,1667.857); h_SL1L362->SetBinContent(56,1496.429); h_SL1L362->SetBinContent(57,1453.571); h_SL1L362->SetBinContent(58,1410.714); h_SL1L362->SetBinContent(59,1403.571); h_SL1L362->SetMaximum(82557.67); 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,335.7143); h_SL1L463->SetBinContent(3,289.2857); h_SL1L463->SetBinContent(4,389.2857); h_SL1L463->SetBinContent(5,360.7143); h_SL1L463->SetBinContent(6,371.4286); h_SL1L463->SetBinContent(7,335.7143); h_SL1L463->SetBinContent(8,303.5714); h_SL1L463->SetBinContent(9,385.7143); h_SL1L463->SetBinContent(10,339.2857); h_SL1L463->SetBinContent(11,525); h_SL1L463->SetBinContent(12,467.8571); h_SL1L463->SetBinContent(13,550); h_SL1L463->SetBinContent(14,582.1428); h_SL1L463->SetBinContent(15,542.8571); h_SL1L463->SetBinContent(16,564.2857); h_SL1L463->SetBinContent(17,703.5714); h_SL1L463->SetBinContent(18,775); h_SL1L463->SetBinContent(19,892.8571); h_SL1L463->SetBinContent(20,839.2857); h_SL1L463->SetBinContent(21,1128.571); h_SL1L463->SetBinContent(22,1260.714); h_SL1L463->SetBinContent(23,1357.143); h_SL1L463->SetBinContent(24,1564.286); h_SL1L463->SetBinContent(25,1600); h_SL1L463->SetBinContent(26,1578.571); h_SL1L463->SetBinContent(27,1921.429); h_SL1L463->SetBinContent(28,2450); h_SL1L463->SetBinContent(29,2828.571); h_SL1L463->SetBinContent(30,3289.286); h_SL1L463->SetBinContent(31,4025); h_SL1L463->SetBinContent(32,6417.857); h_SL1L463->SetBinContent(33,17542.86); h_SL1L463->SetBinContent(34,43028.57); h_SL1L463->SetBinContent(35,51260.71); h_SL1L463->SetBinContent(36,57192.86); h_SL1L463->SetBinContent(37,62625); h_SL1L463->SetBinContent(38,62782.14); h_SL1L463->SetBinContent(39,55553.57); h_SL1L463->SetBinContent(40,18003.57); h_SL1L463->SetBinContent(41,7339.286); h_SL1L463->SetBinContent(42,4500); h_SL1L463->SetBinContent(43,4128.571); h_SL1L463->SetBinContent(44,3717.857); h_SL1L463->SetBinContent(45,2975); h_SL1L463->SetBinContent(46,2989.286); h_SL1L463->SetBinContent(47,2628.571); h_SL1L463->SetBinContent(48,2303.571); h_SL1L463->SetBinContent(49,2064.286); h_SL1L463->SetBinContent(50,2060.714); h_SL1L463->SetBinContent(51,2032.143); h_SL1L463->SetBinContent(52,1739.286); h_SL1L463->SetBinContent(53,1600); h_SL1L463->SetBinContent(54,1485.714); h_SL1L463->SetBinContent(56,1503.571); h_SL1L463->SetBinContent(57,1185.714); h_SL1L463->SetBinContent(58,1289.286); h_SL1L463->SetBinContent(59,1153.571); h_SL1L463->SetMaximum(82557.67); 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 5625"); pt->Draw(); c->Modified(); c->cd(); c->SetSelected(c); }