void RatesPerCell_Removing_noisy_cells_run_5015_SL2() { //=========Macro generated from canvas: c/c //========= (Mon Jan 14 19:57:10 2019) by ROOT version6.02/13 TCanvas *c = new TCanvas("c", "c",0,0,800,600); gStyle->SetOptStat(0); c->Range(-7.500001,-9143.076,67.5,82287.68); c->SetFillColor(0); c->SetBorderMode(0); c->SetBorderSize(2); c->SetFrameBorderMode(0); c->SetFrameBorderMode(0); TH1D *h_SL2L164 = new TH1D("h_SL2L164","SL2, run 5015",60,0,60); h_SL2L164->SetBinContent(1,631.4286); h_SL2L164->SetBinContent(2,675.7143); h_SL2L164->SetBinContent(3,852.8572); h_SL2L164->SetBinContent(4,980); h_SL2L164->SetBinContent(5,987.1429); h_SL2L164->SetBinContent(6,1084.286); h_SL2L164->SetBinContent(7,1018.571); h_SL2L164->SetBinContent(8,1074.286); h_SL2L164->SetBinContent(9,1227.143); h_SL2L164->SetBinContent(10,1415.714); h_SL2L164->SetBinContent(11,1520); h_SL2L164->SetBinContent(12,1612.857); h_SL2L164->SetBinContent(13,1835.714); h_SL2L164->SetBinContent(14,1938.572); h_SL2L164->SetBinContent(15,2028.572); h_SL2L164->SetBinContent(16,2092.857); h_SL2L164->SetBinContent(17,2350); h_SL2L164->SetBinContent(18,2452.857); h_SL2L164->SetBinContent(19,2700); h_SL2L164->SetBinContent(20,2932.857); h_SL2L164->SetBinContent(21,3170); h_SL2L164->SetBinContent(22,3308.572); h_SL2L164->SetBinContent(23,3710); h_SL2L164->SetBinContent(24,4087.143); h_SL2L164->SetBinContent(25,8870); h_SL2L164->SetBinContent(26,29265.71); h_SL2L164->SetBinContent(27,44500); h_SL2L164->SetBinContent(28,51942.86); h_SL2L164->SetBinContent(29,55308.57); h_SL2L164->SetBinContent(30,52941.43); h_SL2L164->SetBinContent(31,48560); h_SL2L164->SetBinContent(32,48758.57); h_SL2L164->SetBinContent(33,47148.57); h_SL2L164->SetBinContent(34,26684.29); h_SL2L164->SetBinContent(35,7.142858); h_SL2L164->SetBinContent(36,4355.714); h_SL2L164->SetBinContent(37,7242.857); h_SL2L164->SetBinContent(38,4558.572); h_SL2L164->SetBinContent(39,5514.286); h_SL2L164->SetBinContent(40,27248.57); h_SL2L164->SetBinContent(41,7354.286); h_SL2L164->SetBinContent(42,7952.857); h_SL2L164->SetBinContent(43,8031.429); h_SL2L164->SetBinContent(44,8154.286); h_SL2L164->SetBinContent(45,1365.714); h_SL2L164->SetBinContent(46,1342.857); h_SL2L164->SetBinContent(47,1162.857); h_SL2L164->SetBinContent(48,1020); h_SL2L164->SetBinContent(49,942.8572); h_SL2L164->SetBinContent(50,855.7143); h_SL2L164->SetBinContent(51,748.5715); h_SL2L164->SetBinContent(52,757.1429); h_SL2L164->SetBinContent(53,762.8572); h_SL2L164->SetBinContent(54,734.2857); h_SL2L164->SetBinContent(55,647.1429); h_SL2L164->SetBinContent(56,520); h_SL2L164->SetBinContent(57,2545.714); h_SL2L164->SetMaximum(73144.6); h_SL2L164->SetEntries(60); h_SL2L164->SetDirectory(0); h_SL2L164->SetStats(0); h_SL2L164->SetLineWidth(2); h_SL2L164->GetXaxis()->SetTitle("Cell"); h_SL2L164->GetXaxis()->SetLabelFont(42); h_SL2L164->GetXaxis()->SetLabelSize(0.035); h_SL2L164->GetXaxis()->SetTitleSize(0.035); h_SL2L164->GetXaxis()->SetTitleFont(42); h_SL2L164->GetYaxis()->SetTitle("Hz"); h_SL2L164->GetYaxis()->SetLabelFont(42); h_SL2L164->GetYaxis()->SetLabelSize(0.035); h_SL2L164->GetYaxis()->SetTitleSize(0.035); h_SL2L164->GetYaxis()->SetTitleOffset(1.45); h_SL2L164->GetYaxis()->SetTitleFont(42); h_SL2L164->GetZaxis()->SetLabelFont(42); h_SL2L164->GetZaxis()->SetLabelSize(0.035); h_SL2L164->GetZaxis()->SetTitleSize(0.035); h_SL2L164->GetZaxis()->SetTitleFont(42); h_SL2L164->Draw(""); TH1D *h_SL2L265 = new TH1D("h_SL2L265","",60,0,60); h_SL2L265->SetBinContent(1,552.8572); h_SL2L265->SetBinContent(2,655.7143); h_SL2L265->SetBinContent(3,775.7143); h_SL2L265->SetBinContent(4,865.7143); h_SL2L265->SetBinContent(5,944.2858); h_SL2L265->SetBinContent(6,998.5715); h_SL2L265->SetBinContent(7,992.8572); h_SL2L265->SetBinContent(8,1042.857); h_SL2L265->SetBinContent(9,1185.714); h_SL2L265->SetBinContent(10,1262.857); h_SL2L265->SetBinContent(11,1438.571); h_SL2L265->SetBinContent(12,1511.429); h_SL2L265->SetBinContent(13,1702.857); h_SL2L265->SetBinContent(14,1862.857); h_SL2L265->SetBinContent(15,1935.714); h_SL2L265->SetBinContent(16,1997.143); h_SL2L265->SetBinContent(17,2124.286); h_SL2L265->SetBinContent(18,2355.714); h_SL2L265->SetBinContent(19,2550); h_SL2L265->SetBinContent(20,2854.286); h_SL2L265->SetBinContent(21,2872.857); h_SL2L265->SetBinContent(22,3211.429); h_SL2L265->SetBinContent(23,3412.857); h_SL2L265->SetBinContent(24,3828.572); h_SL2L265->SetBinContent(25,4514.286); h_SL2L265->SetBinContent(26,18295.71); h_SL2L265->SetBinContent(27,38184.29); h_SL2L265->SetBinContent(28,48570); h_SL2L265->SetBinContent(29,53920); h_SL2L265->SetBinContent(30,54577.14); h_SL2L265->SetBinContent(31,49634.29); h_SL2L265->SetBinContent(32,48368.57); h_SL2L265->SetBinContent(33,48550); h_SL2L265->SetBinContent(34,40515.71); h_SL2L265->SetBinContent(35,14074.29); h_SL2L265->SetBinContent(36,5290); h_SL2L265->SetBinContent(37,3578.572); h_SL2L265->SetBinContent(38,2957.143); h_SL2L265->SetBinContent(39,3471.429); h_SL2L265->SetBinContent(40,4315.714); h_SL2L265->SetBinContent(41,2521.429); h_SL2L265->SetBinContent(42,2621.429); h_SL2L265->SetBinContent(43,2085.714); h_SL2L265->SetBinContent(44,2687.143); h_SL2L265->SetBinContent(45,1391.429); h_SL2L265->SetBinContent(46,1334.286); h_SL2L265->SetBinContent(47,1171.429); h_SL2L265->SetBinContent(48,1032.857); h_SL2L265->SetBinContent(49,968.5715); h_SL2L265->SetBinContent(50,861.4286); h_SL2L265->SetBinContent(51,781.4286); h_SL2L265->SetBinContent(52,771.4286); h_SL2L265->SetBinContent(53,740); h_SL2L265->SetBinContent(54,724.2857); h_SL2L265->SetBinContent(55,697.1429); h_SL2L265->SetBinContent(56,598.5715); h_SL2L265->SetBinContent(57,490); h_SL2L265->SetMaximum(63604.86); h_SL2L265->SetEntries(60); h_SL2L265->SetDirectory(0); h_SL2L265->SetStats(0); Int_t ci; // for color index setting TColor *color; // for color definition with alpha ci = TColor::GetColor("#cc0000"); h_SL2L265->SetLineColor(ci); h_SL2L265->SetLineWidth(2); h_SL2L265->GetXaxis()->SetTitle("Cell"); h_SL2L265->GetXaxis()->SetLabelFont(42); h_SL2L265->GetXaxis()->SetLabelSize(0.035); h_SL2L265->GetXaxis()->SetTitleSize(0.035); h_SL2L265->GetXaxis()->SetTitleFont(42); h_SL2L265->GetYaxis()->SetTitle("Hz"); h_SL2L265->GetYaxis()->SetLabelFont(42); h_SL2L265->GetYaxis()->SetLabelSize(0.035); h_SL2L265->GetYaxis()->SetTitleSize(0.035); h_SL2L265->GetYaxis()->SetTitleOffset(1.45); h_SL2L265->GetYaxis()->SetTitleFont(42); h_SL2L265->GetZaxis()->SetLabelFont(42); h_SL2L265->GetZaxis()->SetLabelSize(0.035); h_SL2L265->GetZaxis()->SetTitleSize(0.035); h_SL2L265->GetZaxis()->SetTitleFont(42); h_SL2L265->Draw("same"); TH1D *h_SL2L366 = new TH1D("h_SL2L366","",60,0,60); h_SL2L366->SetBinContent(1,610); h_SL2L366->SetBinContent(2,662.8572); h_SL2L366->SetBinContent(3,778.5715); h_SL2L366->SetBinContent(4,934.2858); h_SL2L366->SetBinContent(5,908.5715); h_SL2L366->SetBinContent(6,1032.857); h_SL2L366->SetBinContent(7,958.5715); h_SL2L366->SetBinContent(8,1081.429); h_SL2L366->SetBinContent(9,1192.857); h_SL2L366->SetBinContent(10,1327.143); h_SL2L366->SetBinContent(11,1438.571); h_SL2L366->SetBinContent(12,1504.286); h_SL2L366->SetBinContent(13,1737.143); h_SL2L366->SetBinContent(14,1837.143); h_SL2L366->SetBinContent(15,1935.714); h_SL2L366->SetBinContent(16,1994.286); h_SL2L366->SetBinContent(17,2270); h_SL2L366->SetBinContent(18,2330); h_SL2L366->SetBinContent(19,2645.714); h_SL2L366->SetBinContent(20,2741.429); h_SL2L366->SetBinContent(21,3102.857); h_SL2L366->SetBinContent(22,3284.286); h_SL2L366->SetBinContent(23,3564.286); h_SL2L366->SetBinContent(24,3930); h_SL2L366->SetBinContent(25,8777.143); h_SL2L366->SetBinContent(26,29218.57); h_SL2L366->SetBinContent(27,44394.29); h_SL2L366->SetBinContent(28,51860); h_SL2L366->SetBinContent(29,54821.43); h_SL2L366->SetBinContent(30,52550); h_SL2L366->SetBinContent(31,48621.43); h_SL2L366->SetBinContent(32,48628.57); h_SL2L366->SetBinContent(33,47130); h_SL2L366->SetBinContent(34,26602.86); h_SL2L366->SetBinContent(35,7522.857); h_SL2L366->SetBinContent(36,4144.286); h_SL2L366->SetBinContent(37,3260); h_SL2L366->SetBinContent(38,2601.429); h_SL2L366->SetBinContent(39,2291.429); h_SL2L366->SetBinContent(40,3142.857); h_SL2L366->SetBinContent(41,1850); h_SL2L366->SetBinContent(42,1710); h_SL2L366->SetBinContent(43,1447.143); h_SL2L366->SetBinContent(44,1352.857); h_SL2L366->SetBinContent(45,1284.286); h_SL2L366->SetBinContent(46,1250); h_SL2L366->SetBinContent(47,1068.571); h_SL2L366->SetBinContent(48,977.1429); h_SL2L366->SetBinContent(49,897.1429); h_SL2L366->SetBinContent(50,820); h_SL2L366->SetBinContent(51,755.7143); h_SL2L366->SetBinContent(52,715.7143); h_SL2L366->SetBinContent(53,695.7143); h_SL2L366->SetBinContent(54,721.4286); h_SL2L366->SetBinContent(55,582.8572); h_SL2L366->SetBinContent(56,500); h_SL2L366->SetBinContent(57,471.4286); h_SL2L366->SetMaximum(63604.86); h_SL2L366->SetEntries(60); h_SL2L366->SetDirectory(0); h_SL2L366->SetStats(0); ci = TColor::GetColor("#009900"); h_SL2L366->SetLineColor(ci); h_SL2L366->SetLineWidth(2); h_SL2L366->GetXaxis()->SetTitle("Cell"); h_SL2L366->GetXaxis()->SetLabelFont(42); h_SL2L366->GetXaxis()->SetLabelSize(0.035); h_SL2L366->GetXaxis()->SetTitleSize(0.035); h_SL2L366->GetXaxis()->SetTitleFont(42); h_SL2L366->GetYaxis()->SetTitle("Hz"); h_SL2L366->GetYaxis()->SetLabelFont(42); h_SL2L366->GetYaxis()->SetLabelSize(0.035); h_SL2L366->GetYaxis()->SetTitleSize(0.035); h_SL2L366->GetYaxis()->SetTitleOffset(1.45); h_SL2L366->GetYaxis()->SetTitleFont(42); h_SL2L366->GetZaxis()->SetLabelFont(42); h_SL2L366->GetZaxis()->SetLabelSize(0.035); h_SL2L366->GetZaxis()->SetTitleSize(0.035); h_SL2L366->GetZaxis()->SetTitleFont(42); h_SL2L366->Draw("same"); TH1D *h_SL2L467 = new TH1D("h_SL2L467","",60,0,60); h_SL2L467->SetBinContent(2,652.8572); h_SL2L467->SetBinContent(3,730); h_SL2L467->SetBinContent(4,854.2857); h_SL2L467->SetBinContent(5,887.1429); h_SL2L467->SetBinContent(6,914.2858); h_SL2L467->SetBinContent(7,1011.429); h_SL2L467->SetBinContent(8,1011.429); h_SL2L467->SetBinContent(9,1128.571); h_SL2L467->SetBinContent(10,1212.857); h_SL2L467->SetBinContent(11,1344.286); h_SL2L467->SetBinContent(12,1388.571); h_SL2L467->SetBinContent(13,1582.857); h_SL2L467->SetBinContent(14,1817.143); h_SL2L467->SetBinContent(15,1854.286); h_SL2L467->SetBinContent(16,1900); h_SL2L467->SetBinContent(17,2037.143); h_SL2L467->SetBinContent(18,2237.143); h_SL2L467->SetBinContent(19,2407.143); h_SL2L467->SetBinContent(20,2757.143); h_SL2L467->SetBinContent(21,2755.714); h_SL2L467->SetBinContent(22,3161.429); h_SL2L467->SetBinContent(23,3304.286); h_SL2L467->SetBinContent(24,3750); h_SL2L467->SetBinContent(25,4397.143); h_SL2L467->SetBinContent(26,18247.14); h_SL2L467->SetBinContent(27,38280); h_SL2L467->SetBinContent(28,48574.29); h_SL2L467->SetBinContent(29,54042.86); h_SL2L467->SetBinContent(30,55155.71); h_SL2L467->SetBinContent(31,49442.86); h_SL2L467->SetBinContent(32,48358.57); h_SL2L467->SetBinContent(33,48698.57); h_SL2L467->SetBinContent(34,40477.14); h_SL2L467->SetBinContent(35,14020); h_SL2L467->SetBinContent(36,5221.429); h_SL2L467->SetBinContent(37,3458.572); h_SL2L467->SetBinContent(38,2818.572); h_SL2L467->SetBinContent(39,2364.286); h_SL2L467->SetBinContent(40,2128.572); h_SL2L467->SetBinContent(41,1861.429); h_SL2L467->SetBinContent(42,1775.714); h_SL2L467->SetBinContent(43,1480); h_SL2L467->SetBinContent(44,1380); h_SL2L467->SetBinContent(45,1294.286); h_SL2L467->SetBinContent(46,1260); h_SL2L467->SetBinContent(47,1160); h_SL2L467->SetBinContent(48,997.1429); h_SL2L467->SetBinContent(49,938.5715); h_SL2L467->SetBinContent(50,818.5715); h_SL2L467->SetBinContent(51,731.4286); h_SL2L467->SetBinContent(52,755.7143); h_SL2L467->SetBinContent(53,682.8572); h_SL2L467->SetBinContent(54,691.4286); h_SL2L467->SetBinContent(55,657.1429); h_SL2L467->SetBinContent(56,517.1429); h_SL2L467->SetBinContent(57,471.4286); h_SL2L467->SetMaximum(63604.86); h_SL2L467->SetEntries(60); h_SL2L467->SetDirectory(0); h_SL2L467->SetStats(0); ci = TColor::GetColor("#0000cc"); h_SL2L467->SetLineColor(ci); h_SL2L467->SetLineWidth(2); h_SL2L467->GetXaxis()->SetTitle("Cell"); h_SL2L467->GetXaxis()->SetLabelFont(42); h_SL2L467->GetXaxis()->SetLabelSize(0.035); h_SL2L467->GetXaxis()->SetTitleSize(0.035); h_SL2L467->GetXaxis()->SetTitleFont(42); h_SL2L467->GetYaxis()->SetTitle("Hz"); h_SL2L467->GetYaxis()->SetLabelFont(42); h_SL2L467->GetYaxis()->SetLabelSize(0.035); h_SL2L467->GetYaxis()->SetTitleSize(0.035); h_SL2L467->GetYaxis()->SetTitleOffset(1.45); h_SL2L467->GetYaxis()->SetTitleFont(42); h_SL2L467->GetZaxis()->SetLabelFont(42); h_SL2L467->GetZaxis()->SetLabelSize(0.035); h_SL2L467->GetZaxis()->SetTitleSize(0.035); h_SL2L467->GetZaxis()->SetTitleFont(42); h_SL2L467->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_SL2L1","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_SL2L2","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_SL2L3","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_SL2L4","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("SL2, run 5015"); pt->Draw(); c->Modified(); c->cd(); c->SetSelected(c); }