void RatesPerCell_Removing_noisy_cells_run_7042_SL2() { //=========Macro generated from canvas: c/c //========= (Sun Dec 23 12:27:32 2018) by ROOT version6.02/13 TCanvas *c = new TCanvas("c", "c",0,0,800,600); gStyle->SetOptStat(0); c->Range(-7.500001,-3728.444,67.5,33555.99); c->SetFillColor(0); c->SetBorderMode(0); c->SetBorderSize(2); c->SetFrameBorderMode(0); c->SetFrameBorderMode(0); TH1D *h_SL2L164 = new TH1D("h_SL2L164","SL2, run 7042",60,0,60); h_SL2L164->SetBinContent(1,197.2711); h_SL2L164->SetBinContent(2,164.3926); h_SL2L164->SetBinContent(3,131.5141); h_SL2L164->SetBinContent(4,131.5141); h_SL2L164->SetBinContent(5,98.63554); h_SL2L164->SetBinContent(6,180.8318); h_SL2L164->SetBinContent(7,213.7103); h_SL2L164->SetBinContent(8,180.8318); h_SL2L164->SetBinContent(9,164.3926); h_SL2L164->SetBinContent(10,378.1029); h_SL2L164->SetBinContent(11,378.1029); h_SL2L164->SetBinContent(12,410.9814); h_SL2L164->SetBinContent(13,493.1777); h_SL2L164->SetBinContent(14,328.7851); h_SL2L164->SetBinContent(15,443.8599); h_SL2L164->SetBinContent(16,443.8599); h_SL2L164->SetBinContent(17,624.6918); h_SL2L164->SetBinContent(18,772.6451); h_SL2L164->SetBinContent(19,789.0844); h_SL2L164->SetBinContent(20,1200.066); h_SL2L164->SetBinContent(21,1101.43); h_SL2L164->SetBinContent(22,1676.804); h_SL2L164->SetBinContent(23,1857.636); h_SL2L164->SetBinContent(24,2252.178); h_SL2L164->SetBinContent(25,2942.627); h_SL2L164->SetBinContent(26,3715.272); h_SL2L164->SetBinContent(27,4898.898); h_SL2L164->SetBinContent(28,4997.534); h_SL2L164->SetBinContent(29,7397.666); h_SL2L164->SetBinContent(30,8120.993); h_SL2L164->SetBinContent(31,7578.498); h_SL2L164->SetBinContent(32,8038.796); h_SL2L164->SetBinContent(33,10225.22); h_SL2L164->SetBinContent(34,11129.38); h_SL2L164->SetBinContent(36,12345.88); h_SL2L164->SetBinContent(37,13940.49); h_SL2L164->SetBinContent(38,15058.36); h_SL2L164->SetBinContent(39,15798.13); h_SL2L164->SetBinContent(40,15157); h_SL2L164->SetBinContent(41,16209.11); h_SL2L164->SetBinContent(42,17803.71); h_SL2L164->SetBinContent(43,19381.88); h_SL2L164->SetBinContent(44,19151.73); h_SL2L164->SetBinContent(45,20894.29); h_SL2L164->SetBinContent(46,20713.46); h_SL2L164->SetBinContent(47,21798.46); h_SL2L164->SetBinContent(48,21831.33); h_SL2L164->SetBinContent(49,21666.94); h_SL2L164->SetBinContent(50,21403.91); h_SL2L164->SetBinContent(51,21864.21); h_SL2L164->SetBinContent(52,20910.73); h_SL2L164->SetBinContent(53,19661.35); h_SL2L164->SetBinContent(54,17639.32); h_SL2L164->SetBinContent(55,14943.28); h_SL2L164->SetBinContent(56,10964.98); h_SL2L164->SetBinContent(57,5046.852); h_SL2L164->SetMaximum(29827.55); 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,49.31777); h_SL2L265->SetBinContent(2,131.5141); h_SL2L265->SetBinContent(3,197.2711); h_SL2L265->SetBinContent(4,164.3926); h_SL2L265->SetBinContent(5,147.9533); h_SL2L265->SetBinContent(6,180.8318); h_SL2L265->SetBinContent(7,164.3926); h_SL2L265->SetBinContent(8,147.9533); h_SL2L265->SetBinContent(9,131.5141); h_SL2L265->SetBinContent(10,65.75703); h_SL2L265->SetBinContent(11,361.6636); h_SL2L265->SetBinContent(12,246.5889); h_SL2L265->SetBinContent(13,361.6636); h_SL2L265->SetBinContent(14,345.2244); h_SL2L265->SetBinContent(15,378.1029); h_SL2L265->SetBinContent(16,493.1777); h_SL2L265->SetBinContent(17,476.7384); h_SL2L265->SetBinContent(18,674.0095); h_SL2L265->SetBinContent(19,706.8881); h_SL2L265->SetBinContent(20,937.0377); h_SL2L265->SetBinContent(21,1134.309); h_SL2L265->SetBinContent(22,1331.58); h_SL2L265->SetBinContent(23,1726.122); h_SL2L265->SetBinContent(24,1989.15); h_SL2L265->SetBinContent(25,2564.524); h_SL2L265->SetBinContent(26,3452.244); h_SL2L265->SetBinContent(27,3896.104); h_SL2L265->SetBinContent(28,4915.338); h_SL2L265->SetBinContent(29,5852.375); h_SL2L265->SetBinContent(30,7200.395); h_SL2L265->SetBinContent(31,7512.74); h_SL2L265->SetBinContent(32,7578.498); h_SL2L265->SetBinContent(33,9123.787); h_SL2L265->SetBinContent(34,10110.14); h_SL2L265->SetBinContent(35,9929.311); h_SL2L265->SetBinContent(36,9649.844); h_SL2L265->SetBinContent(37,13003.45); h_SL2L265->SetBinContent(38,14104.88); h_SL2L265->SetBinContent(39,15403.58); h_SL2L265->SetBinContent(40,15551.54); h_SL2L265->SetBinContent(41,16406.38); h_SL2L265->SetBinContent(42,16866.68); h_SL2L265->SetBinContent(43,18822.95); h_SL2L265->SetBinContent(44,19266.81); h_SL2L265->SetBinContent(45,19513.4); h_SL2L265->SetBinContent(46,20762.78); h_SL2L265->SetBinContent(47,20072.33); h_SL2L265->SetBinContent(48,22554.66); h_SL2L265->SetBinContent(49,21190.2); h_SL2L265->SetBinContent(50,21206.64); h_SL2L265->SetBinContent(51,20762.78); h_SL2L265->SetBinContent(52,22094.36); h_SL2L265->SetBinContent(53,20565.51); h_SL2L265->SetBinContent(54,19447.64); h_SL2L265->SetBinContent(55,17146.14); h_SL2L265->SetBinContent(56,13414.43); h_SL2L265->SetBinContent(57,8614.171); h_SL2L265->SetMaximum(25937.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,147.9533); h_SL2L366->SetBinContent(2,147.9533); h_SL2L366->SetBinContent(3,98.63554); h_SL2L366->SetBinContent(4,49.31777); h_SL2L366->SetBinContent(5,197.2711); h_SL2L366->SetBinContent(6,263.0281); h_SL2L366->SetBinContent(7,197.2711); h_SL2L366->SetBinContent(8,180.8318); h_SL2L366->SetBinContent(9,115.0748); h_SL2L366->SetBinContent(10,230.1496); h_SL2L366->SetBinContent(11,410.9814); h_SL2L366->SetBinContent(12,295.9066); h_SL2L366->SetBinContent(13,295.9066); h_SL2L366->SetBinContent(14,394.5422); h_SL2L366->SetBinContent(15,295.9066); h_SL2L366->SetBinContent(16,526.0562); h_SL2L366->SetBinContent(17,443.8599); h_SL2L366->SetBinContent(18,805.5236); h_SL2L366->SetBinContent(19,739.7665); h_SL2L366->SetBinContent(20,772.6451); h_SL2L366->SetBinContent(21,1413.776); h_SL2L366->SetBinContent(22,1578.169); h_SL2L366->SetBinContent(23,1808.318); h_SL2L366->SetBinContent(24,2400.132); h_SL2L366->SetBinContent(25,2630.281); h_SL2L366->SetBinContent(26,3896.104); h_SL2L366->SetBinContent(27,4257.768); h_SL2L366->SetBinContent(28,5655.104); h_SL2L366->SetBinContent(29,6411.31); h_SL2L366->SetBinContent(30,7085.32); h_SL2L366->SetBinContent(31,7742.89); h_SL2L366->SetBinContent(32,7710.011); h_SL2L366->SetBinContent(33,9419.694); h_SL2L366->SetBinContent(34,9732.04); h_SL2L366->SetBinContent(35,10274.54); h_SL2L366->SetBinContent(36,10438.93); h_SL2L366->SetBinContent(37,13069.21); h_SL2L366->SetBinContent(38,15715.93); h_SL2L366->SetBinContent(39,15009.04); h_SL2L366->SetBinContent(40,15370.71); h_SL2L366->SetBinContent(41,17244.78); h_SL2L366->SetBinContent(42,17721.52); h_SL2L366->SetBinContent(43,18592.8); h_SL2L366->SetBinContent(44,19825.74); h_SL2L366->SetBinContent(45,19299.69); h_SL2L366->SetBinContent(46,19727.11); h_SL2L366->SetBinContent(47,21108.01); h_SL2L366->SetBinContent(48,22077.92); h_SL2L366->SetBinContent(49,21436.79); h_SL2L366->SetBinContent(50,20713.46); h_SL2L366->SetBinContent(51,20960.05); h_SL2L366->SetBinContent(52,21601.18); h_SL2L366->SetBinContent(53,19924.38); h_SL2L366->SetBinContent(54,19365.45); h_SL2L366->SetBinContent(55,16850.24); h_SL2L366->SetBinContent(56,10849.91); h_SL2L366->SetBinContent(57,7151.077); h_SL2L366->SetMaximum(25937.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,147.9533); h_SL2L467->SetBinContent(3,164.3926); h_SL2L467->SetBinContent(4,164.3926); h_SL2L467->SetBinContent(5,147.9533); h_SL2L467->SetBinContent(6,147.9533); h_SL2L467->SetBinContent(7,164.3926); h_SL2L467->SetBinContent(8,197.2711); h_SL2L467->SetBinContent(9,213.7103); h_SL2L467->SetBinContent(10,180.8318); h_SL2L467->SetBinContent(11,164.3926); h_SL2L467->SetBinContent(12,345.2244); h_SL2L467->SetBinContent(13,328.7851); h_SL2L467->SetBinContent(14,312.3459); h_SL2L467->SetBinContent(15,394.5422); h_SL2L467->SetBinContent(16,443.8599); h_SL2L467->SetBinContent(17,526.0562); h_SL2L467->SetBinContent(18,657.5703); h_SL2L467->SetBinContent(19,904.1591); h_SL2L467->SetBinContent(20,805.5236); h_SL2L467->SetBinContent(21,1052.112); h_SL2L467->SetBinContent(22,1150.748); h_SL2L467->SetBinContent(23,1775.44); h_SL2L467->SetBinContent(24,1939.832); h_SL2L467->SetBinContent(25,2449.449); h_SL2L467->SetBinContent(26,3337.169); h_SL2L467->SetBinContent(27,3830.347); h_SL2L467->SetBinContent(28,4866.02); h_SL2L467->SetBinContent(29,6033.207); h_SL2L467->SetBinContent(30,6986.684); h_SL2L467->SetBinContent(31,7085.32); h_SL2L467->SetBinContent(32,8499.096); h_SL2L467->SetBinContent(33,8515.535); h_SL2L467->SetBinContent(34,9649.844); h_SL2L467->SetBinContent(35,10751.27); h_SL2L467->SetBinContent(36,11458.16); h_SL2L467->SetBinContent(37,12000.66); h_SL2L467->SetBinContent(38,14269.27); h_SL2L467->SetBinContent(39,16126.91); h_SL2L467->SetBinContent(40,15436.46); h_SL2L467->SetBinContent(41,15962.52); h_SL2L467->SetBinContent(42,18280.45); h_SL2L467->SetBinContent(43,18165.38); h_SL2L467->SetBinContent(44,19595.59); h_SL2L467->SetBinContent(45,21075.13); h_SL2L467->SetBinContent(46,20253.16); h_SL2L467->SetBinContent(47,21272.4); h_SL2L467->SetBinContent(48,21749.14); h_SL2L467->SetBinContent(49,21535.43); h_SL2L467->SetBinContent(50,21962.85); h_SL2L467->SetBinContent(51,21601.18); h_SL2L467->SetBinContent(52,21847.77); h_SL2L467->SetBinContent(53,20335.36); h_SL2L467->SetBinContent(54,21255.96); h_SL2L467->SetBinContent(55,19365.45); h_SL2L467->SetBinContent(56,14713.13); h_SL2L467->SetBinContent(57,6411.31); h_SL2L467->SetMaximum(25937.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 7042"); pt->Draw(); c->Modified(); c->cd(); c->SetSelected(c); }