void RatesPerCell_Removing_noisy_cells_run_6729_SL2() { //=========Macro generated from canvas: c/c //========= (Sun Jan 13 15:59:32 2019) by ROOT version6.02/13 TCanvas *c = new TCanvas("c", "c",0,0,800,600); gStyle->SetOptStat(0); c->Range(-7.500001,-12786.56,67.5,115079.1); c->SetFillColor(0); c->SetBorderMode(0); c->SetBorderSize(2); c->SetFrameBorderMode(0); c->SetFrameBorderMode(0); TH1D *h_SL2L164 = new TH1D("h_SL2L164","SL2, run 6729",60,0,60); h_SL2L164->SetBinContent(1,48343.56); h_SL2L164->SetBinContent(2,59629.4); h_SL2L164->SetBinContent(3,72915.98); h_SL2L164->SetBinContent(4,73699.76); h_SL2L164->SetBinContent(5,72262.43); h_SL2L164->SetBinContent(6,66558.16); h_SL2L164->SetBinContent(7,59744.59); h_SL2L164->SetBinContent(8,57643.67); h_SL2L164->SetBinContent(9,66583.2); h_SL2L164->SetBinContent(10,67121.57); h_SL2L164->SetBinContent(11,66946.29); h_SL2L164->SetBinContent(12,65784.4); h_SL2L164->SetBinContent(13,67381.99); h_SL2L164->SetBinContent(14,65218.48); h_SL2L164->SetBinContent(15,64457.24); h_SL2L164->SetBinContent(16,62005.76); h_SL2L164->SetBinContent(17,60117.69); h_SL2L164->SetBinContent(18,60182.8); h_SL2L164->SetBinContent(19,57886.57); h_SL2L164->SetBinContent(20,53491.93); h_SL2L164->SetBinContent(21,48982.09); h_SL2L164->SetBinContent(22,45083.26); h_SL2L164->SetBinContent(23,43513.21); h_SL2L164->SetBinContent(24,41765.37); h_SL2L164->SetBinContent(25,42807.06); h_SL2L164->SetBinContent(26,57791.41); h_SL2L164->SetBinContent(27,69440.34); h_SL2L164->SetBinContent(28,75109.55); h_SL2L164->SetBinContent(29,77348.19); h_SL2L164->SetBinContent(30,74473.52); h_SL2L164->SetBinContent(31,70554.65); h_SL2L164->SetBinContent(32,71616.38); h_SL2L164->SetBinContent(33,69124.83); h_SL2L164->SetBinContent(34,50702.39); h_SL2L164->SetBinContent(36,26605.73); h_SL2L164->SetBinContent(37,28451.23); h_SL2L164->SetBinContent(38,27487.17); h_SL2L164->SetBinContent(39,27652.44); h_SL2L164->SetBinContent(40,57117.82); h_SL2L164->SetBinContent(41,50096.41); h_SL2L164->SetBinContent(42,28063.1); h_SL2L164->SetBinContent(43,28849.38); h_SL2L164->SetBinContent(44,28418.68); h_SL2L164->SetBinContent(45,23165.14); h_SL2L164->SetBinContent(46,22268.69); h_SL2L164->SetBinContent(47,22388.88); h_SL2L164->SetBinContent(48,22802.05); h_SL2L164->SetBinContent(49,24492.3); h_SL2L164->SetBinContent(50,22827.09); h_SL2L164->SetBinContent(51,24975.59); h_SL2L164->SetBinContent(52,27447.1); h_SL2L164->SetBinContent(53,30194.06); h_SL2L164->SetBinContent(54,31761.61); h_SL2L164->SetBinContent(55,32212.35); h_SL2L164->SetBinContent(56,27594.84); h_SL2L164->SetBinContent(57,23761.11); h_SL2L164->SetMaximum(102292.5); 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,39263.8); h_SL2L265->SetBinContent(2,56864.91); h_SL2L265->SetBinContent(3,62251.16); h_SL2L265->SetBinContent(4,71964.45); h_SL2L265->SetBinContent(5,70967.82); h_SL2L265->SetBinContent(6,67607.36); h_SL2L265->SetBinContent(7,61414.8); h_SL2L265->SetBinContent(8,53246.52); h_SL2L265->SetBinContent(9,62544.13); h_SL2L265->SetBinContent(10,64271.94); h_SL2L265->SetBinContent(11,66089.9); h_SL2L265->SetBinContent(12,64309.5); h_SL2L265->SetBinContent(13,64136.72); h_SL2L265->SetBinContent(14,64184.3); h_SL2L265->SetBinContent(15,62954.8); h_SL2L265->SetBinContent(16,61206.96); h_SL2L265->SetBinContent(17,59020.91); h_SL2L265->SetBinContent(18,57673.72); h_SL2L265->SetBinContent(19,57373.23); h_SL2L265->SetBinContent(20,52582.95); h_SL2L265->SetBinContent(21,49312.63); h_SL2L265->SetBinContent(22,44414.67); h_SL2L265->SetBinContent(23,42433.95); h_SL2L265->SetBinContent(24,41191.94); h_SL2L265->SetBinContent(25,38900.71); h_SL2L265->SetBinContent(26,49069.74); h_SL2L265->SetBinContent(27,62113.43); h_SL2L265->SetBinContent(28,71804.18); h_SL2L265->SetBinContent(29,75565.29); h_SL2L265->SetBinContent(30,75157.13); h_SL2L265->SetBinContent(31,70734.95); h_SL2L265->SetBinContent(32,70264.18); h_SL2L265->SetBinContent(33,70699.88); h_SL2L265->SetBinContent(34,62110.93); h_SL2L265->SetBinContent(35,37375.73); h_SL2L265->SetBinContent(36,27687.49); h_SL2L265->SetBinContent(37,26500.56); h_SL2L265->SetBinContent(38,26498.06); h_SL2L265->SetBinContent(39,25992.24); h_SL2L265->SetBinContent(40,26220.11); h_SL2L265->SetBinContent(41,26074.87); h_SL2L265->SetBinContent(42,24760.23); h_SL2L265->SetBinContent(43,23367.97); h_SL2L265->SetBinContent(44,23433.08); h_SL2L265->SetBinContent(45,22741.96); h_SL2L265->SetBinContent(46,21827.97); h_SL2L265->SetBinContent(47,21627.64); h_SL2L265->SetBinContent(48,21807.94); h_SL2L265->SetBinContent(49,22316.26); h_SL2L265->SetBinContent(50,23360.46); h_SL2L265->SetBinContent(51,21767.87); h_SL2L265->SetBinContent(52,25238.51); h_SL2L265->SetBinContent(53,27795.17); h_SL2L265->SetBinContent(54,29492.93); h_SL2L265->SetBinContent(55,31396.02); h_SL2L265->SetBinContent(56,27930.39); h_SL2L265->SetBinContent(57,27194.19); h_SL2L265->SetMaximum(88950.42); 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,45969.7); h_SL2L366->SetBinContent(2,54691.37); h_SL2L366->SetBinContent(3,68358.59); h_SL2L366->SetBinContent(4,67972.95); h_SL2L366->SetBinContent(5,67104.05); h_SL2L366->SetBinContent(6,60924); h_SL2L366->SetBinContent(7,54486.04); h_SL2L366->SetBinContent(8,55192.19); h_SL2L366->SetBinContent(9,61372.23); h_SL2L366->SetBinContent(10,63212.72); h_SL2L366->SetBinContent(11,63027.42); h_SL2L366->SetBinContent(12,60848.88); h_SL2L366->SetBinContent(13,61019.16); h_SL2L366->SetBinContent(14,61384.75); h_SL2L366->SetBinContent(15,60460.75); h_SL2L366->SetBinContent(16,57844); h_SL2L366->SetBinContent(17,55860.77); h_SL2L366->SetBinContent(18,55868.29); h_SL2L366->SetBinContent(19,53223.99); h_SL2L366->SetBinContent(20,49655.69); h_SL2L366->SetBinContent(21,45554.02); h_SL2L366->SetBinContent(22,41710.28); h_SL2L366->SetBinContent(23,40282.96); h_SL2L366->SetBinContent(24,37616.12); h_SL2L366->SetBinContent(25,40092.65); h_SL2L366->SetBinContent(26,55217.23); h_SL2L366->SetBinContent(27,67061.48); h_SL2L366->SetBinContent(28,72936.02); h_SL2L366->SetBinContent(29,74736.45); h_SL2L366->SetBinContent(30,72380.12); h_SL2L366->SetBinContent(31,68924.5); h_SL2L366->SetBinContent(32,70016.27); h_SL2L366->SetBinContent(33,67972.95); h_SL2L366->SetBinContent(34,49255.04); h_SL2L366->SetBinContent(35,29037.19); h_SL2L366->SetBinContent(36,25281.08); h_SL2L366->SetBinContent(37,25098.29); h_SL2L366->SetBinContent(38,25456.37); h_SL2L366->SetBinContent(39,24427.19); h_SL2L366->SetBinContent(40,24389.63); h_SL2L366->SetBinContent(41,23528.23); h_SL2L366->SetBinContent(42,22674.35); h_SL2L366->SetBinContent(43,23057.47); h_SL2L366->SetBinContent(44,22531.61); h_SL2L366->SetBinContent(45,21129.34); h_SL2L366->SetBinContent(46,20418.18); h_SL2L366->SetBinContent(47,20618.51); h_SL2L366->SetBinContent(48,21169.4); h_SL2L366->SetBinContent(49,22090.9); h_SL2L366->SetBinContent(50,21750.34); h_SL2L366->SetBinContent(51,22221.11); h_SL2L366->SetBinContent(52,25158.38); h_SL2L366->SetBinContent(53,27359.46); h_SL2L366->SetBinContent(54,29810.94); h_SL2L366->SetBinContent(55,30409.41); h_SL2L366->SetBinContent(56,25766.87); h_SL2L366->SetBinContent(57,25403.78); h_SL2L366->SetMaximum(88950.42); 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,53146.36); h_SL2L467->SetBinContent(3,59426.57); h_SL2L467->SetBinContent(4,66342.8); h_SL2L467->SetBinContent(5,65566.55); h_SL2L467->SetBinContent(6,60626.02); h_SL2L467->SetBinContent(7,55582.82); h_SL2L467->SetBinContent(8,49988.73); h_SL2L467->SetBinContent(9,57861.52); h_SL2L467->SetBinContent(10,60037.56); h_SL2L467->SetBinContent(11,61086.77); h_SL2L467->SetBinContent(12,59336.42); h_SL2L467->SetBinContent(13,59762.11); h_SL2L467->SetBinContent(14,59081.01); h_SL2L467->SetBinContent(15,57566.04); h_SL2L467->SetBinContent(16,56461.75); h_SL2L467->SetBinContent(17,54536.12); h_SL2L467->SetBinContent(18,53454.36); h_SL2L467->SetBinContent(19,52723.18); h_SL2L467->SetBinContent(20,48418.68); h_SL2L467->SetBinContent(21,46067.36); h_SL2L467->SetBinContent(22,41933.14); h_SL2L467->SetBinContent(23,38830.6); h_SL2L467->SetBinContent(24,37490.92); h_SL2L467->SetBinContent(25,36126.2); h_SL2L467->SetBinContent(26,46936.27); h_SL2L467->SetBinContent(27,60145.23); h_SL2L467->SetBinContent(28,70324.27); h_SL2L467->SetBinContent(29,73259.05); h_SL2L467->SetBinContent(30,73870.04); h_SL2L467->SetBinContent(31,68473.77); h_SL2L467->SetBinContent(32,68280.95); h_SL2L467->SetBinContent(33,69212.47); h_SL2L467->SetBinContent(34,60202.83); h_SL2L467->SetBinContent(35,35132.09); h_SL2L467->SetBinContent(36,25261.05); h_SL2L467->SetBinContent(37,23921.37); h_SL2L467->SetBinContent(38,24502.32); h_SL2L467->SetBinContent(39,23961.44); h_SL2L467->SetBinContent(40,23640.92); h_SL2L467->SetBinContent(41,22481.53); h_SL2L467->SetBinContent(42,22646.8); h_SL2L467->SetBinContent(43,22263.68); h_SL2L467->SetBinContent(44,21950.67); h_SL2L467->SetBinContent(45,20924); h_SL2L467->SetBinContent(46,20398.15); h_SL2L467->SetBinContent(47,19857.27); h_SL2L467->SetBinContent(48,20308); h_SL2L467->SetBinContent(49,20628.52); h_SL2L467->SetBinContent(50,21479.9); h_SL2L467->SetBinContent(51,20308); h_SL2L467->SetBinContent(52,23167.65); h_SL2L467->SetBinContent(53,24842.87); h_SL2L467->SetBinContent(54,27632.4); h_SL2L467->SetBinContent(55,28957.05); h_SL2L467->SetBinContent(56,26187.55); h_SL2L467->SetBinContent(57,25155.88); h_SL2L467->SetMaximum(88950.42); 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 6729"); pt->Draw(); c->Modified(); c->cd(); c->SetSelected(c); }