void RatesPerCell_Removing_noisy_cells_run_5549_SL1() { //=========Macro generated from canvas: c/c //========= (Wed Jan 16 11:04:22 2019) by ROOT version6.02/13 TCanvas *c = new TCanvas("c", "c",0,0,800,600); gStyle->SetOptStat(0); c->Range(-7.500001,-12103.46,67.5,108931.2); c->SetFillColor(0); c->SetBorderMode(0); c->SetBorderSize(2); c->SetFrameBorderMode(0); c->SetFrameBorderMode(0); TH1D *h_SL1L160 = new TH1D("h_SL1L160","SL1, run 5549",60,0,60); h_SL1L160->SetBinContent(1,677.505); h_SL1L160->SetBinContent(2,664.4761); h_SL1L160->SetBinContent(3,807.7944); h_SL1L160->SetBinContent(4,814.3089); h_SL1L160->SetBinContent(5,859.9102); h_SL1L160->SetBinContent(6,716.5918); h_SL1L160->SetBinContent(7,775.222); h_SL1L160->SetBinContent(8,859.9102); h_SL1L160->SetBinContent(9,840.3668); h_SL1L160->SetBinContent(10,1009.743); h_SL1L160->SetBinContent(11,1100.946); h_SL1L160->SetBinContent(12,1074.888); h_SL1L160->SetBinContent(13,1146.547); h_SL1L160->SetBinContent(14,1309.409); h_SL1L160->SetBinContent(15,1270.322); h_SL1L160->SetBinContent(16,1387.582); h_SL1L160->SetBinContent(17,1478.785); h_SL1L160->SetBinContent(18,1791.479); h_SL1L160->SetBinContent(19,1791.479); h_SL1L160->SetBinContent(20,2182.348); h_SL1L160->SetBinContent(21,2280.065); h_SL1L160->SetBinContent(22,2377.782); h_SL1L160->SetBinContent(23,2749.107); h_SL1L160->SetBinContent(24,2938.026); h_SL1L160->SetBinContent(25,2905.454); h_SL1L160->SetBinContent(26,3367.981); h_SL1L160->SetBinContent(27,3797.937); h_SL1L160->SetBinContent(28,4455.898); h_SL1L160->SetBinContent(29,4722.992); h_SL1L160->SetBinContent(30,5680.619); h_SL1L160->SetBinContent(31,7700.105); h_SL1L160->SetBinContent(32,10670.7); h_SL1L160->SetBinContent(33,38546.12); h_SL1L160->SetBinContent(34,51321); h_SL1L160->SetBinContent(35,60076.45); h_SL1L160->SetBinContent(36,67203.28); h_SL1L160->SetBinContent(37,73216.14); h_SL1L160->SetBinContent(38,67014.37); h_SL1L160->SetBinContent(39,47034.48); h_SL1L160->SetBinContent(40,12566.42); h_SL1L160->SetBinContent(41,8475.327); h_SL1L160->SetBinContent(42,7419.982); h_SL1L160->SetBinContent(43,6032.4); h_SL1L160->SetBinContent(44,5485.185); h_SL1L160->SetBinContent(45,5309.294); h_SL1L160->SetBinContent(46,5035.686); h_SL1L160->SetBinContent(47,4644.818); h_SL1L160->SetBinContent(48,3863.081); h_SL1L160->SetBinContent(49,3693.705); h_SL1L160->SetBinContent(50,3576.445); h_SL1L160->SetBinContent(51,3322.38); h_SL1L160->SetBinContent(52,3016.2); h_SL1L160->SetBinContent(53,2951.055); h_SL1L160->SetBinContent(54,2468.985); h_SL1L160->SetBinContent(55,2749.107); h_SL1L160->SetBinContent(56,2540.644); h_SL1L160->SetBinContent(57,2254.007); h_SL1L160->SetBinContent(58,2488.528); h_SL1L160->SetBinContent(59,2149.775); h_SL1L160->SetMaximum(96827.7); 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(5,13.02894); h_SL1L261->SetBinContent(6,26.05788); h_SL1L261->SetBinContent(7,26.05788); h_SL1L261->SetBinContent(8,19.54341); h_SL1L261->SetBinContent(9,71.65918); h_SL1L261->SetBinContent(10,52.11577); h_SL1L261->SetBinContent(11,45.6013); h_SL1L261->SetBinContent(12,65.14471); h_SL1L261->SetBinContent(17,32.57236); h_SL1L261->SetBinContent(18,19.54341); h_SL1L261->SetBinContent(19,26.05788); h_SL1L261->SetBinContent(20,26.05788); h_SL1L261->SetBinContent(38,6.514471); h_SL1L261->SetBinContent(39,6.514471); h_SL1L261->SetBinContent(40,13.02894); h_SL1L261->SetBinContent(44,6.514471); h_SL1L261->SetBinContent(49,130.2894); h_SL1L261->SetBinContent(56,6.514471); h_SL1L261->SetBinContent(57,26.05788); h_SL1L261->SetBinContent(58,6.514471); h_SL1L261->SetBinContent(59,13.02894); h_SL1L261->SetMaximum(84198.56); 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,6.514471); h_SL1L362->SetBinContent(5,6.514471); h_SL1L362->SetBinContent(7,6.514471); h_SL1L362->SetBinContent(8,6.514471); h_SL1L362->SetBinContent(9,45.6013); h_SL1L362->SetBinContent(12,45.6013); h_SL1L362->SetBinContent(17,13.02894); h_SL1L362->SetBinContent(18,6.514471); h_SL1L362->SetBinContent(19,6.514471); h_SL1L362->SetBinContent(20,26.05788); h_SL1L362->SetBinContent(37,19.54341); h_SL1L362->SetBinContent(38,19.54341); h_SL1L362->SetBinContent(39,26.05788); h_SL1L362->SetBinContent(40,19.54341); h_SL1L362->SetBinContent(41,32.57236); h_SL1L362->SetBinContent(42,19.54341); h_SL1L362->SetBinContent(43,39.08683); h_SL1L362->SetBinContent(44,26.05788); h_SL1L362->SetBinContent(48,6.514471); h_SL1L362->SetBinContent(49,13.02894); h_SL1L362->SetBinContent(50,19.54341); h_SL1L362->SetBinContent(51,6.514471); h_SL1L362->SetBinContent(52,13.02894); h_SL1L362->SetBinContent(56,6.514471); h_SL1L362->SetBinContent(57,26.05788); h_SL1L362->SetBinContent(58,39.08683); h_SL1L362->SetBinContent(59,45.6013); h_SL1L362->SetMaximum(84198.56); 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,684.0195); h_SL1L463->SetBinContent(3,729.6207); h_SL1L463->SetBinContent(4,573.2734); h_SL1L463->SetBinContent(5,540.7011); h_SL1L463->SetBinContent(6,644.9326); h_SL1L463->SetBinContent(7,638.4182); h_SL1L463->SetBinContent(8,560.2445); h_SL1L463->SetBinContent(9,664.4761); h_SL1L463->SetBinContent(10,814.3089); h_SL1L463->SetBinContent(11,964.1417); h_SL1L463->SetBinContent(12,879.4536); h_SL1L463->SetBinContent(13,885.9681); h_SL1L463->SetBinContent(14,1205.177); h_SL1L463->SetBinContent(15,1081.402); h_SL1L463->SetBinContent(16,1172.605); h_SL1L463->SetBinContent(17,1244.264); h_SL1L463->SetBinContent(18,1628.618); h_SL1L463->SetBinContent(19,1609.074); h_SL1L463->SetBinContent(20,1615.589); h_SL1L463->SetBinContent(21,2071.602); h_SL1L463->SetBinContent(22,2143.261); h_SL1L463->SetBinContent(23,2254.007); h_SL1L463->SetBinContent(24,2475.499); h_SL1L463->SetBinContent(25,2651.39); h_SL1L463->SetBinContent(26,2892.425); h_SL1L463->SetBinContent(27,3381.01); h_SL1L463->SetBinContent(28,3830.509); h_SL1L463->SetBinContent(29,4306.065); h_SL1L463->SetBinContent(30,4977.056); h_SL1L463->SetBinContent(31,6494.928); h_SL1L463->SetBinContent(32,9061.629); h_SL1L463->SetBinContent(33,22553.1); h_SL1L463->SetBinContent(34,47887.88); h_SL1L463->SetBinContent(35,56428.35); h_SL1L463->SetBinContent(36,64278.29); h_SL1L463->SetBinContent(37,71646.16); h_SL1L463->SetBinContent(38,71372.55); h_SL1L463->SetBinContent(39,62838.59); h_SL1L463->SetBinContent(40,24201.26); h_SL1L463->SetBinContent(41,10827.05); h_SL1L463->SetBinContent(42,8006.285); h_SL1L463->SetBinContent(43,6358.124); h_SL1L463->SetBinContent(44,5615.474); h_SL1L463->SetBinContent(45,5081.288); h_SL1L463->SetBinContent(46,5074.773); h_SL1L463->SetBinContent(47,4579.673); h_SL1L463->SetBinContent(48,4247.435); h_SL1L463->SetBinContent(49,3485.242); h_SL1L463->SetBinContent(50,3472.213); h_SL1L463->SetBinContent(51,3263.75); h_SL1L463->SetBinContent(52,2990.142); h_SL1L463->SetBinContent(53,2879.396); h_SL1L463->SetBinContent(54,2254.007); h_SL1L463->SetBinContent(56,2410.354); h_SL1L463->SetBinContent(57,2325.666); h_SL1L463->SetBinContent(58,2260.521); h_SL1L463->SetBinContent(59,2123.718); h_SL1L463->SetMaximum(84198.56); 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 5549"); pt->Draw(); c->Modified(); c->cd(); c->SetSelected(c); }