void RatesPerCell_Removing_noisy_cells_run_4971_SL2() { //=========Macro generated from canvas: c/c //========= (Sun Jan 13 16:10:44 2019) by ROOT version6.02/13 TCanvas *c = new TCanvas("c", "c",0,0,800,600); gStyle->SetOptStat(0); c->Range(-7.500001,-8896.832,67.5,80071.48); c->SetFillColor(0); c->SetBorderMode(0); c->SetBorderSize(2); c->SetFrameBorderMode(0); c->SetFrameBorderMode(0); TH1D *h_SL2L164 = new TH1D("h_SL2L164","SL2, run 4971",60,0,60); h_SL2L164->SetBinContent(1,667.8572); h_SL2L164->SetBinContent(2,835); h_SL2L164->SetBinContent(3,967.1429); h_SL2L164->SetBinContent(4,1050.714); h_SL2L164->SetBinContent(5,1002.143); h_SL2L164->SetBinContent(6,1052.857); h_SL2L164->SetBinContent(7,1140); h_SL2L164->SetBinContent(8,1172.857); h_SL2L164->SetBinContent(9,1378.571); h_SL2L164->SetBinContent(10,1430.714); h_SL2L164->SetBinContent(11,1684.286); h_SL2L164->SetBinContent(12,1737.857); h_SL2L164->SetBinContent(13,1882.857); h_SL2L164->SetBinContent(14,1989.286); h_SL2L164->SetBinContent(15,2116.429); h_SL2L164->SetBinContent(16,2305); h_SL2L164->SetBinContent(17,2475); h_SL2L164->SetBinContent(18,2645); h_SL2L164->SetBinContent(19,2857.143); h_SL2L164->SetBinContent(20,3063.572); h_SL2L164->SetBinContent(21,3245); h_SL2L164->SetBinContent(22,3486.429); h_SL2L164->SetBinContent(23,3824.286); h_SL2L164->SetBinContent(24,4163.571); h_SL2L164->SetBinContent(25,8831.429); h_SL2L164->SetBinContent(26,28393.57); h_SL2L164->SetBinContent(27,43292.86); h_SL2L164->SetBinContent(28,51239.29); h_SL2L164->SetBinContent(29,53818.57); h_SL2L164->SetBinContent(30,51820); h_SL2L164->SetBinContent(31,47989.29); h_SL2L164->SetBinContent(32,48685); h_SL2L164->SetBinContent(33,46960); h_SL2L164->SetBinContent(34,27019.29); h_SL2L164->SetBinContent(35,11.42857); h_SL2L164->SetBinContent(36,4717.857); h_SL2L164->SetBinContent(37,6498.572); h_SL2L164->SetBinContent(38,4072.857); h_SL2L164->SetBinContent(39,6057.143); h_SL2L164->SetBinContent(40,39287.86); h_SL2L164->SetBinContent(41,7825); h_SL2L164->SetBinContent(42,8568.571); h_SL2L164->SetBinContent(43,9154.286); h_SL2L164->SetBinContent(44,8398.571); h_SL2L164->SetBinContent(45,1430); h_SL2L164->SetBinContent(46,1307.857); h_SL2L164->SetBinContent(47,1220.714); h_SL2L164->SetBinContent(48,1133.571); h_SL2L164->SetBinContent(49,1039.286); h_SL2L164->SetBinContent(50,916.4286); h_SL2L164->SetBinContent(51,853.5715); h_SL2L164->SetBinContent(52,742.8572); h_SL2L164->SetBinContent(53,802.1429); h_SL2L164->SetBinContent(54,696.4286); h_SL2L164->SetBinContent(55,646.4286); h_SL2L164->SetBinContent(56,553.5715); h_SL2L164->SetBinContent(57,527.1429); h_SL2L164->SetMaximum(71174.65); 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,642.8572); h_SL2L265->SetBinContent(2,752.8572); h_SL2L265->SetBinContent(3,865); h_SL2L265->SetBinContent(4,1014.286); h_SL2L265->SetBinContent(5,1020.714); h_SL2L265->SetBinContent(6,1017.857); h_SL2L265->SetBinContent(7,1051.429); h_SL2L265->SetBinContent(8,1104.286); h_SL2L265->SetBinContent(9,1282.143); h_SL2L265->SetBinContent(10,1307.857); h_SL2L265->SetBinContent(11,1524.286); h_SL2L265->SetBinContent(12,1656.429); h_SL2L265->SetBinContent(13,1761.429); h_SL2L265->SetBinContent(14,1924.286); h_SL2L265->SetBinContent(15,2009.286); h_SL2L265->SetBinContent(16,2180.714); h_SL2L265->SetBinContent(17,2359.286); h_SL2L265->SetBinContent(18,2573.572); h_SL2L265->SetBinContent(19,2632.143); h_SL2L265->SetBinContent(20,2955); h_SL2L265->SetBinContent(21,3114.286); h_SL2L265->SetBinContent(22,3295); h_SL2L265->SetBinContent(23,3547.857); h_SL2L265->SetBinContent(24,3859.286); h_SL2L265->SetBinContent(25,4652.857); h_SL2L265->SetBinContent(26,17912.86); h_SL2L265->SetBinContent(27,37056.43); h_SL2L265->SetBinContent(28,47525); h_SL2L265->SetBinContent(29,52936.43); h_SL2L265->SetBinContent(30,53352.86); h_SL2L265->SetBinContent(31,48965); h_SL2L265->SetBinContent(32,48000.71); h_SL2L265->SetBinContent(33,48560); h_SL2L265->SetBinContent(34,40520.71); h_SL2L265->SetBinContent(35,14320.71); h_SL2L265->SetBinContent(36,5339.286); h_SL2L265->SetBinContent(37,3683.572); h_SL2L265->SetBinContent(38,3026.429); h_SL2L265->SetBinContent(39,3504.286); h_SL2L265->SetBinContent(40,5280); h_SL2L265->SetBinContent(41,2016.429); h_SL2L265->SetBinContent(42,2045); h_SL2L265->SetBinContent(43,1801.429); h_SL2L265->SetBinContent(44,1878.572); h_SL2L265->SetBinContent(45,1425.714); h_SL2L265->SetBinContent(46,1342.857); h_SL2L265->SetBinContent(47,1237.857); h_SL2L265->SetBinContent(48,1132.857); h_SL2L265->SetBinContent(49,1022.143); h_SL2L265->SetBinContent(50,935.7143); h_SL2L265->SetBinContent(51,891.4286); h_SL2L265->SetBinContent(52,799.2857); h_SL2L265->SetBinContent(53,722.1429); h_SL2L265->SetBinContent(54,695); h_SL2L265->SetBinContent(55,624.2857); h_SL2L265->SetBinContent(56,565.7143); h_SL2L265->SetBinContent(57,540.7143); h_SL2L265->SetMaximum(61891.36); 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,683.5715); h_SL2L366->SetBinContent(2,832.8572); h_SL2L366->SetBinContent(3,907.8572); h_SL2L366->SetBinContent(4,1031.429); h_SL2L366->SetBinContent(5,958.5715); h_SL2L366->SetBinContent(6,1008.571); h_SL2L366->SetBinContent(7,1109.286); h_SL2L366->SetBinContent(8,1156.429); h_SL2L366->SetBinContent(9,1283.571); h_SL2L366->SetBinContent(10,1367.143); h_SL2L366->SetBinContent(11,1580); h_SL2L366->SetBinContent(12,1642.857); h_SL2L366->SetBinContent(13,1782.857); h_SL2L366->SetBinContent(14,1910.714); h_SL2L366->SetBinContent(15,2012.143); h_SL2L366->SetBinContent(16,2191.429); h_SL2L366->SetBinContent(17,2387.143); h_SL2L366->SetBinContent(18,2512.143); h_SL2L366->SetBinContent(19,2795.714); h_SL2L366->SetBinContent(20,2942.857); h_SL2L366->SetBinContent(21,3147.143); h_SL2L366->SetBinContent(22,3388.572); h_SL2L366->SetBinContent(23,3625); h_SL2L366->SetBinContent(24,4019.286); h_SL2L366->SetBinContent(25,8689.286); h_SL2L366->SetBinContent(26,28313.57); h_SL2L366->SetBinContent(27,43074.29); h_SL2L366->SetBinContent(28,51027.14); h_SL2L366->SetBinContent(29,53397.86); h_SL2L366->SetBinContent(30,51565); h_SL2L366->SetBinContent(31,47880); h_SL2L366->SetBinContent(32,48526.43); h_SL2L366->SetBinContent(33,46945.71); h_SL2L366->SetBinContent(34,26918.57); h_SL2L366->SetBinContent(35,7573.572); h_SL2L366->SetBinContent(36,4242.857); h_SL2L366->SetBinContent(37,3227.857); h_SL2L366->SetBinContent(38,2732.143); h_SL2L366->SetBinContent(39,2423.572); h_SL2L366->SetBinContent(40,3675.714); h_SL2L366->SetBinContent(41,1909.286); h_SL2L366->SetBinContent(42,1739.286); h_SL2L366->SetBinContent(43,1594.286); h_SL2L366->SetBinContent(44,1462.143); h_SL2L366->SetBinContent(45,1333.571); h_SL2L366->SetBinContent(46,1198.571); h_SL2L366->SetBinContent(47,1146.429); h_SL2L366->SetBinContent(48,1057.857); h_SL2L366->SetBinContent(49,979.2858); h_SL2L366->SetBinContent(50,888.5715); h_SL2L366->SetBinContent(51,815); h_SL2L366->SetBinContent(52,712.8572); h_SL2L366->SetBinContent(53,696.4286); h_SL2L366->SetBinContent(54,640); h_SL2L366->SetBinContent(55,626.4286); h_SL2L366->SetBinContent(56,531.4286); h_SL2L366->SetBinContent(57,553.5715); h_SL2L366->SetMaximum(61891.36); 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,765.7143); h_SL2L467->SetBinContent(3,842.1429); h_SL2L467->SetBinContent(4,901.4286); h_SL2L467->SetBinContent(5,965); h_SL2L467->SetBinContent(6,935); h_SL2L467->SetBinContent(7,1029.286); h_SL2L467->SetBinContent(8,1042.857); h_SL2L467->SetBinContent(9,1225.714); h_SL2L467->SetBinContent(10,1243.571); h_SL2L467->SetBinContent(11,1440.714); h_SL2L467->SetBinContent(12,1573.571); h_SL2L467->SetBinContent(13,1674.286); h_SL2L467->SetBinContent(14,1780.714); h_SL2L467->SetBinContent(15,1887.857); h_SL2L467->SetBinContent(16,2032.857); h_SL2L467->SetBinContent(17,2248.572); h_SL2L467->SetBinContent(18,2421.429); h_SL2L467->SetBinContent(19,2590); h_SL2L467->SetBinContent(20,2825); h_SL2L467->SetBinContent(21,2937.143); h_SL2L467->SetBinContent(22,3146.429); h_SL2L467->SetBinContent(23,3405); h_SL2L467->SetBinContent(24,3728.572); h_SL2L467->SetBinContent(25,4638.572); h_SL2L467->SetBinContent(26,17775.71); h_SL2L467->SetBinContent(27,37036.43); h_SL2L467->SetBinContent(28,47359.29); h_SL2L467->SetBinContent(29,52923.57); h_SL2L467->SetBinContent(30,53705.71); h_SL2L467->SetBinContent(31,48932.86); h_SL2L467->SetBinContent(32,48131.43); h_SL2L467->SetBinContent(33,48497.14); h_SL2L467->SetBinContent(34,40625); h_SL2L467->SetBinContent(35,14220.71); h_SL2L467->SetBinContent(36,5220.714); h_SL2L467->SetBinContent(37,3566.429); h_SL2L467->SetBinContent(38,2902.143); h_SL2L467->SetBinContent(39,2568.572); h_SL2L467->SetBinContent(40,2142.857); h_SL2L467->SetBinContent(41,1868.572); h_SL2L467->SetBinContent(42,1806.429); h_SL2L467->SetBinContent(43,1621.429); h_SL2L467->SetBinContent(44,1442.143); h_SL2L467->SetBinContent(45,1357.143); h_SL2L467->SetBinContent(46,1260.714); h_SL2L467->SetBinContent(47,1160.714); h_SL2L467->SetBinContent(48,1060); h_SL2L467->SetBinContent(49,984.2858); h_SL2L467->SetBinContent(50,911.4286); h_SL2L467->SetBinContent(51,810); h_SL2L467->SetBinContent(52,748.5715); h_SL2L467->SetBinContent(53,706.4286); h_SL2L467->SetBinContent(54,683.5715); h_SL2L467->SetBinContent(55,610); h_SL2L467->SetBinContent(56,573.5715); h_SL2L467->SetBinContent(57,533.5714); h_SL2L467->SetMaximum(61891.36); 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.3744221,0.9362587,0.6255779,0.995,"blNDC"); pt->SetName("title"); pt->SetBorderSize(0); pt->SetFillColor(0); pt->SetFillStyle(0); pt->SetTextFont(42); TText *AText = pt->AddText("SL2, run 4971"); pt->Draw(); c->Modified(); c->cd(); c->SetSelected(c); }