void RatesPerCell_Removing_noisy_cells_run_7051_SL1() { //=========Macro generated from canvas: c/c //========= (Fri Jan 18 19:08:20 2019) by ROOT version6.02/13 TCanvas *c = new TCanvas("c", "c",0,0,800,600); gStyle->SetOptStat(0); c->Range(-7.500001,-1994.1,67.5,17946.9); c->SetFillColor(0); c->SetBorderMode(0); c->SetBorderSize(2); c->SetFrameBorderMode(0); c->SetFrameBorderMode(0); TH1D *h_SL1L160 = new TH1D("h_SL1L160","SL1, run 7051",60,0,60); h_SL1L160->SetBinContent(1,2775.366); h_SL1L160->SetBinContent(2,2912.76); h_SL1L160->SetBinContent(3,3407.38); h_SL1L160->SetBinContent(4,3682.168); h_SL1L160->SetBinContent(5,4836.281); h_SL1L160->SetBinContent(6,5248.464); h_SL1L160->SetBinContent(7,4176.788); h_SL1L160->SetBinContent(8,4918.717); h_SL1L160->SetBinContent(9,5001.154); h_SL1L160->SetBinContent(10,4753.844); h_SL1L160->SetBinContent(11,5413.337); h_SL1L160->SetBinContent(12,5028.633); h_SL1L160->SetBinContent(13,9370.294); h_SL1L160->SetBinContent(14,12063.22); h_SL1L160->SetBinContent(15,10579.36); h_SL1L160->SetBinContent(16,6237.703); h_SL1L160->SetBinContent(17,5358.379); h_SL1L160->SetBinContent(18,5715.604); h_SL1L160->SetBinContent(19,5385.858); h_SL1L160->SetBinContent(20,5962.915); h_SL1L160->SetBinContent(21,5578.21); h_SL1L160->SetBinContent(22,6485.013); h_SL1L160->SetBinContent(23,6237.703); h_SL1L160->SetBinContent(24,5083.591); h_SL1L160->SetBinContent(25,5907.957); h_SL1L160->SetBinContent(26,6457.534); h_SL1L160->SetBinContent(27,6265.182); h_SL1L160->SetBinContent(28,6759.802); h_SL1L160->SetBinContent(29,5935.436); h_SL1L160->SetBinContent(30,6402.576); h_SL1L160->SetBinContent(31,5880.478); h_SL1L160->SetBinContent(32,6210.224); h_SL1L160->SetBinContent(49,5715.604); h_SL1L160->SetBinContent(50,5028.633); h_SL1L160->SetBinContent(51,4341.661); h_SL1L160->SetBinContent(52,4671.408); h_SL1L160->SetBinContent(53,5220.985); h_SL1L160->SetBinContent(54,4891.239); h_SL1L160->SetBinContent(55,5056.112); h_SL1L160->SetBinContent(56,3984.436); h_SL1L160->SetMaximum(15952.8); 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(1,2418.14); h_SL1L261->SetBinContent(2,3874.521); h_SL1L261->SetBinContent(3,4479.056); h_SL1L261->SetBinContent(4,4231.746); h_SL1L261->SetBinContent(5,4341.661); h_SL1L261->SetBinContent(6,5550.731); h_SL1L261->SetBinContent(7,5660.647); h_SL1L261->SetBinContent(8,4781.323); h_SL1L261->SetBinContent(9,9315.336); h_SL1L261->SetBinContent(10,6155.267); h_SL1L261->SetBinContent(11,5550.731); h_SL1L261->SetBinContent(12,5990.394); h_SL1L261->SetBinContent(13,6375.098); h_SL1L261->SetBinContent(14,7391.815); h_SL1L261->SetBinContent(15,7144.506); h_SL1L261->SetBinContent(16,6622.407); h_SL1L261->SetBinContent(17,6594.928); h_SL1L261->SetBinContent(18,7117.027); h_SL1L261->SetBinContent(19,6100.309); h_SL1L261->SetBinContent(20,6704.844); h_SL1L261->SetBinContent(21,6457.534); h_SL1L261->SetBinContent(22,6842.238); h_SL1L261->SetBinContent(23,8078.787); h_SL1L261->SetBinContent(24,6402.576); h_SL1L261->SetBinContent(25,7254.421); h_SL1L261->SetBinContent(26,6622.407); h_SL1L261->SetBinContent(27,6842.238); h_SL1L261->SetBinContent(28,6677.365); h_SL1L261->SetBinContent(29,7117.027); h_SL1L261->SetBinContent(30,7776.52); h_SL1L261->SetBinContent(31,6732.323); h_SL1L261->SetBinContent(32,7199.463); h_SL1L261->SetBinContent(49,5990.394); h_SL1L261->SetBinContent(50,6182.746); h_SL1L261->SetBinContent(51,5166.027); h_SL1L261->SetBinContent(52,5743.083); h_SL1L261->SetBinContent(53,5468.295); h_SL1L261->SetBinContent(54,5578.21); h_SL1L261->SetBinContent(55,5495.774); h_SL1L261->SetBinContent(56,5275.943); h_SL1L261->SetMaximum(13872.71); 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,2637.971); h_SL1L362->SetBinContent(2,3160.07); h_SL1L362->SetBinContent(3,4341.661); h_SL1L362->SetBinContent(4,4286.704); h_SL1L362->SetBinContent(5,5248.464); h_SL1L362->SetBinContent(6,5413.337); h_SL1L362->SetBinContent(7,5193.506); h_SL1L362->SetBinContent(8,5303.421); h_SL1L362->SetBinContent(9,6045.351); h_SL1L362->SetBinContent(10,5825.52); h_SL1L362->SetBinContent(11,6677.365); h_SL1L362->SetBinContent(12,6375.098); h_SL1L362->SetBinContent(13,6952.154); h_SL1L362->SetBinContent(14,7336.858); h_SL1L362->SetBinContent(15,9205.421); h_SL1L362->SetBinContent(16,7858.957); h_SL1L362->SetBinContent(17,7254.421); h_SL1L362->SetBinContent(18,6402.576); h_SL1L362->SetBinContent(19,6430.055); h_SL1L362->SetBinContent(20,7117.027); h_SL1L362->SetBinContent(21,7144.506); h_SL1L362->SetBinContent(22,7281.9); h_SL1L362->SetBinContent(23,7062.069); h_SL1L362->SetBinContent(24,6292.661); h_SL1L362->SetBinContent(25,7446.773); h_SL1L362->SetBinContent(26,7501.731); h_SL1L362->SetBinContent(27,6622.407); h_SL1L362->SetBinContent(28,7694.083); h_SL1L362->SetBinContent(29,7446.773); h_SL1L362->SetBinContent(30,7584.167); h_SL1L362->SetBinContent(31,6320.14); h_SL1L362->SetBinContent(32,7776.52); h_SL1L362->SetBinContent(49,7034.59); h_SL1L362->SetBinContent(50,5138.548); h_SL1L362->SetBinContent(51,5056.112); h_SL1L362->SetBinContent(52,5495.774); h_SL1L362->SetBinContent(53,5660.647); h_SL1L362->SetBinContent(54,5715.604); h_SL1L362->SetBinContent(55,5578.21); h_SL1L362->SetBinContent(56,4616.45); h_SL1L362->SetMaximum(13872.71); 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,109.9155); h_SL1L463->SetBinContent(3,54.95774); h_SL1L463->SetBinContent(4,27.47887); h_SL1L463->SetBinContent(5,109.9155); h_SL1L463->SetBinContent(6,82.43661); h_SL1L463->SetBinContent(7,54.95774); h_SL1L463->SetBinContent(8,82.43661); h_SL1L463->SetBinContent(9,82.43661); h_SL1L463->SetBinContent(10,82.43661); h_SL1L463->SetBinContent(11,192.3521); h_SL1L463->SetBinContent(12,137.3943); h_SL1L463->SetBinContent(13,192.3521); h_SL1L463->SetBinContent(14,8408.534); h_SL1L463->SetBinContent(15,6375.098); h_SL1L463->SetBinContent(16,6649.886); h_SL1L463->SetBinContent(17,27.47887); h_SL1L463->SetBinContent(18,27.47887); h_SL1L463->SetBinContent(19,137.3943); h_SL1L463->SetBinContent(20,164.8732); h_SL1L463->SetBinContent(21,27.47887); h_SL1L463->SetBinContent(22,82.43661); h_SL1L463->SetBinContent(23,54.95774); h_SL1L463->SetBinContent(24,247.3098); h_SL1L463->SetBinContent(25,54.95774); h_SL1L463->SetBinContent(26,137.3943); h_SL1L463->SetBinContent(27,109.9155); h_SL1L463->SetBinContent(28,109.9155); h_SL1L463->SetBinContent(29,54.95774); h_SL1L463->SetBinContent(30,137.3943); h_SL1L463->SetBinContent(31,219.8309); h_SL1L463->SetBinContent(32,54.95774); h_SL1L463->SetBinContent(49,164.8732); h_SL1L463->SetBinContent(50,27.47887); h_SL1L463->SetBinContent(51,109.9155); h_SL1L463->SetBinContent(52,54.95774); h_SL1L463->SetBinContent(53,82.43661); h_SL1L463->SetBinContent(54,137.3943); h_SL1L463->SetBinContent(55,27.47887); h_SL1L463->SetBinContent(56,137.3943); h_SL1L463->SetMaximum(13872.71); 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.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("SL1, run 7051"); pt->Draw(); c->Modified(); c->cd(); c->SetSelected(c); }